Extra Privilege: About System Apps and How to Build Your Own
summary
Shows how to import an APK into AOSP using an Android app_import module, or convert the project to an in-tree android_app built by Soong with Android.bp files; demonstrates Android Studio for Platform, adb install and adb remount iteration tricks, and where to place XML to pre-approve runtime permissions. Covers granting signature/privileged access (platform key vs placing APK in system/priv-app and adding a priv-app whitelist), and calling APIs like get privileged configured networks that need read Wi‑Fi‑credential.
AI-written summary · about
chapters (14)
- 0:00Introduction to system apps
- 1:46What are system apps
- 3:53Requirements to build system apps
- 5:37Setting up the build environment
- 6:40AOSP build system crash course
- 7:22Importing an app as system app
- 8:27Android Studio for Platform
- 10:33Fast iteration with ADB
- 13:22Pre-approving permissions
- 14:45Using system APIs
- 16:51Privileged app permissions
- 17:33Signing with platform key
- 18:13Making app privileged
- 19:39Recap and next steps
