[Q] Modifying Smali Code and recompile it. - Android Q&A, Help & Troubleshooting

I have read all the threads on the topic of decompiling APK file and recompiling it, and so far I am successful in decompiling and recompiling it.And now I want to make some changes in smali files like change package name and remove some features, But I don't know smali language, so Is there a way that I can convert smali files into Android JAVA project which I can import into Eclipse or I must have to learn smali language to achieve what I want.
Thanks in Advance

decompilerr said:
I have read all the threads on the topic of decompiling APK file and recompiling it, and so far I am successful in decompiling and recompiling it.And now I want to make some changes in smali files like change package name and remove some features, But I don't know smali language, so Is there a way that I can convert smali files into Android JAVA project which I can import into Eclipse or I must have to learn smali language to achieve what I want.
Thanks in Advance
Click to expand...
Click to collapse
It can be done with smali also ....
Only thing is you need to be tricky ....[emoji6]
Am not writing the procedure here coz changing package name doesn't sounds good for me [emoji1] I always respect efforts of original developers (some kangers always do change name and remove some features and claim the apk as theirs in generally am saying don't get hurted )
So I just want to confirm that changing package name and removing some features is possible via smali editing no need to convert the apk to java source .......
Press Thanks Button If You like My Work & Posts?

Related

[Q] Decompiling the "classes.dex" file for BIDI support

Hi All,
I'm a noob ROM developer and I want to create a new Rom based on
one of the great Roms here on this forum and add it support for RTL languages so it can support correct display of numbers when displaying an RTL lang.
As I understand I need to somehow decompile the "classes.dex" so I can edit the code in it and compile it again.
How can I achieve this? Maybe I can the original source code of it so I don't need to decompile?
I'm experienced with c++ and Java Android apps development but don't have a clue from where to start roms development.
Appreciated your help,
Thanks,
Oren

[Q] Decompile, Edit Code and Re-compile to APK for android

Hello everyone
I have a question, first look at what I did.
I want to edit code of apk.
First, I use dex2jar. I can convert from APK to JAR file.
Second, I use JD. I can convert from JAR to Java source code.
Then I am trying to import these code into eclipse (or other editors) but it is not working.
Is there any possible way to edit the code?
I know we can edit smali but I think it is so much difficult.
I would be easier if I can edit in java source code and compile again to APK.
Thanks
Please use the Q&A Forum for questions Thanks
Moving to Q&A
It's not that easy. You can decompile (dex2jar & jd) the code to read it, do some research, etc. but this is a one way trip. If you want to modify something you will have to learn smali.
so, you mean the only way to modify code is smali?

[Q] How to compile .apk?

I'm a graphic designer and I'd love to start making themes for the SGS2 but I don't know how to create the APKs, specifically, the SystemUI.apk. I've read up about it but haven't found anything helpful.
Could someone write a guide on how to do it or give me a link to one?
Could i recomend looking at VRTheme, see this post and this post, this way you dont have to build apks in the traditional sense.
You will want apktool to decompile apks, then edit, then use it again to recompile.

Translate .APK?

Hello all, i just wanted to ask how to translate an apk. I was practicing with some apps to translate some english parts in my MIUI rom, edited strings and arrays in values-es (spanish is what i want), but when i recompiled, the .APK was smaller, and when i tried to install, it said App Not Installed. I tried with APKTool and APKManager, same results. Please help!
I think you should get the source code and create another language xml file to make it work and rebuild the project. In case there is no lang file nowhere in the source, you may not translate it.
roncsak said:
I think you should get the source code and create another language xml file to make it work and rebuild the project. In case there is no lang file nowhere in the source, you may not translate it.
Click to expand...
Click to collapse
Oh, ok thanks!

decompile SystemUI.apk

Hi guys,
I have a problem with my System.UI. I can't decompile it because I obtain always an error...in every programs (Tickle,Multitool...). I want to edit lines in .xml for my custom ROM.
However, with the Framework-res.apk or settings-apk it works perfectly. I don't understand...
So If someone could help me decompiling System-UI.apk with other method, I'd be very grateful to him
Of course I join two files (framework-res.apk and systemUI.apk) in attachment.
Thanks really
Bests regards
Nobody... ?
PLease
MAnopi said:
Hi guys,
I have a problem with my System.UI. I can't decompile it because I obtain always an error...in every programs (Tickle,Multitool...). I want to edit lines in .xml for my custom ROM.
However, with the Framework-res.apk or settings-apk it works perfectly. I don't understand...
So If someone could help me decompiling System-UI.apk with other method, I'd be very grateful to him
Of course I join two files (framework-res.apk and systemUI.apk) in attachment.
Thanks really
Bests regards
Click to expand...
Click to collapse
I have same problem. Hope to someone can help.????
Post the error log and maybe someone will help you. Posting the apks does nothing really.
Also if your making a custom rom but cant fix a simple error then you might want to rethink things.
Also if your building a custom rom then just edit the source before to compile the build.
Finally it works. Why ? I don't know lol
Maybe it is :
-I took systemUI.apk from stock ROM (yes i changed apk from stock ROM to try)
-or I deleted mediatek-res.apk of folder names ''other'' of APKmultitool

Categories

Resources