Skip to content

Unable to open '/data/adb/modules/com.chiller3.alterinstaller/app-release-unsigned.dm' #15

Closed

Description

@bugsyb

Hi,

For whatever reason it reports that can't load comchiller3.alterinstaller.

Module installed fine and given on each reboot it tries to start - it looks as all should be good.

Can you please help identifying what am I missing?

e1s:/data/local/tmp # cat AlterInstaller.json                                                                                                                                                                         
{
    "app.organicmaps": {
        "installer": "com.android.vending"
    }
}
e1s:/data/local/tmp # abx2xml /data/system/packages.xml -|grep organicmap                                                                                                                                             
    <item name="app.organicmaps.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" package="app.organicmaps" protection="2" />
  <package name="app.organicmaps" codePath="/data/app/~~GL6BRmvsnqMYXj0PeFRPzg==/app.organicmaps-T_CxghrveDkJ2t7rmO3d5w==" nativeLibraryPath="/data/app/~~GL6BRmvsnqMYXj0PeFRPzg==/app.organicmaps-T_CxghrveDkJ2t7rmO3d5w==/lib" primaryCpuAbi="arm64-v8a" publicFlags="810073668" privateFlags="-1946155760" ft="199b4e8bab2" ut="199b4e8bb9a" version="25092505" userId="10356" packageSource="1" installInitiator="com.android.shell" loadingProgress="1.0" loadingCompletedTime="0" domainSetId="831859f5-39b0-4d7f-9515-911c5e357c06">
      <package-state packageName="app.organicmaps" id="831859f5-39b0-4d7f-9515-911c5e357c06" hasAutoVerifyDomains="true">
    <user-states packageName="app.organicmaps">
e1s:/data/local/tmp # cat AlterInstaller.log                                                                                                                                                                          
----- Environment -----
Timestamp: Mon Oct 27 23:09:44 CET 2025
Script: /data/adb/modules/com.chiller3.alterinstaller/post-fs-data.sh
UID/GID/Context: uid=0(root) gid=0(root) context=u:r:magisk:s0
----- Backing up PackageManager state -----
'/data/system/packages.xml' -> '/data/local/tmp/AlterInstaller.backup.xml'
----- Altering PackageManager installer fields -----
Exit status: 1
Logcat:
--------- beginning of main
10-27 23:09:44.700   763   763 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-27 23:09:44.706   763   763 I AndroidRuntime: Using default boot image
10-27 23:09:44.706   763   763 I AndroidRuntime: Leaving lock profiling enabled
10-27 23:09:44.711   763   763 D AndroidRuntime: addProductProperty not brand or 7
10-27 23:09:44.724   763   763 I app_process: Using CollectorTypeCMC GC.
10-27 23:09:44.805   763   763 D nativeloader: InitDefaultPublicLibraries for_preload=1: libandroid.so:libaaudio.so:libamidi.so:libbinder_ndk.so:libc.so:libcamera2ndk.so:libdl.so:libEGL.so:libGLESv1_CM.so:libGLESv2.so:libGLESv3.so:libicu.so:libicui18n.so:libicuuc.so:libjnigraphics.so:liblog.so:libmediandk.so:libm.so:libnativehelper.so:libnativewindow.so:libOpenMAXAL.so:libOpenSLES.so:libRS.so:libstdc++.so:libsync.so:libvulkan.so:libwebviewchromium_plat_support.so:libz.so
10-27 23:09:44.844   763   763 D app_process: Time zone APEX ICU file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat
10-27 23:09:44.845   763   763 D app_process: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt72l.dat
10-27 23:09:44.881   763   763 W ziparchive: Unable to open '/data/adb/modules/com.chiller3.alterinstaller/app-release-unsigned.dm': No such file or directory
10-27 23:09:44.902   763   763 E SemDvfsManager_JNI: SemDvfsManager: registerfunction enter
10-27 23:09:44.903   763   763 E SemAffinityControl: SemAffinityControl: registerfunction enter
10-27 23:09:44.914   763   763 D AndroidRuntime: Calling main entry com.chiller3.alterinstaller.Main
10-27 23:09:44.917   763   763 I AlterInstaller: Loaded config: {app.organicmaps=PackageConfig[installer=com.android.vending, updateOwner=null]}
10-27 23:09:44.919   763   763 E AlterInstaller: Failed to alter package manager state
10-27 23:09:44.919   763   763 E AlterInstaller: java.lang.reflect.InvocationTargetException
10-27 23:09:44.919   763   763 E AlterInstaller: 	at java.lang.reflect.Method.invoke(Native Method)
10-27 23:09:44.919   763   763 E AlterInstaller: 	at com.chiller3.alterinstaller.Main.copy(r8-map-id-a0d9a3c1a88edd2dd78bd44570160007fde4db27a02b978a44e313424b852d4f:22)
10-27 23:09:44.919   763   763 E AlterInstaller: 	at com.chiller3.alterinstaller.Main.alterXml(r8-map-id-a0d9a3c1a88edd2dd78bd44570160007fde4db27a02b978a44e313424b852d4f:4)
10-27 23:09:44.919   763   763 E AlterInstaller: 	at com.chiller3.alterinstaller.Main.alterXml(r8-map-id-a0d9a3c1a88edd2dd78bd44570160007fde4db27a02b978a44e313424b852d4f:13)
10-27 23:09:44.919   763   763 E AlterInstaller: 	at com.chiller3.alterinstaller.Main.apply(r8-map-id-a0d9a3c1a88edd2dd78bd44570160007fde4db27a02b978a44e313424b852d4f:3)
10-27 23:09:44.919   763   763 E AlterInstaller: 	at com.chiller3.alterinstaller.Main.main(r8-map-id-a0d9a3c1a88edd2dd78bd44570160007fde4db27a02b978a44e313424b852d4f:75)
10-27 23:09:44.919   763   763 E AlterInstaller: 	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
10-27 23:09:44.919   763   763 E AlterInstaller: 	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:395)
10-27 23:09:44.919   763   763 E AlterInstaller: Caused by: java.lang.NoSuchMethodError: No virtual method removeLast()Ljava/lang/Object; in class Ljava/util/ArrayList; or its super classes (declaration of 'java.util.ArrayList' appears in /apex/com.android.art/javalib/core-oj.jar)
10-27 23:09:44.919   763   763 E AlterInstaller: 	at com.chiller3.alterinstaller.AlterInstallerSerializer.endTag(r8-map-id-a0d9a3c1a88edd2dd78bd44570160007fde4db27a02b978a44e313424b852d4f:8)
10-27 23:09:44.919   763   763 E AlterInstaller: 	at android.util.Xml.copy(Xml.java:294)
10-27 23:09:44.919   763   763 E AlterInstaller: 	... 8 more
10-27 23:09:44.919   763   763 I app_process: System.exit called, status: 1
10-27 23:09:44.919   763   763 I AndroidRuntime: VM exiting with result code 1.

And the file seems to be there:

e1s:/ # ls -l /data/adb/modules/com.chiller3.alterinstaller/app-release-unsigned.apk                                                                                                                                  
-rw-r--r-- 1 root root 137612 2025-10-27 22:59 /data/adb/modules/com.chiller3.alterinstaller/app-release-unsigned.apk

Thanks!

Activity

  1. chenxiaolong commented on Oct 28, 2025

    @chenxiaolong
    Owner

    Thanks for reporting this! The issue is:

    10-27 23:09:44.919   763   763 E AlterInstaller: Caused by: java.lang.NoSuchMethodError: No virtual method removeLast()Ljava/lang/Object; in class Ljava/util/ArrayList; or its super classes (declaration of 'java.util.ArrayList' appears in /apex/com.android.art/javalib/core-oj.jar)
    

    I unintentionally depended on a function that only exists in Android 15 and newer. I'll release a new version with a fix shortly.

  2. self-assigned this
    on Oct 28, 2025
  3. added a commit that references this issue on Oct 28, 2025
    ffca180
  4. chenxiaolong commented on Oct 28, 2025

    @chenxiaolong
    Owner

    #16 should fix this. It will be included in version 2.3, which will be released shortly.

  5. added a commit that references this issue on Oct 28, 2025
    4c5a6a7
  6. bugsyb commented on Oct 28, 2025

    @bugsyb
    Author

    Thank you and appreciate such a quick turnaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions