[Q] Need help with twframework-res.apk - Galaxy S II Themes and Apps

Hello, so I just made few color changes on the drawable-hdpi folder images of twframework-res.apk. Then I pasted the new apk on my phone and replaced the current one on the system but nothing changed on the icons I made changes.
Do I need to follow any extra steps in order to make it work? I noticed there is a file called twframework-res.jar as well, so that may have to do with it?
The images I am trying to edit are the ones when you click the menu button(these are called ic_menu) and can also be found on the framework-res.apk. Also what is the difference between these two apks?

I find you get best results when flashing apks, and try clearing dalvik cache before you flash do it rebuilds the new images into the cache.
Hope this helps.

You can flash apk's? how ?
Using the install zip method? It doesn't show on the sdcard though.

Download a theme, open it with 7zip and go to the system folders. In these delete any apks. Then goto system/framework and put your apks in, then back all the way out. Boot into recovery and flash, job done.

Related

Request: change lockscreen

i love the modaco custom rom but would like to add the lockscreen from drizzys custom rom. (or any plain android looking lockscreen)
is there a way to extract the files i need and simply replacing them in the MRC? i guess its just an html file or something like that to replace, right?
I guess this is the HTCLockScreen.apk and .odex but since it's a system app, it cannot be installed or unistalled, and overwirting the apk in the system/app folder doesn't do anything.
If someone knows how to do it I will be very interested too.
im not sure if it will work but you can download my rom go to
system/framework
grab com.htc.resource.apk
now adb push com.htc.framework.apk /system/framework/
then reboot!
steps:
adb remount
adb push com.htc.framework.apk /system/framework/
adb shell
reboot
then if your phone loops then it didnt work, but if you go straight to you home screen then it should be fine!
good luck
"im not responsible for any wipes that you will have to do if you phone loops"
piflechien said:
I guess this is the HTCLockScreen.apk and .odex but since it's a system app, it cannot be installed or unistalled, and overwirting the apk in the system/app folder doesn't do anything.
If someone knows how to do it I will be very interested too.
Click to expand...
Click to collapse
its not in the lockscreen!
its in the framework!
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
soulehmoo said:
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
Click to expand...
Click to collapse
Thank you very much.
It works perfectly.
BR. Simemu
Thx it worked perfectly
I just pushed com.htc.resources.apk into the /system/framework folder.
Now is it also possible to change the notification bar with a similar method ?
I love the one from your Rom Drizzy Drake Rogers.
They are in framework-res.apk
A few jpg and png named status* in res/drawable-480x320/
Same method should apply.
As usual, would be smart to back up.
Edit: When I get some time off I may have a day messing with these files see about some different coloured UI's etc.
for me this does not work
what ive done is:
1. get the com.htc.resources.apk
2. extract it with rar
3. changed the mentioned png files
4. then i put them back into the archive (apk file, renamed as a zip file)
5. renamed the zip back to its original name
6. put the file as mentioned to the correct folder
there is no change.. is it a MUST to use apk builder, if yes, how to use that bat?
felikz said:
for me this does not work
what ive done is:
1. get the com.htc.resources.apk
2. extract it with rar
3. changed the mentioned png files
4. then i put them back into the archive (apk file, renamed as a zip file)
5. renamed the zip back to its original name
6. put the file as mentioned to the correct folder
there is no change.. is it a MUST to use apk builder, if yes, how to use that bat?
Click to expand...
Click to collapse
reboot and see if that works!
yes i did that, its not the case..
did you guys do it my way, or did you use adk builder?
Yeah use apk builder. Should work.
Edit: you sure its named right and in the right place?? It should have overwritten your old one.
and how to use apk builder??
okay, i signed the new apk with this http://www.anddev.org/signing_your_apk-application_for_release_keytooljarsigner-t3069.html
but that didnt work (the sign process worked, but then the hero looped)..
can anyone please tell how to sign the apk with apkbuilder??
Did you sign the .apk or the .png ????
Sorry...but i didn´t got a solution...i´m standing in front of the same problem like you
easier method here
http://forum.xda-developers.com/showthread.php?t=536271
no need to bother with apk builder with this method.
boomshaker said:
Did you sign the .apk or the .png ????
Sorry...but i didn´t got a solution...i´m standing in front of the same problem like you
Click to expand...
Click to collapse
signed the apk
soulehmoo said:
easier method here
http://forum.xda-developers.com/showthread.php?t=536271
no need to bother with apk builder with this method.
Click to expand...
Click to collapse
also this does not work for me --> phone loop
any idea, what i could do wrong? i am using windows paint (windows 7) to edit the files.. then i put the edited png files back into archive (thus, overwrite the files there) and push that apk file again back to its path.. after phone reboot the phone goes into endless loop
soulehmoo said:
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
Click to expand...
Click to collapse
I want to change my lockscreen, it all seems to make sense apart from editing the .png files..
What am I supposed to be changing in the files? Maybe I missed something, but that doesn't seem to have been explained
pookie1 said:
I want to change my lockscreen, it all seems to make sense apart from editing the .png files..
What am I supposed to be changing in the files? Maybe I missed something, but that doesn't seem to have been explained
Click to expand...
Click to collapse
tha background image of your lockscreen can be changed easily in the phone settings, but if you wanna change the other parts of the lockscreen, then you need to do it like told here ;-)
felikz said:
also this does not work for me --> phone loop
any idea, what i could do wrong? i am using windows paint (windows 7) to edit the files.. then i put the edited png files back into archive (thus, overwrite the files there) and push that apk file again back to its path.. after phone reboot the phone goes into endless loop
Click to expand...
Click to collapse
common guys, just a feedback!

Combining themes/mods before flashing?

Searching around has given little result. Most other threads talk about ripping framework.apks apart and combining them.
What I'm more interested is in combining things together and flashing them at one go (UVOC kernels, modified rosie.apks, modified battery on the notification bar), instead of one by one (renaming 1 zip to update.zip, drop into SD, boot, flash update zip, reboot, renaming another zip to update.zip, drop into SD, boot, flash, rinse, repeat).
For example, I have 3 zips,
A modified rosie.apk to give a transparent app drawer (fx-2.10.405.2_rosie-dnd_transappdrw.zip)
A Battery Custom Z (UOT-ZC-10-08-16-17-1.zip)
and a UVOC Kernel (thanks to richardtrip) (UVOC_Kernel.zip)
Opening them up through winrar,
the rosie has 2 folders, system/app and META-INF
the battery z has framework and also META-INF (which I assume to be the same?)
the UVOC kernal has system/lib, boot.img and META-INF as well.
how do I go about combining them into 1 zip? just cut/paste in winrar? then autosign?
And shouldn't the framework folder in the battery z zip be in system/framework?
Thanks in advance!
eden2812 said:
Searching around has given little result. Most other threads talk about ripping framework.apks apart and combining them.
What I'm more interested is in combining things together and flashing them at one go (UVOC kernels, modified rosie.apks, modified battery on the notification bar), instead of one by one (renaming 1 zip to update.zip, drop into SD, boot, flash update zip, reboot, renaming another zip to update.zip, drop into SD, boot, flash, rinse, repeat).
For example, I have 3 zips,
A modified rosie.apk to give a transparent app drawer (fx-2.10.405.2_rosie-dnd_transappdrw.zip)
A Battery Custom Z (UOT-ZC-10-08-16-17-1.zip)
and a UVOC Kernel (thanks to richardtrip) (UVOC_Kernel.zip)
Opening them up through winrar,
the rosie has 2 folders, system/app and META-INF
the battery z has framework and also META-INF (which I assume to be the same?)
the UVOC kernal has system/lib, boot.img and META-INF as well.
how do I go about combining them into 1 zip? just cut/paste in winrar? then autosign?
And shouldn't the framework folder in the battery z zip be in system/framework?
Thanks in advance!
Click to expand...
Click to collapse
you would also have to re-write the update script and/or binary
Rewriting update scripts and binary.. Oh boy.
I haven't gotten too far into ROMs yet. I don't think I will be rewriting scripts any time soon.
Thanks for you help anyway, Androhero!
On a side note, even if I were to flash the update.zips one by one...
Shouldn't the framework folder in the battery z zip be in system/framework instead of just sitting in the root of the zip? Does this even matter? or is that the way it is
Not nessesarly, thats what the update script is for, it basicall tells the recovery what to put where, you can also use it to delete files and carry out other commands, look in the meta inf folder the update script is in the google folder just open it with notepad
Sent from my HTC Desire using Tapatalk
Why do you need to rename to Update.zip if i may ask... just use clockwork... that way it gets a few less steps at least
1. Put all zips on sd card
2. flash rom
3. reboot to rom, let it load for 30 mins
4. Go back into recovery, flash all mods, in correct order (if you have to that flashes framework-res or something)
5. reboot
6. Have fun
AndroHero said:
Not nessesarly, thats what the update script is for, it basicall tells the recovery what to put where, you can also use it to delete files and carry out other commands, look in the meta inf folder the update script is in the google folder just open it with notepad
Sent from my HTC Desire using Tapatalk
Click to expand...
Click to collapse
So where exactly is the update script located?
Beaverman20 said:
Why do you need to rename to Update.zip if i may ask... just use clockwork... that way it gets a few less steps at least
1. Put all zips on sd card
2. flash rom
3. reboot to rom, let it load for 30 mins
4. Go back into recovery, flash all mods, in correct order (if you have to that flashes framework-res or something)
5. reboot
6. Have fun
Click to expand...
Click to collapse
I'm not exactly sure. I always thought that was the way.

[Q] Force Close after re-compiling framework-res.apk

Hi,
I'm trying to make some changes to framework-res.apk.
I user APK Manager 4.9 to decompile the file, then made one trivial change to a XML file (changed one auto brightness related value).
I then compiled back to APK without signing and pushed to the phone in recovery mode the deleted Dalvik cache just to be on the safe side.
No matter how I play with it I always get FC from all the system apps immediately after the phone completes the boot process.
Some more information:
1. My original APK had directories like /res/drawable-hdpi-v4 while after decomplie they become res/drawable-hdpi (without the "v4")
2. After I recompile the "v4" directories are not created back and the generated APK contains the directories without the v4
3. If I use the "Reduce errors" feature of the APK manager complie option then I end up with APK that contains both the directories with v4 and those without.
4. I tried with the "reduce errors" option and without it (in which case I manually copied the signature directory into the APK) but got same FC.
5. It seems that once the FCs begin to happen they don't stop until a full nandroid restore. Even if I put the original framework.res.apk file I still get FCs after rebooting.
6. I'm using Revolution HD 2.0.11 ROM
7. The APK file I'm trying to modify was generated by the UOT kitchen.
Any idea what am I doing wrong?
No one knows?
erank said:
No one knows?
Click to expand...
Click to collapse
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
AndroHero said:
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
Click to expand...
Click to collapse
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
erank said:
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
Click to expand...
Click to collapse
Too true, the only other thing you could try is to sign the .apk before pushing it....
Sent from my Desire HD using Tapatalk
AndroHero said:
Too true, the only other thing you could try is to sign the .apk before pushing it....
Click to expand...
Click to collapse
Thanks AndroHero.
Everywhere I was looking they always say not to sign system APKs, but just to be sure I also tried signing it and not signing but copying the original META-INF directory - always got the same result - FC in all systems apps after boot.

[Q] how to undo non-paginated rosie launcher 1 on synergy

Well the title says it all... I downloaded and updated the non-paginated rosie addon/theme from synergy updater. I want to go back to how it was previously. I'm not sure how I can do that. Any help would be great.
just reflash the rom without wiping anything (ok, a wipe of dalvik and cache never hurts). you'll lose all system mods you have done so far, but it's the only way besides restoring a nandroid or manually replacing the files (which i assume you don't want/know how to do)
I'm sure I can do that, what files do I need to replace. I saw Rosie_scroll in astro.
jm503 said:
I'm sure I can do that, what files do I need to replace. I saw Rosie_scroll in astro.
Click to expand...
Click to collapse
lol rosie_scroll is the cache for the rosie on the sdcard that won't help. to replace files, open the zip you flashed, and find out what files it changed (ignore the META-INF folder btw, that's where the signatures and update scripts are). then just open the rom zip, and find the same files. now adb push, push using root explorer, or build a flashable zip of those files.

[Q] HTC Locations' App. on other Custom ROMs

Hi,
I need to install HTC's Locations app on any custom ROM (ie: MyOneV or CM9/CM10)
So any1 can help me with this ?
(i tried it though, by moving these files (from MyOneV5.0FX Removed apks) htclocation.apk,locationpicker.apk,locatiooninstaller.apk in System/app folder bt it didn't worked)
When you move those files to system app manually, you need to put right permission rw-r--r-- then reboot.
Or the simplest way is, open the Removed_Apks_RC5.x.zip with 7-zip (not extract), delete all apks that you don't need and leave those location files in zip.
Then flash the zip in recovery.
And these files will not work on a CM rom.
ckpv5 said:
When you move those files to system app manually, you need to put right permission rw-r--r-- then reboot.
Or the simplest way is, open the Removed_Apks_RC5.x.zip with 7-zip (not extract), delete all apks that you don't need and leave those location files in zip.
Then flash the zip in recovery.
And these files will not work on a CM rom.
Click to expand...
Click to collapse
:good:
Thankz
I tried that too, by removing all apks from zip keeping the said three files & flash it in recovery, still it doesn't appeared in apps!
Though i'll try again may b missed something or some file..
I just tried it, it works.
Your filename looks different, attached here the files from the Removed_Apks_RC5.x.zip, I named it to location.zip. Flash in recovery.
It Worked: Thanx

Categories

Resources