[Q] How to compile .apk? - Galaxy S II Q&A, Help & Troubleshooting

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.

Related

Adding Swipe to Remove Notification - JUST A SHARE! DEVS HAVE A LOOK

Hello Guys,
I was just browsing through Forums and found THIS USEFUL THING!!
This is a guide to enable Swipe to Remove Notification as in CM7 and ICS. I tried this. I successfully was able to compile the twframework-res.apk with the mods for systemui.apk but then I couldn't find the smali and I don't have much time. So I am sharing the link. Any Dev if you can give your time in this would be awesome. It can work for, if no one does this I will port it after my exams
twframework-res.apk did compile but then these stupid smali codes I don't know where to browse and I gotta study so cant decompile all JARs. I am sure this can work on g3. Just need little diffn mods for xml and smali as from guide.
Now Study Time
PPPS --I take no credit for it.
ALL CREDITS TO hansip87! DO THANK HIM..
k then m gonna try this out......hope i get success

[Q] How to theme?

Just some questions [yeah, used search and no lucky]
1. How can I theme CM9 with the Theme Chooser? Any tutorial, template? Don't know anything about it. [If possible, a noob-medium tutorial about apks]
2. What can I do with the arsc file?
3. How can I edit those XML files?
4. How can I change the icon of some apps? [which the theme doesn't theme...]
Well, I just want to know it, I have a theme here, but want to edit some stuff. Or I could also start from zero to make the perfect theme for me.
Thanks.
Edit: with a lot of search on google [I mean a lot] and a friend helping me, I was finally able to do some stuff. With apktool I managed to decompile, and just easy, I've been able to edit a Theme chooser apk like it was mine, edit the xml files and the arsc files were already decompiled. By myself I could also add some apps to the APKs, like chrome. [PS: if someone has a cool Google Chrome square icon, please share ]

[Q]Tutorial on how to make CM10 theme?

I know to to make a theme, but was wondering how to make use of the theme chooser in CM10. It looks like I need to build an apk but I haven't found any guides on how to go about that. Any pointers?
Try the easy way while you wait for help
Well I've been building a theme for months and there's the easy way and the impossible way, one is to extract a template theme or any theme for that matter and replace all the images with your own as long as you don't touch the .9s and use the apk multi tool (googleable) to extract optimise and sign it for you. Thats the easy way
The other is to decompile which lets you edit XML files and .9s but I haven't managed to get that to work and no amount of internet can help me. Which means no changing the name of the theme and no uploading to the market. Which is what I planned to do. But give the easy way a go if you just want it for yourself and friends etc.
I had also posted another question here on the forums trying to figure out why I couldn't theme MMS.apk and Phone.apk; one_love_420 was kind enough to respond and mentioned the same thing you did, which is to utilize theme chooser. So that is what I ended up doing. I found a template for CM10 theme chooser and added in some lines so I could also theme MMS.
one_love_420 also provided me a link to this forum post, which helps with learning how to modify the xml files and personalize the theme.
http://forum.xda-developers.com/showthread.php?p=11545308
I have actually edited .9.png files before, with my old Samsung Moment. granted that was on Android 2.2 but still applies right?
Personally I preferred to use Draw9Patch and xUltimate (http://forum.xda-developers.com/showthread.php?t=700904) and Photoshop.
Here are some guides that I have looked at previously:
http://forum.xda-developers.com/showthread.php?t=605662
http://forum.xda-developers.com/showthread.php?t=1638978
Thank you for your response SimBol10! Also, let me know if you have any questions about .9.png editing and I'll try to return the favor!

[Q] Modifying Smali Code and recompile it.

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?

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