Fix installd get wrong inode cause APK crash
Reset cache inode when installd delete cache.
Nexus 5X can be reproduced.
Reproduce step:
1.Flash device image
2.Wait boot comple
3.Install any APK with lib folder
4.Fill storage to remain 49MB
5.Clear APP data from Settings
6.Launch APK
7.APK crash
Fill storage to remain 49MB that will cause PMS trigger free cache.
installd will do "freecache" command with a wrong inode of cache.
01-01 00:20:31.183 437 437 D installd: Resolved path
/data/data/com.tct.hz.camera/lib for inode 516100 instead of
/data/data/com.tct.hz.camera/cache
installd will delete all files of lib folder that cause APP crash
07-13 20:09:51.577 13421 13421 E AndroidRuntime:
java.lang.UnsatisfiedLinkError:
dalvik.system.PathClassLoader[DexPathList[[zip file
"/data/app/com.tct.hz.camera-1/base.apk"],nativeLibraryDirectories=[/data/app/com.tct.hz.camera-1/lib/arm,
/data/app/com.tct.hz.camera-1/base.apk!/lib/armeabi-v7a,
/system/lib, /vendor/lib]]] couldn't find "libmmap_jni_fp.so"
07-13 20:09:51.577 13421 13421 E AndroidRuntime: at
java.lang.Runtime.loadLibrary0(Runtime.java:984)
Change-Id: I644f480705c12382e2930f3fc8bb1e1a79bc0041
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
Signed-off-by: XrTV <binder_z@mail.ru>
1 file changed