Status bar background - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

How to change the status-bar background?
i want to change the transparent black background with the image in attachment so that it match my theme.
So which files i have to replace with this background?
Using xPeria Mini with stock ICS ROM

So no help?:crying:

piousheart said:
So no help?:crying:
Click to expand...
Click to collapse
Try to post in Themes and Apps section.

Publiuss said:
Try to post in Themes and Apps section.
Click to expand...
Click to collapse
What is this thread?

mobilephone01 said:
What is this thread?
Click to expand...
Click to collapse
Actually this thread was in general but i moved it
And guys will you all please stick to the topic..any help?

maybe this ??
http://forum.xda-developers.com/showthread.php?t=1786889

iiandskater said:
maybe this ??
http://forum.xda-developers.com/showthread.php?t=1786889
Click to expand...
Click to collapse
See here is my systemUI.apk please add the image at OP (opaque)

piousheart said:
See here is my systemUI.apk please add the image at OP (opaque)
Click to expand...
Click to collapse
Why not do it yourself? There is plenty of TUT's around that help you decompile and recompile apks.

evilbarcode said:
Why not do it yourself? There is plenty of TUT's around that help you decompile and recompile apks.
Click to expand...
Click to collapse
I tried but when i recompile it & push it in system\app with proper permission, after rebooting phone it stuck bootlogo..
The same happens when i tried to decompile DefaultThemes.apk & MusicWidget.apk they both were not installed...
then i searched & found that we have to compress the resources.arc blablablaaa... & signing with recompiling system apk..
Still after giving a lot of tries i dont understand how to use signing & compress resources.arc blablaballl idk..
If you know than may be you can teach
Rebooted my phone 100z of time to check every method i found but no success
Now i dont wana harm my phone, rebooting it again & again for the things that isn't working for me...
See this thread, i asked on xda but people aren't explaining properly, they just stop answering after certain question:crying:

piousheart said:
See this thread, i asked on xda but people aren't explaining properly, they just stop answering after certain question:crying:
Click to expand...
Click to collapse
Well, I am a bit on the busy side.... I assume you didn't try my tool then?
To do this manually, you need to first recompile your apk after you've done all your changes. You already know this bit.
Then:
Make a copy of the old apk
Use 7zip to open both the copy and the recompiled apk
Drag the 'res' folder from the recompiled apk to the copy
Close the copy
Extract 'resources.arsc' from the recompiled apk
Add 'resources.arsc' to the copy, selecting 'STORE' compression
Close the recompiled apk
Open the copy and check that resources.arsc has the same size and packed size
Reboot the phone and go into recovery
Mount the /system partition
Push the apk straight to the right folder
Unmount the /system partition
Reboot the phone
Wait for it all to load
Wait a bit longer
Wait a bit longer still
And you're done.
If you've pulled the app from the phone to a Windows PC then you don't need to worry about permissions. That's only when you copy the app to your sdcard or pull the app using Linux.
Going into recovery might not be needed. Pushing system apps while the phone is running can cause some nasty bugs so I always use recovery just to play it safe. You'll need to reboot most of the time anyway to see the changes you've made.
Instead of pushing, you could make a flashable zip. As an amazing coincidence, Tickle My Android can do that too.

Ticklefish said:
Well, I am a bit on the busy side.... I assume you didn't try my tool then?
To do this manually, you need to first recompile your apk after you've done all your changes. You already know this bit.
Then:
Make a copy of the old apk
Use 7zip to open both the copy and the recompiled apk
Drag the 'res' folder from the recompiled apk to the copy
Close the copy
Extract 'resources.arsc' from the recompiled apk
Add 'resources.arsc' to the copy, selecting 'STORE' compression
Close the recompiled apk
Open the copy and check that resources.arsc has the same size and packed size
Reboot the phone and go into recovery
Mount the /system partition
Push the apk straight to the right folder
Unmount the /system partition
Reboot the phone
Wait for it all to load
Wait a bit longer
Wait a bit longer still
And you're done.
If you've pulled the app from the phone to a Windows PC then you don't need to worry about permissions. That's only when you copy the app to your sdcard or pull the app using Linux.
Going into recovery might not be needed. Pushing system apps while the phone is running can cause some nasty bugs so I always use recovery just to play it safe. You'll need to reboot most of the time anyway to see the changes you've made.
Instead of pushing, you could make a flashable zip. As an amazing coincidence, Tickle My Android can do that too.
Click to expand...
Click to collapse
Thank you brother i will try it
and yes i have your tool too, it helped me to restore system fonts when i messed with it & had a bootloop:victory:
Great tool:good:
BTW can i use winrar instead of 7zip?
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?

piousheart said:
Thank you brother i will try it
and yes i have your tool too, it helped me to restore system fonts when i messed with it & had a bootloop:victory:
Great tool:good:
BTW can i use winrar instead of 7zip?
Click to expand...
Click to collapse
Excellent. I'm glad it helped.
Technically, you could use any archival program but it has to be one that lets you add files to an archive without compressing them. I find 7zip to be fairly quick and user-friendly. Plus, it's free which is always a good thing.

Ticklefish said:
Excellent. I'm glad it helped.
Technically, you could use any archival program but it has to be one that lets you add files to an archive without compressing them. I find 7zip to be fairly quick and user-friendly. Plus, it's free which is always a good thing.
Click to expand...
Click to collapse
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?

piousheart said:
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
Click to expand...
Click to collapse
I don't know. I don't even know if winrar can do it. That's why I suggested using 7zip instead.
To check sizes, just open the app (again, this is using 7zip) and look at the numbers to the right of resources.arsc. One is the original size of the file, the other is the size it's been compressed to. These need to be the same.

Ticklefish said:
I don't know. I don't even know if winrar can do it. That's why I suggested using 7zip instead.
To check sizes, just open the app (again, this is using 7zip) and look at the numbers to the right of resources.arsc. One is the original size of the file, the other is the size it's been compressed to. These need to be the same.
Click to expand...
Click to collapse
Leme have my hands on some app..
Edit : I tried this but when ever i put it back to sdcard and look at it the app loses its icon ( just a green android logo ) and when i put it in syste\app with proper permission & then restart it doesn't install and even i tried to install as normal apk then it says parse problem..
What i am doing wrong i followed the same procedure above & also the size of resources is same.

piousheart said:
Leme have my hands on some app..
Edit : I tried this but when ever i put it back to sdcard and look at it the app loses its icon ( just a green android logo ) and when i put it in syste\app with proper permission & then restart it doesn't install and even i tried to install as normal apk then it says parse problem..
What i am doing wrong i followed the same procedure above & also the size of resources is same.
Click to expand...
Click to collapse
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.

Ticklefish said:
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Click to expand...
Click to collapse
Okay thanks..
So i tried to mod even after knowing that it wont work as before..
So what i did in DefaultThemes.apk is edited the Androidmanifest & string files to change the name & nothing else
is i am doing it editing wrong file and yes how can i use your tool for this?

Originally Posted by Ticklefish<br />
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.<br />
<br />
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.<br />
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Click to expand...
Click to collapse
<br />
<br />
Okay thanks..<br />
So i tried to mod even after knowing that it wont work as before..<br />
So what i did in DefaultThemes.apk is edited the Androidmanifest & string files to change the name & nothing else<br />
is i am doing it editing wrong file and yes how can i use your tool for this?
Click to expand...
Click to collapse
To be honest, I don't know how to change the name of an app. It's something I've never done before.
I suspect that you've gotten the mod wrong somewhere but unfortunately I can't advise on where that could be.
Sorry, mate.

Related

[q] change stock 2.1 lockscreen clock font

Hi everyone,
can anybody tell me how I can change the font of the stock SE lockscreen? I don't want to use an app for this (lockbot, etc). Just want to change the font or the images the clock uses. Help me please!
G.
The font is in the framework-res in the assets folder.
And how can I edit that? It is in the framework, extract is ok, but how can create an .apk after change font? Thanks for help anyway.
garyarts said:
And how can I edit that?
Click to expand...
Click to collapse
By pulling the contents, modding, then pushing them back. Read the theme reference thread for tips.
Great! Thanks again!!!
And if i'm ready (change font, rename as an apk), should I paste over the original apk by RE for example? Is that all?
garyarts said:
And if i'm ready (change font, rename as an apk), should I paste over the original apk by RE for example? Is that all?
Click to expand...
Click to collapse
No need to be renaming anything. Just open the apk as you would any other zip and pull the files, after modding them just drag and drop them back into the framework.apk. Some say you can use RootExplorer to overwrite the original but I've done it twice in the past and both times the phone stuck at boot, so recommend using adb to push back to the phone and install.
That's why I asked, cuz last two times the same happened to me, device frozen in boot. May I use QtADB? It looks working easier for me.
garyarts said:
That's why I asked, cuz last two times the same happened to me, device frozen in boot. May I use QtADB? It looks working easier for me.
Click to expand...
Click to collapse
You can use whatever, so long as you can push and install files, like MrRusch's Mod Tool
Do you use it anyway? (x10ModTool)
garyarts said:
Do you use it anyway? (x10ModTool)
Click to expand...
Click to collapse
No, I prefer using adb directly.
qtADB should be ADB with a GUI, an user friendly version of it. Thanks.
done, but nothing changed. Is it sure those fonts to be changed? Is it possible to create a kind of a zip able to flash by x-rec?

[HOW TO] CRT-Effect only

This is just the plain CRT effect. No custom roms, no pre-made files or anything. (You need root)
I've searched for this on XDA, Google, other forums etc. but I couldn't find it.
It always showed up ROMs including this feature, not the actual feature itself
DO A BACKUP BEFORE EDITING ANY FILES!
Also, you need root
1. Pull framework-res.apk from the /system/framework/ folder via ADB (Alternate way below*)
2. Decompile framework-res.apk with APKTool/APK Manager (Whatever you prefer..)
3. Navigate to /res/values/ and open the bools.xml file with Notepad++ (Notepad works too )
4. Search for "config_animateScreenLights" and change the "true" to "false".
5. Save, and compile the file. Open the fresh-compiled file and copy resources.arsc to the original apk. (Overwrite the existing one)
Click to expand...
Click to collapse
Transfer the framework-res.apk file back to your phone, and then switch it with the original one
You must reboot to make it work!
*If you don't know how to push/pull files via adb, you can use Root Explorer and copy it to the /sdcard/ folder, then transfer it to your PC.
If you switch it back with root explorer, programs will start to force close. Just reboot and you'll be fine
Click to expand...
Click to collapse
CWM Flashable template
Use the attachment below as a template for flashing with CWM.
Open the .zip file, and place your framework-res.apk in system/framework/
Then extract it to your phone and flash it
Click to expand...
Click to collapse
Thank you very much, Worked
tried it on KF2
Don't forget to share what you make mentioning what fw it is from
Sent from my GT-I9100 using XDA App
Rawat said:
Don't forget to share what you make mentioning what fw it is from
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Doesn't matter, it's integrated in every Android 2.3 devices.
Sent from my GT-I9100 using XDA App
thanks for this, could you possibly make a similar "how to" for the overscroll glow effect?? Been searching everywhere and can't find a simple guide
viva.fidel said:
thanks for this, could you possibly make a similar "how to" for the overscroll glow effect?? Been searching everywhere and can't find a simple guide
Click to expand...
Click to collapse
I'll see what I can do
Edit: Looks like there's something wrong with my firmware.. I don't have a classes.dex files within framework.jar
And it's hell of a process to do it, so I might have to re-concider this :/
Edit 2: I dont have a deodexed rom, and when I try to deodex it, it fails
Is the Pixelbug still there?
Sent from my GT-I9100 using XDA App
i think metamorph app supports editing system files... can u make a compatible zip?
DooMLoRD said:
can u make a compatible zip?
Click to expand...
Click to collapse
Sorry, I'm waaaaay to lazy to create a zip compatible for every single firmware out there. I can't take a framework file from KE2 and think it works on a phone with KF3..
fuzzl said:
Is the Pixelbug still there?
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Pixelbug?
No idea what that is, but I can't see any pixels being stuck or anything.
Thanks, but...
Would you like to explain step 5 a bit further? I'm a bit confused. I'm using apk manager and it asks me a bunch of things and you don't tell me where to overwrite the arsc-file, etc.
sackynuts said:
Thanks, but...
Would you like to explain step 5 a bit further? I'm a bit confused. I'm using apk manager and it asks me a bunch of things and you don't tell me where to overwrite the arsc-file, etc.
Click to expand...
Click to collapse
Ah, so sorry.
Open the original framework-res with WinRar. And do the same with the modified. In there you'll see the resources.arsc file
If you don't know how to use APK Manager, use google.
Not trying to be rude, I'm just in a little hurry
I'll ask a mod later if he can move on of my posts up, and then I can perhaps create a more user friendly guide
Sent from my GT-I9100 using XDA App
bruflot said:
I'll see what I can do
Edit: Looks like there's something wrong with my firmware.. I don't have a classes.dex files within framework.jar
And it's hell of a process to do it, so I might have to re-concider this :/
Click to expand...
Click to collapse
No worries, thanks for having a look though
Sent from my GT-I9100 using XDA App
viva.fidel said:
No worries, thanks for having a look though
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Well, I can take a further look, but only if you upload your framework.jar file and then send it to me.
Sent from my GT-I9100 using XDA App
bruflot said:
Doesn't matter, it's integrated in every Android 2.3 devices.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
I read your thread, and know what you posted.
What I'm saying is that if someone makes the anim for example KF3, it would only take a few seconds to upload so other people could use, while diy CRT anim takes at least 5 mins even if you know what you're doing.
bruflot said:
I have always liked the CRT effect, but it got kinda annoying to always have a custom ROM installed to have it (I prefer stock ROMs )
I've searched for this on XDA, Google, other forums etc. but I couldn't find it.
It always showed up ROMs including this feature, not the actual feature itself
DO A BACKUP BEFORE EDITING ANY FILES!
Transfer the framework-res.apk file back to your phone, and then switch it with the original one
You must reboot to make it work!
I don't know the adb commands for switching the system files, so if anyone could tell them to me?
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
So to send a file to system in adb I used
Code:
abd push (new apk with mods) /sdcard // used to temp move it
adb shell
su
mount -o remount,rw /system
mv /sdcard/framework-res.apk /system/framework/framework-res.apk
Is that what you were asking?
bruflot said:
Well, I can take a further look, but only if you upload your framework.jar file and then send it to me.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
That I can do no problem, appreciate you willing to look into this, used to have CM7 on my old HTC Desire and missing the overscroll effect! The only how-to thread on this I could find was [MOD][PORT][04-16] Android 2.3 Overscroll Glow MOD for Galaxy S I9000 (Gingerbread) but it's only for specific SGS firmwares, might be of some help to you still
Hmm...I don't have a res/values folder (just res, there is no values). There is also no Books.xml anywhere in the apk. I'm on stock rooted KE7...Is the value somewhere else on my version? Am I doing something wrong?
TheSopranos16 said:
Hmm...I don't have a res/values folder (just res, there is no values). There is also no Books.xml anywhere in the apk. I'm on stock rooted KE7...Is the value somewhere else on my version? Am I doing something wrong?
Click to expand...
Click to collapse
And you decompiled it right? I know i you were to just open the apk it would have a res but not res/values.
I followed the instructions ... and used APK Manager, I complied, signed, and before i quit it asked me to delete a file...resources.arsc
do i have to do that?
also, i noticed the APK Manager made signed apk of less size as compared to original file
original apk file size = 8.05 mb
complied, signed apk = 5.16 mb
is that normal?
infra4800 said:
I followed the instructions ... and used APK Manager, I complied, signed, and before i quit it asked me to delete a file...resources.arsc
do i have to do that?
also, i noticed the APK Manager made signed apk of less size as compared to original file
original apk file size = 8.05 mb
complied, signed apk = 5.16 mb
is that normal?
Click to expand...
Click to collapse
yeh same thing happend to mine, works fine though also use LCD Density to change the DPI to 240 to get rid of the pixelated crt animation

Need Help

Posted it here because i need a dev.
I pulled my Framework-res.apk and modified all the icons for everything. I decompiled using apktool.
My question is what steps do i take now (do i need to sign it, what a good tool to recompile it as apktool does and gives me a framework-res.apk but caused my phone not to boot up)..also someone said seomthing about resources.arsc or something..not sure where to go...thanks for your help.
Open ur new apk using 7zip (righr click>7zip>open archive) and do the same with ur old one. Delete the resources.xxxx(i dont know the name by heart lol) and drag and drop the one (by one i meant the resources.xxxx file) from the new zip to the old zip and adb push ur old frameworkres apk and reboot
Sent from my PG86100 using XDA App
kpkimmel said:
Posted it here because i need a dev.
I pulled my Framework-res.apk and modified all the icons for everything. I decompiled using apktool.
My question is what steps do i take now (do i need to sign it, what a good tool to recompile it as apktool does and gives me a framework-res.apk but caused my phone not to boot up)..also someone said seomthing about resources.arsc or something..not sure where to go...thanks for your help.
Click to expand...
Click to collapse
sounds more like a question. Use apk manager and or 7zip
how does just that one file carry over all the new pics and stuff i changed...
edited......
What exactly have you edited? If you just change non patch9 images... then you can just drag and drop the new images into the apk (may have to rename apk to zip).
If they are patch9's... you need to..
decompile framework-res.apk (apktool d framework-res.apk)
swap out images
recompile (apktool b framework-res)
Now take the newly compiled apk (in the /dist folder). Open it up and take the edited images (only the ones you need changed) and put them into your original apk.
No need to resign just push it to your phone and verify that it works
If you are editing xml files in /values* or /layout..
do the same as above, except after re-compiling, you're going to swap over the resources.arsc file to the original apk.
This is using apktool... in my experience apk manager doesn't do the job to my expectations... so i just do it manually with apktool.
Lemme know if u need anything more, or if i didnt touch on a specific situation.
Btw, maybe to combat the retarded comments about q&a and being in the right section... maybe turn the OP into a How-To?
preludedrew said:
What exactly have you edited? If you just change non patch9 images... then you can just drag and drop the new images into the apk (may have to rename apk to zip).
If they are patch9's... you need to..
decompile framework-res.apk (apktool d framework-res.apk)
swap out images
recompile (apktool b framework-res)
Now take the newly compiled apk (in the /dist folder). Open it up and take the edited images (only the ones you need changed) and put them into your original apk.
No need to resign just push it to your phone and verify that it works
If you are editing xml files in /values* or /layout..
do the same as above, except after re-compiling, you're going to swap over the resources.arsc file to the original apk.
This is using apktool... in my experience apk manager doesn't do the job to my expectations... so i just do it manually with apktool.
Lemme know if u need anything more, or if i didnt touch on a specific situation.
Btw, maybe to combat the retarded comments about q&a and being in the right section... maybe turn the OP into a How-To?
Click to expand...
Click to collapse
Thank you very much..finally...one last question, where do i put the wallpaper so when the system is fully booted it shows the wallpaper i want? Thanks.
kpkimmel said:
Thank you very much..finally...one last question, where do i put the wallpaper so when the system is fully booted it shows the wallpaper i want? Thanks.
Click to expand...
Click to collapse
There's an xml edit for it... but forgot it off the top of my head... quickest way is to replace system/customize/resource/shows_over.jpg with your image.
preludedrew said:
There's an xml edit for it... but forgot it off the top of my head... quickest way is to replace system/customize/resource/shows_over.jpg with your image.
Click to expand...
Click to collapse
Thanks you, sorry about the stupid framework-res question...i knew the answer but had been so long forget the simplest of steps....instead of normal compression i was using store instead.....duh.......thank you though for the reminder because 7zip will automatically restore the same it was decompressed with, unlike that crap winrar. Have a good one man and thank you again.

Question on designing custom battery icons?

If the battery icons are just png files, couldn't I create my own images in photoshop and replace the framework-res.apk files with my custom icons? If so, does anyone know the typical dimensions for the png images? I replaced my original battery with the ICS battery thanks to a suggestion of using NinjaMorph.
You can extract the framework-res. Apk from the system folder. Tinker around with what you find inside it. Use 7zip to modify the zip without having to resign it.
Now, flashing the update zip is not going to be easy without recovery. But you can assess png dimensions, and tinker with modding them meanwhile. It's a hobby of mine also
Sent from my HTC ThunderBolt using XDA Premium App
Sean Hicks said:
You can extract the framework-res. Apk from the system folder. Tinker around with what you find inside it. Use 7zip to modify the zip without having to resign it.
Now, flashing the update zip is not going to be easy without recovery. But you can assess png dimensions, and tinker with modding them meanwhile. It's a hobby of mine also
Click to expand...
Click to collapse
Thanks. I used the ICS battery info that I have now which was 25x25 png images and created my own battery images and animations, but when I use NinjaMorph to resign the apk nothing happens on reboot. Not sure if the sizing is off or what. So when you use 7zip you just flash the new zip in recovery? Can't seem to find the apk for 7zip
Click to expand...
Click to collapse
boyj600 said:
Sean Hicks said:
Thanks. I used the ICS battery info that I have now which was 25x25 png images and created my own battery images and animations, but when I use NinjaMorph to resign the apk nothing happens on reboot. Not sure if the sizing is off or what. So when you use 7zip you just flash the new zip in recovery? Can't seem to find the apk for 7zip
Click to expand...
Click to collapse
When you use NinjaMorph, make sure to 'finish' the project by clicking on the button, then on the project. Also, make sure the files were named exactly the same and were replaced. The battery icons used in the framework-res.apk were the ones names like such:
stat_sys_battery_bn_40.png
stat_sys_battery_bn_60.png
stat_sys_battery_bn_80.png
etc....
Click to expand...
Click to collapse
I'm piggybacking on this thread, but I have a question about replacing the battery images.
I've got the images (from this post: http://forum.xda-developers.com/showpost.php?p=21003708&postcount=10), but when I open the the image folder (with NinjaMorph) in framework-res.apk/res/drawable, I can't find the corresponding image files.
In that folder, where I thought the battery images were, I have a few .xml files (stat_sys_battery.xml, stat_sys_battery_bn.xml etc) and only 2 .png files (stat_sys_battery_charge_anim6.png and stat_sys_battery_charge_anim7.png).
Am I in the wrong place, or where have I messed up along the way? Thanks in advance for any replies.
as far as image sizes go mine are 38x38 png files and they work fine. i have used several different sets without fail. also to save time you dont have to change the images, just the ones with the "bn" in the name.
also if you are doing all this on a computer you can download metamorph from the market, there is a free and paid version, and you can create the file path to the images using correctly named folder in a zip file and use metamorph to auto install. i have not tried this method myself but it should work.
@topched in ninjamorph start a new project, go to system > framework > framework-res.apk > res > drawable-mdpi, scroll down till you see the battery images.
also if you wanted to create the metamorph the file path is framework-res > res > drawable-mdpi
and if you wanted to change your wifi meter to match your battery meter, like i do, the path is system > app > SystemUI.apk > res > drawable-mdpi
metamorph filepath would be SystemUI > res > drawable-mdpi
iirc its in drawable-mdpi
Edit: oops didnt see the last reply.
Sent from my HTC EVO 3D X515m using xda premium
Once you rezip the framework-res.apk, you can use adb to replace it as well.
adb devices
adb remount
adb push c:\location of apk file /system/framework/framework-res.apk
adb reboot
That will allow you to change the images without recovery. though I think nearly everyone has recovery now anyhow.
Also note, you want to replace the images into the framework-res.apk file without extracting it. open it with winrar or 7zip, navigate to the drawable-mdpi folder, drop images in and click ok on adding/altering the file. Then push it back.
Ok I finally got the icons replaced after tinkering and trying the suggested methods. Thanks for all of the input and direction. This is my Android battery. Pretty basic, but something I thought might look cool.
Know-Fear said:
Once you rezip the framework-res.apk, you can use adb to replace it as well.
adb devices
adb remount
adb push c:\location of apk file /system/framework/framework-res.apk
adb reboot
That will allow you to change the images without recovery. though I think nearly everyone has recovery now anyhow.
Also note, you want to replace the images into the framework-res.apk file without extracting it. open it with winrar or 7zip, navigate to the drawable-mdpi folder, drop images in and click ok on adding/altering the file. Then push it back.
Click to expand...
Click to collapse
i turn the zip into an apk and edit the images using ninjamorph
kcpaynev1 said:
i turn the zip into an apk and edit the images using ninjamorph
Click to expand...
Click to collapse
Ninjamorph has really been hit or miss with me. I have always used ninjamorph and metamorph before that with high rates of success. On the NT, it seems like it will work sometimes, and other times it does nothing. I noticed it mostly with the menu.background.png trying to alleviate the white on white issue. I replaced the image at least 20 times and it did nothing. Finally I just gave up on it and pushed the new .apk with adb and it was done.
Know-Fear said:
Ninjamorph has really been hit or miss with me. I have always used ninjamorph and metamorph before that with high rates of success. On the NT, it seems like it will work sometimes, and other times it does nothing. I noticed it mostly with the menu.background.png trying to alleviate the white on white issue. I replaced the image at least 20 times and it did nothing. Finally I just gave up on it and pushed the new .apk with adb and it was done.
Click to expand...
Click to collapse
Only time I have issues is when I forget to turn on usg debugging after a reboot
Sent from my Nook Tablet using Tapatalk
Know-Fear said:
Ninjamorph has really been hit or miss with me. I have always used ninjamorph and metamorph before that with high rates of success. On the NT, it seems like it will work sometimes, and other times it does nothing. I noticed it mostly with the menu.background.png trying to alleviate the white on white issue. I replaced the image at least 20 times and it did nothing. Finally I just gave up on it and pushed the new .apk with adb and it was done.
Click to expand...
Click to collapse
I was having this issue but used ninjamorph combined with 7zip on my pc and the two worked together flawlessly
boyj600 said:
If the battery icons are just png files, couldn't I create my own images in photoshop and replace the framework-res.apk files with my custom icons? If so, does anyone know the typical dimensions for the png images? I replaced my original battery with the ICS battery thanks to a suggestion of using NinjaMorph.
Click to expand...
Click to collapse
heres an example on how to edit the files in framework-res.apk.
what i did was extract the Battery.png's into a folder, then i edit them in paint, then i use photoshop to make the background transparent because paint saves them with a white background. im doing em 1 by one. its very time consuming. once i am done editing them, i will move them back into framework-res.apk (Hopefully overwriting the other files of the same name).. then from there, im still looking on how to create a flashable zip.
NOTE: i always save them with the same name as when they were extracted from framework-res.apk
funnyangrykid said:
heres an example on how to edit the files in framework-res.apk.
what i did was extract the Battery.png's into a folder, then i edit them in paint, then i use photoshop to make the background transparent because paint saves them with a white background. im doing em 1 by one. its very time consuming. once i am done editing them, i will move them back into framework-res.apk (Hopefully overwriting the other files of the same name).. then from there, im still looking on how to create a flashable zip.
NOTE: i always save them with the same name as when they were extracted from framework-res.apk
Click to expand...
Click to collapse
Let me know if you figure out the flashable zip. I've been wondering about that.
boyj600 said:
Let me know if you figure out the flashable zip. I've been wondering about that.
Click to expand...
Click to collapse
will do.
i found this. http://forum.xda-developers.com/showthread.php?t=732957 this is new to me so im gonna test it on my phone first before i share it.
funnyangrykid said:
i found this. http://forum.xda-developers.com/showthread.php?t=732957 this is new to me so im gonna test it on my phone first before i share it.
Click to expand...
Click to collapse
Sweet! I may give this a run when I get a chance. I'm trying to theme my HTC Rezound with a custom battery and anything else I can tinker with. Thanks.

[Q] neo V (.62 fw) problem with recompiled Home.apk

Hi.
Sorry, I wasn't sure if it should be in "Themes", so I posted in General.
I've got neo V with root made on .42 (with ZergRush) and .62 stock fw installed via OTA. I was trying to change the number of desktops in Home.apk. What I do, generally:
1. Decompile Home.apk
2. Edit "number_of_desktop_panes" in values/integers.xml
3. Edit values/styles.xml to avoid compilation error (as advised here).
4. Edit DesktopModelManager.smali (as adviced here), but there's slightly different code (different line number and variable (?) name).
5. Recompile, replace with /system/app/Home.apk
The replace process is 100% good, because restoring original Home.apk do not cause any problems.
I do it from adb. I made the /system/tmp/ dir and given it 777 chmod to do it faster (without /sdcard). I mount /system as R/W, push Home.apk to /system/tmp/, change chmod to 644, then replace /system/app/Home.apk with it. Sometimes I try "sync", sometimes not.
It works only with stock Home.apk.
The problem is with recompiled apps.
I tried:
- xdaAutoTool
- ApkMultiTool
- ApkTools (from here)
- ApkTools (from here)
I also tried signing the app and not signing it (as mentioned here).
I also tried installing another launcher (GO Launcher EX), changing it to default, then replacing Home.apk, then changing again.
I also (huh) tried recompiling the app without any changes (except the one in styles.xml, without it, compilation would not succeed).
I also (getting boring) tried skipping the .smali edit.
Nothing works. If I replace Home.apk without reboot, the Home button doesn't work (single press) and if I was on the desktop when replacing app - it becomes black, no dockbar, nothing.
If I reboot - the phone freezes on SE logo, fortunately I can access it with ADB - when I replace Home.apk with stock one, the phone boots in a couple of seconds without a reboot.
I've got Win7 Professional x64, the newet JRE and JDK for x64, tried newest and older apktool.jar, smali.jar and other files. ApkMultitool was working on the yesterday-updated Android SDK folder. And I have no idea, what am I doing wrong... Do you have any ideas?
EDIT:
- earlier I successfully replaced SystemUI.apk with the changed one (Ultrans v2b) - no problems here
- I've got locked BL and I didn't install any recovery
If i understood corect your problems seems because busybox check your version;
and it easy to work with apk manager here is the link:http://forum.xda-developers.com/showthread.php?t=695701
umarian said:
If i understood corect your problems seems because busybox check your version;
Click to expand...
Click to collapse
Why busybox would check the Home.apk version? Or maybe I misunderstood you? If it was about busybox's version, I've got 1.18.4
umarian said:
and it easy to work with apk manager here is the link:http://forum.xda-developers.com/showthread.php?t=695701
Click to expand...
Click to collapse
Like I said, I tried it (ApkMultiTool). Decompiles, recompiles, signs (or not) correctly. Just the .apk doesn't work.
Man send a pm my english it not so good and i try to to help if i can
umarian said:
Man send a pm my english it not so good and i try to to help if i can
Click to expand...
Click to collapse
Thanks, I sent you a PM.
I will also check the procedure on 32bit system in a couple of hours. If anyone has another idea, please let me know.
Just checking you know semc home has a dependancy app and won't compile correct with out said app /framework or semcgeneric.apk
Sent from my Xoom using Tapatalk
kormatoes said:
Just checking you know semc home has a dependancy app and won't compile correct with out said app /framework or semcgeneric.apk
Click to expand...
Click to collapse
I had no idea, compile and decompile didn't report any errors so I assumed it should be OK.
As I never changed apk with dependencies, can you explain me two things?
1. Which files from /system/framework should I pull and where to place them before decompiling with ApkMultiTool?
2. Will files from framework be changed or are they only needed as resources and are left untouched?
WRonX said:
I had no idea, compile and decompile didn't report any errors so I assumed it should be OK.
As I never changed apk with dependencies, can you explain me two things?
1. Which files from /system/framework should I pull and where to place them before decompiling with ApkMultiTool?
2. Will files from framework be changed or are they only needed as resources and are left untouched?
Click to expand...
Click to collapse
Honest it's been months since I used,
decompile with dependency ie framework-
Res.apk then change stuff
Then recompile and in keep folder remove what you changed including resources if xml were changed hopefully you get what im saying
Sent from my MT15i using Tapatalk
OK, I think I got this - SemcGenericUxpRes.apk
Home.apk decompiled with dependencies from this file, then I changed it and compiled. Still the same thing.
Maybe the res file was wrong? Or should I sign it with ApkMultiTool?
WRonX said:
OK, I think I got this - SemcGenericUxpRes.apk
Home.apk decompiled with dependencies from this file, then I changed it and compiled. Still the same thing.
Maybe the res file was wrong? Or should I sign it with ApkMultiTool?
Click to expand...
Click to collapse
Try framework-res.apk
Then try and get different apk tool we use apkmanager
Sent from my MT15i using Tapatalk
kormatoes said:
Try framework-res.apk
Then try and get different apk tool we use apkmanager
Click to expand...
Click to collapse
You were right, thanks. I must have tried with the wrong file earlier, because I was quite sure I tried framework-res.apk - and I didn't. And yes, the app should be signed after build.
Now, the Home.apk is working with my changes, but only after this little "hack" from Chainfire.
But I've got another stupid problem - the only thing that doesn't work is the "Photos and Videos" widget... I think I'll give up...
WRonX said:
You were right, thanks. I must have tried with the wrong file earlier, because I was quite sure I tried framework-res.apk - and I didn't. And yes, the app should be signed after build.
Now, the Home.apk is working with my changes, but only after this little "hack" from Chainfire.
But I've got another stupid problem - the only thing that doesn't work is the "Photos and Videos" widget... I think I'll give up...
Click to expand...
Click to collapse
Now you get it keep going If you changed layout of desk top
widgets need doing to tho
Sent from my MT15i using Tapatalk
kormatoes said:
Now you get it keep going If you changed layout of desk top
widgets need doing to tho
Click to expand...
Click to collapse
Thanks, but in case of widgets I don't even know, where to start from. Why the hell only a couple of them doesn't work now? Photos and Videos, Music Player and Timescape Widget - I think that's all. I have no idea, where it came from :/
EDIT: OK, now I have an idea, but it scares me. As I can see, the only way to compile and run the .apk was to remove
Code:
android:sharedUserId="com.sonyericsson.home"
From AndroidManifest. Now, if I understand properly, the widget needs Home.apk to HAVE that ID? Because logcat says:
Code:
W/System.err( 3399): java.lang.SecurityException: Requesting code from com.sonyericsson.advancedwidget.photo (with uid 10004) to be run in process com.sonyericsson.home (with uid 10138)
Long story short: WTF?!
WRonX said:
Thanks, but in case of widgets I don't even know, where to start from. Why the hell only a couple of them doesn't work now? Photos and Videos, Music Player and Timescape Widget - I think that's all. I have no idea, where it came from :/
EDIT: OK, now I have an idea, but it scares me. As I can see, the only way to compile and run the .apk was to remove
Code:
android:sharedUserId="com.sonyericsson.home"
From AndroidManifest. Now, if I understand properly, the widget needs Home.apk to HAVE that ID? Because logcat says:
Code:
W/System.err( 3399): java.lang.SecurityException: Requesting code from com.sonyericsson.advancedwidget.photo (with uid 10004) to be run in process com.sonyericsson.home (with uid 10138)
Long story short: WTF?!
Click to expand...
Click to collapse
android:sharedUserId="com.sonyericsson.home that's the problem try replacing the compiled resources in a fresh apk
Sent from my MT15i using Tapatalk
I tried removing the same ID from AndroidManifest in PhotoWidget.apk, but it didn't work.
The only thing I've managed to get to know is that no widget from com.sonyericsson.advancedwidget.framework will work and also that I'm not the only one, who has problems with it
kormatoes said:
try replacing the compiled resources in a fresh apk
Click to expand...
Click to collapse
Forgive me, but I don't understand. Can you explain it?
I'm unsure what your trying to do but if you get the resources fileand any thing else you changed from the home apk that you made,
and then put IT inside a fresh home apk -ie new untouched home.apk
this should help with what you're saying your problem is
Sent from my MT15i using Tapatalk
kormatoes said:
I'm unsure what your trying to do but if you get the resources fileand any thing else you changed from the home apk that you made,
and then put IT inside a fresh home apk -ie new untouched home.apk
this should help with what you're saying your problem is
Click to expand...
Click to collapse
OMG, I did it
First of all - I didn't understand you at the first time, about resources and "new" .apk. Now I think I got it (not everything, but enough to get this to work).
The problem I found on my private PC (earlier I was using other PC) was the "Sorry thats not the dependee apk, try again" error when trying to decompile Home.apk with framework-res.apk. It didn't happen before, but I was so tired with all of that, I wanted to try the shortest way, so here's what I did:
1. Decompiled Home.apk without dependencies
2. Made some changes I wanted to make
3. Just compiled the app, answering "y" for question about system app, but without copying "additional files".
4. Replaced resources.arsc file inside original (stock) Home.apk with the one from just compiled unsignedHome.apk, installed and...
- working Home.apk - checked
- working widgets - checked
- happy me - checked!
Thanks!
Your wellcome
Sent from my MT15i using Tapatalk 2 Beta-5

Categories

Resources