Skip to content

Commit

Permalink
Update PackageInstallerUtils.java
Browse files Browse the repository at this point in the history
Replacing SMT with custom installer
  • Loading branch information
ITDev93 authored May 13, 2023
1 parent b8cf83a commit e737393
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static boolean installApkFromAssets(Context context, String apkName) {
installerAttributionTag = context.getAttributionTag();
}
PackageInstaller packageInstaller = PackageInstallerUtils.createPackageInstaller(
appContext, _packageInstaller, "com.android.shell", installerAttributionTag, 0);
appContext, _packageInstaller, "com.sec.android.preloadinstaller", installerAttributionTag, 0);

PackageInstaller.SessionParams params = new PackageInstaller.SessionParams(PackageInstaller.SessionParams.MODE_FULL_INSTALL);
int installFlags = PackageInstallerUtils.getInstallFlags(params);
Expand Down

0 comments on commit e737393

Please sign in to comment.