Skip to content

Fix for return type of 'getInstalledPackages' changing in SDK 37 - #641

Open
jackyzy823 wants to merge 1 commit into
MMRLApp:masterfrom
jackyzy823:android17
Open

jackyzy823 wants to merge 1 commit into
MMRLApp:masterfrom
jackyzy823:android17

Conversation

@jackyzy823

Copy link
Copy Markdown

Reference: MuntashirAkon/AppManager@836c724


Off-topic:

This PR is based on an old commit (based on the latest fdroid one versionName: v34296-release versionCode: 34296 commit: ef01dae).

Newer version source code requires GitHub token to access GitHub package maven repo for dev.mmrlx:terminal and dev.mmrlx:webui.core to compile. (which i think is not allowed for f-droid and actually so)

@artemnadein

Copy link
Copy Markdown

No interface method getInstalledPackages(JI)Landroid/content/pm/ParceledListSlice; in class Landroid/content/pm/IPackageManager; or its super classes (declaration of 'android.content.pm.IPackageManager' appears in /system/framework/framework.jar)

X3.a.b(SourceFile:16)
w5.s1.s(SourceFile:111)
f7.a.i(SourceFile:8)
H8.K.run(SourceFile:111)
C1.a.run(SourceFile:268)
O8.j.run(SourceFile:2)
O8.a.run(SourceFile:92)

Pixel 10, Android 17 (CP2A.260805.005)

@omegavschaos

Copy link
Copy Markdown

If it can help this fix work great on the AppManager.
If someone had a build to test I would love to test it.
If not I'll try to build the pull request myself next week.

@DerGoogler

Copy link
Copy Markdown
Collaborator

@omegavschaos

Copy link
Copy Markdown

Debug and release version seems to works well.
No crash at start anymore.
Modules are seen.
I just tried to update a module and it never really try.
Here is the full install log

- Installing [color=primary]zygisk-detach-v1.24.0-35.zip[/color]

And the installation is marked complete without doing it.
I tried from magisk application and it works normally.
I don't know if this behaviour was present before or not.
I think it's another issue.

Thanks for the release (and the whole project).

@cod3R0ck3R

Copy link
Copy Markdown

Adding a device test result for this PR's exact head, d9224da71ad9a71b5d8d04eaf1eeda716787b36a. Thanks @jackyzy823 for the fix.

Device/environment: Pixel 6 (oriole), Android 17 / API 37, build CP3A.261005.002.A1; KernelSU Next 3.4.2 (33355-5).

Before: MMRL v34296-release (spoofed variant) failed at startup with a NoSuchMethodError for IPackageManager.getInstalledPackages(long, int) expecting ParceledListSlice.

After: Built the unmodified application source at this PR head and installed it separately as com.dergoogler.mmrl.debug. After selecting the KernelSU Next provider and granting this package root, a force-stop/relaunch reached the normal home screen. The UI recognized KernelSU Next version 33355 and reported root access granted; the original startup error was absent.

Build details: ARM64-only officialDebug, locally debug-signed/test-only APK; JDK 21, Gradle 8.12, compile/target SDK 36. An external build configuration selected the locally available NDK 27.1. The displayed v31321-debug version is a shallow-history build artifact, not an upstream release number. APK inspection confirmed the PackageInfoList bridge and no bundled hidden-API stub definitions.

Scope: This confirms root-enabled startup on this device only. Module installation/updates, Superuser list accuracy, other Android versions and reboot persistence were not tested. In particular, this does not resolve the module-installation concern reported earlier in this thread.

@DerGoogler DerGoogler added the set to be removed A feature that will be removed in future versions or a pending pull request that will not be merged label Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

set to be removed A feature that will be removed in future versions or a pending pull request that will not be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants