Wasting a couple hours on this, trying to figure it out and finally have. Rather than use iFont or something, I wanted to figure out how to make default system fonts for my daily driver--BarRin v3 currently. I edited the system_fonts.xml file and added some fonts, changed some file names, and got it working.
Includes: AlteHaas, AnkeSans, Azbuka06, Bitstream, Caviardreams, Comfortaa, DejaVuSans, MgOpenModerna, MuseoSans500, SuiGeneris, Ubuntu, Zrnic for now.
So here's what you need to do if you want to add system changeable fonts to stock ZV6 and BarRin:
1. Download and unzip attached HyFonts.zip
2. Using a file explorer w/ root (I personally like FX File Explorer but whatever works for you), copy and paste all the fonts from HYFonts folder to system/fonts after making system writable
3. copy the system_fonts.xml in HYFont folder to system/etc overwriting current one, change system back to read only
4. reboot
Profit
Enjoy
LTE to 4G icon
Got tired of looking at the "LTE" on statusbar, did some research including changing build prop and didn't like it (ie ro.build.target_county: US ro.build.target_operator: VZW). Changing Sprint's network icon png's for 3/4G would be too time consuming, so I changed only two icons that account for the the "LTE" on statusbar in LGSystemUI.apk, the rest of the icons are stock. Did not require any decompiling/recompiling, just replaced two png's after properly sizing/positioning them using GIMP and paint.net from an image found w/ google.
4G as seen in screenshot instead of LTE. For those that are interested download and extract zip file, copy/paste LGSystemUI.apk to device's system/priv-app w/ root explorer, reboot, profit
More 4G choices
here is another LGSystemUI w/LTE icon changed to 4G, screenshot of SPR version only, also attached are ATT 4G w/LTE letters, ATT 4G (noLTE letters). Follow instructions from post #2
Edit: sorry png images not showing up, just google att 4g icon for image
Thank you for the post! I had a thread over in Q&A looking for this information.
Just to verify, these fonts will show up in the stock font picker? And do I replace the existing system_fonts.xml with the new one or just copy the new one alongside the existing one?
Pierceye said:
Thank you for the post! I had a thread over in Q&A looking for this information.
Just to verify, these fonts will show up in the stock font picker? And do I replace the existing system_fonts.xml with the new one or just copy the new one alongside the existing one?
Click to expand...
Click to collapse
Replace the existing one with one from post. Here's a screenshot
@Valsorim Have you by any chance looked to see if this works for ZV8?
Pierceye said:
@Valsorim Have you by any chance looked to see if this works for ZV8?
Click to expand...
Click to collapse
Not yet, at work tonight, can check tomorrow
Edit: So tried adding fonts to ZV8, it's a no go for me. I will try to look at it soon, but not really liking stock ZV8, so sticking w BarRin v3 for now
Related
Hello!
I'm trying to make my own Rom right now. With dsixda's Kitchen it isn't very hard to do so I thought I'd just give it a try. I'm taking a rooted official Update (Version: 2.10.405.2) as my base. Adding busybox runparts, the /data/app functionality, a2sd+, the custom bootanimation functionality etc. isn't a problem. Removing some apps like Maps, Facebook, Teeter (and so on) and adding some like Rom Manager, Neocore or Quadrant isn't a problem, too. But if I want to implement a theme like the Carbon Espresso Mod or a theme I made with the UOT Kitchen I'm getting bootloops at booting the phone. Here's what I do: I unzip the folder (for example a theme made with the UOT Kitchen) and I copy over the framework-res.apk from the unzipped folder to my Working Folder of the Kitchen (to system/framework) and I overwrite the original framework-res.apk.
And NO: I didn't choose a battery mod or a bootanimation in the UOT Kitchen....
Hope you guys can help me
I might be wrong but doesn't the new file have to be signed? I know there is a signing option in the kitchen.
Sent from my PC36100 using Tapatalk
It's a system .apk so it doesn't have to be signed.
I can't shed any light on the subject, but here's a bump.
Are you replacing the whole "framework-res.apk" file? If so then you will need to resign your entire ROM. Why? When you change a system file ("framework-res.apk", "com.htc.framework.apk", "twframework-res", "rosie.apk", etc.) it no longer has a matching "signature" for all the files it serves images to. Plug your phone into your computer and open up "ddms" in your android_sdk > tools folder to watch what happens when the phone boots up.
A workaround (The way I do it, it's more fun IMHO) is to open up your .apk files in 7zip (or if you're on a mac BetterZip) and add the images from the themed .apk to your stock .apk. This way makes it so your original .apk has the same signature as your other system files yet has the new images from the other files that you wanted. I've had a lot of luck with this method. I don't know if it will still work if you change any .xml files as I have not messed with those yet.
I've subscribed to this thread so if you have any questions post back here or you can PM me if you want. I'm on XDA all day, every day so I'll try to help as much as I can.
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
DomiKamp said:
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
Click to expand...
Click to collapse
The kitchen signs the .zip that you flash when you build it. It does not sign any .apks for you on its own. However, there is an option to sign .apks within the kitchen.
In my opinion, taking all of the images and figuring out how it all works is fun. I feel like I've already learned quite a bit from just digging around and moving files around.
As for the .xml files, you can decompile the .apk and edit them and then recompile the .apk. I'm actually looking into this today. It sounds like some work but hopefully I'll get it figured out.
Sounds like fun indeed So, I'll just have to try it. Where can I find the "Settings" for the Notification Bar? Thanks
The variois status*.xml files in the res/layout folder of the framework-res.apk and the status*.smali files in the services.jar.
What? If I want to implement a Theme made with the UOT Kitchen (without battery) I should just copy over those files to my existing res-framework.apk OR copy over the whole res-framework.apk (the new one) and sign it?
EDIT: Just tried it with a theme from the UOT Kitchen and it worked perfectly. I've just signed the res-framework.apk and the htc.com.resources.apk (or whatever) in the Kitchen, flashed it on my Phone and it just worked like a Charm. But I have got a 50% Transparent Notification Bar and all the system icons (Battery and time/date) are still black and not transparent! Has anyone got a idea where to change this? (.xml or whatever)...And does anyone know where I can find the HTC Wallpapers? I want to change them a little bit
HeyItsLou said:
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
HeyItsLou, I looked up your ROM thread but couldn't locate the video tutorial.... do you mind providing the url? Specifically, I am trying to add to the list of wallpapers in a ROM. (I have setup apktool but not sure where/which folder to add my wallpapers in Framework-res.apk Launcher.apk before recompiling/signing). Thanks.
You COULD use the Theme Porter by daneshm90. It will only port the PNG s for it so things like clock colour n stuff will be lost, but it will get you alot closer...
http://forum.xda-developers.com/showthread.php?t=737526
Sent from my HTC Hero using XDA App
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
DomiKamp said:
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
Click to expand...
Click to collapse
Isnt that what I said in the 2nd post -.- lol jk. Glad you got it working!
Yes! And that's why I tried it. And it worked! Thanks Husker and, of course, everybody else!
Glad you got it working. Welcome to the development side of android!
Sent from my PC36100 using XDA App
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
bestialbub said:
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Click to expand...
Click to collapse
I was curious about this too. I always edit the framework-res of any ROM I flash using a custom set of images I have and have never signed the apk afterwards and it has always worked. Maybe cause I'm only replacing images? I usually do this with framework-res and twframework-res and they both can sometimes grow by 1MB or more. Just my experience.
Sent from my SAMSUNG-SGH-I897 using XDA App
DomiKamp said:
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
Click to expand...
Click to collapse
I think that in order to do the "welcome to" thing you'll have to edit the update-script file. I'm not 100% on it though. Look at a cm Rom and see what all is in there.
Sent from my HTC Evo 4G using XDA App
I've seen it asked quite a few times now, so I thought I would share how I've been creating my own themes for the Nook. This is a quick and dirty guide as I've almost got it down to a science for quick, keyboard shortcut, theming.
Things you'll need
Photoshop or The Gimp for editing files
Android SDK so you can push and pull files to/from the Nook.
draw9patch app in the Android SDK /tools folder for creating 9.png files
APK Manager (http://forum.xda-developers.com/showpost.php?p=6703735&postcount=1)
Notepad++ or some other text editor for editing XML files. After using Notepad++ on this, I'd highly recommend it though
An attention span
Some restraint
This is a rather good guide that helped me get started. My only complaint is that it is almost to complicated and includes more information than what is needed for a basic theme.
http://forum.xda-developers.com/showthread.php?t=916814
Getting Started:
Download the Android SDK and get it installed.
Download APK Manager
ADB pull /system/framework/framework-res.apk
Make a copy of the framework-res.apk files as a back-up in case you need to revert
Copy the framework-res.apk file to the /place-apk-here-for-modding folder under the APK Manager folder
Launch the APK Manager Script.bat file
Type in 22 to select the default project
Type in the number next to framework-res.apk in the list to select it as your project
Select 1 to extract the files
Select 9 to decompile (this is what makes the XML files readable)
Go to the /projects/framework-res/res folder under the APK Manager folder to view all the files from the theme
Images are located in the /drawable-mdpi folder. XML files are located throughout, but the files specific to layout are under the /layout folder. To change global settings, such as color codes and strings, edit the XML files under the /values folder.
Creating custom PNG files: If you are using Photoshop, use the Save For Web feature when saving. Save the image as PNG-24. Select None under the Matte option. Select None under Metadata.
A word on 9.png files: 9.png files are files that can be stretched by the OS. There is a 1 pixel border all the way around the image. In that 1 pixel border, you'll notice solid black lines here and there. The black pixels indicate which portions of the image are to be stretched. You can add this border and the black pixels in Gimp or Photoshop, or you can open the file the draw9patch app under the Android SDK /tools folder. The draw9patch app will actually display how the image will look when stretched as you add the black pixels around the border, so it can come in handy and it's what I prefer to use. You can open and edit .9.png files in draw9patch and edit the border even after you save the file.
Once you have all your files edited, recompile the APK package with APK Manager
Option 11
y
y
It will tell you to delete the files under the /keep folder that you have edited. Delete any images and XML files, from the /keep folder, you edited under the /projects folder. If you edited XML files, delete the /keep/res/resources.arsc file as well
Press any key to continue and let the script finish
In a separate command line window, mount your Nook's /system folder (adb shell mount -o remount,rw /dev/block/mmcblk1p2 /system)
back in APK Manager, select 8
/system/framework/framework-res.apk
Reboot your Nook
Boot Loop: If you messed something up and are stuck in a boot loop, most of the time you can still mount your Nook, push the original framework-res.apk to it and reboot. Or, you can use an unedited version of the CWM flashable zip file from the link below.
NOTE: it is not smart to push your framework-res.apk file to the Nook. I've learned the hard way that you can only do this about 10 times before you run out of memory and can no longer boot your Nook until you reflash Froyo again.
I'd recommend only a few flashes on a bare bones copy of Froyo until you feel comfortable with working on the framework theme. After that, I'm attaching a base, flashable zip for you to use in CWM so you can flash the theme instead of pushing. This will prevent you from getting stuck in a boot loop (unless you do something wrong yourself).
To add your framework-res.apk file to the zip, just open the zip and replace the /system/framework/framework-res.apk file (I'd recommend 7zip).
A Few Goodies
I'm including all of the PSD files I use to edit and create themes. If you want to create your own, custom theme, these will get you started. The only downside to these PSD files is that they are at the MDPI scale. If you want to create an HDPI theme, you'll need to increase the sizes.
Link to PSD files for creating your own theme, plus the flashable CWM zip file:
http://jjis.me/android-theme-templates
Hey man, I know you theme the froyo roms, but Im attempting a theme for the Phiremod CM7 and I cant seem to get anything but splash hangs and bootloops. I theme CM7 for the hero so I know my way around that, but Im wondering if theres something about the Nook that I have to do differently. For instance what is the mount.sh file you have in the tools folder on your themes? Is that only for froyo? Any help you could give me would be appreciated.
PMDColeslaw said:
Hey man, I know you theme the froyo roms, but Im attempting a theme for the Phiremod CM7 and I cant seem to get anything but splash hangs and bootloops. I theme CM7 for the hero so I know my way around that, but Im wondering if theres something about the Nook that I have to do differently. For instance what is the mount.sh file you have in the tools folder on your themes? Is that only for froyo? Any help you could give me would be appreciated.
Click to expand...
Click to collapse
CM7 is a little different than the stock builds of Froyo and others. They use the theme manager for it. If you are looking to theme for CM7, I'd suggest learning what it is needed to package it for the theme manager. I spent about an hour one day trying to find documentation, but couldn't. If can, or have it, please let me know where to find it so I can link to it and use it myself.
With that said, it appears that CWM does not flash, or at least mount, the same on the Nook. I'm assuming it's because it's on the external SD card and not internal. The mount.sh file was borrowed from samuelhaff's flashable ROMs. It actually tells CWM to mount the internal memory and flash to it.
If you are flashing without the mount.sh, it could be why you're getting the boot loops.
CWM uses edify language instead of amend. Again, it took me forever to find little to no documentation on it.
If you are using the mount.sh file and you are still getting stuck in a boot loop, I did discover a little issue with it yesterday. I was trying to use it to flash my new theme without the Vending.apk mod and I kept getting stuck in a black screen during start up. I forgot my edify code deletes the Vending.apk file so that was causing my problem. If you know how to edit the file, go for it. If not, I'm planning on updating it to correct this. If you need to, for now, just copy the Vending.apk to your flashable zip file.
It deletes the services.jar file as well. This was a requirement on Froyo since the status bar text is black by default. The services.jar file has to be edited to change the status bar text to white. Since CM7 does not need that change, try pushing just the framework-res.apk file, reboot and see if you boot successfully. If so, that is more than likely your problem.
wretchedlocket said:
CM7 is a little different than the stock builds of Froyo and others. They use the theme manager for it. If you are looking to theme for CM7, I'd suggest learning what it is needed to package it for the theme manager. I spent about an hour one day trying to find documentation, but couldn't. If can, or have it, please let me know where to find it so I can link to it and use it myself.
With that said, it appears that CWM does not flash, or at least mount, the same on the Nook. I'm assuming it's because it's on the external SD card and not internal. The mount.sh file was borrowed from samuelhaff's flashable ROMs. It actually tells CWM to mount the internal memory and flash to it.
If you are flashing without the mount.sh, it could be why you're getting the boot loops.
CWM uses edify language instead of amend. Again, it took me forever to find little to no documentation on it.
If you are using the mount.sh file and you are still getting stuck in a boot loop, I did discover a little issue with it yesterday. I was trying to use it to flash my new theme without the Vending.apk mod and I kept getting stuck in a black screen during start up. I forgot my edify code deletes the Vending.apk file so that was causing my problem. If you know how to edit the file, go for it. If not, I'm planning on updating it to correct this. If you need to, for now, just copy the Vending.apk to your flashable zip file.
It deletes the services.jar file as well. This was a requirement on Froyo since the status bar text is black by default. The services.jar file has to be edited to change the status bar text to white. Since CM7 does not need that change, try pushing just the framework-res.apk file, reboot and see if you boot successfully. If so, that is more than likely your problem.
Click to expand...
Click to collapse
Thanks for the reply! I actually took yours apart and was able to correct my script and I noticed that the delete services.jar line was causing issues as well. If you can I'd like you to take a look at the updater script after I edited it and see if you see any errors. It's attached below. I have gotten the framework and other themed apps to flash fine, but for some reason the themed market will not install. After flash it is in the /system/app folder as vending.apk. but it doesn't actually replace the stock market anywhere else. I actually spent several hours today trying to get the market back because I got frustrated and went all delete happy in root explorer, lol.
As far as Theme Chooser goes, here is a decent tutorial, but I haven't taken the time to really try and change my whole MO to use it. I theme the aospCMod for the heroc without using the chooser app. You can also get some good tips on building themes for the chooser in the #aospbot irc channel. A few of the guys in there build themes for it.
View attachment updater-script.zip
PMDColeslaw said:
Thanks for the reply! I actually took yours apart and was able to correct my script and I noticed that the delete services.jar line was causing issues as well. If you can I'd like you to take a look at the updater script after I edited it and see if you see any errors. It's attached below. I have gotten the framework and other themed apps to flash fine, but for some reason the themed market will not install. After flash it is in the /system/app folder as vending.apk. but it doesn't actually replace the stock market anywhere else. I actually spent several hours today trying to get the market back because I got frustrated and went all delete happy in root explorer, lol.
As far as Theme Chooser goes, here is a decent tutorial, but I haven't taken the time to really try and change my whole MO to use it. I theme the aospCMod for the heroc without using the chooser app. You can also get some good tips on building themes for the chooser in the #aospbot irc channel. A few of the guys in there build themes for it.
View attachment 546902
Click to expand...
Click to collapse
Stupid question, but you are copying the vending file as Vending.apk and not vending.apk, correct?
Also, if you're using my themed market, there are only two icons that are customized. The rest looks stock.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
wretchedlocket said:
Stupid question, but you are copying the vending file as Vending.apk and not vending.apk, correct?
Also, if you're using my themed market, there are only two icons that are customized. The rest looks stock.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
Click to expand...
Click to collapse
Yeah the file is Vending.apk but its my themed market.
Sent from my NookColor using Tapatalk
PMDColeslaw said:
Yeah the file is Vending.apk but its my themed market.
Sent from my NookColor using Tapatalk
Click to expand...
Click to collapse
Sorry for the delay in response. I had too many things to do with the family yesterday.
If you haven't got this working yet, I'd suggest trying to start with removing just the /system/app/Vendind.apk file via the updater-script. If it works, then go back in and add each additional line until you run into problems again. At that point, you'll know what your problem is.
Since everything else (framework-res.apk, services.jar, etc.) gets replaced successfully, leave those lines alone. I'd just start with the basics of replacing the Vending.apk first and then work your way back up from there.
Hello. I'm using a Galaxy Y and no one there from the boards seems to know exactly how this stuff works so I thought I'd ask here. So I've picked a few icons from the Galaxy Ace which I think would look briliant and I thought I'd try replacing only the png files instead of downloading the apk file, replacing the icons with 7zip and such, signing (if needed?) and then sending back.
I'm asking how this works because I've stumbled upon a flashable zip which seems to only replace png's inside the apk files instead of replacing the whole apk file.
Here is an example of what I'm talking about:
http://www.mediafire.com/?xycxo8vvvwqr29t
^ I saw some apkreplacer file in there.
Now I removed all the icons there and only left the ones I want to use and I also edited the Icon.sh file and left out only the lines for the icons that I want to be replaced. Saved, signed, flashed, no changes. (Tried both CWM and stock Recovery)
Any tips on how to do this? All I want is the Touchwiz blue icon changed, the Phone icon and the SMS/MMS.
How do I add LTE icons to my status bar? The rom I'm on doesn't tell me and they just launched it in my area so I'd like to know when I get LTE and when I'm not.
Try a different ROM. AOCP is good and it shows LTE.
dubsteps said:
Try a different ROM. AOCP is good and it shows LTE.
Click to expand...
Click to collapse
The thing is that I have to stay with this particular rom. It's the one that's gotten me the fastest speeds on T-Mobile LTE. I just need to know how to add the Icons to a rom.
What's the icon scheme of that Rom?
It could add simple as swapping images... or way more involved. I'm guessing it's like aosp (the way it should be)
E= 2g
3g= 3g
H= hspa+ (what north American carriers falsely label as 4g)
4g=lte
Are you wanting?:
4g= hspa+
4g lte= lte
That's just a few image swaps in the systemui.apk you can do that with 7zip without having to decompile it.
studacris said:
What's the icon scheme of that Rom?
It could add simple as swapping images... or way more involved. I'm guessing it's like aosp (the way it should be)
E= 2g
3g= 3g
H= hspa+ (what north American carriers falsely label as 4g)
4g=lte
Are you wanting?:
4g= hspa+
4g lte= lte
That's just a few image swaps in the systemui.apk you can do that with 7zip without having to decompile it.
Click to expand...
Click to collapse
My icons say 4G = 4G and LTE
I'd love it to say 3G, 4G and 4G LTE
Thanks for the info though. I'll give it a shot. This will be perfect!
studacris said:
What's the icon scheme of that Rom?
It could add simple as swapping images... or way more involved. I'm guessing it's like aosp (the way it should be)
E= 2g
3g= 3g
H= hspa+ (what north American carriers falsely label as 4g)
4g=lte
Are you wanting?:
4g= hspa+
4g lte= lte
That's just a few image swaps in the systemui.apk you can do that with 7zip without having to decompile it.
Click to expand...
Click to collapse
I couldn't figure it out, but this really helped me out. I'm gonna keep trying. Thanks again!
studacris said:
What's the icon scheme of that Rom?
It could add simple as swapping images... or way more involved. I'm guessing it's like aosp (the way it should be)
E= 2g
3g= 3g
H= hspa+ (what north American carriers falsely label as 4g)
4g=lte
Are you wanting?:
4g= hspa+
4g lte= lte
That's just a few image swaps in the systemui.apk you can do that with 7zip without having to decompile it.
Click to expand...
Click to collapse
This is very cool.
I'm using ES File Explorer and GIMP to do my editing of .png files.
I've gotten as far as changing the .png images, copying the files back to my internal sd card, compress the files and rename to: SystemUI.apk
My problem is that I can't install SystemUI.apk from my sdcard, and I can't copy the SystemUI.apk to the folder: \System\app where the original SystemUI.apk is located.
What do I do now?
Ok you need to add the images to the apk on your pc not within the phone then paste the entire apk into /system/app
there's usually a setting in the explorer's settings to mount the system read/write. It's read/only by default which is why you can't paste there.
But by there sounds of it the apk could be broken.
You can do some independent research and make a flashable zip to avoid some of the redundant copy/paste
Better still would be to simply use adb to push and pull apps hither and thither
If it crashes the way you're doing it
Start over this way:
(Still using the copy/paste method you are)
Go to system/app and copy systemui.apk
Paste in sdcard
Mount and copy to pc
Use 7zip to pull out the /res/drawable-xhdpi (assuming your running stock dpi)
Edit your images.
Drag and drop new images into place in apk.
Copy newly edited apk to sdcard
Copy from sdcard to /syste/app
This is the baby steps to making themes
Just dig in and play once you get more familiar comes the fun stuff
Decompiling apks to make code edits
I am looking forward to your success, GQ!
Good instructions, cris. I'm going to give this a go -- good challenge.
rangercaptain said:
I am looking forward to your success, GQ!
Good instructions, cris. I'm going to give this a go -- good challenge.
Click to expand...
Click to collapse
Done yet?
Do we have some new themers coming up? Easiest way to start doing is to take on a simple task like this.
Great help Studa ...
Sent from my Big Ass Outlaw Phone
Bubbajoe40356 said:
Do we have some new themers coming up?
Click to expand...
Click to collapse
No sir. Its a tempting thought, but I just follow others' coattails.
Lemme just clarify, those instructions are for:
EDITING AN EXISTING IMAGE IN THE APK
NOT ADDING ENTIRELY NEW IMAGES.
Adding new images requires telling the coding where to look for it which requires decompilation.
Much more involved.
Hey Studacris!
Ok, I tried it your way.
Go to system/app and copy systemui.apk
Paste in sdcard
Mount and copy to pc
Use 7zip to pull out the \res\drawable-xhdpi (assuming your running stock dpi)
Edit your images.
Drag and drop new images into place in apk.
Copy newly edited apk to sdcard
Copy from sdcard to \syste\app
I'm using ES File Explorer and I'm at the point where you state: Copy from sdcard to \system\app
When I try to copy the file I get Permission Denied.
-
I tried ROM Toolbox Pro root file manager and it copied, auto rebooted my phone and then I lost my background and now the status bar doesn't show up. =\
----------------------------------------------------------
So what I did to get it to work!!!
I downloaded the ROM I was using to my computer, and unzipped the ROM (I was using Unofficial SlimBean Build 5) to a new folder.
Then went into the new folder: \system\app folder and copied the SystemUI.apk to another folder: SystemUI
In SystemUI folder, I opened the SystemUI.apk file with 7zip and went to res\drawable-xhdpi folder and edited files:
stat_sys_data_connected_4g.png
stat_sys_data_fully_connected_4g.png
Put those files in the SystemUI.apk back where I got them.
Copied my edited SystemUI.apk back into the unzipped rom folder \system\app and overwrote
Rezipped the entire ROM and copied to my SDCard. Then copied from my SDCard to my External Card.
Rebooted to Recovery and flashed the ROM. Rebooted to System.
Voila! I'm seeing LTE instead of 4g!
THANKS SO MUCH STUDACRIS!
Fox Alpha! Nicely done, lads.
Good job man
Great job. Studa has taught a man to fish. Nicely done.
Sent from my Big Ass Outlaw Phone
Now he can eat icons everyday for life.
Another Disney story here at xda.
Sweeeeeeeet!!!!!
Time for the JB update. It has LTE icons.
rangercaptain said:
Time for the JB update. It has LTE icons.
Click to expand...
Click to collapse
I'm too scared to update though because I'll lose my ability to get LTE I think. The 4.0.4 versions have been the only roms that i can get LTE with.
My question is simple. I am trying to use Tmobile HSPA+ indicator network for Galaxy S4/S5, which is a 4G icon, on another Carrier Galaxy S5, in my case Sprint, which has a 3G icon for HSPA+.
My first thought was to change the ro.product.name and ro.product.device properties from the build.prop file to kltetmo, which is the value that tmobile galaxy s5 has, and this worked as I was getting the TMobile 4g icon, but a popup message saying "unfortunately itson has stopped" showed up every second.
I got that idea from this post
I have also have been reading this and this but they are trying to change the whole status bar.
Is there a way to do this? Can I just change a file name and make this work? What can I do to accomplish this.
thanks.
locorecto said:
My question is simple. I am trying to use Tmobile HSPA+ indicator network for Galaxy S4/S5, which is a 4G icon, on another Carrier Galaxy S5, in my case Sprint, which has a 3G icon for HSPA+.
My first thought was to change the ro.product.name and ro.product.device properties from the build.prop file to kltetmo, which is the value that tmobile galaxy s5 has, and this worked as I was getting the TMobile 4g icon, but a popup message saying "unfortunately itson has stopped" showed up every second.
I got that idea from this post
I have also have been reading this and this but they are trying to change the whole status bar.
Is there a way to do this? Can I just change a file name and make this work? What can I do to accomplish this.
thanks.
Click to expand...
Click to collapse
Should be just a PNG or qmg file name exchange.
Tulsadiver said:
Should be just a PNG or qmg file name exchange.
Click to expand...
Click to collapse
Ok. Attached is the SystemUI.apk. Maybe somebody can lead me in the right direction. Thanks Tulsadiver for the suggestion.
What does your emblem say? 3G+?
Try replacing your systemui with this one and see if anything changed. Backup your system first.
Tulsadiver said:
What does your emblem say? 3G+?
Try replacing your systemui with this one and see if anything changed. Backup your system first.
Click to expand...
Click to collapse
Good news, I was able to do this .
Tulsadiver, thanks for the help. My system says 3G when is connected to HSPA+. I was able to change the icon by simply renaming and changing a couple files. I had to try and guess as I couldn't find a viewer for qmg files but I was finally able to acomplish what I wanted. I will post the step by step a bit later. I am going to do the same thing for my S4 L720T as well since it has the same indicator bar.
I used the file stat_sys_data_connected_4g_tmo.qmg and gave it the name of all the follwing files in order to get this "working"
-SystemUI.apk\res\drawable-xxhdpi\stat_sys_data_activity_spr_[nn].qmg (nn from 01-12 )
-SystemUI.apk\res\drawable-xxhdpi\stat_sys_data_activity_spr_idle.qmg
-SystemUI.apk\res\drawable-xxhdpi\stat_sys_data_connected_3g_spr.qmg
Thanks again
Well, I am back because I am now experimenting some difficulties. I was able to do what I have posted on the OP on one phone. However, when I tried to replicate the same fix for another GAlaxy s5 with the same model and same build number as the one I fixed, sytemUI.apk is not rendering. It looks like when I change the file name inside the SystemUl.apk the signature of the apk changes and the system picks that. So when I restart the system, I get no status bar.
Is there any way I could fix go around this issue?
Well, I have investigated a bit more came across this post where it give you an idea on how to decomplile, edit and re-compile systemui.apk using a tool called Apktool. However, it looks like this is not working for my galaxy s5.
And the problem seems to be related to the signature of the file. As a matter of fact, I tried decompiling and re-compiling the systemui.apk without changes and the signature was different therefore my phone wasn't picking it up. So I am either doing something wrong or this apktool is not working for the galaxy s5.
Another weird things is, why in the world my first phone I just went into the SystemUI.apk file with 7zip and made all my changes and the apk worked just fine without compiling or decompiling. They are exactly the same phone model with the same software version, both rooted. This was really weird.
Tulsadiver said:
What does your emblem say? 3G+?
Try replacing your systemui with this one and see if anything changed. Backup your system first.
Click to expand...
Click to collapse
That didn't work bro. It looks like the signature was changed.
locorecto said:
Well, I have investigated a bit more came across this post where it give you an idea on how to decomplile, edit and re-compile systemui.apk using a tool called Apktool. However, it looks like this is not working for my galaxy s5.
And the problem seems to be related to the signature of the file. As a matter of fact, I tried decompiling and re-compiling the systemui.apk without changes and the signature was different therefore my phone wasn't picking it up. So I am either doing something wrong or this apktool is not working for the galaxy s5.
Another weird things is, why in the world my first phone I just went into the SystemUI.apk file with 7zip and made all my changes and the apk worked just fine without compiling or decompiling. They are exactly the same phone model with the same software version, both rooted. This was really weird.
Click to expand...
Click to collapse
Did you replace the meta-inf and android manifest with the original ones after recompiling?
yes, I did
I changed the quick setting toggles and status bar WiFi and data icons by exchanging them in root explorer.
I did just that on the first phone that I had and It worked, but on the second phone, I tried the same think, (Change the icon) and it doesn't work no matter what I do.
I was just reading about odexed and deodexed apps and I see that for the systemUI.apk there is a sytemUI.odex. Could that be the reason why my modified apk is not working? Do I need a Deodexed Rom in order to accomplish this?
locorecto said:
I was just reading about odexed and deodexed apps and I see that for the systemUI.apk there is a sytemUI.odex. Could that be the reason why my modified apk is not working?
Click to expand...
Click to collapse
Could be though I was able to change toggles on a odexed ROM. My understanding is that a ROM must be deodexed before you can properly decompile and edit it. I don't know if this root explorer would make a difference but it is the only one I've used for many years. I hardly use a PC anymore. You might give it a try. Go into the configuration and change root access to super user level. It is a duel pane window. They are duplicates of one another. Long press any apk and there is an option of opening the file as a zip.
Tulsadiver said:
Could be though I was able to change toggles on a odexed ROM. My understanding is that a ROM must be deodexed before you can properly decompile and edit it. I don't know if this root explorer would make a difference but it is the only one I've used for many years. I hardly use a PC anymore. You might give it a try. Go into the configuration and change root access to super user level. It is a duel pane window. They are duplicates of one another. Long press any apk and there is an option of opening the file as a zip.
Click to expand...
Click to collapse
Ok, I will try that when I get home. I will keep you posted. Thanks again for your help.
Tulsadiver said:
Could be though I was able to change toggles on a odexed ROM. My understanding is that a ROM must be deodexed before you can properly decompile and edit it. I don't know if this root explorer would make a difference but it is the only one I've used for many years. I hardly use a PC anymore. You might give it a try. Go into the configuration and change root access to super user level. It is a duel pane window. They are duplicates of one another. Long press any apk and there is an option of opening the file as a zip.
Click to expand...
Click to collapse
Well, that didn't work. I even installed a de-odexed rom and its doing the same thing, it's not recognizing the SystemUI.apk as a valid apk most likely because of its signature. Even if I move the file outside /system rename it and move it back, the app doesn't work.
I am clueless here.