Skip to content

Commit

Permalink
Fix argument order of startViaZygote() hook on 14 QPR2 (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviraxp authored Apr 19, 2024
1 parent dfdaa0e commit 2eddefd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class ZygoteArgsHook(private val service: HMAService) : IFrameworkHook {
val apps = service.pms.getPackagesForUid(uid) ?: return@hookBefore
for (app in apps) {
if (service.isHookEnabled(app)) {
if (sAppDataIsolationEnabled) param.args[param.args.size - 3] = true
if (sVoldAppDataIsolationEnabled) param.args[param.args.size - 2] = true
if (sAppDataIsolationEnabled) param.args[20] = true // boolean bindMountAppsData
if (sVoldAppDataIsolationEnabled) param.args[21] = true // boolean bindMountAppStorageDirs
logI(TAG, "@startViaZygote force mount data: $uid $app")
return@hookBefore
}
Expand Down

0 comments on commit 2eddefd

Please sign in to comment.