How can I rearrange the toggle on my Galaxy S Advance so you have this configuration?
EDIT:For those who would like to make this change, place here attached the file to be replaced in "/system/app"
Buon divertimento!
dnasalentino91 said:
How can I rearrange the toggle on my Galaxy S Advance so you have this configuration?
Click to expand...
Click to collapse
go to my mod here I have rearranged toggles you may like. Otherwise you need to decompile systemui.apk and in res/values edit the arrays.xml
bobfrantic said:
go to my mod here I have rearranged toggles you may like. Otherwise you need to decompile systemui.apk and in res/values edit the arrays.xml
Click to expand...
Click to collapse
In "res" I do not find "values"
There is only:
Code:
anim
color
drawable-hdpi
drawable-land
drawable-nodpi
drawable-port
drawable-sw360dp-hdpi
drawable-sw600dp
drawable-sw600dp-hdpi
drawable-sw720dp-hdpi
layout
layout-ar-IL
layout-iw
layout-land
layout-port
layout-sw600dp
layout-sw720dp
layout-sw800dp
menu
raw
xml
dnasalentino91 said:
In "res" I do not find "values"
There is only:
Code:
anim
color
drawable-hdpi
drawable-land
drawable-nodpi
drawable-port
drawable-sw360dp-hdpi
drawable-sw600dp
drawable-sw600dp-hdpi
drawable-sw720dp-hdpi
layout
layout-ar-IL
layout-iw
layout-land
layout-port
layout-sw600dp
layout-sw720dp
layout-sw800dp
menu
raw
xml
Click to expand...
Click to collapse
did you decompile your SystemUI.apk using apktool or any similar tool?
---------- Post added at 02:08 PM ---------- Previous post was at 02:06 PM ----------
After decompiling go to res > values folder... then open Arrays.xml with Notepad++ and take a look at "QuickSettingButtonAttribute"
Rearrange them to your preferences.... and below is mine:
Code:
<string-array name="QuickSettingButtonAttribute">
<item>Wifi</item>
<item>Bluetooth</item>
<item>MobileData</item>
<item>SilentMode</item>
<item>AutoRotate</item>
<item>Location</item>
<item>Sync</item>
<item>PowerSaving</item>
<item>AirplaneMode</item>
<item>DormantMode</item>
<item>AllShareCast</item>
<item>MultiWindow</item>
<item>DrivingMode</item>
</string-array>
Sami Kabir said:
did you decompile your SystemUI.apk using apktool or any similar tool?
---------- Post added at 02:08 PM ---------- Previous post was at 02:06 PM ----------
After decompiling go to res > values folder... then open Arrays.xml with Notepad++ and take a look at "QuickSettingButtonAttribute"
Rearrange them to your preferences.... and below is mine:
Code:
<string-array name="QuickSettingButtonAttribute">
<item>Wifi</item>
<item>Bluetooth</item>
<item>MobileData</item>
<item>SilentMode</item>
<item>AutoRotate</item>
<item>Location</item>
<item>Sync</item>
<item>PowerSaving</item>
<item>AirplaneMode</item>
<item>DormantMode</item>
<item>AllShareCast</item>
<item>MultiWindow</item>
<item>DrivingMode</item>
</string-array>
Click to expand...
Click to collapse
Thanks but I can not recompile the apk file ... I leave you a screenshot
dnasalentino91 said:
Thanks but I can not recompile the apk file ... I leave you a screenshot
Click to expand...
Click to collapse
Check whether you have java installed
Abhinandh Ajay said:
Check whether you have java installed
Click to expand...
Click to collapse
Of course! Java is installed..
dnasalentino91 said:
Of course! Java is installed..
Click to expand...
Click to collapse
Try using some other similar tool like "apk manager"
dnasalentino91 said:
Thanks but I can not recompile the apk file ... I leave you a screenshot
Click to expand...
Click to collapse
Did you do apktool if framework-res.apk?
Sent from my GT-I9070 using Tapatalk 4 Beta
KINGbabasula said:
Did you do apktool if framework-res.apk?
Sent from my GT-I9070 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Yes, I did: "I: Framework intalled to: C:\Users\Andrea\apktool\framework\1.apk"
I'm stuck at STEP 5 of this video: http://www.youtube.com/watch?v=iUtFgltT_ho
I am attaching the error that occurs when I'm going to recompile the apk.
dnasalentino91 said:
Yes, I did: "I: Framework intalled to: C:\Users\Andrea\apktool\framework\1.apk"
I'm stuck at STEP 5 of this video: http://www.youtube.com/watch?v=iUtFgltT_ho
I am attaching the error that occurs when I'm going to recompile the apk.
Click to expand...
Click to collapse
May not have the latest apk tool. When I get to my puter I 'll share that here...
Here you go, replace the files in apktool with these ones
View attachment apktoolcomplete.rar
hope it helps if so you know what to do hehe
Sent from my GT-I9070
Thanks bobfrantic :highfive:
After recompiling the file SystemUI.apk, I went to replace it and restarting the smartphone remains stuck at bootanimation How come? What went wrong?
dnasalentino91 said:
Thanks bobfrantic :highfive:
After recompiling the file SystemUI.apk, I went to replace it and restarting the smartphone remains stuck at bootanimation How come? What went wrong?
Click to expand...
Click to collapse
when you recompile, name it SystemUI1.apk then open the new one and original one both with 7zip and copy the META-INF and the AndroidManifest.xml from the original over to your new SystemUI1.apk and close 7zip. move the new one to your desktop and rename it to remove the 1 from the name then copy to your phone and push to system/apps and set permissons and reboot. should work then. it is boot looping due to not having it signed proper. Hope you have a back up of your system with twrp or cwm so you can restore how it was. good rule; back up, everything always I going bed, check how it goes tomorrow..
All resolved...thank you for everything! :good: :highfive: :laugh: :victory:
dnasalentino91 said:
All resolved...thank you for everything! :good: :highfive: :laugh: :victory:
Click to expand...
Click to collapse
happy to read that. If you want to know more about themeing systemui go to Themeing SystemUI Tutorial by joehanh88.
Related
thank to autoradio for astuce
Hello all there is tut for all want to add soft button to Rom
is simple
decompile [7zip] framework-res.apk..go to res\values\ ...
in values creat an txt file name it bools.txt open with text editor and add
Code:
<bool name="cm_default_is_tablet">true</bool>
<bool name="cm_default_has_soft_buttons">true</bool>
save and rename bools.txt to bools.xml now
add PNG on drawable-mdpi and resize it [ PNG soft button pic it from ics or web ]
rezip your framwork-res.apk [ winrar right clic save zip rename it change zip by .apk
that all
and enjoy soft button
if you dont have soft button add him on drawable-mdpi and resize it and add it to drawable-ldpi that all
PS : if you dont find values folder in your framwork-res.apk just creat new folder name it values and creat bools.xml in values folder
is this work for custom rom based on stock?
can you make it works?
tested on cm7 work now test it on stock rom and feed
To what size do we resize the soft buttons pictures?
And am guessing this would work on any device running cm7/cm9 right?
medicjunKie said:
To what size do we resize the soft buttons pictures?
And am guessing this would work on any device running cm7/cm9 right?
Click to expand...
Click to collapse
mdpi are sized to 76x76 for ldpi i have used 45x45 is perfect
medicjunKie said:
this would work on any device running cm7/cm9
Click to expand...
Click to collapse
tested on cm7 test on cm9 normaly work now feed and add it on thread for help avery one
How bout HDPI?
medicjunKie said:
How bout HDPI?
Click to expand...
Click to collapse
tree 112x112
Do I have to rename the PNG before resize? And how to resize?
After I add bools.xml, rezip, flash, my phone stucks on android logo
spawk said:
decompile [7zip] framework-res.apk..go to res\values\ ...
in values creat an txt file name it bools.txt open with text editor and add
Code:
<bool name="cm_default_is_tablet">true</bool>
<bool name="cm_default_has_soft_buttons">true</bool>
save and rename bools.txt to bools.xml now
Click to expand...
Click to collapse
Where is my credits man?
Inviato dal mio GT-S5570 con Tapatalk 2
where can I download the softbuttons png?
Using a zip software [7zip etc..] != decompiling.
if u dont see the values folder it's because u've not decompiled/decoded the apk but just extracted it.
need to use apktool.
Guys, just want to share. check my mods here:
http://forum.xda-developers.com/showthread.php?t=1649999
roofrider said:
Using a zip software [7zip etc..] != decompiling.
if u dont see the values folder it's because u've not decompiled/decoded the apk but just extracted it.
need to use apktool.
Click to expand...
Click to collapse
tested with apk tool and not find it but work after creat it
sorry. You're teaching an expert ppl make some difficulties for newbie as me to catch up. Can you guide for newbie as well.?
Tq
what if our rom (cm9) already has a bools.xml in res/values?
medicjunKie said:
what if our rom (cm9) already has a bools.xml in res/values?
Click to expand...
Click to collapse
bools.xml and value already existe in cm7 but with 7zip is nor find it but if you decompile with apk decompiler you find it
So what, do i delete it and create a new bools.xml?
Or do i just add the lines you mention in the bools.xml that's already there?
Fyi, i decompiles framework-res.apk with APKTool.
Sent from my LG-E739 using Tapatalk 2
medicjunKie said:
So what, do i delete it and create a new bools.xml?
Or do i just add the lines you mention in the bools.xml that's already there?
Fyi, i decompiles framework-res.apk with APKTool.
Sent from my LG-E739 using Tapatalk 2
Click to expand...
Click to collapse
yes if find it just add line creat it only if dont find it after extraction
where can i find res\values
exz8 said:
where can i find res\values
Click to expand...
Click to collapse
That's the directory lol
You find the folder values inside the folder res.
Make sure you decompile the apk.
Sent from my LG-E739 using Tapatalk 2
Can someone help me to mod the background color of MMS.apk like the picture in my attach file (From black to blue) ? or show me how to do it?? thanks everybody in advance
P/s: i uploaded my original MMS.apk as well
here you go
http://rootzwiki.com/topic/19845-how-to-theme-your-mms-a-step-by-step-guide/
MrDSL said:
here you go
http://rootzwiki.com/topic/19845-how-to-theme-your-mms-a-step-by-step-guide/
Click to expand...
Click to collapse
Thanks so much guy! But do u or any know what the problems with my notepad++ is ??
ghost_boy1412 said:
Thanks so much guy! But do u or any know what the problems with my notepad++ is ??
Click to expand...
Click to collapse
yeah
you have to decompile the apk first
otherwise you cant edit the xml files
use apktool or apk manager for that
take this version of apkmanager if you are on ics
http://forum.xda-developers.com/showthread.php?t=1642224
ghost_boy1412 said:
Thanks so much guy! But do u or any know what the problems with my notepad++ is ??
Click to expand...
Click to collapse
i guess you just unzipped the xml's not decompiled them
how to decompile apk's
pa.pn2 said:
yeah
you have to decompile the apk first
otherwise you cant edit the xml files
use apktool or apk manager for that
take this version of apkmanager if you are on ics
http://forum.xda-developers.com/showthread.php?t=1642224
Click to expand...
Click to collapse
picard666 said:
i guess you just unzipped the xml's not decompiled them
how to decompile apk's
Click to expand...
Click to collapse
Thanks so much guys I know what to do now
I have had some people asking how to get the Samsung Ripple Lockscreen working so I thought I would add a small guide here how to do it so it can be done to any JB Samsung based ROM for both 31XX and 51XX tab 2s as has been tested on both. Tested on 4.1.2 but not on 4.1.1 but should still work for that too. This is the first how to I have done so sorry if it is not very good
Prerequisites
Deodexed Jelly Bean Samsung Based Rom
Apktool
Text Editor eg notepad++
Knowledge how to decompile and build apks and jars
You will need two files from the system/framework of your rom
1.framework-res.apk
2.services.jar
Framework-res.apk Changes
Decompile framework-res.apk
Navigate to folder framework-res/res/values
Open bools.xml in a text editor
look for
Code:
<bool name="config_isWaterRippleEnabled">false</bool>
and change to
Code:
<bool name="config_isWaterRippleEnabled">true</bool>
That is all for the framework-res.apk so build framework-res and copy across the META-INF folder from your original framework-res.apk to the newly compiled framework-res.apk and that is ready to go.
This will now give you the option in lockscreen settings to select ripple effect but depending on the base your wallpaper may be hidden with ripple effect enabled so to fix that you need to mod services.jar
Services.jar Changes
Download the attached WindowAnimator.zip
Extract WindowAnimator.smali from zip
Decompile services.jar
Navigate to smali/com/android/server/wm
Replace WindowAnimator.smali with the one attached
That is all that is needed for services.jar so build services.jar and it is ready to go
This will make your wallpaper visible when ripple lockscreen is selected.
Put the files in a flashable zip and flash in cwm or twrp recovery, push to system/framework or copy into system/framework which ever you prefer doing, personally I always just flash them in custom recovery so you can use the attached zip and and place your modded files inside and flash if you wish
Note
Same WindowAnimator.smali can be used for both 31XX and 51XX I have used it in both my roms for 31XX and 51XX
Ripple Lockscreen does not work with live wallpaper set as lockscreen wallpaper
This is only for Deodexed Samsung Based Jelly Bean roms
Feel free to include this in your rom just give credits.
How To Have Transparent SystemUI For 31XX
All changes are done to SystemUI.apk so you need to decompile it and apply the following changes below
Open res/layout/twsuperstatusbar.xml
Change this
Code:
android:background="#ff000000"
To this
Code:
android:background="#00000000"
Then open res/values/drawables.xml
Change this
Code:
<item type="drawable" name="status_bar_background">#ff1e1e1e</item>
To this
Code:
<item type="drawable" name="status_bar_background">#00000000</item>
This is for full transparent status bar but you can change the colour code in drawables to any shade of transparency or another colour if you want
This is all that is needed to have the status bar show transparent
To have a transparent background for the pull down or to have any picture you like these changes are required.
Open res/layout/twstatusbarexpanded.xml
Change this
Code:
android:background="@drawable/notification_panel_bg"
To this
Code:
android:background="@drawable/tw_notification_panel_bg"
Download the attached png called tw_notification_panel_bg.png and add it to res/drawable-mdpi
This is all that is needed to make the drop down window transparent or to any picture you like.
If you want other parts set to transparent as well in the dropdown for example the notifications title, where the date is etc you will need to
Open res/layout/twstatusbarexpanded.xml
Look for all
Code:
android:background="#colorcode"
Change to this
Code:
android:background="#00000000"
If you want to change the quick settings buttons background then you need to edit the png labelled tw_quick_panel_quick_setting_button_bg_normal.9 to a transparent one as well as for the tw_status_bar_close_off.png and tw_status_bar_close_on.png they can be changed to a transparent image as well so you will pretty much have a full transparent SystemUI
Very good, i'll try this in MicroDelta ROM... :good:
EDIT: Already modded service.jar but having troubles to recompile framework-res.apk (I really don't know how to do it, googled it but all
methods didn't worked)
Please, someone that knows how to recompile it... here's the link for decompiled and modded Microdelta's framework! thnx
http://www.mediafire.com/?931j5x50bfujwa9
Narciso Neto said:
Very good, i'll try this in MicroDelta ROM... :good:
EDIT: Already modded service.jar but having troubles to recompile framework-res.apk (I really don't know how to do it, googled it but all
methods didn't worked)
Please, someone that knows how to recompile it... here's the link for decompiled and modded Microdelta's framework! thnx
http://www.mediafire.com/?931j5x50bfujwa9
Click to expand...
Click to collapse
try "apktool if framework-res.apk" and then try recompiling. @op Thanks for the guide. I'll try it once I get my tab back. "Is Water Ripple Enabled" XD lazy samsung.
Luigi2012SM64DS said:
try "apktool if framework-res.apk" and then try recompiling. @op Thanks for the guide. I'll try it once I get my tab back. "Is Water Ripple Enabled" XD lazy samsung.
Click to expand...
Click to collapse
Already tried that, and another 5 methods that i saw in google, tried updating java... still not recompiling!
Anyway, when you do it for your tab... plz post your framework,
Narciso Neto said:
Already tried that, and another 5 methods that i saw in google, tried updating java... still not recompiling!
Anyway, when you do it for your tab... plz post your framework,
Click to expand...
Click to collapse
@Narciso Neto Edit: my guess is that you didn't do "apktool if twframework-res.apk".
https://www.dropbox.com/s/oli9s7lxx7h3xmo/framework-res.rar
Luigi2012SM64DS said:
@Narciso Neto Edit: my guess is that you didn't do "apktool if twframework-res.apk".
https://www.dropbox.com/s/oli9s7lxx7h3xmo/framework-res.rar
Click to expand...
Click to collapse
Yes i did, with the original framework-res.apk and with twframework-res.apk...
My guess is that have something wrong with my PC.
Thnx for the framework...
EDIT: Bootloop, --'
EDIT²: That's my .zip file that i've flashed with CWM and got Bootloop, what's wrong?
http://www.mediafire.com/?xk2t7rbgn2z1cyd
txr33 said:
I have had some people asking how to get the Samsung Ripple Lockscreen working so I thought I would add a small guide here how to do it so it can be done to any JB Samsung based ROM for both 31XX and 51XX tab 2s as has been tested on both. Tested on 4.1.2 but not on 4.1.1 but should still work
Click to expand...
Click to collapse
Hey bro thanx for tutorial.
I have a questions:
which framework-res.apk to use???
There it shows three framework
A. Framework-res.apk
B. Framework-res2.apk
C. Twframework-res.apk
And please check your pm
Sent using xda app-developers app
Narciso Neto said:
Yes i did, with the original framework-res.apk and with twframework-res.apk...
My guess is that have something wrong with my PC.
Thnx for the framework...
EDIT: Bootloop, --'
EDIT²: That's my .zip file that i've flashed with CWM and got Bootloop, what's wrong?
http://www.mediafire.com/?xk2t7rbgn2z1cyd
Click to expand...
Click to collapse
You made the android policy changes right?
Sent from my GT-P3113 using Tapatalk HD
Luigi2012SM64DS said:
You made the android policy changes right?
Sent from my GT-P3113 using Tapatalk HD
Click to expand...
Click to collapse
I really dn't know what are talking about...
anyway, what I did:
-decompiled framework-res.apk >> edited bool.xml using Notepad++
-decompiled services.jar >> replaced the file
-downloaded the zip that you uploaded
-copied META-INF folder from the original framework-res.apk to new that you uploaded
-put services.jar and framework-res.apk in the zip
-flashed using CWM...
BOOTLOOP :silly:
Sorry i mean't the services.jar not android policy.
Anyways. you did wrong. I'll upload a flashable zip once i get home. At school right now.
Luigi2012SM64DS said:
Sorry i mean't the services.jar not android policy.
Anyways. you did wrong. I'll upload a flashable zip once i get home. At school right now.
Click to expand...
Click to collapse
Thanks...
Sent from my GT-P3110 using xda app-developers app
I apologize. I uploaded this earlier but forgot to post it here. Sorry.
https://www.dropbox.com/s/hgrjy88ghqcy1io/MicroDelta-JB-4.1.2-P3110XXDMC2-JB-ripplelockscreen.zip
Heres the ripple lockscreen for MicroDelta 4.1.2. Flashable with any recovery that supports updater-script's(Every single recovery ever made for gtab2 will work.).
Luigi2012SM64DS said:
I apologize. I uploaded this earlier but forgot to post it here. Sorry.
https://www.dropbox.com/s/hgrjy88ghqcy1io/MicroDelta-JB-4.1.2-P3110XXDMC2-JB-ripplelockscreen.zip
Heres the ripple lockscreen for MicroDelta 4.1.2. Flashable with any recovery that supports updater-script's(Every single recovery ever made for gtab2 will work.).
Click to expand...
Click to collapse
uhmm, I flashed your zip via CWM and i got bootloop... AGAIN! :silly:
did you flashed this on your Tab?
EDIT: tried flashing via TWRP, but stilll giving bootloop
I didn't test it. I don't have the time. Sorry. I guess no ripple for MicroDelta.
Luigi2012SM64DS said:
I didn't test it. I don't have the time. Sorry. I guess no ripple for MicroDelta.
Click to expand...
Click to collapse
Thnx amyway.. i'll give a try on another stock based rom
Sent from my GT-P3110 using xda app-developers app
Droidlover123 said:
Hey bro thanx for tutorial.
I have a questions:
which framework-res.apk to use???
There it shows three framework
A. Framework-res.apk
B. Framework-res2.apk
C. Twframework-res.apk
And please check your pm
Sent using xda app-developers app
Click to expand...
Click to collapse
I don't know why you have framework-res2.apk as Samsung roms do not have that but you need the first one framework-res.apk
Narciso Neto said:
Thnx amyway.. i'll give a try on another stock based rom
Sent from my GT-P3110 using xda app-developers app
Click to expand...
Click to collapse
Can you upload the unmodded services.jar and framework-res.apk from the rom and I will have a look at it.
txr33 said:
Can you upload the unmodded services.jar and framework-res.apk from the rom and I will have a look at it.
Click to expand...
Click to collapse
Here it is, MicroDelta's original framework-res and services.jar....
https://www.dropbox.com/s/rxi4n2pposd0a8k/framework%20files%20unmodded.zip
Narciso Neto said:
Here it is, MicroDelta's original framework-res and services.jar....
https://www.dropbox.com/s/rxi4n2pposd0a8k/framework%20files%20unmodded.zip
Click to expand...
Click to collapse
try this flash in recovery
https://www.dropbox.com/s/0325heiverhe45w/MicroDeltaRippleLock.zip
txr33 said:
try this flash in recovery
https://www.dropbox.com/s/0325heiverhe45w/MicroDeltaRippleLock.zip
Click to expand...
Click to collapse
Downloading to try... Thnx!
EDIT: it booted, but when i set the ripple lock option in settings, walpaper is blank, even after i try to set another one wallpaper...
Screenshot:
Sent from my GT-P3110 using xda app-developers app
Narciso Neto said:
Downloading to try... Thnx!
EDIT: it booted, but when i set the ripple lock option in settings, walpaper is blank, even after i try to set another one wallpaper...
Screenshot:
Sent from my GT-P3110 using xda app-developers app
Click to expand...
Click to collapse
Sorry I think I must have put the wrong services.jar in. Flash this https://www.dropbox.com/s/1tuq5jgjlyzwxt0/Services.jarcwm.zip includes just the services.jar
Can anyone please give me a solution to fix this problem? Thanks.
PS: I have searched around but some are a bit different with mine and some are not answered.
You have to install framework files, not SystemUI.
Code:
apktool if framework-res.apk
..
NuriJ said:
You have to install framework files, not SystemUI.
Code:
apktool if framework-res.apk
..
Click to expand...
Click to collapse
Oh I see. LOL-ed at myself haha. Thanks!
NuriJ said:
You have to install framework files, not SystemUI.
Code:
apktool if framework-res.apk
..
Click to expand...
Click to collapse
Just tried. The error still exist.
Can't find the apktool.yml file in the decompiled folder.
exeon said:
Oh I see. LOL-ed at myself haha. Thanks!
Click to expand...
Click to collapse
I always install them manually, to make sure of it.
Delete all installed .apk's in C:/users/<name>/apktool/*.apk
Then pull out framework-res.apk, into C:/users/<name>/apktool/1.apk
And SemcGenericUxpRes.apk into C:/users/<name>/apktool/2.apk
..
---------- Post added at 11:30 AM ---------- Previous post was at 11:28 AM ----------
exeon said:
Just tried. The error still exist.
Can't find the apktool.yml file in the decompiled folder.
Click to expand...
Click to collapse
Apktool generates that file, make sure it isn't a problem with your apktool.
..
NuriJ said:
I always install them manually, to make sure of it.
Delete all installed .apk's in C:/users/<name>/apktool/*.apk
Then pull out framework-res.apk, into C:/users/<name>/apktool/1.apk
And SemcGenericUxpRes.apk into C:/users/<name>/apktool/2.apk
..
---------- Post added at 11:30 AM ---------- Previous post was at 11:28 AM ----------
Apktool generates that file, make sure it isn't a problem with your apktool.
..
Click to expand...
Click to collapse
Redownload the apktool, decompile again, error still popping out, no luck.. Vomit blood.
I searched on google just now and I found some thread saying that pulling out com.htc.resources.apk file from the system and install it through apktool can solve the problem but I can't find the file in my system. Sigh.
Edit: Oh wait wait, I think I found the source problem. Is it deodexed SystemUI.apk cannot be decompile? Because I tried to use the odexed SystemUI.apk for decompiling and it decompile successfully. Ahh how should I mod my SystemUI.apk then??
exeon said:
Redownload the apktool, decompile again, error still popping out, no luck.. Vomit blood.
I searched on google just now and I found some thread saying that pulling out com.htc.resources.apk file from the system and install it through apktool can solve the problem but I can't find the file in my system. Sigh.
Edit: Oh wait wait, I think I found the source problem. Is it deodexed SystemUI.apk cannot be decompile? Because I tried to use the odexed SystemUI.apk for decompiling and it decompile successfully. Ahh how should I mod my SystemUI.apk then??
Click to expand...
Click to collapse
Did you try try this?
http://forum.xda-developers.com/showthread.php?p=43258702
The SystemUI have to be deodexed.
If you decompile the odexed SystemUI you'll get nothing useful, because the resources is in the .odex file.
"com.htc.resources" is "SemcGenericUxpRes" for us.
NuriJ said:
Did you try try this?
http://forum.xda-developers.com/showthread.php?p=43258702
The SystemUI have to be deodexed.
If you decompile the odexed SystemUI you'll get nothing useful, because the resources is in the .odex file.
"com.htc.resources" is "SemcGenericUxpRes" for us.
Click to expand...
Click to collapse
Hmm I think the problem is not at building, it's at decompiling there.
Every time when I decompiling an apk, it shows this error:
Code:
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a0124
and inside the decompiled folder doesn't have apktool.yml file which lead to the failure of building.
Really hard to find a solution for this problem.
exeon said:
Hmm I think the problem is not at building, it's at decompiling there.
Every time when I decompiling an apk, it shows this error:
Code:
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a0124
and inside the decompiled folder doesn't have apktool.yml file which lead to the failure of building.
Really hard to find a solution for this problem.
Click to expand...
Click to collapse
Some resources is not found, which could be because the framework files isnt installed/properly installed.
Can try to install them, like i said in post #5?
..
NuriJ said:
Some resources is not found, which could be because the framework files isnt installed/properly installed.
Can try to install them, like i said in post #5?
..
Click to expand...
Click to collapse
Found the solution, which is to decompile with original unmodified deodexed apk.
Once the apk is modified, it cannot be decompile again. LOL
Yo guys! Here I come up with a brief tutorial for using Apktool Mobile! Let's begin!
Requirements:
1.A rooted device
2.Apktool 4.4 : https://storage.googleapis.com/goog.../code.google.com/apktool/apktool4.4_armhf.zip
3.A deodexed app of your phone.
How to deodex? Watch my video tutorial here: https://www.youtube.com/watch?v=n0sfERSqLgA
4.Root explorer and Busybox
5.Brain.apk
6.Patience.jar
How to setup apktool?
1.) Unzip apktool4.4_armhf.zip using root explorer.
2.) Navigate to sdcard0/speedsoftware/extracted/apktool4.4_armhf/apktool folder and install apktool 4.4
3.) Open apktool app,grant root access. Now goto settings and select apktool version 1.5.2. Come back.
4.) Navigate to storage/sdcard0/speedsoftware/apktool4.4armhf folder.
5.) Long press on apktool folder and select Set as apktool data folder.
6.) Navigate to system/framework
7.) Click on framework-res.apk and select import as framework.
8.) In the same folder find twframework-res.apk(for samsung devices) or mediatek-res.apk, click on it->import as framework
9.) Now navigate to system/app, find systemui.apk->click on it and select
10.) Import as framework.
11.) Done.
How to theme SystemUI?
1.) Using root explorer, create a folder named 'A' in apktool folder.
2.) Copy SystemUI.apk to that folder.
3.) Open apktool app, navigate to that A folder, click on SystemUI.apk and select decompile all. Wait till it gets decompiled.
4.) After it gets decompiled, you will get a folder named SystemUI_src
5.) Now minimize apktool, go to root explorer, navigate to SystemUI_src folder, and do any type of modifications you want.
For example, colour the battery icons using Picsay Pro and save with the original name.
6.) After you are done, open apktool app, click on SystemUI_src folder, recompile. Wait till it gets recompiled. Now you will get an app named SystemUI_src.apk. That's your modded apk.
How to Sign SystemUI/Any System app?
1.) Using root explorer, goto A folder, and extract SystemUI.apk and SystemUI_src.apk one by one.
2.) Now navigate to sdcard0/speedsoftware/extracted/SystemUI folder.
3.) Copy Androimanifest.xml and Meta-inf folder from there. Press back and open SystemUI_src folder. Paste those two files there. Click replace when you see the popup.
4.) Come back. Long press on SystemUI_src folder and select zip this folder. Then select goto zip once its finished. Rename the SystemUI_src.zip to SystemUI.apk.
5.) Done. Now you can your push own modified UI to system/app!
Good luck!
Regards,
Aniruddha B.Pathak.
HIT THANKS IF I HELPED YOU!! :laugh:
Thanks to @Ibuprophen for providing me the updated link to apktool.
Nice guide
KeeP it up ..
Thanks for the guide ...... I have apk tool 4.6 can i use it in same way???
arun.negi004 said:
KeeP it up ..
Thanks for the guide ...... I have apk tool 4.6 can i use it in same way???
Click to expand...
Click to collapse
Thanks for the compliment
Of course you can but I personally recommend 4.4 as it has more options is quite faster
Still go ahead with 4.6 :angel:
Ok thanks BRO
Aniruddha_Pathak said:
Thanks for the compliment
Of course you can but I personally recommend 4.4 as it has more options is quite faster
Still go ahead with 4.6 :angel:
Click to expand...
Click to collapse
Ok i also have 4.4 version :3
But why this step secting apk tool version 1.5.2
Ahh...thats for smali
Apktool when set to 2.0 gives errors sometimes while recompiling if you edit smali files hence, set it to 1.5.2 so that you won't face any problem
Thanks...
Aniruddha_Pathak said:
Apktool when set to 2.0 gives errors sometimes while recompiling if you edit smali files hence, set it to 1.5.2 so that you won't face any problem
Click to expand...
Click to collapse
Ok thanks BRO for help..
I m getting this error while recompiling system ui..
[Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Click to expand...
Click to collapse
---------- Post added at 08:27 AM ---------- Previous post was at 08:17 AM ----------
Does it needs system deodexed?
Follow the guide again
Setup apktool again, then follow the guide carefully
Hi! I'm on a rooted kk tablet running ApkTool mobile v5.
Is this version stable and bugfree? or should I install an older one (e.g. v4.4)
An other question,what should I do to have a signed and/or working app after:
Decompiling>>Adding files>> ??
Because when I add files to the apk and try to compile, errors, errors,...errors!!
Older version would work faster
Wolf Tatoo said:
Hi! I'm on a rooted kk tablet running ApkTool mobile v5.
Is this version stable and bugfree? or should I install an older one (e.g. v4.4)
An other question,what should I do to have a signed and/or working app after:
Decompiling>>Adding files>> ??
Because when I add files to the apk and try to compile, errors, errors,...errors!!
Click to expand...
Click to collapse
1. I would recommend older version of apktool as it would work faster on your tab.
2. Install busybox if its not already installed.
3. If you are replacing a png, then keep in mind that you must replace those pngs with "SAME NAME" as they were before in the SystemUI.
4. Donot touch .9.pngs if you don't know how to play with them.
Aniruddha_Pathak said:
1. I would recommend older version of apktool as it would work faster on your tab.
2. Install busybox if its not already installed.
3. If you are replacing a png, then keep in mind that you must replace those pngs with "SAME NAME" as they were before in the SystemUI.
4. Donot touch .9.pngs if you don't know how to play with them.
Click to expand...
Click to collapse
Thanks for replying.
I already know how to replace pngs inside an apk,and I know that .9.PNG are not. png. But what I can't do is to successfully compile and sign the app after adding-not just replacing-new files to the existing ones inside_let's say package/res/drawable_apk.
Umm...if you want to ADD pngs, then you need to make some changes in xmls, otherwise it won't recompile
Aniruddha_Pathak said:
Umm...if you want to ADD pngs, then you need to make some changes in xmls, otherwise it won't recompile
Click to expand...
Click to collapse
Yes I know, but which ones should I modify?
How about editing xml's using phone, what tool to use?
ApkTool v4.8 Mod (Professional)
by Stewe, full creds to him
Mod Info:
♣ Added ApkTool v2.0.0 RC4.
♣ Added Smali/Baksmali v2.0.5.
♣ Added New Icons.
♣ Apk + Data.
http://www34.zippyshare.com/v/mVx5n21p/file.html
Wolf Tatoo said:
Yes I know, but which ones should I modify?
Click to expand...
Click to collapse
Search around XDA for the guides, you may find one
Notepad++
datsoy said:
How about editing xml's using phone, what tool to use?
Click to expand...
Click to collapse
I use Notepad++, which is a great tool
Link: https://code.google.com/p/openintents/downloads/detail?name=Notepad-1.4.0.7.apk
Thanks for sharing
berryman13 said:
ApkTool v4.8 Mod (Professional)
by Stewe, full creds to him
Mod Info:
Added ApkTool v2.0.0 RC4.
Added Smali/Baksmali v2.0.5.
Added New Icons.
Apk + Data.
http://www34.zippyshare.com/v/mVx5n21p/file.html
Click to expand...
Click to collapse
Thanks for sharing it sir but I personally has used all versions of apktool, from 4.1 to 5.0 and I find 4.4 more useful
Still, thanks for sharing the link, again
Are there any tutorials on how to change the status bar icons (sounds, vibrate, wifi,signal)?
Thanks in advance!
Should I make one?
kushpancake said:
Are there any tutorials on how to change the status bar icons (sounds, vibrate, wifi,signal)?
Thanks in advance!
Click to expand...
Click to collapse
Should I make a guide on it? Or should I tell you here?