1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to make a system app on Android 9

Discussion in 'Android Lounge' started by Natsuki, Jul 13, 2020.

  1. Natsuki

    Natsuki Lurker
    Thread Starter

    I develop a custom tablet used Android 9.

    I've tried to build a system app into '/system/priv-app', but after the device startup is completed, it automatically shuts down and transitions to the "Android Recovery" screen.

    what do I have to do to get my device to boot successfully?

    my system app is same as that shown on the following website,
    and fixed a mk below.

    https://devarea.com/aosp-creating-a-system-service/

    ・SampServiceApp/Android.mk
    -------------
    # LOCAL_SDK_VERSION := current
    LOCAL_PRIVATE_PLATFORM_APIS := true
    -------------
    added "LOCAL_PRIVATE_PLATFORM_APIS" insted of "LOCAL_SDK_VERSION" for successful compilation.

    and also, this app probably doesn't need any permissions with whitelist.
    I run 'development/tools/privapp_permissions/privapp_permissions.py', but the results is empty like this.
    ---------
    <?xml version="1.0" encoding="utf-8"?>
    <permissions>
    </permissions>
    ---------
    https://source.android.com/devices/tech/config/perms-whitelist

    Thank you in advance for your support.
     


    #1 Natsuki, Jul 13, 2020
    Last edited by a moderator: Jul 16, 2020
Loading...

Share This Page

Loading...