i'm not able to FULLY decompile OPSystemUI.apk
here are the system apk's https://drive.google.com/drive/u/0/folders/1Ahe0zTg6z8YfkE7I-yhZp5CFAFvFeAPD
i'm using APK-Multi-Tool to decompile https://forum.xda-developers.com/showthread.php?t=1310151 and getting "Sorry thats not the dependee apk, try again" when i try to drag framework-res.apk file
logs:
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:58)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:516)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:267)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:108)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:81)
nevermind, i decompiled with apktool https://ibotpeaches.github.io/Apktool/documentation/
Related
I'm trying to build Eclair from source using instructions here:
http://source.android.com/download
And here:
http://source.android.com/documentation/building-for-dream
It does not build and java crashes out with an exception error:
Code:
Note: Recompile with -Xlint:deprecation for details.
target Java: VpnServices (out/target/common/obj/APPS/VpnServices_intermediates/classes)
An exception has occurred in the compiler (1.5.0). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: writePool E
at com.sun.tools.javac.jvm.ClassWriter.writePool(ClassWriter.java:513)
at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1333)
at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1211)
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:325)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:474)
at com.sun.tools.javac.main.Main.compile(Main.java:592)
at com.sun.tools.javac.main.Main.compile(Main.java:544)
at com.sun.tools.javac.Main.compile(Main.java:58)
at com.sun.tools.javac.Main.main(Main.java:48)
make: *** [out/target/common/obj/APPS/VpnServices_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
I am using java 1.5.0 as suggested on the AOSP site.
Code:
java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
My system is Ubuntu 9.10 32bit.
Are there any tips to get this working? Is this the best version of Java to use?
I was getting a ton of errors with 1.5, I started building with Java 1.6 but I had to stop it. It was definitely getting further.
I have also heard that if you use Java 1.6, you should first run a
Code:
make update-api
and then run
Code:
make
I have been trying to figure out how to sign an apk I have for the droid x. Actually it's a lot of apks but im using this one as an example. I have deodexed the apks and now want to resign them to put back onto my droid. From what I understand, after unzipping and apk and rebuilding it, you need to resign it before it can be used. If this is different for the droid x I am unaware.
Here is what I am running
here is my java version
Code:
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
here is the command with testsign.jar
Code:
java -classpath testsign.jar AccountAndSyncSettings.apk AccountAndSyncSettings-signed.apk
with the error
Code:
Could not find the main class: AccountAndSyncSettings.apk
and when using
Code:
java -classpath testsign.jar AccountAndSyncSettings.apk AccountAndSyncSettings-signed.apk
I get
Code:
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:135)
at java.util.jar.JarFile.<init>(JarFile.java:114)
at testsign.main(testsign.java:361)
also tried with signapk.jar
Code:
java -jar -classpath ~/deodex/sources/sign/signapk.jar ~/deodex/sources/sign/testkey.x509.pem key.pk8 AccountAndSyncSettings.apk AccountAndSyncSetting-signed.apk
and get
Code:
Invalid or corrupt jarfile /home/andrew/deodex/sources/sign/testkey.x509.pem
another signapk.jar variation
Code:
java -jar ~/deodex/sources/sign/signapk.jar ~/deodex/sources/sign/testkey.x509.pem ~/deodex/sources/sign/testkey.pk8 AccountAndSyncSettings.apk AccountAndSyncSetting-signed.apk
and get
Code:
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:135)
at java.util.jar.JarFile.<init>(JarFile.java:114)
at com.android.signapk.SignApk.main(SignApk.java:320)
last one I promise
Code:
java -classpath ~/deodex/sources/sign/signapk.jar ~/deodex/sources/sign/testkey.x509.pem ~/deodex/sources/sign/testkey.pk8 AccountAndSyncSettings.apk AccountAndSyncSetting-signed.apk
and lastly I get
Code:
Caused by: java.lang.ClassNotFoundException: .home.andrew.deodex.sources.sign.testkey.x509.pem
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: /home/andrew/deodex/sources/sign/testkey.x509.pem
Please Help!!!!
hello
i did make the
java -jar apktool.jar if framework-res.apk
java -jar apktool.jar if com.htc.resources.apk
but when i compile the com.htc.resources.apk
i have a lot errors
error: Error: No resource found that matches the given name: attr 'android:layout_width'.
need some help here.
thanks
found the problem i was compiling with older aapt.exe version
Hi, I downloaded the android sdk from the official site, and when I launch eclipse, it gives me this error:
Code:
[email protected] ~/adt-bundle-linux-x86/eclipse $ ./eclipse
Eclipse:
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx768m
-Declipse.buildId=v21.0.1-543035
-jar /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/xacobe/adt-bundle-linux-x86/eclipse/eclipse
-name Eclipse
--launcher.library /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
-startup /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 288006
-product com.android.ide.eclipse.adt.package.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx768m
-Declipse.buildId=v21.0.1-543035
-jar /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
The java version is the correct
Code:
[email protected] ~/adt-bundle-linux-x86/eclipse $ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
I don't know why is this error, can anyone help? Thanks :good:
I'm trying to install eclipse and sdk separately, i just made the sdk work
I needed ia32-libs to make everything work, cause my computer is 64. Then i downloaded the Eclipse IDE for Java Developers, and it works! Finally i installed the plugin and pointed eclipse to the sdk. If someone have this same problem, here is the solution
I have install Java JDk and JRE, also android sdk and .Net framework..but when trying to install framework-res.,apk i am getting this error in apktool, apk multi tool, advance apk tool..
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:611)
at brut.androlib.Androlib.installFramework(Androlib.java:469)
at brut.apktool.Main.cmdInstallFramework(Main.java:260)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:43)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
Hi, please read the purpose of XDA Assist here, http://forum.xda-developers.com/showthread.php?t=2764768