Timeline for installing apk in /system/app with android 5.1 or higher (simple adb push doesn't work anynore)
Current License: CC BY-SA 3.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 3, 2016 at 22:53 | comment | added | Grimoire |
+1: this is the correct way to do it, but you forgot about the SELinux context. In fact, some of the apps installed to /system/priv-app will crash, if their security context has not been changed to u:object_r:system_file:s0 via chcon . To summarize, after setting the appropriate ownership and permissions, one shall issue chcon u:object_r:system_file:s0 /system/priv-app/Foo and chcon u:object_r:system_file:s0 /system/priv-app/Foo/Foo.apk .
|
|
Dec 3, 2016 at 2:21 | history | answered | iBug | CC BY-SA 3.0 |