[GUIDE] Edit the systemUI.apk or any other w/o errors. - Android Software/Hacking General [Developers Only]

So here goes a simple guide for the noobs: who wants to change the .xmls file but always end with a error.
Disclaimer - Dont try this if u r not knowing what u r doing. Its ur own responsibility.
I have done successfully in my GALAXY ACE DUOS GT S6802
BACKUP THOSE SYSTEM FILES BEFORE U DO ANY MODDING
For this u will need :
1.Apk tool
2.root file explorer to push it from phone itself
>>First decompile required apk. [apk-tool recommended]
>>Make .xml changes [edit the clock, date, icons, etc]
>>save [ edit and save in notepad++]
>>recompile [apktool] [no-signing]
>>see log if any error in apktool folder
>> procced if not - [if there is something improper code u have placed - u have to see every code properly with the orignal .xml]
>>now u have two apks 1. orignal 2. modded
>> first push the modded one
>>if works !! great [Will surely not work for systemui.apk]
>> if not then open both apk using the 7zip [This will surely work for systemui.apk ] [Provided u didnt have changed the format of the xml]
>>copy the modded "compiled" .xml from modded apk to orignal apk to its corresponding location
>push the file [Orignal .apk file with the modded .xml ]
>now the file should work unless u have done any coding mismatch.
> Restart
>>Enjoy
Press thanks if u got success in modifying the files.
Any query u can ask freely
I searched at many place but didnt got an easy guide , so i tried 100's time to recompile and decompile the files finally , my own method worked and shared with u all

Removed clock from status bar completely.
For this I edited status_bar.xml and deleted whole clock code.
{
"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"
}
|mjp93|

This method still fails when u edit smali files.
Actually I haven't still known the location of smali files after recompling in .apk file.

mjp93 said:
This method still fails when u edit smali files.
Actually I haven't still known the location of smali files after recompling in .apk file.
Click to expand...
Click to collapse
The smali code is within classes.dex

Thanks mate, hope this helps me for further modding. Thanks once again..

OMG !!! No one has yet commented on the thread but you keep Commenting your own post !
Never seen this before :silly:
Sent from Gallifrey using TARDIS

Related

Changing messaging icon

Is it possible to change the default Messagaing icon to the following:
{
"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"
}
Yup. Included in Mobzter's Enigma Theme
Sent from my X10a using XDA App
can we change it without using the theme?
If you don't want to install the whole theme and you're not using an app to create shortcuts then you can modify ic_launcher_smsmms.png in mms.apk
I'm sure there is a better way to do this, but I don't know what it is so I've just modified the icons I want by changing them directly in the .apk's
How do i edit Apk's?
superleeds27 said:
How do i edit Apk's?
Click to expand...
Click to collapse
Pull them from your phone with ADB and open them with a program like WinRar, and edit the images with a program like PhotoShop.
If your using ADW you can just add a custom shortcut, there are also other apps that will do this.
If you do want to get into modifying the apks to change/theme your apps here is a quick start. There is loads more information scattered throughout the forum but I couldn't find a complete guide (if someone knows where one is please let me know).
The easiest way to start is to use the one click root method (you need root to modify the apk's) and then download one of Chewitts Dark10 themes.
In the installer cmd file for the theme you can see examples of all the commands you'll need to do this (specifically in the app installation section).
Pull the apk to you're hard drive
Open the apk in 7zip and extract the images you want to change
Edit the images (in photoshop or a similar program)
Update the apk by dragging the images into the correct folder in 7zip
push the apk to your sd card and finally to the system/app folder
you'll need to make sure usb debugging is enabled and the SD card is not mounted.
Let me know if you need any more info.
@XperiaX10User: Looks like you were quicker (and a bit more to the point)
Use ninjamorph.
Save the png on your SD and use ninjamorph to replace it.
Easiest solution imho.
Yep, forgot about ninjamorph, much easier (just don't be an idiot like me and attempt to update the framework - it's still the only time I've had to reflash my phone...)
Extracted the png from Enigma and used an ADW shortcut
Cheers guys
is it easy to change the Battery icons?
Im guessing i change the images on the frameworks-res.apk?
superleeds27 said:
Im guessing i change the images on the frameworks-res.apk?
Click to expand...
Click to collapse
You guessed right. This should help - Hacks and mods: Three tutorials for modifying your x10 OS aesthetically

AOSP Lockscreen Defy

How can i get the AOSP Lockscreen to my Defy?
I have root and the 155's SBF
you have to edit the framework-res.apk in system folder.
Blackcorsa said:
you have to edit the framework-res.apk in system folder.
Click to expand...
Click to collapse
A little bit more info would be perfect thx
you take the root explorer or super manager and copy the framework-res.apk on your sd card and then to your pc.
then you rename it to framwork-res.rar and extract it with winrar.
Then you open the extracted folder an search for the slider pictures.
you can edit it they are only pictures.
if you have edited it you make a rar of the folder.
renamed in framework-res.apk and copy in you system folder on you defy.
thats it.
sorry for my poor english
Blackcorsa said:
you take the root explorer or super manager and copy the framework-res.apk on your sd card and then to your pc.
then you rename it to framwork-res.rar and extract it with winrar.
Then you open the extracted folder an search for the slider pictures.
you can edit it they are only pictures.
if you have edited it you make a rar of the folder.
renamed in framework-res.apk and copy in you system folder on you defy.
thats it.
sorry for my poor english
Click to expand...
Click to collapse
Perfect, thx but where are the AOSP Pictures?
Jojo1992 said:
Perfect, thx but where are the AOSP Pictures?
Click to expand...
Click to collapse
By the way, is it possible to control the Music with the Lockscreen? Like by a sense rom?
here is the framework-res.apk from Pays Rom 3.3
It has AOSP Sliders included.
If you are using 3.4.2-155-2 try 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"
}
PowerAMP has the music lockscreen. But this should be in themes section I think.
Metamorph AOSP-Lockscreen
I made a Metamorph-Theme for myself which patches any framework-res.apk with the AOSP-Lockscreen.
Maybe this will help you.
it is for all Frameworks ?
Or all of the Froyos ?
I only tested it with some Froyos but theoretically it should work on Eclair, too.
Make a nandroid-backup and give it a try...
I made a update.zip for my own use.
Use at work own risk. It worked for me (JRDNEM_U3_3.4.2_155-002_DEBLUR).
Go into ClockWorkMod Recovery and use the option "Install zip from sdcard".
Thanks dedraks it works on my 3.4.2-177
dedraks said:
I made a update.zip for my own use.
Use at work own risk. It worked for me (JRDNEM_U3_3.4.2_155-002_DEBLUR).
Go into ClockWorkMod Recovery and use the option "Install zip from sdcard".
Click to expand...
Click to collapse
Would it also work in the latest CEE Froyo?
yes works fine, and works too on gingerbread roms!
Does it just changes the Slider or also the notificationbar and the symbols there?
So this also works in stock roms and I don't need a custom, deodexed rom in order to have this lockscreen? I just follow the guidelines in the first page and I am good to go?
you change only the zmotoxxx.png image in res/drawable hdpi, used 7zip! this is all!
its only lockscreen image, if you want the status bar aosp, you have to replace the framework.res
I have stock 3.4.2 179. How can I get the lockbar from page 1 of this thread ?
Can I still follow the instructions form page one with the files from page one ? Or are those files incompatible with newer versions of froyo ?

Help with SMS application

I made a change in application SMS GO to stay with the appearance of the original application of the xperia. I edited the file using EDIT APK, but when trying to install the phone in an error, even using recovery.
NOTE: already edited several apk, but this is not the only one that installs.
If any developer can guide me would be grateful.
Attached is the edited and original apk.
Download
http://www.mediafire.com/?9ccgyzhkhgcwct9
I'm sure that there a right way to modify 3rd part app,but since the moment that I don't know too much, I can only suggest you to convert go sms in a system app (you can do that with titanium backup pro or maybe with some other app...try to google it) and then if you only need to change .png images you can just replace them into the apk file without extracting it and then push the app into system and reboot!! If you need to modify .xml files,you can use apk manager to decompile,compile and sign the apk!! if you try to modify a 3rd part app it will not work (I don't know the technical reason),so converting it in a system app is a solution to this problem!! But maybe you can wait to hear other opinion from anyone else with better knowledge than me!! hope it helps you!!
Sent from my X10i using xda premium
Which method do you used to mod your apk ?
Sent from X10i on M&M CM7.2 with Tapatalk
I used the program "edit apk" it decompresses and subscribes automatically.
The only job I had was to change the images *. png and rename
It worked for all other applications except the sms go
Attached images step by step
{
"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"
}
madsonhsd said:
I used the program "edit apk" it decompresses and subscribes automatically.
The only job I had was to change the images *. png and rename
It worked for all other applications except the sms go
Click to expand...
Click to collapse
You change .9.png or just .png? For editing the first ones you should use a patch, search in the general Android Themes thread.
For editing and compiling system apps you should use apkmanager instead of editapk (wich I don't know)...
If ya need further advice mail or PM me.
And sorry for my bad english!
Sent from my X10i on M&M CM7.2 with Tapatalk
Something strange happened!
Developers, tried all the above methods to install the modified application, but all without success.
I used modified ROM "vmmcs" 2.3.7
Unintentionally I had to reinstall the original rom Xperia 2.3.3.
Before installing custom ROM again. I tried to use the apk HE RAN NORMALLY.
CONCLUSION: SOME APPS MUST HAVE A MEANS TO RECOGNIZE THAT THE ANDROID HAVE ROOT, SO IT DOES NOT ALLOW THE INSTALLATION
Hello, if u have the SMS apk, why dun u try to unzip/unpack the apk contents, replace the PNG icons in Res/drawable-hdpi inside sMS apps, and rezip/repackaged using Formatter? I try to edit my Custom xperia Home.apk icons and it worked!! Here the guide thread for formatter
http://forum.xda-developers.com/showthread.php?t=1108798
Sometimes, u might need to recheck path of files directories which as same as previous file Hope this helps.
Sincerely,
Whitefang
If this helps or convinces, place kindly hit "thanks" button.
Sent from my X10i using XDA

[GUIDE][GINGERBREAD] How to Make ICS Like Notifications For Gingerbread

How to Make ICS Like Notifications For Gingerbread
- By Manas1796 -
​
Hi Guyz, Did you ever thought of how to make the Gingerbread Notification Look like ICS One? Then You are At the Right Place! Just Follow the Simple Instructions !
{
"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"
}
Click to expand...
Click to collapse
Things You'll Need -
Knowledge of compiling and decompiling APKs
framework-res.apk
Brain And Common Sense ( Which I can't Provide You with )
Click to expand...
Click to collapse
:good:Step 1
Decompile framework-res.apk
Download This zip - http://www.mediafire.com/download.php?j1pc3ycf8hlnach
:good:Step 2
Extract the zip
And Copy/Paste status_bar_latest_event_content.xml in res/layout
:good:Step 3
Copy All the PNGs from the zip And Paste/Replace them in Drawable-hdpi/Drawable-ldpi/Drawable-mdpi
:good:Step 4
Recompile the framework-res.apk
And Done! :highfive:
:good:Press Thanks If I've Helped You!
if it's no trouble could you provide what is needed to decompile/recompile the .apk? Thank you
leolawliet said:
if it's no trouble could you provide what is needed to decompile/recompile the .apk? Thank you
Click to expand...
Click to collapse
APK Tool ,You can also google for them!
tanks it work
Frist try: Nothing happen.
Second Try: Bootloop.
So, I entered into recovery and wiped Cache, then i go to advanced and wiped Dalvik. And... Bootloop. Didn't work for me | Have to flash my old framework.
Getting ErroR!
Manas1796 said:
How to Make ICS Like Notifications For Gingerbread
- By Manas1796 -
​
Hi Guyz, Did you ever thought of how to make the Gingerbread Notiication Look like ICS One? Then You are At the Right Place! Just Follow the Simple Instructions !
:good:Step 1
Decompile framework-res.apk
Download This zip - http://www.mediafire.com/download.php?j1pc3ycf8hlnach
:good:Step 2
Extract the zip
And Copy/Paste status_bar_latest_event_content.xml in res/layout
:good:Step 3
Copy All the PNGs from the zip And Paste/Replace them in Drawable-hdpi/Drawable-ldpi/Drawable-mdpi
:good:Step 4
Recompile the framework-res.apk
And Done! :highfive:
:good:Press Thanks If I've Helped You!
Click to expand...
Click to collapse
Hello there! The mod works Cool! But when i turn On Flight mode i get FC! Is there any way to fix? Waiting...
EDIT: I just modded the XML and it works now ! Thanks btw
cool man ...thanks for sharing
Help to resize
Sir Manas1796, I've followed your guide, but status_bar_latest_event_panel is very big, please help me to reduce it sir..
You can see the attached image below..
mahdy666 said:
Sir Manas1796, I've followed your guide, but status_bar_latest_event_panel is very big, please help me to reduce it sir..
You can see the attached image below..
Click to expand...
Click to collapse
Solved :victory:

Folder of "Navigation Bar" icons ? (png?) -nameless ROM-

Hi,
Id like to know the location (folders) and filenames of the "Navigation Bar" icons (KitKat)
I know there are other solutions around, but Id like to change them manually (if possible)
-I was looking for SystemUI.apk in system/app already, but it is not there... ?
-system/framework has "framework-res.apk" which has various designs of the NavBar icons, but not those that are actually getting displayed
-The app "SoftKeyZ Root" changes "com.android.systemui" which should be a jar file ?
I got a Optimus 3D (p920) with nameless ROM (4.4.4) :
http://forum.xda-developers.com/showthread.php?t=2772543
I read that it is ROM dependent if you can change it from within the NavBar menu
and nameless ROM does not seem to offer it.
Thats why I ask if I could find them (change them) in the folders/apks (if these exist).
So far I found this app :
https://play.google.com/store/apps/details?id=com.janis605.softkeyz
it says "not working on most samsung and LG phones" but it worked
Still, if anybody knows how to change it manually, I would appreciate it !
I can see the tool "SoftKeyZ Root" changes "com.android.systemui" (jar file ?)
and I found flashable zips for the Nexus device, to change "Navigation Bar" icons.
And I stumbled across this :
http://forum.xda-developers.com/galaxy-nexus/themes-apps/softkeys-softkey-collection-t1413582
So as I could not find the files, I tried "SoftKeyZ Root" on my Optimus 3D using nameless 4.4.4.
And it worked !
This is how it looks (and works!) when using "SoftKeyZ Root" :
{
"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 have seen that the app uses "com.android.systemui", but that should be a java (jar) file then ?
Any help in finding the origin of the fitting png graphics is appreciated ! ^^
*oops Edit*
You've nearly got the right answer already.
Those icons are in SystemUI.apk, that's right. But, for KitKat, Google moved that file from system/app to system/priv-app.
Have a look at my theming tool, Tickle My Android (tinyurl.com/ticklemyandroid). It has a variety of navbar icons to choose from and can change them for you.
Ticklefish said:
You've nearly got the right answer already.
Those icons are in SystemUI.apk, that's right. But, for KitKat, Google moved that file from system/app to system/priv-app.
Have a look at my theming tool, Tickle My Android (tinyurl.com/ticklemyandroid). It has a variety of navbar icons to choose from and can change them for you.
Click to expand...
Click to collapse
While your tool indeed looks very powerufll and very(!) interesting, (I might even give it a try)
I usually love to unpack APKs (if I found them) and exchange files.
Anyway, big thanks for the answer and your tool ! =)
itsmemario said:
While your tool indeed looks very powerufll and very(!) interesting, (I might even give it a try)
I usually love to unpack APKs (if I found them) and exchange files.
Anyway, big thanks for the answer and your tool ! =)
Click to expand...
Click to collapse
You can do that with Tickle My Android as well...
Anytime..hope my answer helped!! :highfive:

Categories

Resources