Installing Android System-App on Emulator does not work -
i have system app capable of performing system level tasks (ex: remote reboot etc.). want try out in android-dev-studio emulator.
i have googled , i've found far:
build .apk
- adb remount
- adb push [myapp.apk] /system/app/ (this /system/priv-app in api level 19+)
- adb shell chmod 644 /system/app/[myapp.apk]
- adb reboot
i have done of this. i've tried copying apk both folders "/system/app/" , "/system/priv-app/" folders. regardless, when reboot emulator not show , gets stuck.
according question reboot not work emulators noticed correct, since copied .apk file lost upon restart.
what missing here?
i compiling , building sdkversion - 21. folder should copy system app to? (/system/app/ or /system/priv-app)?
also if reboot not work emulators, how app installed , running?
what's android version of emulator?
"/system/app/" , "/system/priv-app/" directory structure have been changed since android l, should use:
adb push myapp.apk /system/priv-app/myapp/
Comments
Post a Comment