systemui.apk - Razer Phone 2 Questions & Answers

Hi
I am trying to make some changes to systemui. I am able to de-compile and make the changes, but I am unable to re-compile once finished. I have used several tools but nothing seems to be able to do the job. Has anyone had any luck doing this for the RP2?
Thanks

Related

[Q] Custom XML documents in APK files

Please read this whole thing before you reply!
I am trying to edit the battery icon XML files in framework-res.apk. Awhile ago I found a tool that would convert from binary XML to human-readable XML and back again, but for the life of me I cannot find it again.
Anyway, I opened stat_sys_battery_charge.xml with it and all was good, except it mentioned weird names for filenames. Eg instead of 'res/drawable-hdpi/stat_sys_battery_0.png' it was '89845b4jrqyuq34gy34q89tyq34' (or some gibberish like that).
I understand everything up to this point. I understand why those names are encoded like that. What I don't understand is how people figure out these codes. I have been using someone elses framework-res.apk as my base, and they use "v4" folders. Eg 'drawable-hdpi-v4' instead of 'drawable-hdpi'. These filename codes in the XML value were generated for this V4 folder, correct? How did they do that?
I do not want to use a V4 folder in my theme if I can avoid it. If I have to, I still have a problem as to how to correctly point to my battery icons. And no I cannot just replace the PNGs because my changing icons have more frames than the stock XML allows.
Any help would be extremely appreciated. Thank you.
TheLynxy said:
Please read this whole thing before you reply!
I am trying to edit the battery icon XML files in framework-res.apk. Awhile ago I found a tool that would convert from binary XML to human-readable XML and back again, but for the life of me I cannot find it again.
Anyway, I opened stat_sys_battery_charge.xml with it and all was good, except it mentioned weird names for filenames. Eg instead of 'res/drawable-hdpi/stat_sys_battery_0.png' it was '89845b4jrqyuq34gy34q89tyq34' (or some gibberish like that).
I understand everything up to this point. I understand why those names are encoded like that. What I don't understand is how people figure out these codes. I have been using someone elses framework-res.apk as my base, and they use "v4" folders. Eg 'drawable-hdpi-v4' instead of 'drawable-hdpi'. These filename codes in the XML value were generated for this V4 folder, correct? How did they do that?
I do not want to use a V4 folder in my theme if I can avoid it. If I have to, I still have a problem as to how to correctly point to my battery icons. And no I cannot just replace the PNGs because my changing icons have more frames than the stock XML allows.
Any help would be extremely appreciated. Thank you.
Click to expand...
Click to collapse
Well I'm using apktool for decompiling and I'm also trying to add some icons so maybe the help Daneshm90 has given me can help you Apkmanager
EDIT: Lol you didn't even write you were trying to add icons It is seriously stuck to my brain xD
Does apktool let you change the paths for the filenames in XML files, and correctly re-encodes it when you compile it back? I have been trying desperately to get apktool to work for me, but it just refuses. I'll have to try it on another computer or perhaps a VM then.
If apktool does not correctly handle paths, is there any tool that can? From what I've read, its impossible, but there must be a way!
TheLynxy said:
Does apktool let you change the paths for the filenames in XML files, and correctly re-encodes it when you compile it back? I have been trying desperately to get apktool to work for me, but it just refuses. I'll have to try it on another computer or perhaps a VM then.
If apktool does not correctly handle paths, is there any tool that can? From what I've read, its impossible, but there must be a way!
Click to expand...
Click to collapse
What do you mean by "paths in XML files"? Apktool decompiles XMLs fully, so you could do everything that you could do with your own app/sources.

[Q] rom porting question

Alright....I've tried searching and searching but I can't find exactly what I need. I'm wanting to try to port blue echo to cm6.1. Now I'm still a little new at this but I've learned how to smali and baksmali, use flashboot, sdk, sign zips, create flashable zips, zip align, optimize, pretty much all the ends and outs of the basic. I've only been at this 4 months but I love android and want to learn to become a dev. Now I'm trying to learn how to theme roms. There are a million guides that I've found but now will tell me how to do this . Could someone point in the right direction to a thread explaining how to port a sense theme to cm6.1. Ive tried replacing the images in the drawables folders from framework-res . Repackaged zip aligned optimized signed and flashed. Nothing took. So I opened the zip all the images had copied over in the cm6 rom zip. So I wiped and flashed the modded zip it still reverts to the original framework of cm6. I don't understand how that is. I need a way to just copy the colors and images. Does anyone know what I'm doing wrong or know of a how to with just the steps .I already have all the programs on my pc.
shawn328 said:
Alright....I've tried searching and searching but I can't find exactly what I need. I'm wanting to try to port blue echo to cm6.1. Now I'm still a little new at this but I've learned how to smali and baksmali, use flashboot, sdk, sign zips, create flashable zips, zip align, optimize, pretty much all the ends and outs of the basic. I've only been at this 4 months but I love android and want to learn to become a dev. Now I'm trying to learn how to theme roms. There are a million guides that I've found but now will tell me how to do this . Could someone point in the right direction to a thread explaining how to port a sense theme to cm6.1. Ive tried replacing the images in the drawables folders from framework-res . Repackaged zip aligned optimized signed and flashed. Nothing took. So I opened the zip all the images had copied over in the cm6 rom zip. So I wiped and flashed the modded zip it still reverts to the original framework of cm6. I don't understand how that is. I need a way to just copy the colors and images. Does anyone know what I'm doing wrong or know of a how to with just the steps .I already have all the programs on my pc.
Click to expand...
Click to collapse
Simplest way, if you just want the icons, pics and notification bar things is to use 7zip for PC. Don't extract the theme, just open it. Navigate to the framework-res.apk file of the new ROM you want the theme to work on, open but don't extract, copy all the .png files from the theme into the ROM or new theme you are making. It will ask you to replace, obviously you say "yes" When you are done, just close it all back up, no recompressing or signing needed because you didn't extract anything. Just put it on your SD card and it will flash.
Let me know if you need more help. This by and large the simplest method for making minor edits to a theme.
Download the CyanogenSense theme by mrinehart93 found here: http://forum.xda-developers.com/showthread.php?t=723224
It's a working Sense-looking theme on CM6. Download it, unzip it on your PC, pick it apart, etc. to see how he changed and compiled it to make it work. Hopefully that will help you figure out how to do what you want to do. Good luck.
chromiumleaf said:
Download the CyanogenSense theme by mrinehart93 found here: http://forum.xda-developers.com/showthread.php?t=723224
It's a working Sense-looking theme on CM6. Download it, unzip it on your PC, pick it apart, etc. to see how he changed and compiled it to make it work. Hopefully that will help you figure out how to do what you want to do. Good luck.
Click to expand...
Click to collapse
+1 Good idea!
ranger61878 said:
Simplest way, if you just want the icons, pics and notification bar things is to use 7zip for PC. Don't extract the theme, just open it. Navigate to the framework-res.apk file of the new ROM you want the theme to work on, open but don't extract, copy all the .png files from the theme into the ROM or new theme you are making. It will ask you to replace, obviously you say "yes" When you are done, just close it all back up, no recompressing or signing needed because you didn't extract anything. Just put it on your SD card and it will flash.
Let me know if you need more help. This by and large the simplest method for making minor edits to a theme.
Click to expand...
Click to collapse
I did this but had to flash clockword because i was using ra, it wasn't verifying the update. So i turned off signature verification. But I'm using firerat mtd and forgot that i have to repatch the clockword for this so I did'nt really get to see if it worked yet. But thanks all of you responding I appreciate it. Ill let you know if these methods work.
I fixed the prob. Did everything suggested by copying the png's between the zips without extracting them. Even doubled checked all the png's everything looked like it was a go . But I only got 3 of my new icons. Everything else was still stock cm6 even the notification bar was stock. Do I got to do more than just transfer the png's cause it seems like maybe the xml's are reverting them back to stock?

[Q] Extended Power Menu

Hi All,
Can anyone advise whether the following should work with Doc's JS8 and CWM recovery?
http://forum.xda-developers.com/showthread.php?p=8674580#post8674580
Rather than follow all the instructions, I just used the powermenu_final.zip at the end of the post and tried to flash the zip but it just sits there when flashing.
I'm not sure if it's me or the zip. If I knew it would work, I have no problems if I'll have to do it manually, but if the zip file provided in the post doesn't work it doesn't instill a lot of confidence.
Essentially, I want to learn how to do it so I can create my own update.zip containing other things as well.
Ultimately, I'd like to use the UOT Kitchen to get myself a battery mod, then add the changes to make an extended menu, and then finally add a few wallpapers, apk's etc. Then package it all up as an update.zip and flash it all.
If anyone can recommend a good guide, or advise whether the above post *should* work on my Galaxy S it would be appreciated.
Thanks
gleff1 said:
Hi All,
Can anyone advise whether the following should work with Doc's JS8 and CWM recovery?
http://forum.xda-developers.com/showthread.php?p=8674580#post8674580
Rather than follow all the instructions, I just used the powermenu_final.zip at the end of the post and tried to flash the zip but it just sits there when flashing.
I'm not sure if it's me or the zip. If I knew it would work, I have no problems if I'll have to do it manually, but if the zip file provided in the post doesn't work it doesn't instill a lot of confidence.
Click to expand...
Click to collapse
Yes, if you follow the instructions this guide still works.
But for JS8 you have to change the ressource ids to some unused values.
The update file you tried doesn't work because JS8 uses other resource ids than the one the update was built for. I'm sure you'll understand this after decompiling the files.
gleff1, I have successfully made ​​the menu for JS* for this statement, but with minor amendments.
To create update.zip use it.
Try my update.zip, should work on all JS*:
MCOGW said:
Yes, if you follow the instructions this guide still works.
But for JS8 you have to change the ressource ids to some unused values.
The update file you tried doesn't work because JS8 uses other resource ids than the one the update was built for. I'm sure you'll understand this after decompiling the files.
Click to expand...
Click to collapse
Ok thanks.. I don't understand where to get the resource id's yet but i'll play around tomorrow night after work and decompile the files and see if it makes more sense then.
Incidently, do I just grab the files that need decompiling from the phone, or some other theme? Eg. Are they all in the system folder on the phone itself?
Lar3s said:
gleff1, I have successfully made ​​the menu for JS* for this statement, but with minor amendments.
To create update.zip use it.
Try my update.zip, should work on all JS*:
Click to expand...
Click to collapse
Awesome... thanks for that.. i'll have a look.
Edit: That worked great.. So that I can learn how to do it myself i'll decompile your working one and compare it to the guide. This should be a fun weekend learning this stuff.
Thanks heaps guys. Makes a lot of sense now. I'll have a play later on.
gleff1, use for jar apktool. To avoid typing commands manually, you can use ready-made set of scripts (author sk0t from 4pda.ru; inside the archive is a readme, though in Russian):

Theming on a Mac

Alright so I've finally gotten the hang of simple theming on a mac, I use Better Zip to edit the APKs, and then TommyTomatoe's Android Utility to Sign the APKs. But I'm trying to figure out how to edit XML files and also when I try to decompile APKs I get an error that the command is not found. Also is there anything else I should know when theming on a mac?

Need help with apktool

Hello I am trying to work on a mod for rom I am working on. But the warnings I am getting happen even with untouched files.
I am editing the Secsettings.apk.
I am able to decompile it just fine with apktool 2.0.0 but compiling is another story. I install framework-res.apk and even installed twframework-res.apk. but this is what I get with unedited secsettings. I get same results when I do my edits.
I am doing
apktool b SecSettings
It is putting files in the build file
Is this ok?
jasonj711 said:
Hello I am trying to work on a mod for rom I am working on. But the warnings I am getting happen even with untouched files.
I am editing the Secsettings.apk.
I am able to decompile it just fine with apktool 2.0.0 but compiling is another story. I install framework-res.apk and even installed twframework-res.apk. but this is what I get with unedited secsettings. I get same results when I do my edits.
I am doing
apktool b SecSettings
It is putting files in the build file
Is this ok?
Click to expand...
Click to collapse
Those are only warnings. Looks like it built apk from the last line.
Here's a great tool that does all the hard work for you
http://forum.xda-developers.com/showthread.php?t=2639400

Categories

Resources