Pre-install some apps so they can be uninstalled without root by user
up vote
2
down vote
favorite
Can I (As a AOSP builder) pre install some apps so after burning on device, they can easily be uninstalled (like regular downloaded apps)?
I am already familiar with system apps and priv-apps but as they lie in system partition they can not be removed! (only disabled in settings menu)
P.S. I know huawei for example uses /system/delapp to install such apps. But I seek for a general way or for AMLogic platform specifically which I am working on!
android-source android-7.1-nougat
This question had a bounty worth +50
reputation from Saleh that ended 9 hours ago. Grace period ends in 14 hours
This question has not received enough attention.
Please tell me exactly and step-by-step how to compile and build AOSP 7.1 for amlogic platform so I have some uninstallable Pre-installed apps
add a comment |
up vote
2
down vote
favorite
Can I (As a AOSP builder) pre install some apps so after burning on device, they can easily be uninstalled (like regular downloaded apps)?
I am already familiar with system apps and priv-apps but as they lie in system partition they can not be removed! (only disabled in settings menu)
P.S. I know huawei for example uses /system/delapp to install such apps. But I seek for a general way or for AMLogic platform specifically which I am working on!
android-source android-7.1-nougat
This question had a bounty worth +50
reputation from Saleh that ended 9 hours ago. Grace period ends in 14 hours
This question has not received enough attention.
Please tell me exactly and step-by-step how to compile and build AOSP 7.1 for amlogic platform so I have some uninstallable Pre-installed apps
An app is removable only if it is in /data. So I got an idea, install all the apps you want on a device and make the data partition an image. But this may not as easy what I think.
– reavenisadesk
Nov 29 at 15:32
I think this not the way other vendors try to put their apps... @reavenisadesk
– Saleh
Nov 29 at 20:46
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Can I (As a AOSP builder) pre install some apps so after burning on device, they can easily be uninstalled (like regular downloaded apps)?
I am already familiar with system apps and priv-apps but as they lie in system partition they can not be removed! (only disabled in settings menu)
P.S. I know huawei for example uses /system/delapp to install such apps. But I seek for a general way or for AMLogic platform specifically which I am working on!
android-source android-7.1-nougat
Can I (As a AOSP builder) pre install some apps so after burning on device, they can easily be uninstalled (like regular downloaded apps)?
I am already familiar with system apps and priv-apps but as they lie in system partition they can not be removed! (only disabled in settings menu)
P.S. I know huawei for example uses /system/delapp to install such apps. But I seek for a general way or for AMLogic platform specifically which I am working on!
android-source android-7.1-nougat
android-source android-7.1-nougat
asked Nov 21 at 15:51
Saleh
357519
357519
This question had a bounty worth +50
reputation from Saleh that ended 9 hours ago. Grace period ends in 14 hours
This question has not received enough attention.
Please tell me exactly and step-by-step how to compile and build AOSP 7.1 for amlogic platform so I have some uninstallable Pre-installed apps
This question had a bounty worth +50
reputation from Saleh that ended 9 hours ago. Grace period ends in 14 hours
This question has not received enough attention.
Please tell me exactly and step-by-step how to compile and build AOSP 7.1 for amlogic platform so I have some uninstallable Pre-installed apps
An app is removable only if it is in /data. So I got an idea, install all the apps you want on a device and make the data partition an image. But this may not as easy what I think.
– reavenisadesk
Nov 29 at 15:32
I think this not the way other vendors try to put their apps... @reavenisadesk
– Saleh
Nov 29 at 20:46
add a comment |
An app is removable only if it is in /data. So I got an idea, install all the apps you want on a device and make the data partition an image. But this may not as easy what I think.
– reavenisadesk
Nov 29 at 15:32
I think this not the way other vendors try to put their apps... @reavenisadesk
– Saleh
Nov 29 at 20:46
An app is removable only if it is in /data. So I got an idea, install all the apps you want on a device and make the data partition an image. But this may not as easy what I think.
– reavenisadesk
Nov 29 at 15:32
An app is removable only if it is in /data. So I got an idea, install all the apps you want on a device and make the data partition an image. But this may not as easy what I think.
– reavenisadesk
Nov 29 at 15:32
I think this not the way other vendors try to put their apps... @reavenisadesk
– Saleh
Nov 29 at 20:46
I think this not the way other vendors try to put their apps... @reavenisadesk
– Saleh
Nov 29 at 20:46
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You can do that by configuring your build to produce a userdata.img
file with your app(s) included, which you can then flash with fastboot flash userdata
.
The Android.mk
file for these apps that go in userdata.img
roughly looks like the following:
include $(CLEAR_VARS)
LOCAL_MODULE := myapp1
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/app
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)
And add the apps to product packages in device.mk
:
PRODUCT_PACKAGES += myapp1 myapp2 ...
You should be able to find plenty of examples on GitHub, e.g., https://github.com/search?l=Makefile&q=TARGET_OUT_DATA+BUILD_PREBUILT&type=Code
Can you please explain how to create userdata.img ? and also how to pack this new partition with other partitions when packing image in AOSP build environment
– Saleh
7 hours ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can do that by configuring your build to produce a userdata.img
file with your app(s) included, which you can then flash with fastboot flash userdata
.
The Android.mk
file for these apps that go in userdata.img
roughly looks like the following:
include $(CLEAR_VARS)
LOCAL_MODULE := myapp1
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/app
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)
And add the apps to product packages in device.mk
:
PRODUCT_PACKAGES += myapp1 myapp2 ...
You should be able to find plenty of examples on GitHub, e.g., https://github.com/search?l=Makefile&q=TARGET_OUT_DATA+BUILD_PREBUILT&type=Code
Can you please explain how to create userdata.img ? and also how to pack this new partition with other partitions when packing image in AOSP build environment
– Saleh
7 hours ago
add a comment |
up vote
0
down vote
You can do that by configuring your build to produce a userdata.img
file with your app(s) included, which you can then flash with fastboot flash userdata
.
The Android.mk
file for these apps that go in userdata.img
roughly looks like the following:
include $(CLEAR_VARS)
LOCAL_MODULE := myapp1
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/app
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)
And add the apps to product packages in device.mk
:
PRODUCT_PACKAGES += myapp1 myapp2 ...
You should be able to find plenty of examples on GitHub, e.g., https://github.com/search?l=Makefile&q=TARGET_OUT_DATA+BUILD_PREBUILT&type=Code
Can you please explain how to create userdata.img ? and also how to pack this new partition with other partitions when packing image in AOSP build environment
– Saleh
7 hours ago
add a comment |
up vote
0
down vote
up vote
0
down vote
You can do that by configuring your build to produce a userdata.img
file with your app(s) included, which you can then flash with fastboot flash userdata
.
The Android.mk
file for these apps that go in userdata.img
roughly looks like the following:
include $(CLEAR_VARS)
LOCAL_MODULE := myapp1
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/app
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)
And add the apps to product packages in device.mk
:
PRODUCT_PACKAGES += myapp1 myapp2 ...
You should be able to find plenty of examples on GitHub, e.g., https://github.com/search?l=Makefile&q=TARGET_OUT_DATA+BUILD_PREBUILT&type=Code
You can do that by configuring your build to produce a userdata.img
file with your app(s) included, which you can then flash with fastboot flash userdata
.
The Android.mk
file for these apps that go in userdata.img
roughly looks like the following:
include $(CLEAR_VARS)
LOCAL_MODULE := myapp1
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/app
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)
And add the apps to product packages in device.mk
:
PRODUCT_PACKAGES += myapp1 myapp2 ...
You should be able to find plenty of examples on GitHub, e.g., https://github.com/search?l=Makefile&q=TARGET_OUT_DATA+BUILD_PREBUILT&type=Code
answered 9 hours ago
John
468313
468313
Can you please explain how to create userdata.img ? and also how to pack this new partition with other partitions when packing image in AOSP build environment
– Saleh
7 hours ago
add a comment |
Can you please explain how to create userdata.img ? and also how to pack this new partition with other partitions when packing image in AOSP build environment
– Saleh
7 hours ago
Can you please explain how to create userdata.img ? and also how to pack this new partition with other partitions when packing image in AOSP build environment
– Saleh
7 hours ago
Can you please explain how to create userdata.img ? and also how to pack this new partition with other partitions when packing image in AOSP build environment
– Saleh
7 hours ago
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53415804%2fpre-install-some-apps-so-they-can-be-uninstalled-without-root-by-user%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
An app is removable only if it is in /data. So I got an idea, install all the apps you want on a device and make the data partition an image. But this may not as easy what I think.
– reavenisadesk
Nov 29 at 15:32
I think this not the way other vendors try to put their apps... @reavenisadesk
– Saleh
Nov 29 at 20:46