diff --git a/app/src/main/java/com/topjohnwu/magisk/core/tasks/HideAPK.kt b/app/src/main/java/com/topjohnwu/magisk/core/tasks/HideAPK.kt index d72617ab8..f530a8aa3 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/tasks/HideAPK.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/tasks/HideAPK.kt @@ -62,8 +62,8 @@ object HideAPK { } if (!builder.contains('.')) { // Pick a random index and set it as dot - val idx = random.nextInt(len - 1) - builder[idx] = '.' + val idx = random.nextInt(len - 2) + builder[idx + 1] = '.' } return builder.toString() }