Hi,

I have been trying to add a apk to priv-app.

Following are the steps i did:

Made a folder named Testapk in packages/apps
Copied apk to folder with name Testapk.apk
In same directory, created an Android.mk file with following contents:

LOCAL_PATH := $(call my-dir)


include $(CLEAR_VARS)


LOCAL_MODULE_TAGS := optional


LOCAL_MODULE := Testapk


LOCAL_CERTIFICATE := PRESIGNED


LOCAL_SRC_FILES := Testapk.apk


LOCAL_MODULE_CLASS := APPS


LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)


LOCAL_PRIVILEGED_MODULE := true


TARGET_OUT_DATA_APPS_PRIVILEGED := $(TARGET_OUT_DATA)/priv-app


include $(BUILD_PREBUILT)


Then, added Testapk to core.mk


Build is successful and i can see my apk in priv-app folder in 
out/target/product/sailfish/system/priv-app. After flashing, the device 
wont boot up. Its stuck on Android logo. 


(I am using google pixel-sailfish. Branch is android-9.0.0_r33)

(On adding apk to system/apps, i can boot and the apk works fine)


Can someone help me on this???

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/78f67bd6-2e90-40ea-81a8-1a4f1644b8a0%40googlegroups.com.

Reply via email to