Skip to content

Commit

Permalink
Fix empty overlay directory in APatch
Browse files Browse the repository at this point in the history
Co-authored-by: hyper-sh <[email protected]>
Signed-off-by: DrDisagree <[email protected]>
  • Loading branch information
Mahmud0808 and hyper-sh committed Dec 6, 2024
1 parent d7b4fbd commit a3e8b30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/drdisagree/iconify/utils/ModuleUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ import com.drdisagree.iconify.common.Preferences.RESTART_SYSUI_AFTER_BOOT
import com.drdisagree.iconify.common.References.ICONIFY_COLOR_ACCENT_PRIMARY
import com.drdisagree.iconify.common.References.ICONIFY_COLOR_ACCENT_SECONDARY
import com.drdisagree.iconify.common.Resources
import com.drdisagree.iconify.common.Resources.MODULE_DIR
import com.drdisagree.iconify.common.Resources.TEMP_DIR
import com.drdisagree.iconify.common.Resources.TEMP_MODULE_DIR
import com.drdisagree.iconify.config.RPrefs.getBoolean
import com.drdisagree.iconify.config.RPrefs.getString
import com.drdisagree.iconify.utils.RootUtils.setPermissions
import com.drdisagree.iconify.utils.helper.BackupRestore.backupFiles
import com.drdisagree.iconify.utils.helper.BinaryInstaller.symLinkBinaries
import com.drdisagree.iconify.utils.overlay.FabricatedUtils
Expand Down Expand Up @@ -224,6 +226,7 @@ object ModuleUtils {
result = Shell.cmd("/data/adb/ksud module install $modulePath").exec()
} else if (RootUtils.isApatchInstalled) {
result = Shell.cmd("apd module install $modulePath").exec()
setPermissions(755, MODULE_DIR)
}

if (result == null) {
Expand Down

0 comments on commit a3e8b30

Please sign in to comment.