Apk to java source code using smali - General Questions and Answers

I am using aide for android. I decompile an app using smali then made some modifications, before i made some modifications it shows thousands of errors "unexpected end of declaration"! What is the problem! Can you help me build my mod then send it on my email? [email protected]
Here is the source code! https://www.dropbox.com/s/kxn3nlp0i9m0o71/FMTransmitter.zip?dl=0

Related

How to edit classes.dex

I'm new to the android development community and was wondering if a classes.dex file could be edited to add an api. If there is a way to add this API so the ROM knows that this API is there and available.
Thanks for the help in advance.
Sent from my PC36100 using XDA App

compiling app?

hi i have this app in market that cost money but also a open source code so i can download all files of apk..
but how i complie them into an apk type?? what program and what do i do with it?
Try apktool

AndroidManifest

Hey guy
I was wondering if you could help me,
I'm trying to edit the android manifest xml.but when I decompile the apk, I don't get the minimum and target ark version displayed in the xml when I open it with notepad++. I also tried in its, same result.it's like the whole xml is not shown. It does appear in the yml tho. How or what do I use to view and edit the whole xml.
Thanx in advance
Sent from my LG-P920 using xda app-developers app

Build APK

I can find how to build a Apk from javascript code, I wrote an app in Droidscript but now i want to copile it. How can i build apk from javascript?

Need help decompile APK file for reverse engineering

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.

Categories

Resources