When are the APKs in system/app being installed?

前端 未结 2 1465
耶瑟儿~
耶瑟儿~ 2021-01-16 12:35

I created a custom system image and put an additional APK into system/app. This kinda works, I can run the app, however native libraries are not getting loaded (loadLibrary(

2条回答
  •  日久生厌
    2021-01-16 12:58

    Follow these steps

    • Check libraries of prebuild APK. Install app in device (pm install) and then open android studio(apk installed device attached with pc), Click on View->Tools windows-> Device file explorer. It will open device explorer in right side, there go to data folder and check libraries in your app package name.

    • copy libraries and create a folder in aosp_source/external/yourlibfolder and paste your libraries there.

    • Go to build/target/product and write this code in your relevant make file.

        external/yourlibfolder/yourlibname.so:system/lib/yourlibname.so \
        external/yourlibfolder/yourlibname.so:system/lib64/yourlibname.so \ 
    
    • It will add app dependent libraries in AOSP. Now when you add your Pre-built apk in AOSP it will work

提交回复
热议问题