[Guide] A Comprehensive guide to make APK of Zooper skins - Zooper Widget General

Guys, We often make tons of skins with Zooper and sharing is main concern because when we share .zw file sometimes resources get messed up. So APK has this benefit over standard zw files that resources are stored and work fine (Obviously if file is corrupted no one can help )
Here is well Pictured guide to help you out. I hope you have downloaded Apktool/Tickle my android/Any such kinda tool and Java on your PC/Lappy.
What you will need:
* APK tool/Tickle my android/Auto apk tool
* Notepad++
* and template apk given by me (Attached last).
1. Open the Apktool folder and copy template given by me in that folder. [Please this is not an APK tool thread so I assume that you know how to decompile and recompile. ]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Open your apktool and decompile the Template-ZWskin.apk
3. Now in Decompiled folder there is a new folder of Teplate ZW skin
4. Now copy your Zip of skin exported from Zooper widget app and extract it like this photo [Prcisely known as APKZip inside Zooper app]
5. Now open that extracted folder in new window and copy all folders from extracted zip to "assets" folder of Template APK [IMPORTANT STEP]
6. Now get back to Template APK folder and see if its like this:
7. Now go to res/values/strings.xml and edit it with Notepad++
8. Go back to Template APK folder , and open AndroidManifest.xml to change name of APK.
9. Now Open APKtool and Recompile the apk and sign it. After Signing you rename APK file. At this stage if you use Tickle my android, signing is done immediately and automatically after Recompiling So thats a benefit for new users:good:
TEMPLATE LINK
Any comments, Requests should be here !

Very nice guide Bro!!!!
Sent from my C2104 using Tapatalk 4

Great job, hopefully this will encourage more sharing!

I'm pretty good at this too if anyone needs any help with it.
Thanks for the write-up!

I tried the guide from the original Forums but instructions don't match
I tried the guide from the original Forums but instructions don't match Android Studio anymore. Could never get it to work.
---------- Post added at 05:53 PM ---------- Previous post was at 05:36 PM ----------
Can you do readable images?
I guess I need to to figure out these tools. Noob

paulpoco said:
I tried the guide from the original Forums but instructions don't match Android Studio anymore. Could never get it to work.
---------- Post added at 05:53 PM ---------- Previous post was at 05:36 PM ----------
Can you do readable images?
I guess I need to to figure out these tools. Noob
Click to expand...
Click to collapse
Images are readable. Open them in separate window form PC...

scottx . said:
I'm pretty good at this too if anyone needs any help with it.
Thanks for the write-up!
Click to expand...
Click to collapse
I'm looking for someone that help me with the creation of an APK of Zooper skin, i've followed step by step a couple o guides but i can't make my own apk...
Can someone help me if i show my problem ?

Hi,
I already follow all the steps including the package name in the .xml file
after recompiling, signing and installing it prompt "App not installed"

The guide on Zooper website using Android Studio doesn't match current studio menus.
Sent from my Nexus 4 using Tapatalk

empol87 said:
I'm looking for someone that help me with the creation of an APK of Zooper skin, i've followed step by step a couple o guides but i can't make my own apk...
Can someone help me if i show my problem ?
Click to expand...
Click to collapse
What errors are you getting?
pingu_c660 said:
Hi,
I already follow all the steps including the package name in the .xml file
after recompiling, signing and installing it prompt "App not installed"
Click to expand...
Click to collapse
Sign it properly
paulpoco said:
The guide on Zooper website using Android Studio doesn't match current studio menus.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Sorry dude bt can't help. Haven't even seen Android studio:cyclops:

Java Error!
When I open AutoAPKToolMain (Windows Batch File), I get the following error!

I was hoping for a more noob friendly guide..
Anyways, thanks for sharing. Guess I'll have to spend my whole life figuring this out

skyinfo said:
When I open AutoAPKToolMain (Windows Batch File), I get the following error!
Click to expand...
Click to collapse
So install java no?
Sent from my C2104 using Tapatalk

vermajai93 said:
I was hoping for a more noob friendly guide..
Anyways, thanks for sharing. Guess I'll have to spend my whole life figuring this out
Click to expand...
Click to collapse
Tell me what u didn't understand?... I can elaborate
Sent from my C2104 using Tapatalk

My Doubts
Crytech said:
Tell me what u didn't understand?... I can elaborate
Sent from my C2104 using Tapatalk
Click to expand...
Click to collapse
I have been following both guides one from zooper website and the other one is this. I found the guide on zooper a little more detailed [for noobs] and I have been checking on this guide too to make sure I don't make any mistakes. I am mostly done with the whole process and my apk is ready, all I need is a few clarifications on some doubts so to make sure I haven't missed anything.
•In androidmenifest.xml android version code was 102 by default and version name was 1.02 So I guessed its my app's version and changed it to:
android:versionCode="100"
android:versionName="1.00" is this how it should be if I want to make my app's version 1.0? Also, If I wanted to change my app's version to 0.98 then would I have to change version code to 98??
•There was this <uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="15" /> by default and I have no idea what it is apart from that sdk tool is a software so I assumed it has to do something about and left it as is. Hope its not a problem.
•I didn't change anything here either do I have to??
<activity
android:name="org.zooper.zwskin.ZooperTemplate"
android:exported="true">
<intent-filter>
<action android:name="org.zooper.zw.TEMPLATES" />
</intent-filter>
</activity>
Hope I'm not asking too much. Forgive me for these noobish questions I just wanna make sure everything goes smooth. Thank You very much!!

vermajai93 said:
I have been following both guides one from zooper website and the other one is this. I found the guide on zooper a little more detailed [for noobs] and I have been checking on this guide too to make sure I don't make any mistakes. I am mostly done with the whole process and my apk is ready, all I need is a few clarifications on some doubts so to make sure I haven't missed anything.
•In androidmenifest.xml android version code was 102 by default and version name was 1.02 So I guessed its my app's version and changed it to:
android:versionCode="100"
android:versionName="1.00" is this how it should be if I want to make my app's version 1.0? Also, If I wanted to change my app's version to 0.98 then would I have to change version code to 98??
•There was this <uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="15" /> by default and I have no idea what it is apart from that sdk tool is a software so I assumed it has to do something about and left it as is. Hope its not a problem.
•I didn't change anything here either do I have to??
<activity
android:name="org.zooper.zwskin.ZooperTemplate"
android:exported="true">
<intent-filter>
<action android:name="org.zooper.zw.TEMPLATES" />
</intent-filter>
</activity>
Hope I'm not asking too much. Forgive me for these noobish questions I just wanna make sure everything goes smooth. Thank You very much!!
Click to expand...
Click to collapse
For the first two bullet points:
The version code must be numeric and is how the device tells whether the app is older, newer, or the same version. The version name can be whatever you want. It's the user friendly version we see when looking at what version is installed.
The SDK version is the "version code" for Android itself.
Side note: CODE tags preserve formatting.
----
Summon Logcat. It's super effective.
SGS2 - JB 4.1.2 GB27
SGS4 - JB 4.2.2 MF9

vermajai93 said:
I have been following both guides one from zooper website and the other one is this. I found the guide on zooper a little more detailed [for noobs] and I have been checking on this guide too to make sure I don't make any mistakes. I am mostly done with the whole process and my apk is ready, all I need is a few clarifications on some doubts so to make sure I haven't missed anything.
•In androidmenifest.xml android version code was 102 by default and version name was 1.02 So I guessed its my app's version and changed it to:
android:versionCode="100"
android:versionName="1.00" is this how it should be if I want to make my app's version 1.0? Also, If I wanted to change my app's version to 0.98 then would I have to change version code to 98??
•There was this <uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="15" /> by default and I have no idea what it is apart from that sdk tool is a software so I assumed it has to do something about and left it as is. Hope its not a problem.
•I didn't change anything here either do I have to??
<activity
android:name="org.zooper.zwskin.ZooperTemplate"
android:exported="true">
<intent-filter>
<action android:name="org.zooper.zw.TEMPLATES" />
</intent-filter>
</activity>
Hope I'm not asking too much. Forgive me for these noobish questions I just wanna make sure everything goes smooth. Thank You very much!!
Click to expand...
Click to collapse
1. Yes when you make version 98 will be necessary to make app version 0.98. However No one makes updates in points (Atleast zooper skins are once made, abandoned afterwards..)
2. Min-sdk should not be changed because it shows compatibility of app with Android version. [15 = ICS 4.0+] and Zooper is supporting 4.0+ devices so skin should support the same .
3. No you shouldn't change anything:good:

hi everybody, i have a sort of problem: i created a Zooper .apk and when i try it on my phone it works flawlessly but when i install it on another phone a folder appear instead of the icons, where am i wrong ? can someone help me ? thanks

need erase

Related

[HOW TO/MOD] make Transparant lockscreen

hi
this tutorial will show u how to make your lock screen transparent to your ROM whatever it is..
it is easy method and I look everywhere, nobody post the method or the correct one at least
==================================
i will not go throw how to decompile and compile because there are many threads show how to do it
==================================
* decompile framework-res.apk from your ROM
* go to res/drawable-hdpi
* delete zzzzzzzz_default_lockscreenw.jpg
* place new transparent image and rename it as zzzzzzzz_default_lockscreenw.png
*go to res/layout/zzz_keyguard_screen_lockscreenwallpaper.xml
*in line 2 change
Code:
android:background="#ff000000"
to
Code:
android:background="#00000000"
*compile framework-res.apk again and don't forget to delete the necessary files and folders from KEEP
*move to ur device to system/framework
*reboot, ur done
this is how it should be look like
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I attached a transparent image in the attachment if someone doesn't know how to make one by Photoshop
juf,,
another how to .. soon
Thanx for the howto !
Brotuck said:
Thanx for the howto !
Click to expand...
Click to collapse
u r welcome mate
Thanks, looks cool and I may pluck up my courage to try over the weekend.
I have been wondering why the phone doesn't support transparent/translucent lockscreens. It'll be nice if there's an app that can somehow or other do that without having newbies (and scaredies) to decompile and compile the .apk!
juffo said:
hi
this tutorial will show u how to make your lock screen transparent to your ROM whatever it is..
it is easy method and I look everywhere, nobody post the method or the correct one at least
==================================
i will not go throw how to decompile and compile because there are many threads show how to do it
==================================
* decompile framework-res.apk from your ROM
* go to res/drawable-hdpi
* delete zzzzzzzz_default_lockscreenw.jpg
* place new transparent image and rename it as zzzzzzzz_default_lockscreenw.png
*go to res/layout/zzz_keyguard_screen_lockscreenwallpaper.xml
*in line 2 change
Code:
android:background="#ff000000"
to
Code:
android:background="#00000000"
*compile framework-res.apk again and don't forget to delete the necessary files and folders from KEEP
*move to ur device to system/framework
*reboot, ur done
this is how it should be look like
I attached a transparent image in the attachment if someone doesn't know how to make one by Photoshop
juf,,
Click to expand...
Click to collapse
Sweet thanks for this. Where is the attachment? That would be a big help if we had a transparent image to us.
Thanks
Sent from my SGH-I777 using xda premium
jgrimberg1979 said:
Sweet thanks for this. Where is the attachment? That would be a big help if we had a transparent image to us.
Thanks
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
it is there in the attachment square ,, but bqz it is transparent
juffo said:
it is there in the attachment square ,, but bqz it is transparent
Click to expand...
Click to collapse
I cannot get it to recompile correctly, i keep getting error after error. I have been trying to get it working for the last 4 hours. Is there any way you could take my framework-res.apk and apply your mod? Please
View attachment framework-res.apk
jgrimberg1979 said:
I cannot get it to recompile correctly, i keep getting error after error. I have been trying to get it working for the last 4 hours. Is there any way you could take my framework-res.apk and apply your mod? Please
View attachment 782712
Click to expand...
Click to collapse
i checked ur file
u have without any modding a problem in PNG files
i will do it but need much more time
maybe today late or tomorrow
juffo said:
i checked ur file
u have without any modding a problem in PNG files
i will do it but need much more time
maybe today late or tomorrow
Click to expand...
Click to collapse
Okay thanks. Is that why i am getting the errors? because of some of the pngs?
I really want to learn this stuff but its hards to find a good tutorial.
Anyways thanks for looking into this
jgrimberg1979 said:
Okay thanks. Is that why i am getting the errors? because of some of the pngs?
I really want to learn this stuff but its hards to find a good tutorial.
Anyways thanks for looking into this
Click to expand...
Click to collapse
simply u have to add 1 pixel all around the image, by an other word u have to know how to use Photoshop
here u r
ur file is fixed, trans.LS and ready
http://www.multiupload.com/L2LBGBUOYJ
hi . please help me .. how can i edit .xml file and open it ...
victor711 said:
hi . please help me .. how can i edit .xml file and open it ...
Click to expand...
Click to collapse
use notepad++
victor711 said:
hi . please help me .. how can i edit .xml file and open it ...
Click to expand...
Click to collapse
You gotta decompile it first or else you wont be able to read it.
OP
Can you help me make one for miui? I changed roms so I didn't get a chance to try out the apk you made for me. Now I am on miui
Sent from my SGH-I777 using xda premium
jgrimberg1979 said:
You gotta decompile it first or else you wont be able to read it.
OP
Can you help me make one for miui? I changed roms so I didn't get a chance to try out the apk you made for me. Now I am on miui
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
u had better to tell me earlier that u gonna change ur rom
I spent 2 hrs on that !!
sorry , can't help any more !
juffo said:
u had better to tell me earlier that u gonna change ur rom
I spent 2 hrs on that !!
sorry , can't help any more !
Click to expand...
Click to collapse
I am so sorry man, my bad. I tried editing myself after you said it would take a day or two and i was in a bootloop without a backup. Sorry man. I will throw a donation your way espcially if you can make one for miui.
jgrimberg1979 said:
I am so sorry man, my bad. I tried editing myself after you said it would take a day or two and i was in a bootloop without a backup. Sorry man. I will throw a donation your way espcially if you can make one for miui.
Click to expand...
Click to collapse
it is ok ,, but i cant do miui thing, bqz i dont have it and also i am not sure if its source is the same as like as sam stock ROM
sorry again
juffo said:
it is ok ,, but i cant do miui thing, bqz i dont have it and also i am not sure if its source is the same as like as sam stock ROM
sorry again
Click to expand...
Click to collapse
When i get back on a stock rom, and i try to make this mod tell me if i am correct.
1. Decompile on framework-res
2. Go in Drawable-HDPI delete and copy next zzzz***
3. Go in to Drawable and edit .xml to 00000**
4. Compile with APK manager
5. Hit yes when prompted if it is a system apk
6. yes or no? when it asks if i want to copy over additional files that i didnt modify from original apk in order to insure lease # of errors?
7. i if i hit yes do i delete the two files i changed and also delete resources.arsc?
8. Do i need to sign it?
Also what should the compression be set at in apk manager? My is set at 9. heap size is 64mb.
If you could give me some feedback on this i might be able to get it working on my own, hopefully
jgrimberg1979 said:
When i get back on a stock rom, and i try to make this mod tell me if i am correct.
1. Decompile on framework-res
2. Go in Drawable-HDPI delete and copy next zzzz***
3. Go in to Drawable and edit .xml to 00000**
4. Compile with APK manager
5. Hit yes when prompted if it is a system apk
6. yes or no? when it asks if i want to copy over additional files that i didnt modify from original apk in order to insure lease # of errors?
7. i if i hit yes do i delete the two files i changed and also delete resources.arsc?
8. Do i need to sign it?
Also what should the compression be set at in apk manager? My is set at 9. heap size is 64mb.
If you could give me some feedback on this i might be able to get it working on my own, hopefully
Click to expand...
Click to collapse
1. Decompile on framework-res
2. Go in Drawable-HDPI delete and copy next zzzz***.JPG to zzzz.***png
3. Go in to LAYOUT and edit .xml to 00000**
4. Compile with APK manager
5. Hit yes when prompted if it is a system apk
6. yes when it asks if i want to copy over additional files that i didnt modify from original apk in order to insure lease # of errors?
7. i if i hit yes do i delete the two files i changed and also delete resources.arsc?
yes. delete resources.arsc,zzzz***.jpg and ****.xml
8. Do i need to sign it?
NO
Also what should the compression be set at in apk manager? My is set at 9. heap size is 64mb.
compress to 0
so the options will be (22-Framework-res#-19-0-11)
i hope it is helpfull
juffo said:
1. Decompile on framework-res
2. Go in Drawable-HDPI delete and copy next zzzz***.JPG to zzzz.***png
3. Go in to LAYOUT and edit .xml to 00000**
4. Compile with APK manager
5. Hit yes when prompted if it is a system apk
6. yes when it asks if i want to copy over additional files that i didnt modify from original apk in order to insure lease # of errors?
7. i if i hit yes do i delete the two files i changed and also delete resources.arsc?
yes. delete resources.arsc,zzzz***.jpg and ****.xml
8. Do i need to sign it?
NO
Also what should the compression be set at in apk manager? My is set at 9. heap size is 64mb.
compress to 0
so the options will be (22-Framework-res#-19-0-11)
i hope it is helpfull
Click to expand...
Click to collapse
oh ****. i never changed it to png because i thought it was just going to replace the jpg in there.. So what does changing it to png do?

[TUT] Convert .smali to .java "source"

Have you ever opened up a .smali and just starting bawling your eyes out? Of course you have - .smali code is a mess. Even with software that provides syntax highlighting, its nothing but CONST_V4 for at least eight million lines. The goal of this tut is NOT to produce editable source code. That is why "source" in the title is in quotes. What this can help with though, is translating .smali into a .java file, which is easier to read. You can then track down what you are trying to edit in the .java file, then have a better idea of where and what you are editing in the .smali file.
Lets get a few things straight right now before we begin to play
This TUT assumes you already know how to decompile a .apk and extract a .dex file​
Read THE WHOLE POST. There will be a wall of shame for questions asked answered here.
It is illegal to decompile TW source code, try to edit it, and recompile it as though it was your own.
You will most certainly fail if you attempt to recompile this code. It is NOT true Java source, but is the decompiler's best guess at what it might be.
IF by some MIRACLE of whatever god you pray to allows the "source code" to compile, you WILL experience bugs.
I AM IN NO WAY, SHAPE, OR FORM responsible for what you do with this Tutorial. If you manage to in some way damage your phone, or if you get into legal trouble doing this, I WILL POINT AND LAUGH AT YOU, and that is the end of the conversation.
Dogs are better than cats - I can speak with authority on this - I own one of each, and love them both. But dogs rule and cats drool.
I am not a developer. This is a set of tools I use because quite frankly, I am no coder yet. It makes my life easier trying to track things down, and I figured I might as well share this with everyone.
I did not create the tools in this Tut. I found them and put them to good use. The original location of every file is linked in this post.
Now for the main event​
You will need a specific set of tools. I am posting links to the tools here so you may read more about them, HOWEVER, at the bottom of this post I will have a zipped up toolkit that has all of it included. The tools are:
dex2jar
Java Decompiler
Notepad++
Some Common Sense
We will be using SystemUI.apk for this specific tutorial. That doesn't really matter at all, as this should work with any .apk.
Step 1 : Extract your .dex file:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 2: Using dex2jar, convert your .dex file into a .jar file. To do this, simply drag your .dex over:
You have now created your .jar file.
Step 3: Now, drag the .jar over to your jar decompiler:
This is what the result should look like:
Now, if you wanted to stop at this step, you absolutely can. From here, you can manually poke around inside the java files to find what you are looking for. BUT, that is not what I am here for. I am here to make your lives EVEN EASIER. Go get yourself a taco, and meet me here after the break.
Break time's over. Back to work!
Step 4: We now need to extract the .java files from this program. To do so, go to file/save all sources:
I would recommend saving that file as the name of the .apk you are working with:
Step 5: Extract that zip file you just created to its own archive, and then crack open the archive. You can now view your .java files in NotePad++. Here is the same file presented side by side; one is .smali, the other is .java. You can clearly see how things line up, and how much easier it is track things down in the smali:
Now for the final step to, and to bring it all home. Notepad++ has an incredible feature called Find In Files. So, lets say you are trying to find the color of a certain piece of text that is only declared in smali (or, ya know, whatever else it is you may wish to be screwing with), you can use find in files to select a folder, and then search for code:
I hope this has helped you; if it has, give that little thanks button a click. I also hope you have a good sense of humor about cats and dogs, and that you know how to enjoy a taco.
And now for the toolkit. By clicking show content you agree that you have read through both this and the Q&A, and that you agree to go on the Wall of Shame if you force my hand.
SmaliToJavaTutToolkit
PEACE!!!
This document may come in handy:
Q&A
As I get LEGITIMATE questions, I will answer them, and copy them here into one hub so you don't have to search through the whole thread.
Wall of Shame
If you ask a question that is already answered in the Original Post or in the Q&A section, I will post it here, for all to see, mock, and ridicule. It will be fun for me. YOU HAVE BEEN WARNED!
hello again, i forgot about it how do you convert it back to smali after editing?
I think we have our first wall of shame post!
Pretty sure you mentioned something about this in the op.
That's right, you did! In the OP!
"You will most certainly fail if you attempt to recompile this code. It is NOT true Java source, but is the decompiler's best guess at what it might be.
IF by some MIRACLE of whatever god you pray to allows the "source code" to compile, you WILL experience bugs."
Click to expand...
Click to collapse
Looks pretty sweet bro. Nice tut. I know I'm going to use this as a reference.
Sent from my SPH-L720 using xda premium
What is this for? Lol just kidding. Thank you do much for the tutorial!
Sent from my SPH-L900 using Tapatalk 2
Nice tutorial with pics! I thought it was kind of a given that people knew about this. Now if only the JD-GUI would decompile all of the source pieces in various files. Some you have no choice but to dig through smali.
digiblur said:
Nice tutorial with pics! I thought it was kind of a given that people knew about this. Now if only the JD-GUI would decompile all of the source pieces in various files. Some you have no choice but to dig through smali.
Click to expand...
Click to collapse
I managed to stumble into this one all on my own. I have always had a hard time with SMALI code. I can get into the xmls and do whatever I need to, and I can at least read java. It would be handy if it broke it down further, but at least its something to make more sense of what the smali is telling me.
Intentioal wall of shame (;
Can I decompile tw modify it and recompile?
Jk anyways nice tutorial. I absolutely love the simple steps. Years ago when I first tried this without knowing a thing about where to begin the tutorials were overly complex and vague.
Sent from my SPH-L900 using xda premium
ac16313 said:
Intentioal wall of shame (;
Can I decompile tw modify it and recompile?
Jk anyways nice tutorial. I absolutely love the simple steps. Years ago when I first tried this without knowing a thing about where to begin the tutorials were overly complex and vague.
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
OMG That's the best thread on the XDA
Can't convert .dex file into .jar file
burakgon said:
OMG That's the best thread on the XDA
Click to expand...
Click to collapse
Thank you so much for this TUT!
I have a problem with convert .dex file into .jar file. I drag the .dex file over the d2j-dex2jar.bat but nothing happen
Help me, please.
xxxb said:
Thank you so much for this TUT!
I have a problem with convert .dex file into .jar file. I drag the .dex file over the d2j-dex2jar.bat but nothing happen
Help me, please.
Click to expand...
Click to collapse
Oh wow, totally missed this post. Sorry man. Still trying to figure this out?
So, @forumber2 made a sweet little tool to do this for you.: http://forum.xda-developers.com/showthread.php?p=46457301#post46457301
Supper Rocks
absolutely amazing.
thank you very much
i have collected all informations tools and tested them to compile, decompile, edit, sign and your information to edit dex file to edit apk.
now all i have to do is to learn java programming, and i will start to download some video tutorial, that is much better than i ask people to help me out on how to do that and that, because lots time i come home with empty handed, but will learn java for sure, not just because editing apk, because i am interested in after effects and 3d animation software also website designer, so its a tools that will help me to survive.
thank you again MR.
how to convert
hello again, i forgot about it how do you convert it back to smali after editing?
thank you.
Wall Of Shame Nomination!
zindu said:
hello again, i forgot about it how do you convert it back to smali after editing?
thank you.
Click to expand...
Click to collapse
I think we have our first wall of shame post!
Pretty sure you mentioned something about this in the op.
That's right, you did! In the OP!
"You will most certainly fail if you attempt to recompile this code. It is NOT true Java source, but is the decompiler's best guess at what it might be.
IF by some MIRACLE of whatever god you pray to allows the "source code" to compile, you WILL experience bugs."
recompile java to .dex
I think we have our first wall of shame post!
Pretty sure you mentioned something about this in the op.
That's right, you did! In the OP!
"You will most certainly fail if you attempt to recompile this code. It is NOT true Java source, but is the decompiler's best guess at what it might be.
IF by some MIRACLE of whatever god you pray to allows the "source code" to compile, you WILL experience bugs.
I did start to learn some java codding, but it takes long time to learn, i am busy for this month but will continue to learn.
i believe in about 6 months i will know general information and move my head around java syntax and formulas.
what i am thinking is, i do not care if i can not convert it back because if i learn basic java and build apk, then i think it will be very easy to use decompiled apk resources as a source, what i mean is;
to rebuild apk to match my desire, then i be able to recompile it again, but it is all about programming, the only things is how files and commands are working and related to each other, that is why i am trying to learn java programming, i know its hard but i am trying.
---------- Post added at 01:02 AM ---------- Previous post was at 12:56 AM ----------
So it is easy to rebuild apk using and modifying existing code but first i have to learn a programming language.
xxxb said:
Thank you so much for this TUT!
I have a problem with convert .dex file into .jar file. I drag the .dex file over the d2j-dex2jar.bat but nothing happen
Help me, please.
Click to expand...
Click to collapse
check this folder "C:\Documents and Settings\<your windows username>"
Is there any java decompiler app for android i have decompiled my apk but i want a java file i dont have a pc
Sent from my GT-S6802 using Tapatalk 2
help
cant we directly decompile .smali files to .java source code????
if yes then please help....
I am currently writing an eclipse plugin that can read smali source files and replace the variable names in the corresponding java files.
This makes the work much easier.
It is currently in an alpha phase so come, try and improve please.
Github: https://github.com/Flamefire/ImportSmaliVarNames

[TUTORIAL] Theming [05/10/13]

Hi guys....
In this thread I'll try to learn you HOW TO MOD framework, settings (backgrounds, icons, colors) and how to use APKtool.
update 05/10/2013 !!!
O.K guys I found for you few excellent guides and tutorials.
Like always, post your questions here and we'll try to solve it together.
Update Zip creator/modifier
Great tool on windows to create and edit elements of updates zips
ADW Themes
If you want to create AWD themes - great tutorial...
I've got many PM from guys who want to theme their apps but dont't know where to look and what to modified so....read this.
this is a excellent way to find out where to look and what to edit.
Wanna learn more about XML files?
Well , here we go...
What is an XML?
Wikipedia link to learn and understand general things and facts about XML files.
you will need:
1) A computer
2) The app you want to edit
3) Latest Java Development Kit (JDK) (Download and Install with default settings Java
4) Notepad++ Notepad++
5) The Framework-res.apk and SemcGenericResUxp.apk from /system/framework
6) ZipSigner (for signe your apps) ZipSigner
So let's start...
Download APKtool from here Click me
Copy/extract APKtool to C:\Android\APK
Copy framework-res.apk and SemcGenericResUxp.apk from your system/framework folder to C:\Android\APK
and follow this tutorial to set your environment so we could proceed "Click me"
So, you set environment and we could proced ; (you'll have to do that from above only one time )
*** FIRST ONE ***
1. How to change settings background to white (or to use light theme - to be precise):
We'll start with this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And end with this:
First copy settings.apk to C:\Android\APK
open cmd prompt ("SHIFT"+right click on empty space and select open command window here
...and write this to decompile settings.apk
apktool d settings.apk
Close cmd window and open newly created folder "settings" (it's in the C:\Android\APK)
Open \settings\res\values\styles.xml (open it with Notepad++)
You'll see this :
So..we have to add ".Light" to our style.xml file(to activate/select white theme) and we MUST change color to our fonts/text
to white (I guess it would be hard to read white text on white backgroung).
We will add ".Light" in every theme style and add ff000000 to set our text to black.
For example - on the left side is black settings and on the right is what we need - compare those two styles.xml.
You'll notice that I add word ".Light" to change this part/style to use light/white theme - we'll do that for every style in this file.
And the most important is third line on selected text - #ff000000.
With "#ff000000" we are telling our device to use black colour for text.
It's not hard at all....just continue to read.
You'll get all when you compare your style.xml to this one:
Here is complete style.xml , download it and compare this one with yours.
Just open both files and add ".Light" and "#ff000000" to every stile you see I've change.
https://app.box.com/s/ezd4k68li6g6f1mqp8u2
After you change all style in style.xml it's time for recompiling.
Again, open cmd prompt ("SHIFT"+right click) and write :
apktool b settings (without ".apk")
If you did all like you should you won't get any error.
Now open c:\Android\APK\dist
and you'll see settings.apk.
Copy it to your device
Wait......
It's not finished
As settings.apk is system app we have to sign it.
Open ZipSigner on your device and :
1.click "Choose In/Out...." - find and select your settings.apk (the one you just copied)
2.click "Key/mode": select "platform"
3.click "Sign The File"
........wait......
...and that's it, now just find your newly MODed and signed file and simple install it like any other app.
Next tutorial : how to change solid background colour to show your picture (any picture) in "calls" "email" "settings" clock" - MOD framework-res.apk....
Something like this:
Or even this...hahaha
update 05/10/2013 !!!
edit .9.png file correctly!
Remember, decompile apk and then edit .9.png files!
If you open the .9.png in the decompiled app and edit it with "Gimp" or "Photoshop" while leaving the pre-drawn boarder there, you'll be able to recompile the apk with a properly edited and themed .9png
How to edit smali files!
This is for advanced users or developers.
I'm still learning and trying to understand smali files so I won't trying to get smart ...
I'll share one great thread (TUTORIAL) and we could learn together.
tnx to @Yorzua for this awesome tutorial.
...and do awesome things like this :
SMALI editing TUTORIAL
Another nice tutorial for smali editing (beginners friendly)
SMALI editing TUTORIAL for beginners
I put this to the end of this thread purposely - editing or even understanding smali files isn't simple.
So go one step by step, don't try to edit smali files immediately after you learned how to decompile apk file - you'll failed and probably quit from any other MODing, theming or editing.
All great developers spent hours and hours to learn all this so you can't expect you'll know everything after 15min.
You'll get errors while compiling and decompiling and that"s perfectly normal, don't get angry...
Read what apktool "said" , fix your mistakes and move on.
It's very important to go step by step , especially when you trying to find bug.
Fix or edit line by line and compile after each part, compile and test app.
That's all for now guys...
see ya later
..............................................................
Tnx to: @niaboc79 (for tips and learning me some tricks) @abo hani (I used his settings.apk for screenshots) @Xda For many stuff
If I helped you - say tnx ...:thumbup:
if you need help...well just ask here
nice funky
GoodJob Funky
Tnx guys
Thanks guys...
It's not much and I hope you could understand what I wrote.
I just wanna give back something to this great community which gave me so much
Really nice tut
Just, please, guys when someone finish editing - let me know is it o.k, should I add something or you completed all without any problems
Tnx
Sent from my LT26i using Tapatalk 4
thanks very much for this easy tutorial, and yeah, it was way easier than others that i saw in some threads....
im bookmarking ur thread for now, and sure one day i'll be back and start up with practice
i love to mess around with the phone as i learned few things until i reach the level of an DEV (why not )
:good:
Tonight I'll post a tutorial for framework editing.
[HOW TO] change all backgrounds to your favourite picture.
In settings, email, clock, call....
Your background will stay there which ever settings or clock you using, you can change your settings.apk but your background will stay...
(as long as you don't change framework).
See ya tonight
Sent from my LT26i using Tapatalk 4
Actually.. Mate, when r u releasing ur work?? I'm looking for a bug free build of Honami settings.. Tried all of em in Themes secion.. Apparently they all have the stuttering when sliding for the fist time(just like in .200 and .211 builds).. Do urs too have it??
Hmm....mine work?
My work, for now , is helping guys in their ROMs.
I don't know that much to BUILD ROM from the sources.
So the question is do we really need one more rom based on stock 96?
I think we don't.
When I learn all stuff I need (and there's plenty stuff to learn - smali for example) I will build something.
But that won't be (most likely) for XS but for Z1.
Swipe settings, modified Home launcher will have all options like we saw in 2.0.5b.
Modified framework and many stuff more.
That's why I prepare everything.
I just don't wanna release clone of a clone...
If I can't make something really different I'll rather skip it for now.
Sent from my LT26i using Tapatalk 4
@funky0308, mate i've just learned how to use apktool and how to decompile and recompile apk, so can you post your " Next tutorial : how to change solid background colour to show your picture" hahaha thanks mate!
EDIT: or can you post a tutorial on how to make a transparent background on all of the apps. hehe ^____^
slink722 said:
@funky0308, mate i've just learned how to use apktool and how to decompile and recompile apk, so can you post your " Next tutorial : how to change solid background colour to show your picture" hahaha thanks mate!
EDIT: or can you post a tutorial on how to make a transparent background on all of the apps. hehe ^____^
Click to expand...
Click to collapse
I was planning to release it but it's almost impossible to genaralise tutorual because we have millions of framework.
I'll write one for stock firmware.
Sent from my LT26i using Tapatalk 4
funky0308 said:
I was planning to release it but it's almost impossible to genaralise tutorual because we have millions of framework.
I'll write one for stock firmware.
Sent from my LT26i using Tapatalk 4
Click to expand...
Click to collapse
haha. ok ok. thanks you again. i understand. im so excited about ur new rom. any changelogs already? haha. gudlak!
slink722 said:
haha. ok ok. thanks you again. i understand. im so excited about ur new rom. any changelogs already? haha. gudlak!
Click to expand...
Click to collapse
There is no my new ROM guys...
If you heard somewhere something you could only heard that I helped some guys.
There was some plans but as I said - nothing for now.
No sense to release same ROM or copy of the copy...
If I succeed on some things I'm working on - then I'll release something but only if I succeed.
Sent from my LT26i using Tapatalk 4
@funky0308 Im Studying Java and Smali.. I Know maybe 6% Already.. Buy suggestion on your case, if you want to port or to be themer. use Virotus Ten studio. It Can Generate the smali to java class. but you need to edit it on smali.
Tnx mate, very nice
Sent from my LT26i using Tapatalk 4
funky0308 said:
Tnx mate, very nice
Sent from my LT26i using Tapatalk 4
Click to expand...
Click to collapse
Mate? Im Getting Dizzyy. could you help me Changing it to white? my Settings// Im getting Crazy with my developments. Kernels + ROM.. Could you help me on my white? Setting
---------- Post added at 02:24 PM ---------- Previous post was at 02:21 PM ----------
Nvm.. Im Done.
How you change wifi and bluetooth on off switch????
Which file i need to edit to remove on and off in round switch
Sent from my ST21i2 using xda premium
I want to edit on off switch like you
Help me
AND also how to choose different backround color for on off switch
Sent from my ST21i2 using xda premium
Hello sir plz help me to port ios like on/off switch
I ported by editing framework-res.apk
And i have a problem
1.how to remove on off in round switch
2.how to change backround colour
To red
And how to resize it to correct round shape and small one
Sent from my ST21i2 using xda premium

[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme

Create your own Xperia™ Theme
[Now no need to wait for new themes to come up. Have a look/colour in your mind? Want to have a special theme for yourself? Then why to be dependent upon others? Do it all by yourself with the help of my guide.]
Hello,
I made this guide because there was no official documentation or how to about this. I have gone through the official themes + few other themes from market and got the idea from them.
I have myself tested this guide before posting so its 100% working. I have Stock Xperia Google Android 4.3.
If you just want to change System Accent Colours and/or App BG, Navigation Bar BG, etc. then try this Xposed Module of mine.
Xperia Themes - Xposed Module
​
Note :
Code:
At the time of writing this guide I assume that you have a basic knowledge of Android Developers Tool[ADT]. I also assume that you are familiar with Android apps and their development process.
What things you gonna need to follow my tutorial :
A computer / laptop [seriously speaking it's one of the most important thing lol. ]
Java installed and added to environment path[if you are windows user like me]
ADT + Eclipse [I recommend ADT bundle]
Theme files [check attachment for these]
My guide for sure.
Time and Brain.
FOR FAQ'S PLEASE READ POST #3 BEFORE ASKING THE ALREADY ANSWERED QUESTIONS AGAIN.
The guide / tutorial starts now :
PART ONE : CREATE XPERIA THEME, CHANGE SYSTEM COLOURS.
Start/open ADT
Go to File > New > Android Application Project
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Give your desired name to the Theme, The Android Application Project.
Give your desired package name to the app.
Set Minimum Android Requirement to Android Jelly Bean 4.3 and Maximum to Android Kitkat 4.4/4.4.2
In the next screen un-tick the option to add app icon and Activity
Choose the workspace folder else tick to set the default one.
Now open AndroidManifest.xml and add this Permission :
Code:
<uses-permission android:name="com.sonymobile.permission.RUNTIME_SKIN" />
Now replace the <Application ...></application> Node with this code :
Code:
<application
android:label="@string/semc_theme_title"
android:icon="@drawable/semc_theme_lockscreen_wallpaper"
android:allowBackup="false">
<uses-library android:name="com.sonymobile.runtimeskinning" />
<meta-data
android:name="com.sonymobile.runtimeskinning.core.image_wallpaper"
android:resource="@drawable/semc_theme_wallpaper" />
<meta-data
android:name="com.sonymobile.runtimeskinning.core.lockscreen_background"
android:resource="@drawable/semc_theme_lockscreen_wallpaper" />
</application>
Please note : You may change the theme icon.
Now just after
Code:
<uses-permission android:name="com.sonymobile.permission.RUNTIME_SKIN" />
Add this block of code :
Code:
<runtime-skin version="1">
<asset path="android.zip" target="android">
<laf-version-filter from="1" to="1" />
</asset>
<asset path="com.sonyericsson.uxp.zip" target="com.sonyericsson.uxp">
<laf-version-filter from="1" to="1" />
</asset>
</runtime-skin>
Please note : You will need to push android.zip & com.sonyericsson.uxp.zip files with all theme resources to the asset folder.[You can find these two in attachments]
Note :You can add asset reference for more apps as you extend the theming support.
For Example you can add this to add support for theming SystemUI.apk :
Code:
<asset path="com.android.systemui.zip" target="com.android.systemui">
<laf-version-filter from="1" to="1" />
</asset>
Also note that you will need to push com.android.systemui.zip file with all theme resources to the asset folder.
Now save AndroidManifest.xml
You will get errors. Nothing to worry. Its known and easy to fix.
Open themeProject > values > strings.xml
Change
Code:
<string name="[COLOR=Red]app_name[/COLOR]">Pink</string>
To
Code:
<string name="[COLOR=Red]semc_theme_title[/COLOR]">Pink</string>
Save and close the file.
Now Reopen AndroidManifest.xml
Left Click in between the texts underlined with red, then Right Click and press "Quick Fix" in the pop-up menu. Then You will see a new pop-up menu as in the pic below. Then click on "Disable Check in This Project"
To correct the errors in Application node move Wallpaper and icon pictures to drawable-xxdpi according to your need.
Now download "XperiaThemesApktoolbySArnab©®" zip file from the attachments below and extract it at your desired location.
I specially made this Apktool set folder for Xperia™ Themes.
Inside the extracted folder you will find Apktool files for Windows OS[Linux and MAC users you need to replace Windows specific files with your OS's files.] along with Xperia™ Apps specific folders for making Xperia™ Themes.
All you need to do is add assets to this folders and use provided Apktool to recompile them. They will be automatically get compiled as .zip file instead of .apk file as .zip file is needed for Xperia™ Themes.
In android folder :
You need move theme png resources if you want to change the look, into respective drawable folders.
FOR THIS FOLLOW THE PART TWO OF THE GUIDE IN POST #2
In com.sonyericsson.uxp folder :
You need to edit res > values > colors.xml as per your theme colour preference.
Now when you think you are ready to create the theme use Apktool[Or your desired tool] to recompile android, com.sonyericsson.uxp and all other app specific folders from "XperiaThemesApktoolbySArnab©®".
[*]Now Move all the zip files from specific folders to the assets folder of your project.
[/LIST]
When everything is set your theme project tree should be like this to great extent.
Test the theme through Eclipse else export by signing and share your masterpiece with others.
GUYS AM ATTACHING MY THEME SOURCE SO THAT YOU ALL CAN GO THROUGH THAT IF YOU FELL INTO SOME PROBLEM.
PLEASE RATE THE THREAD WITH 5 STARS IF YOU THINK MY GUIDE IS HELPFUL.
ALSO CLICK ON TIP US SO THAT THIS GUIDE CAN COME UP ON XDA PORTAL.
ADD A LINK TO THIS THREAD IN YOUR SIGNATURE TO EXTEND THE NEWS OF THIS THREAD AND ALSO TO SHOW YOUR SUPPORT.
THANK-YOU.
Update 1 : I have updated the guide at places where users were having problem following it.
I have also added special Xperia Themes ready apktool folder with app specific folders to make it easier to create Xperia Themes.
CREDITS :
@funky0308 [IT WAS HE WHO GAVE ME THE IDEA TO EDIT ASSETS FILES THROUGH HIS GUIDE OF EDITING XPERIA THEMES]
SONY FOR THIS AWESOME OPTION TO THEME OUR MOBILE. @SArnab©® [THAT'S ME] FOR CREATING THIS WHOLE GUIDE.
Adding Image and drawable resources into your Xperia theme.
PART TWO : ADDING DRAWABLE PNGS AND JPEGS TO YOUR XPERIA THEME.
THIS PART OF MY GUIDE WILL HELP YOU IN ADDING IMAGES TO YOUR THEME TO CHANGE THE LOOK TO THE GREATEST POSSIBLE WAY.
BEFORE I START, I WANT YOU ALL TO KNOW ONE SIMPLE THING. IN THIS GUIDE HERE I WILL BE SHOWING YOU HOW TO ADD THEMED IMAGES IN FRAMEWORK APK. THE SAME PROCEDURE WORKS FOR XPERIA HOME AND SYSTEM-UI APK. SO PLEASE DO NOT ASK SILLY QUESTIONS AS HOW TO THEME STATUS-BAR ICONS AND ETC. , ETC.
FOLLOW UP FROM HERE AND SOON YOU WILL BE MAKING PROFESSIONAL THEMES ON YOUR OWN.
STEPS :
De-compile "framework-res.apk"
Open up framework-res/res/drawable-hdpi/ [Or whatever dpi your device supports]
NOTE : HERE I WILL SHOW YOU HOW TO CHANGE :
APPS BACKGROUND
VOLUME BAR SCRUBBER
You can replace any drawable present in this folder. But we are going to change the background images only for this time.
If you go down you will find two pngs named : "semc_bg" & "semc_bg_light". These are the Pngs that we need to replace to replace the App's background.
Now download/create/paint or do whatever you want and get hands on two different pngs, one for Dark Theme [ Like Settings in Android 4.1.x/4.2.x in Sony ] and another for Light Theme [ Like Settings in Android 4.3 in Sony ] and rename them to "semc_bg" & "semc_bg_light" respectively.
Move the two newly renamed pngs to the respective drawable-xxdpi folder of the android folder that you had previously downloaded from the above post : apktool/android/drawable-hdpi/here
NOTE : YOU NEED TO PLACE ALL YOUR DESIRED IMAGES INTO RESPECTIVE DRAWABLE-FOLDERS.
Now you need to do the same thing to theme Scrubbers.
Once you are ready with all the pngs continue with rest of the guide in post #1.
FAQ'S :
Q. HOW TO THEME SYATEMUI?
ANS. FOLLOW THESE STEPS :
Download and extract "XperiaThemesApktoolbySArnab©®" zip file from the attachments in 1st post [You don't need to do it again if you have already done so while following Post #1.].
Open com.android.systemui folder.
Add your desired resources in res/drawable-yourdevicedpifolder.
If you want to change colour then add values folder inside res folder. Create colors.xml file and add color code.
Recompile and copy paste the newly created .zip file from "XperiaThemesApktoolbySArnab©®/com.android.systemui/dist/here" to the assets folder of your Theme Project.
Q. HOW TO THEME ANY OTHER SYSTEM APP?
ANS. FOLLOW THE ABOVE STEPS WITH FEW CHANGES SUCH AS :
I have added options to theme other system apps in my new attachment named "XperiaThemesApktoolbySArnab©®.zip" in 1st post.
Q. HOW TO ADD SUPPORT FOR DIFFERENT APPS THEMEING?
ANS. YOU CAN THEME ALL THE APPS INSTALLED IN YOUR DEVICE. TO DO THAT YOU NEED TO PERFORM 2 ACTIONS.
1. ADD THIS BLOCK OF CODE TO THE MANIFEST FILE SO THAT THE THEME MANAGER KNOWS WHICH APPS ARE SUPPORTED BY YOUR THEME APP :
Code:
<asset path="[COLOR="Red"]com.android.systemui.zip[/COLOR]" target="[COLOR="red"]com.android.systemui[/COLOR]">
<laf-version-filter from="1" to="1" />
</asset>
THE ABOVE CODE ADDS SUPPORT FOR SYSTEMUI THEMEING.
TO SUPPORT OTHER APPS JUST CHANGE THE TEXTS IN RED.
FOR EXAMPLE FOR SETTINGS APP :
Code:
<asset path="[COLOR="Red"]com.android.settings.zip[/COLOR]" target="[COLOR="red"]com.android.settings[/COLOR]">
<laf-version-filter from="1" to="1" />
</asset>
FOR THIS YOU NEED TO KNOW THE PACKAGE NAME OF THE APP YOU WANT TO THEME.
2. YOU NEED TO CREATE A APP.PACKGANE.NAME.ZIP FILE WITHH ALL THEME RESOURCES FOR THAT CONCERNED APP AND MOVE THE ZIP FILE TO ASSETS FOLDER OF YOUR PROJECT.
PLEASE NOTE THE NAME OF ZIP FILE MUST BE SAME AS STATED IN MANIFEST.
Well done bro
Going to try it asap
dipesh1502 said:
Well done bro
Going to try it asap
Click to expand...
Click to collapse
Sure, go forward and do share whatever you come up with.
I will update the guide very soon to show how to add resources and add more apps support.
Sent from my C2004 using Tapatalk

			
				
great one!!
nice
---------- Post added at 12:28 PM ---------- Previous post was at 12:23 PM ----------
SArnab©® , can u help me find a link for starting cm9/10 themes for galaxy devices ? am intrested in theming
Wow, THIS is a guide, many thanks for that. I downloaded the theme for my wife - she loves pink.
Awsm work arnab!! thanks for creating such a comprehensive guide.
nice guide
btw to be able to install theme do we still need root (superuser mod etc???)????
Sahaab said:
nice guide
btw to be able to install theme do we still need root (superuser mod etc???)????
Click to expand...
Click to collapse
No special requirements.
If your device supports third party theme downloading then the themes you make will also run easily.
Xperia M was not able to install any 3rd party themes.
Used theme fixer and now I can install any number of theme without superuser mod.
SArnab©® said:
No special requirements.
If your device supports third party theme downloading then the themes you make will also run easily.
Xperia M was not able to install any 3rd party themes.
Used theme fixer and now I can install any number of theme without superuser mod.
Click to expand...
Click to collapse
whats theme fixer??
Edit: oh ok found it, sorry
Edit 2: it looks like it needs root?
Edit 3: haha too many edits, and yep a post says root needed so still to no help :-/
Sahaab said:
whats theme fixer??
Edit: oh ok found it, sorry
Edit 2: it looks like it needs root?
Edit 3: haha too many edits, and yep a post says root needed so still to no help :-/
Click to expand...
Click to collapse
Yeah if your device is not able to install 3rd party themes by default then you need to root it and then enable theme installation.
This didnt really worked.
i used you're Pink theme source but when i only edited the colors from Pink to red nothing changed after applying the theme.
ofcourse i used a NON rooted Xperia phone so i couldnt logcat that .
the Android version used was 4.4.2 on a xperia z1.
SpaceCaker said:
This didnt really worked.
i used you're Pink theme source but when i only edited the colors from Pink to red nothing changed after applying the theme.
ofcourse i used a NON rooted Xperia phone so i couldnt logcat that .
the Android version used was 4.4.2 on a xperia z1.
Click to expand...
Click to collapse
Try the pink theme once if that works or not.
If not then provide me any stock theme of kk n I assure you to make it work for kk.
Sent from my C2004 using Tapatalk
SArnab©® said:
Try the pink theme once if that works or not.
If not then provide me any stock theme of kk n I assure you to make it work for kk.
Sent from my C2004 using Tapatalk
Click to expand...
Click to collapse
thanks will try
Sent from my S500 using xda app-developers app
More guides the better. :good:
That’s to take one’s hat off !!
This is definitely the kind of thread we want to see... Leaves us hungering for more knowledge!!!
Thank you!
Awesome
Awesome job. Tutorial is very good and helpful to everyone.
Kudos to OP and XDA. All the best!!! :good:
Great TUT mate...don't know how I didn't see it earlier but never mind.
Easy to follow and it's actually something new - not copy/past old TUT...
Great
?
Sent from my C6903 using Tapatalk

[MOD][TUT] Animated HOME Softkey In Nav Bar

This thread made the Portal! Woo!
https://www.xda-developers.com/animated-gif-home-button-android/
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(Thanks To @Tulsadiver for the above image)​
Want an animated HOME softkey in your navbar? Of course you do!
This is a relatively simple mod, which should work on any rom and any version of Android. Android P, with its gesture control navbar setup, is a different matter but I'll deal with that another time.
Follow the simple steps below to find out how to do this mod. Any problems, just let me know!
Step 1 - Decompile Your "SystemUI.apk"
The first thing you need to do is, as it says above, is to decompile your deodexed SystemUI.apk. I'm not going to tell you how to do that here, because there are already a lot of tutorials and guides for that on xda. There's also a lot of decompiling tools you can use. I personally recommend using Tickle My Android([url]https://forum.xda-developers.com/showthread.php?t=1633333[/URL]). It's fast, user-friendly, makes flashable ZIP's and rumour has it that the developer is devastatingly handsome..
If your rom isn't deodexed, this rom won't work. You have to deodex it first. By a strange coincidence, Tickle My Android can deodex roms too. What a clever developer they must be!
Once you've done this, move onto Step 2!
Step 2 - Add The Smali Files
Now we need to add the new smali files for this. However these aren't my files, somebody else made them so you'll need to get them from the attachment at the bottom of this post here: [url]https://forum.xda-developers.com/android/software-hacking/dev-custom-views-t3174519[/URL]
This code was written by @Morningstar and I can't take any credit for it. So you'll need to make sure you press the "Thanks" button at the bottom of his post. If you don't. this mod won't work!!
Extract the "SelfAnimatingImageView.smali" file from the ZIP and add it to your decompiled APK at "SystemUI.apk\smali\com\android\morningstar\". You'll need to make those folders if they're not there already.
Step 3 - Add The Image Files
In the second post in this thread, you'll find a few animations that I've put together for you to download. Just download the ZIP and add the PNG image files to the appropriate "drawable-?dpi" folder. Which folder you need to put them into depends on your particular phone.
If you don't like any of the animations on offer, you can make your own. All I've done is use Google Image Search to find some fun GIF's and online tools like EZGIF ([url]https://ezgif.com/split[/URL]) to turn the GIF into a collection of individual images.
Of course, you could always make your own images if you wanted..but I don't have the artistic ability for that!
If you are using your own animation, make sure you add the "transparent.png" file to your "drawable-?dpi" folder anyway. You'll need it in Step 5..
Step 4 - Edit The Drawable XML File
In the previous step, you put a collection of images into your decompiled APK to serve as your animation. Now you need an XML file that tells Android which files to use for your animation, as well as how quickly to cycle through them.
For this, go back to the ZIP you downloaded and copy the "frame_anim.xml" to your "res\drawable" folder. If you're using your own PNG files, you can still use this file or make your own.
The "frame_anim.xml" looks something like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="[url]http://schemas.android.com/apk/res/android">[/url]
<item android:duration="100" android:drawable="@drawable/frame_0" />
<item android:duration="100" android:drawable="@drawable/frame_1" />
<item android:duration="100" android:drawable="@drawable/frame_2" />
<item android:duration="100" android:drawable="@drawable/frame_3" />
</animation-list>
Each "item" line represents a different image. The "android:drawable" bit contains the name of the image being displayed the "android:duration" bit says how many milliseconds it's on display for."
If you're using your own animation, just add/delete/edit these lines as you need.
Don't forget to save when you're done!
Step 5 - Edit The Layout XML
We're nearly there, I promise! Just this one step left to do and we can start recompiling. This is the tricky one though - this is the part where we actually put our animation into the navbar, replacing the image for the HOME softkey.
What makes this extra difficult is that Google keep changing where the code we need to change is. In most roms, you'll find the code that controls the HOME softkey in "layout\navigation_bar.xml". In some modern roms, it might actually be in "layout\home.xml"!
So you'll need to do some detective work. You need to find which layout XML file contains a line that looks like this:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="center" android:id="@id/home_button" android:layout_width="0.0dip" android:layout_height="0.0dip" android:scaleType="center" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" />
Let me rearrange that to make it a bit easier to read..
Code:
<com.android.systemui.statusbar.policy.KeyButtonView
android:layout_gravity="center"
android:id="@id/home_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:contentDescription="@string/accessibility_home"
systemui:keyCode="3" />
See those references to "home" and that bit about "systemui:keyCode="3""? This is the line of code that displays the HOME softkey. Your code might not look exactly like that but it'll be close.
We can't make this display an animation, Android just isn't set up for it. So what we actually need to do is hide this HOME softkey, put a new one in the same place that's the same size but invisble, then put our animation underneath that. Sounds complicated, but all we need is a FrameLayout..
Code:
<FrameLayout android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="center" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/transparent" android:scaleType="center" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" />
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="center" android:id="@id/home_button" android:layout_width="0.0dip" android:layout_height="0.0dip" android:scaleType="center" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" />
<com.android.morningstar.SelfAnimatingImageView android:layout_gravity="center" android:id="@+id/frame_animation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/frame_anim" />
</FrameLayout>
Take a moment to look at that above code. You can see how three different things are piled on top of each other. When the app is running, you won't see that. All you'll see is your animated image where your HOME softkey is. Neat, no?
(For more about FrameLayouts and other XML tricks, you could do worse than check out my short guide here: [url]https://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816[/url])
So just replace your HOME softkey line of code with the code above. You may need to make some changes for your particular setup. Every rom is different.
Save and move onto the next step.
Step 6 - Recompile The Modded APK
This is it - the last stage. All you need to do now is recompile your SystemUI.apk file and put it back to your phone.
I recommend doing this in recovery as you'll need to wipe the Dalvik cache, otherwise the new smali won't be active.
I also recommend doing it in recovery because I always recommend DOING A BACKUP FIRST!!
Once you've done the above steps, you should now have an animated HOME softkey in your navbar. But, if you have any problems, just let me know and I'll see what I can do to help.
These are some of the animations that I've put together for this mod. If you like them, just download the appropriate ZIP file from the attachments and add them to your decompiled APK as I mentioned in the previous post.
If you don't like them, let me know what you would like and I'll see what I can do for you.
If you've made your own animation and you think others might enjoy it, let me know and I'll be more than happy to add it to this collection. Crediting you, of course.
If this mod proves popular, I'll see what other animations I can come up with. There aren't many right now and I hadn't really realised just how many of them are of Disney's Stitch...
BATMAN ICON -
- PIKACHU
MOVING TRIANGLE -
- UK FLAG (found at http://www.3dflagsplus.com/)
USA FLAG (found at http://www.3dflagsplus.com/) -
- INDIA FLAG (found at http://www.3dflagsplus.com/)
TABBY CAT -
- BLACK CAT
RYU (from Street Fighter) -
- STITCH EATING
STITCH WEARING A..ER..'HAT' -
- STITCH HULA DANCING​
Enjoy!
Congrats mate. . Great job as always.... [emoji106][emoji106][emoji106]
Sent from my SM-G955F using Tapatalk
Nice MOD.Keep It Up!
Awesome stuff sir
Is it possible to have oreo's animated home button in stock nougat rom?
I've added a few flag icons for people to try. There's a website that has loads of these, for lots of different countries. Definitely worth a look!
mlleemiles said:
Is it possible to have oreo's animated home button in stock nougat rom?
Click to expand...
Click to collapse
In theory, yes. We could use this mod and adjust the smali so the animation only runs when the home button is touched. That's a little beyond me, I'm more of a XML modder, but it's certainly a possibility.
Or we could take the relevant files from an Oreo rom and place them in your Nougat one. It'll involve a bit of work adjusting those files but, again, it's theoretically possible.
Amazing mod buddy..... Any idea on how to add menu key? I did add but doesnt get themed when nav bar is themed.
whalesplaho said:
Amazing mod buddy..... Any idea on how to add menu key? I did add but doesnt get themed when nav bar is themed.
Click to expand...
Click to collapse
You can manually add the menu key by adding a line with the relevant keyCode. @Rajeev did a very nice tutorial about doing this sort of thing a few years ago for the original Xperia Z.
But it's pretty unlikely that it'll be themed. Google have been moving away from the menu softkey since ICS. Apps are supposed to have a settings button in the Action Bar at the top of the screen now, or in a hamburger menu. The menu softkey doesn't really officially exist anymore.
If you've got a theme that has a resource in it for replacing the menu icon and it doesn't work, you'll need to speak to whoever created the theme to see if they have any ideas.
Ticklefish said:
I've added a few flag icons for people to try. There's a website that has loads of these, for lots of different countries. Definitely worth a look!
In theory, yes. We could use this mod and adjust the smali so the animation only runs when the home button is touched. That's a little beyond me, I'm more of a XML modder, but it's certainly a possibility.
Or we could take the relevant files from an Oreo rom and place them in your Nougat one. It'll involve a bit of work adjusting those files but, again, it's theoretically possible.
Click to expand...
Click to collapse
I tried, without success, which made me start a post in Z5 Compact forum: https://forum.xda-developers.com/z5-compact/help/request-animated-pixel-navbar-z5-compact-t3699417
Sadly no one is there to help..
Ticklefish said:
You can manually add the menu key by adding a line with the relevant keyCode. @Rajeev did a very nice tutorial about doing this sort of thing a few years ago for the original Xperia Z.
But it's pretty unlikely that it'll be themed. Google have been moving away from the menu softkey since ICS. Apps are supposed to have a settings button in the Action Bar at the top of the screen now, or in a hamburger menu. The menu softkey doesn't really officially exist anymore.
If you've got a theme that has a resource in it for replacing the menu icon and it doesn't work, you'll need to speak to whoever created the theme to see if they have any ideas.
Click to expand...
Click to collapse
Is this animation affect battery Life????
Definitely gonna attempt this on one of my throwaway phones.
Thanks mate for this awesome post. Can you please make some flashable zip or magisk module for the same for noobs like me?
CPU usage?
Hey man, the idea is awesome!!
Since you mentioned deodexed ROM is needed, I'm wondering whether Resurrection Remix Oreo(official build) lies in which category: odexed or deodexed??
Want to proceed with full knowledge, partial one is quite vulnerable...
Thanks buddy, for this amazing work!!
mlleemiles said:
I tried, without success, which made me start a post in Z5 Compact forum: https://forum.xda-developers.com/z5-compact/help/request-animated-pixel-navbar-z5-compact-t3699417
Sadly no one is there to help..
Click to expand...
Click to collapse
Looking into this, it seems you can't just take the code from the Pixel and put it into your rom as 7.0 doesn't have the required API's for this mod to work.
You could use the animated icon code from this thread but you will need to make the drawable images yourself. And work out how to edit the smali so the animation only starts when you press the icon.
Tricky but not impossible, I think.
@vjnexus said:
Is this animation affect battery Life????
Click to expand...
Click to collapse
Technically, yes. Having a moving icon will use more power than a stationary one.
It shouldn't consume much, though. The CPU isn't having to work very hard. But if you do find your battery going down too fast, just go back to your original SystemUI.apk.
dheeraj.radke said:
Thanks mate for this awesome post. Can you please make some flashable zip or magisk module for the same for noobs like me?
Click to expand...
Click to collapse
Flashable ZIP's wouldn't really work, sadly. Because every rom has a different SystemUI.apk with different XML, I would have to make a ZIP for every single one..
And Magisk is a bit beyond me, right now.
Give the mod a try. It's relatively simple and I'm always happy to help if you have trouble.
And, if you've made a backup, you always have a way to fix things if it doesn't work.
alreadyregistered said:
CPU usage?
Click to expand...
Click to collapse
A little, yes. Look at my reply a few lines up.
Sent from my Sony Xperia XA1 using XDA Labs
nishkhanna said:
Hey man, the idea is awesome!!
Since you mentioned deodexed ROM is needed, I'm wondering whether Resurrection Remix Oreo(official build) lies in which category: odexed or deodexed??
Want to proceed with full knowledge, partial one is quite vulnerable...
Thanks buddy, for this amazing work!!
Click to expand...
Click to collapse
I don't know, sorry. But I'd assume that a third-party rom, especially one made by modders for modders, would be deodexed.
If you have a SystemUI.odex or SystemUI.vdex in your SystemUI folder or subfolders then your rom is odexed and you'll need to deodex it to do this mod.
Sent from my Sony Xperia XA1 using XDA Labs
Will there be any serious probs if i messed up at one step or other in this guide?
jaspad1710 said:
Will there be any serious probs if i messed up at one step or other in this guide?
Click to expand...
Click to collapse
Nope. As long as you make a backup before putting your modified APK back on your phone, you'll be fine.
Ticklefish said:
You can manually add the menu key by adding a line with the relevant keyCode. @Rajeev did a very nice tutorial about doing this sort of thing a few years ago for the original Xperia Z.
But it's pretty unlikely that it'll be themed. Google have been moving away from the menu softkey since ICS. Apps are supposed to have a settings button in the Action Bar at the top of the screen now, or in a hamburger menu. The menu softkey doesn't really officially exist anymore.
If you've got a theme that has a resource in it for replacing the menu icon and it doesn't work, you'll need to speak to whoever created the theme to see if they have any ideas.
Click to expand...
Click to collapse
Thanks for tha clarification bro... I understand better now!

Categories

Resources