[HELP] Compile error - Android Software/Hacking General [Developers Only]

Hello, i can't compile SystemUI.apk and framework-res.apk
for "Invalid resource directory name........" errors.
Can you compile those for me??
Here the link
https://www.dropbox.com/s/bs31771xyqx5wop/Compile.zip

Just delete the invalid directories and apktool will rebuild them.

Related

need help compiling com.htc.resources.apk

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

Empty output jar error?

For some strange reason, whenever I compile CyanogenMod I run into this error: Error: The output jar is empty. Did you specify the proper '-keep' options?
This is the terminal output from above that:
Code:
target Dex: DeskClockTests
Copying: out/target/common/obj/APPS/DeskClockTests_intermediates/progaurd.classes.dex
target Package: DeskClockTests (out/target/product/sunfire/obj/APPS/DeskClockTests_intermediates/package.apk)
'out/target/common/obj/APPS/DeskClockTests_intermediates//classes.dex' as 'classes.dex'...
Copying: out/target/common/obj/APPS/DockAudio_intermediates/emma_out/lib/classes-jarjar.jar
Proguard: out/target/common/obj/APPS/DockAudio_intermediates/proguard.classes.jar
ProGuard, version 4.4
Reading program jar [/home/mike/android/system/out/target/common/obj/APPS/DockAudio_intermediates/classes.jar]
Reading library jar [/home/mike/android/system/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar]
Reading library jar [/home/mike/android/system/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]
Reading library jar [/home/mike/android/system/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Reading library jar [/home/mike/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
Error: The output jar is empty. Did you specify the proper '-keep' options?
make: *** [out/target/common/obj/APPS/DockAudio_intermediates/proguard.classes.jar] Error 1
From what I understand, it is an issue with ProGuard not knowing what to do with an empty .jar file? Does anyone know a way I can bypass this, by either telling ProGuard to skip it or just not compiling that file?
bump... i really need help with this and Google can't help me out.
In the Android.mk file for that project, add "LOCAL_PROGUARD_ENABLED := disabled" to prevent ProGuard from optimizing it.

signapk.jar error

When I try to sign an apk compiled with smali i get the following error:
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:131)​at java.util.zip.JarFile.<init>(JarFile.java:150)​at java.util.zip.JarFile.<init>(JarFile.java:129)​at com.android.signapk.SignApk.main(SignApk.java:320)​any ideas?

[Q] Edit java source from Apk and recompile it

Goodmorning,
I use apktool to decompile the apk. I edit some file in res folder, now I want to edit some java source file from apk and recompile with apktool to run the "new" android application.
With Dex2jar & jd-gui i extract the java source code.
Now i want to edit and covert into .smali because Apktool can build the application with smali code.
I found a script that uses 2 file(dx.jar and backsmali.jar)
1- javac myClass.java //compile myClass.java in myClass.dex
2-java -jar tools/dx.jar --dex --output= myClass.dex myClass.class // convert myClass.class in myClass.dex
3-java -jar tools/baksmali.jar -o myClass.smali myClass.dex //convert myClass.dex in myClass.smali
Javac work great it produce the file myClass.class.
The step 2 and 3 makes me trouble,the prompt show me a message:
trouble processing:
bad class file magic (cafebabe) or version (0034.0000)
...while parsing BuildConfig.class
...while processing BuildConfig.class
1 warning
no classfiles specified
Can't find the file BuildConfig.dex
impossible find C:\Users\Lorenzo\Desktop\java2smali\BuildConfig.dex
impossible find the file .
Please someone can help me?
sorry for my english....

Simg2img not successfully compiled Help !

Hi err i have a Problem after setting up a working folder in the end it shows this error
Compiling simg2img ...
simg2img.c:30:22: fatal error: sys/mman.h: No such file or directory
compilation terminated.
Error: simg2img.exe not successfully compiled!
Can anyone help me?

Categories

Resources