我从包含APK内包装本机库蚀产生的APK。
我收到BOOT_COMPLETED时启动服务。 SO文件和APK的正常版本运行良好。调试APK与本地库
我不得不安装调试环境,并试图调试这个应用程序和本地代码。
现在的问题是,如果我安装这个通过ADB install my.pack.age.app
它被复制到data/app
,然后我没有得到BOOT_COMPLETED
意图。
当我手动把这个APK到system/app
文件夹中,我得到满足的链接错误的图书馆没有找到。它正在路径data/data/my.pack.age.app/lib
中搜索。
我有gdbserver
文件和其他gdb.setup
和其他东西产生的本地库的调试版本是正确安装调试。
我怎么能调试此apk而在/system/app
文件夹中安装?
PS: Modifying the Packages.xml and packages.list by hand and changing the path of native library is not in my option as it would require every time to modify that file & may get corrupt installation.