Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when attempting to patch app #94

Open
Solution6996 opened this issue Jul 15, 2024 · 0 comments
Open

NPE when attempting to patch app #94

Solution6996 opened this issue Jul 15, 2024 · 0 comments

Comments

@Solution6996
Copy link

The following error gets thrown when attempting to patch an apk.

INFO : adb exist
Apk C:\Users\me\Downloads\jp.yuika.Rpg2_en.patched\base.apk decompiled at C:\Users\me\AppData\Local\Temp\ModderDecompiledApk12887878657737865136
I: Using Apktool v2.9.0-22-bea15e6f-SNAPSHOT on base.apk
I: Copying raw resources...
I: Copying raw manifest...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
INFO : decompiled at C:\Users\me\AppData\Local\Temp\ModderDecompiledApk12887878657737865136
Copying resources file /AceAndroidLib/code_to_inject/lib/arm64-v8a/liblib_ACE.so to C:\Users\me\AppData\Local\Temp\ModderDecompiledApk12887878657737865136\lib\arm64-v8a\liblib_ACE.so
java.lang.NullPointerException
at modder.Resource.CopyResourceFile(Resource.kt:25)
at modder.Patcher$AddMemScannerLib$1.invoke(Patcher.kt:193)
at modder.Patcher$AddMemScannerLib$1.invoke(Patcher.kt:177)
at modder.Patcher.IterateNativeLibArchDir(Patcher.kt:142)
at modder.Patcher.AddMemScannerLib(Patcher.kt:177)
at modder.Patcher.AddMemScanner(Patcher.kt:267)
at modder.ModderMainCmd.Patch(ModderMainCmd.kt:116)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at picocli.CommandLine.executeUserObject(CommandLine.java:2066)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at modder.Main$Companion.cliInit(Main.kt:24)
at modder.Main$Companion.main(Main.kt:38)
at modder.Main.main(Main.kt)

    Happens to every single app I've tried unfortunately 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant