为什么不在我的应用程序中工作但通过adb工作?

时间:2017-08-29 23:15:33

标签: android root

我正试图在我的手机上静默安装应用程序(根据LineageOS,是的,它是一个专为我而设的内部使用应用程序。)

我做Runtime.getRuntime().exec("su -c 'pm install /data/user/0/MyAppName/cache/test.apk'"),它会弹出根警告,我给它许可,res.waitFor().toString()返回0。

但是没有安装该应用。

但是,当我在pm install /data/user/0/MyAppName/cache/test.apk中运行adb root时,它安装得很好。

我有什么遗失的吗?

0 个答案:

没有答案