mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-11-03 23:03:29 +01:00 
			
		
		
		
	Shizuku logic 2: Determination of installation
This commit is contained in:
		@@ -854,7 +854,7 @@ class AppsProvider with ChangeNotifier {
 | 
			
		||||
            var contextIfNewInstall =
 | 
			
		||||
                apps[id]?.installedInfo == null ? context : null;
 | 
			
		||||
            if (downloadedFile != null) {
 | 
			
		||||
              if (willBeSilent && context == null) {
 | 
			
		||||
              if (willBeSilent && context == null && !settingsProvider.useShizuku) {
 | 
			
		||||
                installApk(downloadedFile, contextIfNewInstall,
 | 
			
		||||
                    needsBGWorkaround: true);
 | 
			
		||||
              } else {
 | 
			
		||||
@@ -862,7 +862,7 @@ class AppsProvider with ChangeNotifier {
 | 
			
		||||
                    await installApk(downloadedFile, contextIfNewInstall);
 | 
			
		||||
              }
 | 
			
		||||
            } else {
 | 
			
		||||
              if (willBeSilent && context == null) {
 | 
			
		||||
              if (willBeSilent && context == null && !settingsProvider.useShizuku) {
 | 
			
		||||
                installXApkDir(downloadedDir!, contextIfNewInstall,
 | 
			
		||||
                    needsBGWorkaround: true);
 | 
			
		||||
              } else {
 | 
			
		||||
@@ -870,7 +870,12 @@ class AppsProvider with ChangeNotifier {
 | 
			
		||||
                    await installXApkDir(downloadedDir!, contextIfNewInstall);
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
            if (willBeSilent && context == null) {
 | 
			
		||||
            if (willBeSilent && settingsProvider.useShizuku) {
 | 
			
		||||
              notificationsProvider?.notify(SilentUpdateNotification(
 | 
			
		||||
                  [apps[id]!.app],
 | 
			
		||||
                  sayInstalled,
 | 
			
		||||
                  id: id.hashCode));
 | 
			
		||||
            } else if (willBeSilent && context == null) {
 | 
			
		||||
              notificationsProvider?.notify(SilentUpdateAttemptNotification(
 | 
			
		||||
                  [apps[id]!.app],
 | 
			
		||||
                  id: id.hashCode));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user