mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 11:05:59 +00:00
Upgrade compileSdk and targetSdk to 36
Add AutoTimePolicy and AutoTimeZonePolicy Fix AppInstallerActivity crashing without device owner privilege (iamr0s/Dhizuku#148)
This commit is contained in:
@@ -361,7 +361,10 @@ class AppInstallerViewModel(application: Application): AndroidViewModel(applicat
|
||||
val statusExtra = intent.getIntExtra(PackageInstaller.EXTRA_STATUS, 999)
|
||||
if(statusExtra == PackageInstaller.STATUS_PENDING_USER_ACTION) {
|
||||
@SuppressWarnings("UnsafeIntentLaunch")
|
||||
context.startActivity(intent.getParcelableExtra(Intent.EXTRA_INTENT) as Intent?)
|
||||
context.startActivity(
|
||||
(intent.getParcelableExtra(Intent.EXTRA_INTENT) as Intent?)
|
||||
?.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
)
|
||||
} else {
|
||||
result.value = intent
|
||||
writtenPackages.value = setOf()
|
||||
|
||||
Reference in New Issue
Block a user