[Q] Flash custom zip? - Sony Xperia P, U, Sola, Go

hi..
ive tried the Eracter rom today, but it didnt work on my phone, so i went back to Pimms Experience rom. but i wanted the battery status and signals status from Eracter status bar. So i extracted systemui.apk from Eracter, copied all the files from \res\drawable-hdpi and into the Experience systemui.apk via Virtuous Ten Studio. compiled a new systemUI.apk. that all went good.
but now the question. how do i get this new systemUI.apk installed on my phone? i cant overwrite it on the phone because it is a running app. cant force to stop the app, phone wont stop it even if i say it should. so i tried thru CWM and found a lot of empty flashable zips, this dont work either, i am getting an error 0 when flashing the zip. installation aborted. i tried to make a zip with xdaAutoTool, but also this zip file failes.
I then found a font installer zip, erased whats inside the zip and made system\app\systemUI.apk and this one installed and phone startet up with updating apps. but it didnt change anything at the stausbar.
so how can i install my systemUI.apk???? i am on Acro s 6.1.a.2.5.0 lt26w
and still have to say, customizing iphone is way easier sorry guys.
please help

I did the opposite of this, I used Pims' SystemUI.apk in the Eracter ROM.
You can find here how to create a zip file to flash it via CWM.
Only thing you have to do is to put your SystemUI.apk to the blank zip file.
/system/app/SystemUI.apk
http://www.galaxynexusforum.com/for...ds-wip-installs-update-zip-cwm.html#post20493

csd.droid said:
I did the opposite of this, I used Pims' SystemUI.apk in the Eracter ROM.
You can find here how to create a zip file to flash it via CWM.
Only thing you have to do is to put your SystemUI.apk to the blank zip file.
/system/app/SystemUI.apk
http://www.galaxynexusforum.com/for...ds-wip-installs-update-zip-cwm.html#post20493
Click to expand...
Click to collapse
thanks man!!! that worked, my zip installed with no errors. BUT it didnt change a thing my battery icons and antenna are still the same as before. but when i open systemUI.apk with Root Browser i can see that it is mine systemUI file. its the new icons inside the file. so anybody now where the acro / experience rom takes it statusbar from?

Related

[GUIDE][HOWTO] theme for the Nook

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.

[Q] How do I edit systemui.apk?

Just wondering how to do it? I'm just trying to change the colour of the signal bars in the notification bar.
I'm running Lite'ning ROM 5.0 and I've replaced the .png files in systemui.apk with 7zip. I then use root explorer to copy into /system/app but the notification bar disappears after I reboot. I also tried editing with ninjamorph and resigning with signapktic with no luck.
Any idea what I'm doing wrong?
Cheers.
you need to decompile it, do changes, compile it an than copy it to the right folder.
decompiling can be done with tools like apk manager.
Great thanks! Will give it a go.
Actually for something as small as couple of image changes you don't need to de compile
You can just open the apk in 7zip add your files then put it in a flashable zip.
some things must change in the framework-res.apk too, or am i wrong?!
esk02k said:
Actually for something as small as couple of image changes you don't need to de compile
You can just open the apk in 7zip add your files then put it in a flashable zip.
Click to expand...
Click to collapse
As in a CWM update zip? Is there a program that can make it flashable?
Edit: Actually I got it all working with the app "Ninjamorph"

[Froyo]9 Lockscreen mod without small icons for JPU

Hi all.
First, all credits go to Kyrillos and Hillbeast cause they show me how to fix that
Sooo here we go : You wanna enable 9 lockscreen mod without these ugly small bug icons and you want that with every deodexed JPU rom ?
Follow those steps !
* Download this .zip : Download here
It contains the framework and the libs that enable 9 lockscreen mod.
* Now you have two choices:
- Either you flash by CWM directly, without changing anything, so you will have by default the theme of Kyrillos v9.0+.
If you do so, then you can flash all themes that are compatible with 9 lockscreen mod (Delete all the .jar files in the update !! And follow the theme installation of course )
- Either you change the .zip, by adding your own framework-res.apk and twframework-res.apk (Do not forget your themed apps, add a folder 'app' in /system (Use 7-Zip to do so))
WARNING : Do not remove / modify the lib folder or these three files from framework folder : framework.jar, services.jar and android.policy.jar
* Reboot your phone, and enjoy
Credits :
Kyrillos for helping and his modified framework
Hillbeast for show me the way of missing libs
___________________________________________________________________
Got problems ? Read this :
I flash my theme and I got a bootloop ???
Click to expand...
Click to collapse
Try wipe dalvik cache.
If it doesnt work, check that you have removed all .jar in the .zip of your theme. You only need jars files from my zip that you downloaded.
Then if it doesnt work too, post in the thread, the community will help you
You should add that it works on JPU. On any other froyo firmware it may be buggy.
Ah sorry yes..
I always forgot that Indians got an other firmware... Sorry, will modify that ^^'
If someone on ddjp6 could try and tell us, would be great
Sent from my Elora galaxy 3
Is this 9 lockscreen MOD?
Yes, it's a way to enable it in JPU (with a default theme : Kyrillos v9.0+, and all libs required)
After flash it, u can flash every theme which requires 9 lockscreen mod, like Miui 1.4.5 by Ghost in the Ruins for example
I'm currently on a stock JPU deodexed with the Miui 1.4.5 theme
So do i have to install kyrllios 9+?
Sorry for questions. I'm noob.
Certainly not
You can just flash this .zip from CWM without modified anything and enjoy with 9 lsm. By default, you'll get Kyrillos v9.0 THEME, just the theme ^^
Then, you can flash every theme you want that requires 9lsm
Nice share mate. This should solve the confusion. I will redirect my theme threads to here for users who are not on custom ROMs.
Is every lib file is necessary in the package you provided, because I noticed that one lib file is of terminal emulator.
I put libs files from Hillbeast.
I will modify it when i can
Sent from my Elora galaxy 3
After flashing the file (wiping dalvik-cache and cache) and rebooting my bootanimation appears but after that booting stucks and all I see is a black screen. It won't start at all.
I tried flashing the zip as it is and a zip containing my framework-res.apk and twframework-res.apk from a UOT-Kitchen-Theme. I also did a third zip containing my SystemUI.apk (which is not affected by my UOT Theme)
For replacing I used 7zip as recommended and also Total Commander.
I'm using a Custom deodexed JPU with converted filesystem as follows:
stl6 ext2
stl7 ext4
stl8 ext2
Any idea on fixing this? (I have a CWM-Backup, so nothing can get lost )
t-rip said:
I tried flashing the zip as it is and a zip containing my framework-res.apk and twframework-res.apk from a UOT-Kitchen-Theme. I also did a third zip containing my SystemUI.apk (which is not affected by my UOT Theme)
For replacing I used 7zip as recommended and also Total Commander.
Any idea on fixing this? (I have a CWM-Backup, so nothing can get lost )
Click to expand...
Click to collapse
Is the framework that you put in the zip 9 lockscreen modded?? Either flash the zip as it is or put a framework-res.ap that is 9 lockscreen modded into the zip and flash,
And SystemUI.apk?? We don t have SystemUI.apk in Froyo. Please don t put that.
I flashed it as it is AND with my modded framework-res.apk and twframework-res.apk. So I flashed 2 different zips with restoring system and wiping caches between the flash operations. Both zips didn't work.
The SystemUI.apk I used is the one I took from my phone and I replaced the one in the zip for testing purposes.
Do I only have to replace the framework-res.apk and have to leave twframework-res.apk untouched?
t-rip said:
I flashed it as it is AND with my modded framework-res.apk and twframework-res.apk. So I flashed 2 different zips with restoring system and wiping caches between the flash operations. Both zips didn't work.
The SystemUI.apk I used is the one I took from my phone and I replaced the one in the zip for testing purposes.
Do I only have to replace the framework-res.apk and have to leave twframework-res.apk untouched?
Click to expand...
Click to collapse
No. twframework-res.apk is not modded for 9 locks. Its the same. If you flashed the zip as it is without replacing any files and it still didn t work?? Then I don t have any idea.:/
That's the problem. The provided zip doesn't work. I tried it.
alternative download link possible?
Hi all,
the link given in the first posting is dead -> goes to megaupload.
Would it be possible to get a mirror download link?
That would be very great.
Thanks in advance.
Cheers
qaysed
Yup, sorry. Due to down of MU, i'll give us an alternate download link, but it's not on this PC.
If someone else could up it for me (i could up it in 2 days) thanks in advance for all.
Here's a mirror while megaupload is down or you reuped the zip by yourself.
http://ul.to/ku5rvvya
runs perfect!
thanks for the quick mirror!
works like a charme.
No stopping services, no reboots or freezes.
Libs are also exchanged... that´s new to me.
I assume that is the root cause for my problems, in exchanging the frameworks.
Have to accustom myself to the four symbols on lock screen. First try: opened the phone
and thanks to halco for distributing the file
and of course hillbeast and kyrillos mentioned already in the first posting
Cheers
qaysed
hi, can you upload to other websites plz! Megaupload is dead

How can I turn my framework-res.apk into flashable zip?

Hello. I just learned how to create flashable zips, but every tutorial Ive seen only explains how to turn apps into flashable zips. I made a few updates to the framework-res.apk file for a rom and would like to save the changes into a zip file.
My concern is if I save my whole backed up framework-res file, when someone else goes to add this to their system, does it add the changes or does it completely replace their file with mine?
If this happens, how can I make a flashable zip that only adds a few changes to the framework-res.apk file without messing with any other settings?
sparkplug619 said:
Hello. I just learned how to create flashable zips, but every tutorial Ive seen only explains how to turn apps into flashable zips. I made a few updates to the framework-res.apk file for a rom and would like to save the changes into a zip file.
My concern is if I save my whole backed up framework-res file, when someone else goes to add this to their system, does it add the changes or does it completely replace their file with mine?
If this happens, how can I make a flashable zip that only adds a few changes to the framework-res.apk file without messing with any other settings?
Click to expand...
Click to collapse
it would kill the old file. Not sure how to stop that i it is even possible.
sparkplug619 said:
Hello. I just learned how to create flashable zips, but every tutorial Ive seen only explains how to turn apps into flashable zips. I made a few updates to the framework-res.apk file for a rom and would like to save the changes into a zip file.
My concern is if I save my whole backed up framework-res file, when someone else goes to add this to their system, does it add the changes or does it completely replace their file with mine?
If this happens, how can I make a flashable zip that only adds a few changes to the framework-res.apk file without messing with any other settings?
Click to expand...
Click to collapse
Not sure what you mean by "turning apps into flashable zips", but if you edit an apk and want to flash that to a phone through recovery (in a flashable zip package), it will replace the entire apk, not just your edits in the apk. It is not possible to flash only parts of an apk over another - it will always change the entire apk.
Ok thanks for the info.
What I am doing is creating a mod for my phones rom, several have been created and posted on the thread, the mod is just a simple crt animation disable. I had to edit the framework file in order to make this happen.
I've opened a few zip files and I see they have framework-res.apk files attached, so everytime I flash a mod to my phone, it is wiping all previous changes I've made to my framework-res.apk file?
sparkplug619 said:
Ok thanks for the info.
What I am doing is creating a mod for my phones rom, several have been created and posted on the thread, the mod is just a simple crt animation disable. I had to edit the framework file in order to make this happen.
I've opened a few zip files and I see they have framework-res.apk files attached, so everytime I flash a mod to my phone, it is wiping all previous changes I've made to my framework-res.apk file?
Click to expand...
Click to collapse
Yes, the files in the zip will overwrite your existing files. If you like one of those other mods, just decompile the framework-res with the themes that you want and edit the bools.xml line for CRT (config_animateScreenLights, or something like that if I recall), and recompile (deleting the resources.arsc from the keep folder if you use APK Manager). Or make your own themes for your mod...
Thats really strange, ive added plenty of mods to my phone and they all stayed intact, but when I check them out, they are all apks being flashed from zip files. Maybe I am missing something, or maybe I am not asking the question right, its just really hard to understand how it works. Also, I havent slept for over 24 hours so im really sketchy with processing info right now

[Q] Question for DNA themers

Hi guys,
I've been doing quite a bit of research and also quite a bit of trial and (all) error. I am currently trying to replace the battery icons in my current SystemUI.apk with battery icons from another SystemUI.apk (both DNA, of course). From what I read, it looks like I need to decompile the SystemUI.apk, but it appears that apktools currently does not work with the DNA. I have also tried just extracting the apk files using winrar, and then just copying the files over, but when I do that I the stat bar disappears and everything is black. I'm curious how you guys are managing to make basic mods like battery icons and transparent stat bar on the home screen when using Nova. I've read that the transparency needs to be done by editing a couple xml files, but the one in res/values is only available when you decompile.
As always, any tips or guidance would be warmly welcomed and greatly appreciated.
Thanks,
Steve
Use 7 zip to drop the new images into the zipped system UI then it will ask you to update archive and say yes. Then flash system ui.
That's the short version.
Do I actually need to flash, or can I just adb push while mounted in recovery?
Thanks,
stevedub40 said:
Do I actually need to flash, or can I just adb push while mounted in recovery?
Thanks,
Click to expand...
Click to collapse
You can do that as well, my main point was to use 7-zip, for image replacing I personally use zipthemer so I can use my theme on any rom, Each time I install a new rom i just need to run zipthemer on my phone and flash the zip it makes, and walah, themed to my liking.

Categories

Resources