How do I install an app into the data/app folder instead of the system/app folder in an AOSP build?

前端 未结 3 1284
余生分开走
余生分开走 2020-12-17 23:30

I put my application folder in

packages/apps  // inside AOSP source code

Now my application has following Android.mk in the s

相关标签:
3条回答
  • 2020-12-17 23:58

    You can take help of some other system app. Copy your target app which need to be installed in /data in say /system/usr/share

       device/<your platform> /extras/usr/share/<target app>:system/usr/share/<target app name> \
    

    write above rule in device/platform/<platform specific mk > Now using some other system level app you can check whether your app is installed or not. If not installed install it via package manager by giving above path system/usr/share/<target app name>

    0 讨论(0)
  • 2020-12-17 23:59

    I got the solution by changing this thing in Android.mk

    LOCAL_MODULE_TAGS := tests
    
    0 讨论(0)
  • 2020-12-18 00:01

    Basically, the android AOSP build system doesn't build anything into /data. The idea of the /data partition is that it's user data, and that it will be shipped from the factory empty (and deleted entirely on a device reset). If you want to install something into /data you do it after install using "adb install" or any other mechanism.

    What exactly are you trying to accomplish?

    0 讨论(0)
提交回复
热议问题