1596788538.956 20445-20445/com.tcore.app I/PlayCore: UID: [10198] PID: [20445] SplitInstallService : startInstall([aadhar_module],[]) 1596788538.957 20445-21761/com.tcore.app I/PlayCore: UID :[10198] PID:[20445] SplitInstallService:启动与服务的绑定。1596788538.968 20445-20445/com.tscore.app I/PlayCore:UID:[10198] PID:[20445] SplitInstallService:ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.splitinstallservice.SplitInstallService} ) 1596788538.968 20445-21761/com.tcore.app I/PlayCore: UID: [10198] PID: [20445] SplitInstallService: linkToDeath 1596788539.009 20445-21761/com.tscore.app I/PlayCore: UID: [10198] PID: [ 20445] SplitInstallService:与服务解除绑定。1596788539.010 20445-22722/com.tcore.app I/PlayCore:UID:[10198] PID:[20445] SplitInstallService:
问问题
69 次
1 回答
1
我打印了日志-
DynamicDeliveryUtils->downloadAndInstallModule() addOnSuccessListener module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() addOnCompleteListener module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() PENDING module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() DOWNLOADING module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() DOWNLOADING module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() DOWNLOADING module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() INSTALLING module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() INSTALLED module=optionalFeature1
如您所见addOnSuccessListener
,并addOnCompleteListener
立即被调用。模块进入挂起、下载、安装和安装状态。我已经重定向了我的可选模块屏幕,它工作正常,所以你应该在INSTALLED
状态下编写代码。
when (splitInstallSessionState.status()) {
SplitInstallSessionStatus.INSTALLED -> {
//module has been installed, now redirect to module screen
}
}
于 2020-10-29T19:11:15.823 回答