I am using an app for some benchmarking purpose
When I install the app I'm getting these logs from packagemanager. The android version is Marshmallow and I know that the app targetSdkVersion is 22 (so I expect this to work with M)
09-07 02:24:05.407 1174 1204 W PackageManager: Not granting permission android.permission.READ_PHONE_STATE to package com.antutu.ABenchMark because it was previously installed without
09-07 02:24:05.407 1174 1204 W PackageManager: Not granting permission android.permission.READ_EXTERNAL_STORAGE to package com.antutu.ABenchMark because it was previously installed without
09-07 02:24:05.407 1174 1204 W PackageManager: Not granting permission android.permission.WRITE_EXTERNAL_STORAGE to package com.antutu.ABenchMark because it was previously installed without
I am installing the app from a script once the boot completes
pm install -r /system/priv-app/Benchmarking/app/app-debug.apk > /dev/kmsg
pm grant com.antutu.ABenchMark android.permission.READ_PHONE_STATE
pm grant com.antutu.ABenchMark android.permission.WRITE_EXTERNAL_STORAGE
pm grant com.antutu.ABenchMark android.permission.READ_EXTERNAL_STORAGE
am start -n com.antutu.ABenchMark/com.antutu.ABenchMark.ABenchMarkStart -e 74Sd42l35nH e57b6eb9906e27062fc7fcfcc820b957a5c33b649 > /dev/kmsg
Also I am using ah/w emulator instead of development board so its like trying a fresh OS each time and install app
在重新安装之前先卸载它,则可能会解决问题。
pm uninstall -r /system/priv-app/Benchmarking/app/app-debug.apk > /dev/kmsg
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.