fixup! restore: Skip installing APKs if not allowed by policy

Change-Id: Iaa1590df84e3d1785baf0f938da0a2b2fe43ccd0
This commit is contained in:
Chirayu Desai 2024-05-23 16:06:32 +05:30
parent 1653e6d302
commit 0a81c42fd1

View file

@ -15,7 +15,7 @@ val installModule = module {
factory { ApkSplitCompatibilityChecker(get()) } factory { ApkSplitCompatibilityChecker(get()) }
factory { factory {
ApkRestore(androidContext(), get(), get(), get(), get(), get()) { ApkRestore(androidContext(), get(), get(), get(), get(), get()) {
androidContext().getSystemService(UserManager::class.java).isAllowedToInstallApks() androidContext().getSystemService(UserManager::class.java)!!.isAllowedToInstallApks()
} }
} }
} }