如何在 AOSP 版本中将应用安装到 data/app 文件夹而不是 system/app 文件夹? [英] How do I install an app into the data/app folder instead of the system/app folder in an AOSP build?

查看:29
本文介绍了如何在 AOSP 版本中将应用安装到 data/app 文件夹而不是 system/app 文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把我的应用程序文件夹放在

I put my application folder in

packages/apps  // inside AOSP source code

现在我的应用程序在同一文件夹中有以下 Android.mk:

Now my application has 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))

现在,当我构建 AOSP 项目时,它还会编译我的应用程序并将 APK 文件放入其中:

Now when I build my AOSP project, it also compiles my application and puts the APK file inside:

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

但我想把它放进去:

out/target/product/$MY_PLATFORM/data/app

我该怎么做?我要更改什么 make 文件?

How do I do this? What make file do I change?

推荐答案

我通过在 Android.mk

LOCAL_MODULE_TAGS := tests

这篇关于如何在 AOSP 版本中将应用安装到 data/app 文件夹而不是 system/app 文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆