app启动然后杀掉进程,仍然会被系统进程占用
在root机上执行命令:adb shell lsof >c:\loadfiles.txt
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME system_server 2764 system 481r REG 254,8 1864105656 17341 /data/app/~~eL3xN2EPg9HeG_cFT1RRgg==/com.tencent.mf.mytest1-VWB2nFfBaWYcUoz0ItJmCQ==/base.apk ndroid.systemui 3453 u0_a151 75r REG 254,8 1864105656 17341 /data/app/~~eL3xN2EPg9HeG_cFT1RRgg==/com.tencent.mf.mytest1-VWB2nFfBaWYcUoz0ItJmCQ==/base.apk droid.launcher3 3902 u0_a150 104r REG 254,8 1864105656 17341 /data/app/~~eL3xN2EPg9HeG_cFT1RRgg==/com.tencent.mf.mytest1-VWB2nFfBaWYcUoz0ItJmCQ==/base.apk kloadclassifier 4600 u0_a160 78r REG 254,8 1864105656 17341 /data/app/~~eL3xN2EPg9HeG_cFT1RRgg==/com.tencent.mf.mytest1-VWB2nFfBaWYcUoz0ItJmCQ==/base.apk
卸载后,由于被系统进程占用,apk文件是没有真正被删除的
COMMAND PID USER FD TYPE DEVICE droid.launcher3 3902 u0_a150 104r REG 254,8 1864105656 17341 /data/app/~~eL3xN2EPg9HeG_cFT1RRgg==/com.tencent.mf.mytest1-VWB2nFfBaWYcUoz0ItJmCQ==/base.apk (deleted) kloadclassifier 4600 u0_a160 78r REG 254,8 1864105656 17341 /data/app/~~eL3xN2EPg9HeG_cFT1RRgg==/com.tencent.mf.mytest1-VWB2nFfBaWYcUoz0ItJmCQ==/base.apk (deleted)
注:用文件管理器或ls命令进入/data/app中, 是看不到~~eL3xN2EPg9HeG_cFT1RRgg==目录的
查看此时剩余可用空间:
F:\Tools\Android>adb shell df -h Filesystem Size Used Avail Use% Mounted on tmpfs 3.5G 1.7M 3.5G 1% /dev tmpfs 3.5G 0 3.5G 0% /mnt /dev/block/sda9 62M 46M 16M 75% /metadata /dev/block/dm-2 957M 954M 2.9M 100% / /dev/block/dm-7 5.9G 494M 5.5G 9% /mnt/scratch overlay 5.9G 494M 5.5G 9% /system overlay 5.9G 494M 5.5G 9% /system_ext overlay 5.9G 494M 5.5G 9% /product overlay 5.9G 494M 5.5G 9% /vendor overlay 5.9G 494M 5.5G 9% /vendor_dlkm overlay 5.9G 494M 5.5G 9% /system_dlkm overlay 5.9G 494M 5.5G 9% /odm tmpfs 5.5G 12K 5.5G 1% /apex tmpfs 5.5G 488K 5.5G 1% /linkerconfig /dev/block/sda2 27M 1.5M 25M 6% /mnt/vendor/persist /dev/block/sde6 320M 293M 27M 92% /vendor/firmware_mnt /dev/block/sde11 58M 38M 20M 66% /vendor/dsp /dev/block/sde22 508M 467M 41M 92% /vendor/vm-system /dev/block/sde76 114M 114M 596K 100% /mnt/product/vm-persist /dev/block/sde7 64M 5.8M 58M 10% /vendor/bt_firmware /dev/block/sde27 30M 0 30M 0% /mnt/vendor/qmcs /dev/block/dm-8 204G 18G 186G 9% /data tmpfs 5.5G 0 5.5G 0% /data_mirror /dev/fuse 204G 18G 186G 9% /mnt/user/0/emulated
在windows上查看磁盘剩余可用空间:
手机重启后,/data/app/~~eL3xN2EPg9HeG_cFT1RRgg==/com.tencent.mf.mytest1-VWB2nFfBaWYcUoz0ItJmCQ==/base.apk才会被真正的删除掉,剩余可用空间也会增加
F:\Tools\Android>adb shell df -h Filesystem Size Used Avail Use% Mounted on tmpfs 3.5G 1.7M 3.5G 1% /dev tmpfs 3.5G 0 3.5G 0% /mnt /dev/block/sda9 62M 46M 16M 75% /metadata /dev/block/dm-2 957M 954M 2.9M 100% / /dev/block/dm-7 5.9G 494M 5.5G 9% /mnt/scratch overlay 5.9G 494M 5.5G 9% /system overlay 5.9G 494M 5.5G 9% /system_ext overlay 5.9G 494M 5.5G 9% /product overlay 5.9G 494M 5.5G 9% /vendor overlay 5.9G 494M 5.5G 9% /vendor_dlkm overlay 5.9G 494M 5.5G 9% /system_dlkm overlay 5.9G 494M 5.5G 9% /odm tmpfs 5.5G 12K 5.5G 1% /apex tmpfs 5.5G 488K 5.5G 1% /linkerconfig /dev/block/sda2 27M 1.5M 25M 6% /mnt/vendor/persist /dev/block/sde6 320M 293M 27M 92% /vendor/firmware_mnt /dev/block/sde11 58M 38M 20M 66% /vendor/dsp /dev/block/sde22 508M 467M 41M 92% /vendor/vm-system /dev/block/sde76 114M 114M 596K 100% /mnt/product/vm-persist /dev/block/sde7 64M 5.8M 58M 10% /vendor/bt_firmware /dev/block/sde27 30M 0 30M 0% /mnt/vendor/qmcs /dev/block/dm-8 204G 16G 188G 8% /data tmpfs 5.5G 0 5.5G 0% /data_mirror /dev/fuse 204G 16G 188G 8% /mnt/user/0/emulated
在windows上查看磁盘剩余可用空间:
参考
标签:剩余,vendor,5.5,9%,dev,磁盘空间,494M,Android,block From: https://www.cnblogs.com/kekec/p/17339597.html