Sorry for my noobies question, I'm new to this.
I have decompiled my SystemUI.apk, my question is, if I edit .xml file in res/layout folder, should I edit .smali file too?
Please help me, I've try search how to solve it but I can't find it.
EDIT : I want to remove my slot 2/sim 2 signal icon (beside battery icon) in my statusbar, and re-place my sim 1 signal icon (with 3G icon) to it. I still can't upload my screenshot here.
if you edit xml without add some method i think it doesnt need to change smali. what u edit exactly?
Sent from my T1-E using Tapatalk
habibiey said:
if you edit xml without add some method i think it doesnt need to change smali. what u edit exactly?
Sent from my T1-E using Tapatalk
Click to expand...
Click to collapse
Thanks for your reply.
I want to remove my slot 2/sim 2 signal icon in my statusbar, and re-place my sim 1 signal icon to it. So, I decided to decompile my SystemUI, I found a line about sim 2 in msim_signal_cluster_view.xml , msim_signal_cluster_view_ct.xml , msim_signal_cluster_view_cu.xml inside res/layout folder. I delete all line which pointed to sim 2 in all that file, save it, recompile it, drag and drop meta-inf folder & androidmanifest.xml, zipalign it, and push it to my phone. But I got force close with my systemui.
ideXteria said:
Sorry for my noobies question, I'm new to this.
I have decompiled my SystemUI.apk, my question is, if I edit .xml file in res/layout folder, should I edit .smali file too?
Please help me, I've try search how to solve it but I can't find it.
Click to expand...
Click to collapse
It depends on what you are editing
Sent from my GT-I9070 using Tapatalk
PradeepMurugan said:
It depends on what you are editing
Sent from my GT-I9070 using Tapatalk
Click to expand...
Click to collapse
I edit a file which I mentioned on my second post, but I found a line about sim2 again in ids.xml and public.xml in res/value folder. Should I edit ids.xml and redefine all line in public.xml?
Related
Tried everything I can find and no luck with this with Sony framwork-res.apk doing my head in, My new resources.arsc is alwyas about 200kb smaller aswell after recompiling, furthest ive got is bootanimation then restart lol. Anyone had any luck with it? All i need to change is 1 bloody line in style.xml to change bottom popup menu to black, driving me mad lol
go3asy said:
Tried everything I can find and no luck with this with Sony framwork-res.apk doing my head in, My new resources.arsc is alwyas about 200kb smaller aswell after recompiling, furthest ive got is bootanimation then restart lol. Anyone had any luck with it? All i need to change is 1 bloody line in style.xml to change bottom popup menu to black, driving me mad lol
Click to expand...
Click to collapse
Have you followed this guide to the letter?
I changed the progressbar_horizontal.xml in my framework using this guide and it worked!
yeah , changed that worked fine but the style.xml file isnt viewable unless you decompile the apk then when you recompile the folder value with style.xml is compiled into the above file resources.arsc and not had any luck with it at all lol
Try asking Mr.Rusch or Calum?
Sent from my X10a using XDA App
go3asy said:
yeah , changed that worked fine but the style.xml file isnt viewable unless you decompile the apk then when you recompile the folder value with style.xml is compiled into the above file resources.arsc and not had any luck with it at all lol
Click to expand...
Click to collapse
Hmm style.xml is not viewable but also not any other .xml is viewable or readable if you do not decompile.
So I return to My_Immortal's initial question. Have you followed calum's guide about decomipling/recompiling the resources to the letter? What about the part where you take the .asrc file from the unsigned.apk and you chose to add it to the copmressed .zip file (which is the original signed apk that you have renamed). Have you done that exactly as you should?
_calum_ said:
This will create a new framework-res.apk in a subfolder out.
IMPORTANT: Do not push this apk to your phone unless you want to reflash
Extract the xml files and images from the newly generated apk (you can use the original images, but the xml files must be the newly compiled ones from the new apk). Add these files to the original framework-res.apk that you want to push to your phone (see the previous post).
Extract the resources.arsc from the root of the apk
Rename the original framework-res.apk from your theme to framework-res.zip
Right-click the extracted resources.arsc and choose the 7zip menu item ‘Add to archive’
In the dialog that appears set the achive field at the top to the framework-res.zip from step 7. And set the archive format to zip. Now set the Compression level to store and click OK(if you do not do this your phone will not boot). The settings are in the attached screenshot.
Rename framework-res.zip to framework-res.apk and double check that the compressed size or resources.arsc is the same as the original size (see screenshot)
Done. Push the new framework to your phone.
Click to expand...
Click to collapse
Its tge re compiling tgatsvthe problem aleays get sources not founf error in apktool. Read that it might be im not using fresh framework files tgat havent already been fiddlef eith but dont have any originnalsat the moment they all gave battery mod
Sent from my X10i using XDA App
I tried to change an image in systemui.apk. First I decompiled it with apkmanager,the I changed the image,I compiled and signed it.Then, with android commander I pushed systemui.apk. Now , my status bar doesn't appear. What is the problem ? Please help me.
s3bytzzu said:
I tried to change an image in systemui.apk. First I decompiled it with apkmanager,the I changed the image,I compiled and signed it.Then, with android commander I pushed systemui.apk. Now , my status bar doesn't appear. What is the problem ? Please help me.
Click to expand...
Click to collapse
Use winrar for theming. Apkmanager is nly for .xml editing or smali editing.
Sent from my GT-S5670 using xda premium
Feras.Rehman said:
Use winrar for theming. Apkmanager is nly for .xml editing or smali editing.
Sent from my GT-S5670 using xda premium
Click to expand...
Click to collapse
if we use winrar then how to go back to .zip to .apk ...
is renaming the file from .zip to .apk works out ??
ahh don't do that way! -_-
just open the apk directly using winrar..then open the folder wer you want to change the .png images..just drag and drop the images in the winrar window and the rest will be done the winrar itself..you don't even need to extract all those files and recomplie them again!
thanks ! it's working !
Ravi H Basawa said:
if we use winrar then how to go back to .zip to .apk ...
is renaming the file from .zip to .apk works out ??
Click to expand...
Click to collapse
there is no need of winrar all u need are the images photo resizing software
If you find this icon as ugly as I do you probably researched and figured out that you could remove this by changing the OTHERS.XML in /system/csc/
If you have no problem editing the XML that is probably the easiest solution, however if you are like me and need to have a solution that works as a flashable zip that is indepenedent of the random carrier settings in others.xml this solution might help you.
This is the NFC apk from LL1 samsung release and should in theory be backwards and forwards compatible.
Tested on LL1 / TWRP.
If this works for you please give me thanks / rate the thread. If it doesn't let me know so i can figure out a more universal solution.
http://www.mediafire.com/?ycsa44am50rrfdi
I kinda like the NFC icon but I changed it to something else. Just swap out the icon with another icon.
just_visiting said:
I kinda like the NFC icon but I changed it to something else. Just swap out the icon with another icon.
Click to expand...
Click to collapse
Hi
Can You explain how did u done it? pls!
Where is the icon located?
Greets! Nick
etecdailey said:
Hi
Can You explain how did u done it? pls!
Where is the icon located?
Greets! Nick
Click to expand...
Click to collapse
Should be found in the NFC.apk in res/drawable-xhdpi
andybones said:
Should be found in the NFC.apk in res/drawable-xhdpi
Click to expand...
Click to collapse
Thank You!
andybones said:
Should be found in the NFC.apk in res/drawable-xhdpi
Click to expand...
Click to collapse
Hmm.. What kind of "apk tool" did u use to decompile & compile back?
I've tried APK Tool and it's not working.
etecdailey said:
Hmm.. What kind of "apk tool" did u use to decompile & compile back?
I've tried APK Tool and it's not working.
Click to expand...
Click to collapse
Winrar or 7zip will do. Drag the 'res/drawable-hdpi' folder out to and make the changes. Then drag the folder 'res/drawable-hdpi'' back into the apk. Depending on your Windows configuration, make sure there are no 'thumbs.db' files in ANY of the folder in the apk file before you replace the file in your phone or else you're gonna get some force-close upon reboot. Good luck.
PS: After you're comfortable with replacing icons then you go ahead and start replacing icon in all your other programs. systemui.apk, phone.apk, contacts.apk, email.apk, maps.apk, etc...
just_visiting said:
Winrar or 7zip will do. Drag the 'res/drawable-hdpi' folder out to and make the changes. Then drag the folder 'res/drawable-hdpi'' back into the apk. Depending on your Windows configuration, make sure there are no 'thumbs.db' files in ANY of the folder in the apk file before you replace the file in your phone or else you're gonna get some force-close upon reboot. Good luck.
PS: After you're comfortable with replacing icons then you go ahead and start replacing icon in all your other programs. systemui.apk, phone.apk, contacts.apk, email.apk, maps.apk, etc...
Click to expand...
Click to collapse
Nice! Actually it worked
I've made it useful with two icons - dont know why it didn't work with apk tool's...
Thanks one more time! (my work attached)
Tutorial about speeding up notification center drop down/pull up
1.First of all you need to get SystemUI.apk of yur actual rom
The ne im using is open root explorer and copy SystemUI.apk to your sdcard
2.Connect the phone to the computer and copy the SystemUI.apk to the extracted APKTOOL directory (download apktoolApktool.zip)
3.There is a guide on how to use apktool here :Guide apktool
4.Decompile SystemUI.apk
5.Navigate \SystemUI\res\values and open dimens.xml (use notepad ++)
6. Find self_expand_velocity, self collapse velocity. and change the values from the defalut +2000 per each.
7.You can change other values too, they are pretty much selfexplanatory.
8.After the necessary changes save the file and recompile systemui.apk
9.After recmpiling you can push it to system using ADB or i made a .zip to flash it in recovery.(Just put SystemUI.apk in system/app and you are ok) Just whatch out for the name as it should be exactly the ssame as it was before.
10.Flash the zip wipe cache/dalvik and enjoy your new fast dropdown and pullup
DONT FORGET THANX BUTTON
EDIT: It was pointed out that in newer versions of android (dip=dp) its the same thing so don't change it.
Mr.Nigma... said:
Tutorial about speeding up notification center drop down/pull up
1.First of all you need to get SystemUI.apk of yur actual rom
The ne im using is open root explorer and copy SystemUI.apk to your sdcard
2.Connect the phone to the computer and copy the SystemUI.apk to the extracted APKTOOL directory (download apktoolApktool.zip)
3.There is a guide on how to use apktool here :Guide apktool
4.Decompile SystemUI.apk
5.Navigate \SystemUI\res\values and open dimens.xml (use notepad ++)
6. Find self_expand_velocity, self collapse velocity. and change the values from the defalut +2000 per each.
7.You can change other values too, they are pretty much selfexplanatory.
8.After the necessary changes save the file and recompile systemui.apk
9.After recmpiling you can push it to system using ADB or i made a .zip to flash it in recovery.(Just put SystemUI.apk in system/app and you are ok) Just whatch out for the name as it should be exactly the ssame as it was before.
10.Flash the zip wipe cache/dalvik and enjoy your new fast dropdown and pullup
DONT FORGET THANX BUTTON
Click to expand...
Click to collapse
I decompiled systemui.apk but i can/t find \SystemUI\res\values
I have the same question. maybe your decompilation have some problems.
Sent from my lenovo A789 using xda app-developers app
Got it working... FINALLY
OK first of all thanks for this, makes a huge difference on the notification pullup and dropdown speed.
I couldn't apply the path with just the regular apktool, tried different revisions and none worked until I found apktoolsjb on this forum
http://forum.xda-developers.com/showthread.php?t=1809649
Thanks again
yonutz said:
I decompiled systemui.apk but i can/t find \SystemUI\res\values
Click to expand...
Click to collapse
it is in that folder for sure. have followed the guide step by step? maybe u havent decompiled just extracted the apk.
On Note 2 (and probably other Samsung devices) there is no layout.xml, but values are inside smali file (SystemUI\smali\com\android\systemui\R$layout.smali). However those are in hex format which I cannot decode.
.field public static final self_collapse_velocity:I = 0x7f0c001c
.field public static final self_expand_velocity:I = 0x7f0c001b
Click to expand...
Click to collapse
Above value translates to 2131492892 as integer, which makes zero sense. Probably some kind of float value?
matejdro said:
On Note 2 (and probably other Samsung devices) there is no layout.xml, but values are inside smali file (SystemUI\smali\com\android\systemui\R$layout.smali). However those are in hex format which I cannot decode.
Above value translates to 2131492892 as integer, which makes zero sense. Probably some kind of float value?
Click to expand...
Click to collapse
Looks more like a reference to resources to me.
matejdro said:
On Note 2 (and probably other Samsung devices) there is no layout.xml, but values are inside smali file (SystemUI\smali\com\android\systemui\R$layout.smali). However those are in hex format which I cannot decode.
Above value translates to 2131492892 as integer, which makes zero sense. Probably some kind of float value?
Click to expand...
Click to collapse
Try to check for that id (0x7f0c001c and/or 0x7f0c001b) in res/values/ids.xml. It could point to any value in any of the xml inside res/ folder.
No xml file contains those values (I ran search over whole folder). Only before mentioned R$layout.smali and com\android\systemui\statusbar\phone\PhoneStatusBar.smali
Linux
Any way I con do this in Linux, ubuntu to be specific.
I figured it out, Ijust hope I can put back into .apk format.
Be careful:
"dp" was actually called "dip" in early versions of the SDK. They changed it to "dp" shortly after.
Click to expand...
Click to collapse
That screenshot isn't from a 4.1/4.2 rom - So anyone who wants to try this and has 4.2 (I'm having 4.2.2), change only the values. leave the "dp" as is, don't change it into "dip".
OP - you might as well write this down!
Great, some developer with Xposed skills to do that through an Xposed module .... (You know that would be great)
I used your MOD as an Add On for my ROM. I hope thats ok credit was given (see bottom of OP). Thanks for the Info..
http://forum.xda-developers.com/showpost.php?p=37148754&postcount=1
Thanks. I already hitted it.
Sent from my C6603 using xda app-developers app
Great tut, I would suggest turning off animations entierly in developers options for the best UI smoothness.
self_expand_velocity, self collapse velocity NOT FOUND
I dint find anything like that in \SystemUI\res\values\dimens.xml
Samsung galaxy ace GT-S5830i
I can't find a values folder in my SystemUI
riteshpanjwani said:
I dint find anything like that in \SystemUI\res\values\dimens.xml
Samsung galaxy ace GT-S5830i
Click to expand...
Click to collapse
As some people replied these values are in another file. But i'll look again and edit the op with SAMSUNG specific files
Hmmm
JDogg1329 said:
I can't find a values folder in my SystemUI
Click to expand...
Click to collapse
Check your ROM if it is odex, check /system/app/ if there is SystemUI.odex. You need to deodexed if first so you can edit. However you can also di it using baksmali you just need the SystemUI.odex.
I have this, dont have this what you say.What do now?.Custom ROM - CM7
I have installed a ROM.When i go to settings,it shows at the end 'Custom build by Rocky" This really sucks.
I tried to change it by build.prop but i couldn't do that as 'Custom build by Rocky';this text was even not present there. I searched a lot for this.Now can anyone tell me how to change this..I am sure this specific text is not present in build.prop,is there any other file to do that?
I've had my fair share in rom development a year or so ago. And I can tell you that the name there is just a way of marking the rom.
But if you're really bothered by it, I can tell you how to find the string, edit it or completely remove it. To find the string - Custom build by Rocky, you can't just change it in build.prop. For this, you must go into /system/app and then copy Settings.apk file to your desktop. From there, go ahead and decompile Settings.apk with a preferred decompiler. When decompiled, head into the project, and navigate to the following folder - res/values and open strings.xml with a text editor. Search for Custom build by Rocky in the text file, once found. You may change it to whatever you wish. But if you want to remove it, you have to remember the ID of the string. For example, in - example text - which is the string, the text to the right. The ID is text the ID is found in the left hand side, it's after the word name . So remember that, now go back to the res directory and scroll down to the xml folder, open it and look for about.xml. In there search for text which is the ID. And remove the line completely. Also make sure to remove the header line too. As this will stop the layout from having an invisible section.
Now compile the Settings.apk and push it to your device - adb push desktop/path/to/Settings.apk /system/app or just copy Settings.apk to device and do it from there.
I do not encourage you to do this. And you can do this at your own risk. I will not take any responsibility if you mess up your phone.
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
I've had my fair share in rom development a year or so ago. And I can tell you that the name there is just a way of marking the rom.
But if you're really bothered by it, I can tell you how to find the string, edit it or completely remove it. To find the string - Custom build by Rocky, you can't just change it in build.prop. For this, you must go into /system/app and then copy Settings.apk file to your desktop. From there, go ahead and decompile Settings.apk with a preferred decompiler. When decompiled, head into the project, and navigate to the following folder - res/values and open strings.xml with a text editor. Search for Custom build by Rocky in the text file, once found. You may change it to whatever you wish. But if you want to remove it, you have to remember the ID of the string. For example, in - example text - which is the string, the text to the right. The ID is text the ID is found in the left hand side, it's after the word name . So remember that, now go back to the res directory and scroll down to the xml folder, open it and look for about.xml. In there search for text which is the ID. And remove the line completely. Also make sure to remove the header line too. As this will stop the layout from having an invisible section.
Now compile the Settings.apk and push it to your device - adb push desktop/path/to/Settings.apk /system/app or just copy Settings.apk to device and do it from there.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Can u suggest me some apk decompilers?
Try "APKTool" just search for it on the search part of this site, it should come up.
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
Try "APKTool" just search for it on the search part of this site, it should come up.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Hey bro! This method worked..
But,now i am in a more big problem.
By the way that test was 'Custom build by Jatin' not Rocky.
The new settings.apk which i recompiled after editing that line successfully was not directly installing on my phone.
So,i replaced that new apk with the settings.apk in my ROM which contains 'Custom Build by Jatin' text..
Now,when i installed that ROM again,everthing went right ..but when i cheked the apps ...My settings option was no more..It was not installed during the ROM installation..I manually also tried to install that but nothing was achieved!
Now ,how to fix this? Hey bro,I am also attaching that settings.apk ,see if you can edit that line yourself and then again attach here for my use.Its line 176 in res/strings ,,just replace that line from 'Custom Build' only...
Please help me bro.
This happens sometimes. Its best to push the .apk to your device rather than moving it
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
This happens sometimes. Its best to push the .apk to your device rather than moving it
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Now,the settings.apk is crashing..Bro,there is somewhere error between the app..I have attached that apk in this forum before..Can't u yourself rename that line and attach here..Please bro
Problem fixed
The unsigned settings.apk worked now....
Sorry, I just saw your post. Oh and I'm glad it works now. With system apps, you mustn't sign them. They don't work properly.
Sent from my Nexus 5 using Tapatalk