【发布时间】:2019-04-03 23:30:46
【问题描述】:
我正在使用dynamic modules 开发一个安卓应用程序。假设有一个基本模块(base)和一个动态模块(feature)。我使用 Android Studio(或 bundle tool)安装了该应用程序,base 和 feature apks 都安装并位于
/data/app/example.dynapp--Gn1-FdAo0qV-8Y8Q5qb7g==/base.apk
/data/app/example.dynapp--Gn1-FdAo0qV-8Y8Q5qb7g==/feature.apk
我通过运行找到了这些地址
adb shell pm path example.dynapp
然后,我将应用程序包上传到 Play 管理中心,并从 Google Play 将其安装到我的手机上。接下来,我在使用该应用程序时下载了feature 模块。但是,在我运行adb shell pm path example.dynapp 之后,它只显示base apk,并且没有feature apk 的迹象。顺便一提,
似乎安装了feature 模块,因为feature 模块的功能正常工作。
我的问题是 Google Play 将这些动态加载的模块(或 APK)保存在哪里。有没有办法使用adb(如adb pull)访问它们。
【问题讨论】:
-
您找到解决方案了吗?我也是,不知道下载的动态模块的数据将保存在哪里,因为现在应用程序本身的大小并没有增加太多
标签: android adb android-app-bundle