Skip to content

feat: support APatch SU manager and runtime app-list permission - #211

Open
iliaoke wants to merge 2 commits into
mitschud:masterfrom
iliaoke:dev
Open

iliaoke wants to merge 2 commits into
mitschud:masterfrom
iliaoke:dev

Conversation

@iliaoke

@iliaoke iliaoke commented Nov 24, 2026

Copy link
Copy Markdown
  1. APatch SU Manager Support (libapd.so)

    • Daemon Discovery & Staging (ExploitRunner, MainActivity): Detect and stage either libksud.so (KernelSU) or libapd.so (APatch) from the selected SU manager's nativeLibraryDir. APatch's apd shares the same late-load --package-name <pkg> and soft-reboot CLI interface and /data/adb/modules/<id>/disable layout.
    • Bootstrap & Soft Reboot (bootstrap.c): Track both ksud and apd in late_load_running(), and automatically select the installed daemon (/data/adb/ksud, /data/adb/apd, or fallback to the staged binary) when executing soft-reboot.
    • Root Presence Detection (D2Writer): Include /system/bin/kp (APatch's default su path before AndroidPatch installation) in SU_PATHS so RootState verification and D2 vault operations work out of the box.
  2. Runtime GET_INSTALLED_APPS Permission Request

    • Declare com.android.permission.GET_INSTALLED_APPS in AndroidManifest.xml for OEM ROMs that gate package enumeration behind a runtime permission.
    • Check whether the ROM defines GET_INSTALLED_APPS as a dangerous permission when opening the SU Manager picker; if not yet granted, prompt the system permission dialog and automatically open the picker once granted.

Copilot AI balanced review requested due to automatic review settings November 24, 2026 04:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@mitschud

Copy link
Copy Markdown
Owner
  1. APatch SU Manager Support (libapd.so)

    • Daemon Discovery & Staging (ExploitRunner, MainActivity): Detect and stage either libksud.so (KernelSU) or libapd.so (APatch) from the selected SU manager's nativeLibraryDir. APatch's apd shares the same late-load --package-name <pkg> and soft-reboot CLI interface and /data/adb/modules/<id>/disable layout.
    • Bootstrap & Soft Reboot (bootstrap.c): Track both ksud and apd in late_load_running(), and automatically select the installed daemon (/data/adb/ksud, /data/adb/apd, or fallback to the staged binary) when executing soft-reboot.
    • Root Presence Detection (D2Writer): Include /system/bin/kp (APatch's default su path before AndroidPatch installation) in SU_PATHS so RootState verification and D2 vault operations work out of the box.
  2. Runtime GET_INSTALLED_APPS Permission Request

    • Declare com.android.permission.GET_INSTALLED_APPS in AndroidManifest.xml for OEM ROMs that gate package enumeration behind a runtime permission.
    • Check whether the ROM defines GET_INSTALLED_APPS as a dangerous permission when opening the SU Manager picker; if not yet granted, prompt the system permission dialog and automatically open the picker once granted.

Will check it out

@mitschud mitschud self-assigned this Nov 24, 2026
@mitschud mitschud added the enhancement New feature or request label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants