Need help decompile APK file for reverse engineering - General Questions and Answers

Hello everyone,
I want to decompile this file for reverse engineering. I tried using apktool. However, it was impossible. If I try to decompile it... following error occurs. It is used for the Android Head Unit. Is there anything I am missing?
FILE : Launcher.apk
I: Using Apktool 2.4.1 on Launcher.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: invalid CEN header (encrypted entry)
at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:315)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:103)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:76)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: invalid CEN header (encrypted entry)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.directory.ExtFile.getDirectory(ExtFile.java:52)
at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:313)
... 3 more
Caused by: java.util.zip.ZipException: invalid CEN header (encrypted entry)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 6 more
Click to expand...
Click to collapse
Best regards,
KIM

gloriashield said:
Hello everyone,
I want to decompile this file for reverse engineering. I tried using apktool. However, it was impossible. If I try to decompile it... following error occurs. It is used for the Android Head Unit. Is there anything I am missing?
FILE : Launcher.apk
Best regards,
KIM
Click to expand...
Click to collapse
Hi,
I'll try to decompile it on my side, did you find any framework-res.apk apk or an equivalent you can install on apktool ? (That's my first time with android auto so idk how the system works)

gloriashield said:
Hello everyone,
I want to decompile this file for reverse engineering. I tried using apktool. However, it was impossible. If I try to decompile it... following error occurs. It is used for the Android Head Unit. Is there anything I am missing?
FILE : Launcher.apk
Best regards,
KIM
Click to expand...
Click to collapse
As far as I know, Apktool hasn't been updated in a while. You might need to find a different tool or method.
Sent from my SM-S767VL using Tapatalk

gloriashield said:
Hello everyone,
I want to decompile this file for reverse engineering. I tried using apktool. However, it was impossible. If I try to decompile it... following error occurs. It is used for the Android Head Unit. Is there anything I am missing?
...
KIM
Click to expand...
Click to collapse
Droidriven said:
As far as I know, Apktool hasn't been updated in s while. You might need to find a different tool or model.
Click to expand...
Click to collapse
Yup, I can confirm. I tried to decompile it with apktool, but same errors.
If you really need to decompile it, you can use JEB Decompiler. I've used it when apktool failed and it was successful. I used it only for the trial time, but you can install it and use your free trial to decompile this apk.
https://www.pnfsoftware.com/

Hi friends,
@Raiz, @Droidriven
My reply is late. I'm very very very sorry. COVID-19's got me out of my mind. There was a confirmed case in my company. Everything's all right now.
Hi,
I'll try to decompile it on my side, did you find any framework-res.apk apk or an equivalent you can install on apktool ? (That's my first time with android auto so idk how the system works)
Click to expand...
Click to collapse
Thank you for your interest. There's no framework-res.apk. I tried decompile in the usual way. I'm guessing this APK file needs a password for decompile. However, using the password-finding program did not produce any results.
As far as I know, Apktool hasn't been updated in a while. You might need to find a different tool or method.
Click to expand...
Click to collapse
Thank you for your good idea. Aren't most of them apktool-based programs? Do you know any programs? Please recommend something.
Yup, I can confirm. I tried to decompile it with apktool, but same errors.
If you really need to decompile it, you can use JEB Decompiler. I've used it when apktool failed and it was successful. I used it only for the trial time, but you can install it and use your free trial to decompile this apk.
Click to expand...
Click to collapse
Thank you! You're my hero. I'll go back home and test it out! I didn't know there was an alternative like this.
Thank you everyone! Have a nice day!
KIM

gloriashield said:
Hi friends,
...
Thank you! You're my hero. I'll go back home and test it out! I didn't know there was an alternative like this.
Thank you everyone! Have a nice day!
KIM
Click to expand...
Click to collapse
You're welcome, and an apk doesn't need a password to be decrypted, it need to be decompiled only. Buy if the tools aren't up to date with the lastest compiling and decompiling methods, you'll get errors like this one.
Enjoy your APK

Raiz said:
You're welcome, and an apk doesn't need a password to be decrypted, it need to be decompiled only. Buy if the tools aren't up to date with the lastest compiling and decompiling methods, you'll get errors like this one.
Enjoy your APK
Click to expand...
Click to collapse
Thank you for your advice! :good:
I tried to decompile it using the JEB decompiler. I was able to see the source code successfully and found the code I wanted to find. But I don't know how to re-compile with APK. Do you know the JEB decompiler manual? I couldn't find it. Please help me.
Best regards,
KIM

gloriashield said:
Thank you for your advice! :good:
I tried to decompile it using the JEB decompiler. I was able to see the source code successfully and found the code I wanted to find. But I don't know how to re-compile with APK. Do you know the JEB decompiler manual? I couldn't find it. Please help me.
Best regards,
KIM
Click to expand...
Click to collapse
Here you can find more info : https://www.pnfsoftware.com/jeb/manual/
(Check the hamburger menu on your left, there are multiple categories)
What I do it decompile with JEB and Recompile with apktool, but maybe they added the recompile feature. If you don't find a solution, use apktool and hopefully it'll work just fine.

Raiz said:
Here you can find more info : https://www.pnfsoftware.com/jeb/manual/
(Check the hamburger menu on your left, there are multiple categories)
What I do it decompile with JEB and Recompile with apktool, but maybe they added the recompile feature. If you don't find a solution, use apktool and hopefully it'll work just fine.
Click to expand...
Click to collapse
gloriashield said:
Thank you for your advice! :good:
I tried to decompile it using the JEB decompiler. I was able to see the source code successfully and found the code I wanted to find. But I don't know how to re-compile with APK. Do you know the JEB decompiler manual? I couldn't find it. Please help me.
Best regards,
KIM
Click to expand...
Click to collapse
You could also probably use Linux with some terminal commands to recompile the apk.
Sent from my SM-S767VL using Tapatalk

Droidriven said:
You could also probably use Linux with some terminal commands to recompile the apk.
Click to expand...
Click to collapse
Hi,
Thx for sharing that, I didn't about it and I think it will come handy sometimes for me. Do you have any links, commands,... ?

Raiz said:
Hi,
Thx for sharing that, I didn't about it and I think it will come handy sometimes for me. Do you have any links, commands,... ?
Click to expand...
Click to collapse
No, I don't know them specifically, but I'm pretty sure I've seen it discussed before. Just do a search for:
"How to decompile/recompile apk files using Linux"
I'm sure it will find something, if I'm correct.
Sent from my SM-S767VL using Tapatalk

Droidriven said:
No, I don't know them specifically, but I'm pretty sure I've seen it discussed before. Just do a search for:
"How to decompile/recompile apk files using Linux"
I'm sure it will find something, if I'm correct.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
Thanks to friends,
I was able to see the source code when I used JEB. The problem is.. it couldn't extract all of the resources(maybe). Looks like structure is different, it is questionable whether the APK file can be recreated. (And, I was able to see the code even using classyshark. But, it is not decompiler.)
I used about 20 programs, but most of them failed.

Related

[UTIL][08.12.11] Apktool v1.4.3 - a tool for reverse engineering apk files

Brut.all said:
It is a tool for reengineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step. Also it makes working with app easier because of project-like files structure and automation of some repetitive tasks like building apk, etc.
It is NOT intended for piracy and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms and other GOOD purposes. Just try to be fair with authors of an app, that you use and probably like.
Features:
decoding resources to nearly original form
smali debugging: SmaliDebugging
helping with some repetitive tasks
Click to expand...
Click to collapse
http://code.google.com/p/android-apktool/
Brut.all said:
http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
Oh this may well be excellent. I've got a 3rd-party Market app which desperately needs sensor orientation disabled (good ol' FC on rotate). Will check it out!
Brut.all said:
http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
heh! cool man ... will look into this one! TY
~enom~
this.. could.. be.. godly..
I don't have time to try this right now, but I'm PUMPED.
Ok, now I see, that it still doesn't work for many apps. But you can try your luck ;-)
I've just released 0.9.1 version with wider apps support.
Subscribed! Thanks Brut.All! Will play around with this one
Brut.all said:
http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
Vaooo!!! Megathanx!
Use it first and then thank. Still I don't have any confirmation from anyone that it works :-/
Brut.all said:
Use it first and then thank. Still I don't have any confirmation from anyone that it works :-/
Click to expand...
Click to collapse
working for me under ubuntu karmic, great work as ever Brut.all
Had the chance to set this up and make my edit. Absolutely painless. Great work. Thanks!
Android 1.5 can also work?
itanczos said:
Android 1.5 can also work?
Click to expand...
Click to collapse
Why not? It just builds apps, not run them, so it's a question like: "Do smali can also work with Android 1.5?" ;-)
That "Android SDK installed with 2.1 platform" requirement doesn't mean, that it will build apps for 2.1 . It will just use 2.1 resources, but these are (must be) backward compatible.
Brut.all said:
Why not? It just builds apps, not run them, so it's a question like: "Do smali can also work with Android 1.5?" ;-)
That "Android SDK installed with 2.1 platform" requirement doesn't mean, that it will build apps for 2.1 . It will just use 2.1 resources, but these are (must be) backward compatible.
Click to expand...
Click to collapse
Okay, I'll try!
Another question: The framwork-res.apk could not be decrypted. It will be possible later on?
itanczos said:
Another question: The framwork-res.apk could not be decrypted. It will be possible later on?
Click to expand...
Click to collapse
Maybe much later :-/
Even if we will be able to decode it and rebuild, we'll have FC after FC. The point is: framework resources must have constant resName<->resID mappings (eg. @android:string/day must be a 0x01040298), because they are referenced by all apps and unfortunately aapt doesn't give us control over resIDs mappings. I think framework-res.apk and other system files are built using some Google's private tools.
We need to create aapt-like tool, that will use custom resIDs mappings - it should be possible and maybe not so hard, but currently I have other things to do.
want a windows version >.<
lolmensch said:
want a windows version >.<
Click to expand...
Click to collapse
I must buy one ;-)
For now you need VirtualBox (free) + Ubuntu (free) + ~5GB of space (nearly free) and you will be able to use it
could this be used to modify this skype .apk to allow use on other carriers?
http://forum.xda-developers.com/showthread.php?t=585211&highlight=skype
ekeefe41 said:
could this be used to modify this skype .apk to allow use on other carriers?
http://forum.xda-developers.com/showthread.php?t=585211&highlight=skype
Click to expand...
Click to collapse
I don't know, what are these "iskoot", "3 network" and other things - I don't use Skype. But if you need to change something in XML files, then you definitely want to try out apktool

(Tools) Avabox

So this is the Avabox. original title i know
I put this to together back with the hero during some hard forums times in order to push further development with customizations. and it worked.
so here it is for the Evo devs. I set it up for windows but of course perl scripts run in linux so its universal. But if you want to learn/work on some customizations for the evo but you dont wanna dual boot linux or w/e here is something for you.
im hoping to see some good things soon any issues with this just comment or pm. good luck.
Avabox Download
What is it?
Avalaunchmods said:
So this is the Avabox. original title i know
I put this to together back with the hero during some hard forums times in order to push further development with customizations. and it worked.
so here it is for the Evo devs. I set it up for windows but of course perl scripts run in linux so its universal. But if you want to learn/work on some customizations for the evo but you dont wanna dual boot linux or w/e here is something for you.
im hoping to see some good things soon any issues with this just comment or pm. good luck.
Avabox Download
Click to expand...
Click to collapse
You are really doing us a favor. The Avabox's in the Hero forum were a life saver(but I lost the links to them).
Putting this in my Resources Guide. A must-have toolbox.
Decad3nce said:
You are really doing us a favor. The Avabox's in the Hero forum were a life saver(but I lost the links to them).
Putting this in my Resources Guide. A must-have toolbox.
Click to expand...
Click to collapse
good to hear. im staying busy so its hard to work on the evo. im honestly happy stock haha. but anyways yes lets keep this alive and get everyone in on some evo love
mrono said:
What is it?
Click to expand...
Click to collapse
its a compilation of scripts for windows to cook a rom and create/modify/extract/compile/unzip/deodex/sign/everything android 1.5 and up.
works with linux too.
Good timing. I'm here trying to remove yxplayer's trial / 2min time limit. Managed to decompile, edited smali files, recompile, sign. So far so good, worked as expected (re-mapping various functions to different buttons). Now gotta hunt down the code which actually triggers that 2min play limit, and with some luck, maybe the whole validate-the-serial-number routine
PS: was using only APKTool & Auto-Sign. Will check out the tools in Avabox and see if they will be useful.
This includes the installer for 64-bit ActivePerl. Here's the link for the 32-bit installer in case anyone needs it: http://downloads.activestate.com/Ac...ActivePerl-5.10.1.1007-MSWin32-x86-291969.msi
bump for life.
maybe a bump maybe not this is awesome is this the latest version? Oh stupid question? Someones gonna ask. this is great for unpacking boot.img signing zips everything to make your own rom. Wow even has a deodexer
This package is literally everything you need to make your own custom rom. So use it.
Thank you so much
I tried doing a search to see if anyone had the problem I am currently having, but I could not find anything (on the hero forums as well). So, I thought I would ask the community.
I am trying to deodex an apk. The program says that it deodexed it, but there is no classes.dex file in the apk. I am getting an error running it though. Here is the error:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: java.lang.RuntimeException: error while dumping fiel
ds
at org.jf.dexlib.Util.Deodexerant.sendMultilineComman d(Deodexerant.java:
241)
at org.jf.dexlib.Util.Deodexerant.access$200(Deodexer ant.java:44)
at org.jf.dexlib.Util.Deodexerant$ClassData.loadField s(Deodexerant.java:
521)
at org.jf.dexlib.Util.Deodexerant$ClassData.lookupFie ld(Deodexerant.java
:473)
at org.jf.dexlib.Util.Deodexerant.lookupField(Deodexe rant.java:142)
at org.jf.dexlib.Util.DeodexUtil.deodexInstruction(De odexUtil.java:566)
at org.jf.dexlib.Util.DeodexUtil.deodexerizeCode(Deod exUtil.java:205)
at org.jf.baksmali.Adaptors.MethodDefinition$MethodIt emList.generateMeth
odItemList(MethodDefinition.java:183)
at org.jf.baksmali.Adaptors.MethodDefinition.getMetho dItems(MethodDefini
tion.java:144)
at org.jf.baksmali.Adaptors.MethodDefinition.makeTemp late(MethodDefiniti
on.java:61)
at org.jf.baksmali.Adaptors.ClassDefinition.getDirect Methods(ClassDefini
tion.java:272)
at org.jf.baksmali.Adaptors.ClassDefinition.makeTempl ate(ClassDefinition
.java:74)
at org.jf.baksmali.baksmali.disassembleDexFile(baksma li.java:112)
at org.jf.baksmali.main.main(main.java:183)
Caused by: java.lang.RuntimeException: error while dumping fields
at org.jf.dexlib.Util.Deodexerant.sendMultilineComman d(Deodexerant.java:
232)
... 13 more
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.jf.dexlib.DexFile$2.placeAt(DexFile.java:733)
at org.jf.dexlib.DexFile.place(DexFile.java:608)
at org.jf.smali.main.main(main.java:177)
Any clues? Thanks in advance for any response and help you might be able to offer.
Could a complete nub download this and make a ROM? I've been interested in getting into development, but I have no clue where to start. I catch onto things quickly, and I'm willing to learn. I just don't know where to begin.
athanos said:
I tried doing a search to see if anyone had the problem I am currently having, but I could not find anything (on the hero forums as well). So, I thought I would ask the community.
I am trying to deodex an apk. The program says that it deodexed it, but there is no classes.dex file in the apk. I am getting an error running it though. Here is the error:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: java.lang.RuntimeException: error while dumping fiel
ds
at org.jf.dexlib.Util.Deodexerant.sendMultilineComman d(Deodexerant.java:
241)
at org.jf.dexlib.Util.Deodexerant.access$200(Deodexer ant.java:44)
at org.jf.dexlib.Util.Deodexerant$ClassData.loadField s(Deodexerant.java:
521)
at org.jf.dexlib.Util.Deodexerant$ClassData.lookupFie ld(Deodexerant.java
:473)
at org.jf.dexlib.Util.Deodexerant.lookupField(Deodexe rant.java:142)
at org.jf.dexlib.Util.DeodexUtil.deodexInstruction(De odexUtil.java:566)
at org.jf.dexlib.Util.DeodexUtil.deodexerizeCode(Deod exUtil.java:205)
at org.jf.baksmali.Adaptors.MethodDefinition$MethodIt emList.generateMeth
odItemList(MethodDefinition.java:183)
at org.jf.baksmali.Adaptors.MethodDefinition.getMetho dItems(MethodDefini
tion.java:144)
at org.jf.baksmali.Adaptors.MethodDefinition.makeTemp late(MethodDefiniti
on.java:61)
at org.jf.baksmali.Adaptors.ClassDefinition.getDirect Methods(ClassDefini
tion.java:272)
at org.jf.baksmali.Adaptors.ClassDefinition.makeTempl ate(ClassDefinition
.java:74)
at org.jf.baksmali.baksmali.disassembleDexFile(baksma li.java:112)
at org.jf.baksmali.main.main(main.java:183)
Caused by: java.lang.RuntimeException: error while dumping fields
at org.jf.dexlib.Util.Deodexerant.sendMultilineComman d(Deodexerant.java:
232)
... 13 more
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.jf.dexlib.DexFile$2.placeAt(DexFile.java:733)
at org.jf.dexlib.DexFile.place(DexFile.java:608)
at org.jf.smali.main.main(main.java:177)
Any clues? Thanks in advance for any response and help you might be able to offer.
Click to expand...
Click to collapse
What apk are you trying to deodex? Are you using the right BOOTCLASSPATH?
tjohnsonjr said:
What apk are you trying to deodex? Are you using the right BOOTCLASSPATH?
Click to expand...
Click to collapse
I'm a noob, so please forgive me. I am not sure about the BOOTCLASSPATH. I am trying to deodex htcmailwidgets.apk. I know there are already deodexed ones out there, but I wanted to deodex the one from the legend (it has a couple of options for the widget which are not able to be done with the standard mail widget) to use on my hero without changing to the Legend ROM. Hope that makes sense.
athanos said:
I'm a noob, so please forgive me. I am not sure about the BOOTCLASSPATH. I am trying to deodex htcmailwidgets.apk. I know there are already deodexed ones out there, but I wanted to deodex the one from the legend (it has a couple of options for the widget which are not able to be done with the standard mail widget) to use on my hero without changing to the Legend ROM. Hope that makes sense.
Click to expand...
Click to collapse
Sense bootclasspath is: core.jar:ext.jar:framework.jar:android.policy.jar:services.jar:com.htc.framework.jar:com.htc.android.pimlib.jar:com.htc.android.easopen.jar:com.scalado.util.ScaladoUtil.jar
I haven't used Avabox yet. I hope this helps until I can play around with this tonight.
athanos said:
Any clues? Thanks in advance for any response and help you might be able to offer.
Click to expand...
Click to collapse
That is a fairly old version of smali/baksmali. You really should either use smali/baksmali directly, or at least find a tool/script that has/uses an up to date version
JesusFreke said:
That is a fairly old version of smali/baksmali. You really should either use smali/baksmali directly, or at least find a tool/script that has/uses an up to date version
Click to expand...
Click to collapse
THE JesusFreke!!!?! Good reading ya,the original Android dev, much respect.
Sent telepathically via my Evo.
-_-
May not ever use this personally, but thanks for this.
Sent from my PC36100 using XDA App
I may have completely misread the OP, and forgive me if I did, but aren't there supposed to perl scripts in the package that would allow me to use this in Linux? I am not seeing anything but .exe and .bat files. I dont use Windows, and wouldnt trust wine to do development work. Is there another version of this floating around I can use?
Edit: I found the code repository http://code.google.com/p/smali/
Edit2: NM. I finally opened my eyes and found the perl scripts in Boot Scripts. The above code repo is the updated version of Smali.
Looking to unpack the data.img files that are created when you do a backup of your phone. Not seeing that this will work - do you have ideas on how?

[DEV] apkTools - Optimize/Edit/Pack/Sign

A simple toolkit inspired by some others, primary goal is to provide a seamless solution for reliable apk editing/optimizing.
This tool uses aapt rather than 7zip for packing. That provides much better reliability and assurance of conformance to Android file standards, as the cost of slightly larger files.
Contains:
- 7zip
- roptipng
- aapt
- apktool
- zipalign
- signapk
I've also made sure all the libraries/binaries are up to date.
Reserved Post?
Does this work on a mac? Not at home to download it.
Sent from my PC36100 using XDA App
david279 said:
Does this work on a mac? Not at home to download it.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Windows only, sorry.
I can look and see about porting to Mac/Linux though, to my knowledge I should be able to get binaries/source for each exe used.
Cool thanks....
Sent from my PC36100 using XDA App
Appreciate the kit will thank you when I get near my laptop.
Swyped From Eva Running Myn's RLS4!
40 downloads and no feedback?
Anyways, I'd like to encourage everyone to use ddms from the android sdk to check your boot errors when optimizing.
It helps alot, any apk related errors should always be addressed even if they seemingly work flawless.
I like that you have compiled all these things together. Shouldn't there also be a draw9patch.bat also for those who have to fix the things that noobs did? It is getting better these days but there are still those out there trying to take the easy way out.
I'm also on a mac. I'll probably run it within VirtualBox
good stuff... im happy someone put together a package for everyone.
btw... which versions u using here?
i can check... but i think more people would like to know.
aamikam said:
btw... which versions u using here?
i can check... but i think more people would like to know.
Click to expand...
Click to collapse
7za - 9.20
roptipng - 0.6.3
aapt & zipalign - SDK v8
apktool - 1.3.2
signapk - NA
thanks! i'll be putting this through its paces sometime after weekend
i'll report back with any issues.
Can AndroidManifest.xml be edited with this?
epakrat75 said:
Can AndroidManifest.xml be edited with this?
Click to expand...
Click to collapse
I think so, but I'm not sure.
Optimize/Edit/Pack/Sign
Click to expand...
Click to collapse
I think Apps have to be signed in the AndroidManifest.xml...
Sent from my HTC Desire using XDA App
I like your concept. Good work. I'm only experiencing 1 issue though...
When unpacking Motonav.apk, everything seems to be unpacked, but when looking at the files, they're wrongfully created.
Instead of creating the file data.gro for instance, it creates a folder data_gro. Which therefore can't be recognized by GROConverter.
Am I doing something wrong?
epakrat75 said:
Can AndroidManifest.xml be edited with this?
Click to expand...
Click to collapse
its using apktool so if its set to decompile then you would edit the decompiled manifest with something like notebook ++
this would be greeeeaaaat for a mac.
Awesome tool... Would love for this to be able to handle draw9patch! Might there be an update to include that?
For some weird reason im getting errors. saying java isnt a command
This is great, thanks....

[Q] how to get apktool working on android ?

How do I get apktool working on android ? Where do I download latest working version ? I had apktool working but now I flashed custom rom and I installed it again and it won't work. It won't install framework and doesn't decompile the whole app
code.google.com/p/android-apktool/
Yes, it wont decompile whole app successfully sometimes, so it's better to edit the smali code which can be wholly decompiled successfully.
Hope this can help you
henry0504 said:
code.google.com/p/android-apktool/
Yes, it wont decompile whole app successfully sometimes, so it's better to edit the smali code which can be wholly decompiled successfully.
Hope this can help you
Click to expand...
Click to collapse
it's not decompiling any apps all the way.
I don't know what to download from there.
I tried both from here.
http://pan.baidu.com/s/1qWyPYVE
When I try recomepile it won't do it
I think the files in your link is not apktool...
Apktool is a jar file for decompiling and recompiling apks.
Use with cmd, example:
apktool.jar d filetobedecompile.apk
apktool.jar if frameworktobeinstall.apk
apktool.jar b filetoberecompile
It's definitely not an apk so far, so you should go to the official page on google code and download the official jar file.
Hope this can help you. Hit thanks!
henry0504 said:
I think the files in your link is not apktool...
Apktool is a jar file for decompiling and recompiling apks.
Use with cmd, example:
apktool.jar d filetobedecompile.apk
apktool.jar if frameworktobeinstall.apk
apktool.jar b filetoberecompile
It's definitely not an apk so far, so you should go to the official page on google code and download the official jar file.
Hope this can help you. Hit thanks!
Click to expand...
Click to collapse
Are those commands I can use in terminal emulator ? Does it change a jar file to apk or let me run jar files ? I don't know how to get terminal emulator working. I tried a java app that says it can run java files but the app wouldn't run. @henry0504
forum.xda-developers.com/showthread.php?t=1989533
I don't have a computer @henry0504
That's the first time I heard somebody didn't own a computer....
I am shocked that I heard it in xda…
You should own one bro
henry0504 said:
That's the first time I heard somebody didn't own a computer....
I am shocked that I heard it in xda…
You should own one bro
Click to expand...
Click to collapse
Do you know any other way ? I tried different apps that are suppose to run Java apps and they close when I try running the app or I couldn't get it to run the java app.
ryan012 said:
Do you know any other way ? I tried different apps that are suppose to run Java apps and they close when I try running the app or I couldn't get it to run the java app.
Click to expand...
Click to collapse
I don't get what you really mean, but you can try JBED for running java file on Android.
But I strongly recommend you to use computer to decompile apks. If you don't have one, you can't decompile apks and use apktool.
henry0504 said:
I don't get what you really mean, but you can try JBED for running java file on Android.
But I strongly recommend you to use computer to decompile apks. If you don't have one, you can't decompile apks and use apktool.
Click to expand...
Click to collapse
any way to run the java app. I tried that app, it won't run.
To decompile app on android you can try ninja morph
Sent from my Xperia Live with Walkman using XDA Premium 4 mobile app
android yoyash said:
To decompile app on android you can try ninja morph
Sent from my Xperia Live with Walkman using XDA Premium 4 mobile app
Click to expand...
Click to collapse
That app isn't bad. I like zarchiver, app better

[Completed] How to edit assets folder ,simply ?

hi
I know an application called apk editor which simply edits res folder of the applications...
Now I would like to find a simple way to edit assets folder , in the application file.
Could anybody help me , please?
hmdphantom said:
hi
I know an application called apk editor which simply edits res folder of the applications...
Now I would like to find a simple way to edit assets folder , in the application file.
Could anybody help me , please?
Click to expand...
Click to collapse
Hi and thank you for using XDA Assist
Try using Apktool, it's much easier to modify apks.
Good luck!
nilac said:
Hi and thank you for using XDA Assist
Try using Apktool, it's much easier to modify apks.
Good luck!
Click to expand...
Click to collapse
thank you.
I found the app , downloaded from 4shared...
Now I get these errors :
*] *****\xdaAutoAPKTool_V4.0.2\_INPUT_APK\instasize_78.fl
recompiling *****\xdaAutoAPKTool_V4.0.2\_INPUT_APK\instasize_78.fl...
Exception in thread "main" brut.androlib.AndrolibException: java.nio.file.NoSuchFileException: bin/
at brut.androlib.Androlib.buildUnknownFiles(Androlib.java:570)
at brut.androlib.Androlib.build(Androlib.java:293)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: java.nio.file.NoSuchFileException: bin/
at com.sun.nio.zipfs.ZipFileSystem.checkParents(ZipFileSystem.java:863)
at com.sun.nio.zipfs.ZipFileSystem.newOutputStream(ZipFileSystem.java:528)
at com.sun.nio.zipfs.ZipPath.newOutputStream(ZipPath.java:792)
at com.sun.nio.zipfs.ZipFileSystemProvider.newOutputStream(ZipFileSystemProvider.java:285)
at java.nio.file.Files.newOutputStream(Unknown Source)
at java.nio.file.Files.copy(Unknown Source)
at java.nio.file.CopyMoveHelper.copyToForeignTarget(Unknown Source)
at java.nio.file.Files.copy(Unknown Source)
at brut.androlib.Androlib.insertFile(Androlib.java:590)
at brut.androlib.Androlib.buildUnknownFiles(Androlib.java:566)
... 4 more
The system cannot find the drive specified.
---------------------------------------------------------------------------------------------------------------------
Can you tell me what is needed to solve the problem?
Is apktool complete ? does it work on all applications?
nilac said:
Hi and thank you for using XDA Assist
Try using Apktool, it's much easier to modify apks.
Good luck!
Click to expand...
Click to collapse
problem solved....
But I like to hear your answers...
------------------------------------------------------------------------
The solution is to extract files directly from (apk or zip) file and mix with decrypted file
then uninstall last version of the app on the phone.
Install the new one....
nilac said:
Hi and thank you for using XDA Assist
Try using Apktool, it's much easier to modify apks.
Good luck!
Click to expand...
Click to collapse
Could some one just extract files from apk, change the files and then rename the file to zip and sign the file?
Could it be that easy?
hmdphantom said:
Could some one just extract files from apk, change the files and then rename the file to zip and sign the file?
Could it be that easy?
Click to expand...
Click to collapse
Yes , done.
that easy....
Apktool one of the bests.
Thanks for the helps.

Categories

Resources