How to install the application in the data / app folder instead of the system / app folder in the AOSP assembly?

I put my application folder in

packages/apps // inside AOSP source code 

Now my application has the following Android.mk in the same folder:

 LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := package_name LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE) # Use the folloing include to make our test app include $(call all-makefiles-under,$(LOCAL_PATH)) 

Now, when I create an AOSP project, it also compiles my application and places the APK file inside:

out / target / product / $ MY_PLATFORM / system / app

But I want to say:

output / target / product / $ MY_PLATFORM / data / application

How can I do it? What change the file?

+8
android makefile android-source
source share
2 answers

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

 LOCAL_MODULE_TAGS := tests 
+6
source share

Basically, the AOSP build system for Android does not create anything in / data. The idea of ​​the / data section is that this is user data, and that it will be sent from the factory empty (and completely reset on the device reset). If you want to install something in / data, you do it after installation using "adb install" or any other mechanism.

What exactly are you trying to accomplish?

+1
source share

All Articles