Custom Power Menu - HTC Desire S

hey guys,
i just re-compiled latest 1.47.401.4 EU shipped rom with root permissions and i'm missing extended power menu with more reboot options like in custom roms (lbc,virtuous...)
what should i do to get that?i assume that need to edit framework.apk or similar but i wonder is there any way to use files from custom roms,if yes which one.thx.

....anyone??

+1 - exactly what I'm looking for too. Must be available as an .apk from somewhere, surely ...

chris5s said:
+1 - exactly what I'm looking for too. Must be available as an .apk from somewhere, surely ...
Click to expand...
Click to collapse
i think we need to modify framework.apk but not sure how ...

Use the UOT Kitchen to add the Power Menu.
If i tell you the exact files i reckon ill end up having to explain baksmali lol

i cooked and deodexed rom so u no need to explain.
just need to know what files to edit...or how to do power menu with UOTK

MarylandCookie said:
Use the UOT Kitchen to add the Power Menu.
Click to expand...
Click to collapse
Ok thanks. The kitchen's pretty busy just now so will have a look later.
Sent from my HTC Desire S

i found that andoid.policy.jar of specific build must be edited but have no clue how to do that lol
cant find any info about that

Here you go:
codryn said:
Someone was asking how to remove hot restart from advanced restart menu because the phone is hanging when using that option (including myself and I have to restart phone using hard keys).
1. That option is present in com/android/internal/policy/impl/GlobalActions$SinglePressAction.smali
2. To have access to that option go in your ROM/system/framework/android.policy.jar
3. Extract classes.dex from file.
4. Use baksmali to decompile classes.dex. I`m using AutoSmali 1.0 from HERE
5. Use a text editor to edit GlobalActions$SinglePressAction.smali.
6. Hot Restart is present in const-string v2, "Hot restart"
Now I`m not sure what to do next. Is enough to delete that string? If yes here is the edited file: View attachment 676952 (you have to unrar it first to use)
Click to expand...
Click to collapse

Related

[HOWTO] Disable Increasing Ringtone

I found a solution to disable increasing ringtone:
I attached modified Phone.apk (from deodexed JPM - Android 2.2). Download it and skip tutorial to the 9 step.
0. Download Apk Manager from here: http://forum.xda-developers.com/showthread.php?t=695701
1. Get your Phone.apk (/system/app/Phone.apk) and copy it to apk_manager\place-apk-here-for-modding.
2. Get twframework-res.apk (system/framework/twframework-res.apk) and copy it to apk_manager\place-apk-here-for-modding.
3. Open Apk Manager running Script.bat inside apk_manager folder.
4. Choose option 22 and select the number corresponding to Phone.apk.
4.5. Choose option 19 (compression level) and select 7 (maybe works with 9, i just tried with 7 and worked).
5. Choose option 10 and when asked drag twframework-res.apk to it.
3. Open folder with Phone source (<Apk Manager folder>\projects\Phone.apk\smali\com\android\phone ).
4. Open file Ringer$1.smali with your favourite text editor.
5. Find lines (2 lines) that reads:
Code:
invoke-virtual {v1, v5, v2, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V
and
Code:
invoke-virtual {v1, v5, v3, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V
6. Delete this lines, save the file.
7. Go back to Apk Manager and choose option 11, when asked if a system apk choose "yes", then when asked if u want to put aditional files say "yes".
8. When "Press any key to continue . . ." appears go to apk_manager\keep\ and remove classes.dex (this is the compiled modified data or something ), then press Enter to finish.
Click to expand...
Click to collapse
9. Put the phone into Flight mode.
10. Push Phone.apk into /system/app folder
10.5 Turn Flight mode off and/or reboot the phone to avoid FCs.
11. Enjoy constant-volume ringtones.
Click to expand...
Click to collapse
If you get a "force close" Unzip (do not decompile!) from modified Phone.apk file "classes.dex".
Next unzip Stock, deodexed Phone.apk, and replace "classes.dex" with file with same name from modified file and zip it. Then go to 9 step of this tutorial.
Founded on XDA - original thread: http://forum.xda-developers.com/showthread.php?t=893461
Thanks to Kyrillos13 for editing Ringer$1.smali and recompile.
What kind of issues? I had also problems with apktool, but then i found out that i have to download both, the install and the apktool itself... hope that helps.
I am trying
will post results soon!
have a try
anybody tryed already? i will find time in 5 hours or so...
I tried and... done It is working.
kyrillos13 said:
I tried and... done It is working.
Click to expand...
Click to collapse
Can you attach edited Phone.apk (stock, deodexed)?
tgm28 said:
Can you attach edited Phone.apk (stock, deodexed)?
Click to expand...
Click to collapse
Yeah Of Course... Here it is
Don't forget to disable the phone call sounds.
Configuration -> Call Settings -> All Calls -> Call Status Tones.
Uncheck them all. If you don't disable the sounds, your calls will be dropped (can't receive and also cant's make calls).
Hope it helps.
Docnus said:
Don't forget to disable the phone call sounds.
Configuration -> Call Settings -> All Calls -> Call Status Tones.
Uncheck them all. If you don't disable the sounds, your calls will be dropped (can't receive and also cant's make calls).
Hope it helps.
Click to expand...
Click to collapse
If someone know How to Fix that may feel free to post it here.
Wipe /data don't fix that.
eventually you could try the phone.apk from Jumba´s NeonGT SGS theme (may need porting work like image scaledown...) it features non increasing ringtone without those troubles along with call recording. dont know if this is so easy, but definitley worth a try...
Yeah, i did try it yesterday (there is a phone.apk and 3 lib files) but the phone stucked at bootloader :/
to bad....
I Fix that.
I copy classes.dex (this file contain a smali folder) from modified Phone.apk to stock, deodexed Phone.apk
And Everything Works. No Force Close
tgm28 said:
I Fix that.
I copy classes.dex (this file contain a smali folder) from modified Phone.apk to stock, deodexed Phone.apk
And Everything Works. No Force Close
Click to expand...
Click to collapse
so now we have perfect non increasing ringtone? congrats...
I have problem with non working Phone.apk. I replaced the apk but now I have no signal(no working connection). I also did buck up the wrong file so I cannot restore it. What can I do to fix it?
You could request the original file here ;-)
Can I have an original Phone.apk from 2.1 eclair?
Just tried it and failed. Going for reflash...
Huuu, didn't think u could be on eclair rom nowadays. This mod is only for froyo roms... i think there wont be many people with eclair around on xda anymore. Better request in general forum eventually.
FadeFx said:
Huuu, didn't think u could be on eclair rom nowadays. This mod is only for froyo roms... i think there wont be many people with eclair around on xda anymore. Better request in general forum eventually.
Click to expand...
Click to collapse
Hahaha! I'm rather conservative! But I forgot to update the above. I eventually flashed the JPF. But again, the Phone.apk icon is different. Do I have to deodex the rom?

[i9001] Extended Power Menu

Hi guys!
I want to share this extended power menu.
How to install:
Extract the archive and put the files to system/framework, then reboot the phone. DEODEX IS REQUIRED!
Screenshot: http://img442.imageshack.us/img442/4664/sc20111013135232.png
Files: http://www.4shared.com/file/QwbwVcvF/PowerMenu.html
Tested on my S+ with XXKP4.
---------------------------------------------
I'm not responsible for your device
---------------------------------------------
Thanks to stemline @ 4pda.ru
karo_96 said:
--- wait ---
Click to expand...
Click to collapse
awesome
android69800 said:
awesome
Click to expand...
Click to collapse
Dont worry Edited
hey karo..i have a suggestion......y dont u mix with a theme?
sakindia123 said:
hey karo..i have a suggestion......y dont u mix with a theme?
Click to expand...
Click to collapse
if u r with a custom theme - maybe.
How we can DEODEX sgs+???
I like those extra options. Wondered why there wasn't reboot option allready.
mal13 said:
How we can DEODEX sgs+???
I like those extra options. Wondered why there wasn't reboot option allready.
Click to expand...
Click to collapse
Take a look at this - http://forum.xda-developers.com/showthread.php?t=1266209
there no ned to deodex....just replace ur existing file with this file and delete the .odex file!
sakindia123 said:
there no ned to deodex....just replace ur existing file with this file and delete the .odex file!
Click to expand...
Click to collapse
Hmm, I think without deodex the phone will stuck in bootloop.
edit: which odex file?
karo_96 said:
Hmm, I think without deodex the phone will stuck in bootloop.
edit: which odex file?
Click to expand...
Click to collapse
the associated .odex!
sakindia123 said:
the associated .odex!
Click to expand...
Click to collapse
If you say it's true, maybe
Hey!
Do you know what I have to edit to remove the prompts for "Reboot", "Recovery" and "Download" of the Extended Power Menu that ask if I REALLY want to do the action?
Since the "Power off" action of the original menu doesn't ask for confirmation, I think it'd be more consistent to have these from the extended menu do the same as well!
Thanks
and also could you provide us the informations how to do this extended power menu since i want to keep my icons ^^
How is this done actually? is it through kitchen? but i cant seem to find any power menu option >.<
How to make the extended power menu myself?
it will works with 2.3.6 too? - ROM I9001XXKPS
btw what about to create zip package flashable via CWM?
prescott66 said:
it will works with 2.3.6 too? - ROM I9001XXKPS
btw what about to create zip package flashable via CWM?
Click to expand...
Click to collapse
No need, as replacing framework-res.apk is faster with root explorer
karo_96 said:
Hmm, I think without deodex the phone will stuck in bootloop
Click to expand...
Click to collapse
Yup, in my case with an odexed ROM (without deodexing) it first started to FC when the files were replaced, and then got stuck in bootloop after factory reset.
prescott66 said:
it will works with 2.3.6 too? - ROM I9001XXKPS
Click to expand...
Click to collapse
Above bootloop was caused by XXKPS. After reverting to XXKP4 it was ok again... haven't tested (yet) whether Power Menu works find without deodexing XXKPS, but will try later
Ok... tried everything, but can't get it to work, not even in XXKP. Can someone explain the exact steps to take?
I tried:
1. copying files, deleting the odex versions, restart device -- nothing
2. deleing odex, copying files, restart device -- nothing
3. deodex, copying files, restart device -- nothing
So far power menu will not showup...
(battery indicator did change btw)
Regards,
Nika.

Defy+ CM9 On-screen button

Hey guys, I finally managed to get it to work! I've done the editting of the framework-res.apk and finally got the on-screen button to work!
After you downloaded the file, unzip it and use adb and push it into your system/framework.res
Or:
Unzip it and put it into the flashable zip, system/framework. Then flash it via CMW.
NOTE: To disable the capacitive buttons, download the four file from the link and copy paste it into your system/usr/keylayout.
*remember to back up the 4 original files before replacing it!
Credit to " adamo3957 " for telling me this!
http://www.mediafire.com/?jzcpylhc0996xa4
http://www.mediafire.com/?iuuinn9t0m1vrww
http://www.mediafire.com/?2uw2z7oubw9it2l
http://www.mediafire.com/?7aivvw3acd25rl7
Sorry I had to upload to mediafire, because my PC is not working..
Alternate Link: http://db.tt/h8Bd1nIZ
marhensa said:
-----------------------------------------------
Make sure you have JRE installed on your system
Download and install JRE first
* Download JRE 64 bit for 64 bit system *
- Get your original framework-res.apk file from /system/framework/framework-res.apk
- Use adb pull, or just simply take it from inside ROM's zip
- Download the attachment, or this link (APKTool) (use this APKTool, some APKTools version cannot re-compile)
- Extract APKTool.zip
- In Windows Explorer, press hold Shift and right click APKTool folder
- Choose "Open command window here"
- In command prompt window, type:
apktool d framework-res.apk framework-res-edit
- APK is now decompiled, so now you can edit something, like changing the images or editing XMLs.
- Decompiled APK is on folder "framework-res-edit"
- Go to folder \framework-res-edit\res\values
- There's two file should be edited, bools.xml and dimens.xml
- For bools.xml, find this line, and change it to true, then save.
<bool name="config_showNavigationBar">true</bool>
- For dimens.xml, find this line, and change it to 36 (36 of height, so won't take much space), save.
<dimen name="navigation_bar_height">36.0dip</dimen>
- Back to the command prompt and then type:
apktool b framework-res-edit
- Just wait, it would take a minutes.. and now APK is re-compiled
if anything goes right, it should be like this screenshot:
ps:
on decompile and re-compile command i'm using "framework-edit-res" as an example of folder name,
you could use another folder name, it's your choice.
IMPORTANT..!!
In this case (editing a framework),
just DO NOT USE a recompiled APK on \framework-res-edit\dist
Use manual method, instead.
Because "resources.arsc" file inside the framework APK should not be compressed at all,
otherwise, you'll get bootloop.
resources.arsc should ONLY be "stored" on archive file, not "compressed".
So, here we go..
- Rename the ORIGINAL framework-res.apk to framework-res.zip
- OPEN it with 7zip or WinRAR, just let the window stay opened
- Go to folder \framework-res-edit\build\apk then delete AndroidManifest.xml file
- Drag "res" folder into 7zip / WinRAR window, so the res folder is now updated
- Drag resources.arsc file into 7zip / WinRAR window, BUT set the compression as "STORE" only
- Now all the files on original framework-res should be updated with the edited one
- Rename framework-res.zip to framework-res.apk.
- You are good to go, use that new framework in your system.
- Use adb push or create update zip to put it on your rom, your choice..
- Make sure wipe cache + wipe dalvik cache after that.
-----------------------------------------------
Click to expand...
Click to collapse
*Awesome tutorial from marhensa
Updates:
Added: Flashable Zip for those who don't know how to use ADB
Added: (090712 Quarx Defy+/ GB kernel build) On Screen Button
Added: (100712 Quarx Defy+/ GB kernel build) On Screen Button
Added: (110712 Epsylon Defy/ Froyo kernel build) On Screen Button
DEFY+
Some Requests:
-Enable + Revert ( Epsylon 11072012 Defy Build):
https://www.dropbox.com/s/ix0f5nhk71y7s5b/(Multi) Epsylon 11072012 Defy Build.rar
-Enable + Revert ( Quarx 10072012 Defy+ Build):
https://www.dropbox.com/s/no864wps6s5zpyn/(Multi) Quarx 10072012 Defy+ Build.rar
*Download according to your model! Don't download the wrong ones, as I have added a Epsylon DEFY Build (11072012)!
yeah, great mod mate..
although it is little weird..
because we have physical touch button.
It would be useful if we can disable the physical touch-buttons so you don't touch them accidentally in-game.(That happens sometimes to me).
Yeah, I know. I'm now trying to find a way to disable it.
marhensa said:
yeah, great mod mate..
although it is little weird..
because we have physical touch button.
Click to expand...
Click to collapse
I like virtual buttons that's what ICS is all about.
Why would you waste screen estate when you have physical buttons?
Sent from my MB525 using xda premium
vap_66 said:
Why would you waste screen estate when you have physical buttons?
Sent from my MB525 using xda premium
Click to expand...
Click to collapse
Well, its up to your taste. If you like the ICS om-screen button, but don't mind wasting just a little bit space, then this is good. But you if don't like wasting a little space, then you can stick to the physical buttons.
I have this mod too running on my defy...... I was a bit confused at first yesterday while i was recompiling my framework-res..... Modding is sooo much fun
Kayant said:
I have this mod too running on my defy..
Click to expand...
Click to collapse
saw you have this running on a SoC green lens. did you follow same steps as OP?
Edit: bit the bullet and went ahead and followed OP instructions on green lens. didn't work. ah, oh well
How edited you the framework-res?
If I edit my and install it I can't boot anymore.
m11kkaa said:
How edited you the framework-res?
If I edit my and install it I can't boot anymore.
Click to expand...
Click to collapse
Decompile edit recompile...
I don't remember if sign is required or not...
Last time I signed and bootlooped!
Editmake sure it recompiles properly... apktool can have problems... recompiled file is smaller that original...
Sent from my MB525 using xda premium
what da ugly mada..
Using heeptick also can ma
.
Maybe you guys forgot this step
syllogyking said:
saw you have this running on a SoC green lens. did you follow same steps as OP?
Edit: bit the bullet and went ahead and followed OP instructions on green lens. didn't work. ah, oh well
Click to expand...
Click to collapse
m11kkaa said:
How edited you the framework-res?
If I edit my and install it I can't boot anymore.
Click to expand...
Click to collapse
I used this amazing guide by _calum_ for assistant as am a noob at editiing apks
http://forum.xda-developers.com/showpost.php?p=9126643#post9126643
I think you lot have forgotten to do the last step........ copy the edited files from the newly complied framework to your original........ I don't do that before and i got bootloops.
nogoodusername said:
Decompile edit recompile...
I don't remember if sign is required or not...
Last time I signed and bootlooped!
Editmake sure it recompiles properly... apktool can have problems... recompiled file is smaller that original...
Sent from my MB525 using xda premium
Click to expand...
Click to collapse
That's why I always stuck at boot loop when I use apktool. This thread is good , http://forum.xda-developers.com/showpost.php?p=9126643#post9126643 that's what I did to recompile it!
guffoe said:
what da ugly mada..
Using heeptick also can ma
.
Click to expand...
Click to collapse
Not that ugly.. hmm, the way you 'speak' looks familiar:... looks like singlish...
Nchls said:
I like virtual buttons that's what ICS is all about.
Click to expand...
Click to collapse
no it's not
Galaxy Nexus has them because it uses 0.35" of the screen, without them, Galaxy Nexus would have a 4.3" screen with physical buttons...
ICS is much much much more than just that, this is probably 1% of it, and it's only for Galaxy Nexus.
Only HD2 would have use of that
mihovil13 said:
no it's not
Galaxy Nexus has them because it uses 0.35" of the screen, without them, Galaxy Nexus would have a 4.3" screen with physical buttons...
ICS is much much much more than just that, this is probably 1% of it, and it's only for Galaxy Nexus.
Only HD2 would have use of that
Click to expand...
Click to collapse
I see..but I think that its quite cool to have no physical buttons.
Nchls could you please tell me how to disable capacitive buttons or reupload qtouck-touchscreen.kl and umts_jordan-keypad.kl because they are duplicates of the other two files
for me this is what ics is about!
Windowed applications!
Sent from my MB526 using xda premium
Kayant said:
Nchls could you please tell me how to disable capacitive buttons or reupload qtouck-touchscreen.kl and umts_jordan-keypad.kl because they are duplicates of the other two files
Click to expand...
Click to collapse
Download the 4 files from mediafire, put it inside system/use/keylayout. Replace the original files, but backup the original files first. What do you mean by duplicate of 2 files? The 4 links are different files.
nogoodusername said:
View attachment 902011
View attachment 902012
for me this is what ics is about!
Windowed applications!
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
Woah. How did you do it!?
Nchls said:
Woah. How did you do it!?
Click to expand...
Click to collapse
lol that's just an app...AirCalc. dl from market.

How to customise APK's Images [EASY]

First off you need a deodoxed custom rom , next copy the desired APK's from your System/App folder or from the zip you flashed or from wherever.
Download and Install WinRAR or 7Zip and drag the APK onto the shortcut on your desktop. It should open it up , next extract the LDPI and the HDPI folder/s onto your desktop.
Edit your pics with any program e.g. Paint.net . Then replace the modified folder with the old one.
Next download SignAPKTics from APKTops and install that. Drag the modded APK to your SD card.
Click START , choose the APK , click next , choose Test Sign and click sign! Wait 1.5 mins! And ot should be done. Now just (with root browser) replace the old one with the modded one.
And re-boot! Enjoy...
hah great tip for us
thanks
Has the OP tested this trick?
Thanks a lot!!!!!!!!!!!! :^)
Sent from my GT-S5360 using xda premium
bumslayer said:
Has the OP tested this trick?
Click to expand...
Click to collapse
Click START , choose the APK , click next , choose Test Sign and click sign! Wait 1.5 mins! And ot should be done. Now just (with root browser) replace the old one with the modded one.
Click to expand...
Click to collapse
I'm not sure if he has tried it with system app. replacing a file like systemUI.apk or framework-res.apk will make our device continously give FC message. we should use zip file to push the apk to /system/app. system app is also should not signed. I always using this trick without signing stuff and it works. we just need to make sure that we're replace the ordinary file (not the .9 one) and put a picture with same resolution with the original one.
Exactly my thoughts. Resigning systems apps is a big NO. I already did it twice (SystemUI.apk) and I ended up with no statusbar. Good thing I had a backup.
bumslayer said:
Exactly my thoughts. Resigning systems apps is a big NO. I already did it twice (SystemUI.apk) and I ended up with no statusbar. Good thing I had a backup.
Click to expand...
Click to collapse
afaik, it's all or nothing. if you resign one system apk, you have to do for all system apk with the same key.
irfanbagus said:
afaik, it's all or nothing. if you resign one system apk, you have to do for all system apk with the same key.
Click to expand...
Click to collapse
AND permissions.. make sure the permissions are same as original BEFORE putting it in the appropriate folder..
noobwithgalaxyy said:
AND permissions.. make sure the permissions are same as original BEFORE putting it in the appropriate folder..
Click to expand...
Click to collapse
Thats the reason I prefer flashing instead of manually replacing the files cuz then you dont need to set the permissions. Its good for lazy people like me
I have tried it and it works. I did it because when I didn't it said "status bar force close".
Sent from my GT-S5360 using XDA
I.AM.H3RO said:
I have tried it and it works. I did it because when I didn't it said "status bar force close".
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
lol?
show us screen shots
when making a guide always post screenshots dude,
not just post words,
make it clarified and very detailed so that people reading this will not get lost,
also don't post for the sake of just putting it there,
you have a good title
but when people read this its not "easy"
try to put yourself in other people's shoes,
even i can't comprehend the output you put on this
no offence but make this better and stop posting threads that are useless
The easiest and foolproof method is to use Ninjamorph or metamorph app from market.I've modified tones of .pngs with them.
First open the apk with the app
Exit the app
Go to myfiles/Androidthemes/workspace/name-of-apk/res/
Then go to drawable ldpi
Take a look at all of the .png files
Find which .png you want to replace.
You should make your own pic with photoshop or anything to replace it with exact resolution and name
Store it in the sd-card
Open the app again
Go to Existing project/name-of-apk/res/drawable ldpi
Click on the .png you want to replace
App will ask you to replace it with some other .png
Navigate to the modified pic
It'll replace the .png
Then go back to homepage of app
Then click finish project
Tap on the apk name
App will ask you whether you want to replace the original apk
Do as you want
Reboot phone
Make a nandroid backup before everything. cheers
sent while doin' some burnouts
b16h22 said:
The easiest and foolproof method is to use Ninjamorph or metamorph app from market.I've modified tones of .pngs with them.
First open the apk with the app
Exit the app
Go to myfiles/Androidthemes/workspace/name-of-apk/res/
Then go to drawable ldpi
Take a look at all of the .png files
Find which .png you want to replace.
You should make your own pic with photoshop or anything to replace it with exact resolution and name
Store it in the sd-card
Open the app again
Go to Existing project/name-of-apk/res/drawable ldpi
Click on the .png you want to replace
App will ask you to replace it with some other .png
Navigate to the modified pic
It'll replace the .png
Then go back to homepage of app
Then click finish project
Tap on the apk name
App will ask you whether you want to replace the original apk
Do as you want
Reboot phone
Make a nandroid backup before everything. cheers
sent while doin' some burnouts
Click to expand...
Click to collapse
yea metamorph/ninjamorph is great but i'd prefer to do it in PC and just push it via adb cuz i use photoshop and i find it a hassle to use my phone to edit apk's
It's for those guys who dont know how to decompile/compile apk files with their pc.But I agree with you, pc is the best way to go.
sent while doin' some burnouts
I.AM.H3RO said:
First off you need a deodoxed custom rom , next copy the desired APK's from your System/App folder or from the zip you flashed or from wherever.
Download and Install WinRAR or 7Zip and drag the APK onto the shortcut on your desktop. It should open it up , next extract the LDPI and the HDPI folder/s onto your desktop.
Edit your pics with any program e.g. Paint.net . Then replace the modified folder with the old one.
Next download SignAPKTics from APKTops and install that. Drag the modded APK to your SD card.
Click START , choose the APK , click next , choose Test Sign and click sign! Wait 1.5 mins! And ot should be done. Now just (with root browser) replace the old one with the modded one.
And re-boot! Enjoy...
Click to expand...
Click to collapse
May be you should try it out first.Replacing system apps with root explorer is a very dangerous business.I'm familiar with that.My phone started to do endless boot loops which even a nandroid restore failed to fix and ended up in flashing a new stock rom.
sent while doin' some burnouts
b16h22 said:
May be you should try it out first.Replacing system apps with root explorer is a very dangerous business.I'm familiar with that.My phone started to do endless boot loops which even a nandroid restore failed to fix and ended up in flashing a new stock rom.
sent while doin' some burnouts
Click to expand...
Click to collapse
agree
pushing it using adb is a more safer way, because if something goes wrong with forcing it to system then you can just repush the original system apk
you was replacing a running apk. there's no doubt it will give you FC message (lol). try your method to replace framework-res.apk or any system app/framework. b16h22 is right. your method is dangerous.
I modify my systemui.apk but signapktic give
Doesn't exist
132 installed package
Error ...
I'm just trying to help people , if you don't like it then good for you. I'd love to add screenies but laptop is broken. If you could provide them then brilliant.
Sent from my GT-S5360 using XDA
Use test sign and if that doesn't work are install signapktic
Sent from my GT-S5360 using XDA

CRT lock animation HTC EVO 3d Virgin mobile.

i am currently using a unlocked s-off rooted 4ext recovery set up device, i found i enjoy using this rom called midnight rom, it is wonderfula dn suits my needs perfect, but....atfe rhours and hours of searching i am unable to find a guide on how to do this myself, and that is why i am posting here. i would like to flash a CRT lock animation, and perhaps unlock animation (but not needed ofcourse). Ive searched high and low, but it seems i cant find any way of doing this myself without having to use a rom like CM10 that has it built in etc etc, the objective here guys is to flahs this onto my phone myself, without needing to change my rom, either by installable zip someone may have laying aorund, or a quick description of how i could add this into my current rom and reflash it maybe. than ks for all the help in advance. talk to you soon
giggz9269 said:
i am currently using a unlocked s-off rooted 4ext recovery set up device, i found i enjoy using this rom called midnight rom, it is wonderfula dn suits my needs perfect, but....atfe rhours and hours of searching i am unable to find a guide on how to do this myself, and that is why i am posting here. i would like to flash a CRT lock animation, and perhaps unlock animation (but not needed ofcourse). Ive searched high and low, but it seems i cant find any way of doing this myself without having to use a rom like CM10 that has it built in etc etc, the objective here guys is to flahs this onto my phone myself, without needing to change my rom, either by installable zip someone may have laying aorund, or a quick description of how i could add this into my current rom and reflash it maybe. than ks for all the help in advance. talk to you soon
Click to expand...
Click to collapse
this will provide "off" animation..
decompile framework-res.apk
go to res/values and find bools.xml
Change this
<bool name="config_animateScreenLights">true</bool>
to this
<bool name="config_animateScreenLights">false</bool>
how to decompile framework-res.apk
http://forum.xda-developers.com/showpost.php?p=36388165&postcount=2
if you want unlock animation too...read here
http://rootzwiki.com/topic/2553-dev-enabling-crt-on-off-animation-in-roms-how-to/
hit thanks if this helped you!
js2892 said:
this will provide "off" animation..
decompile framework-res.apk
go to res/values and find bools.xml
Change this
<bool name="config_animateScreenLights">true</bool>
to this
<bool name="config_animateScreenLights">false</bool>
how to decompile framework-res.apk
http://forum.xda-developers.com/showpost.php?p=36388165&postcount=2
if you want unlock animation too...read here
http://rootzwiki.com/topic/2553-dev-enabling-crt-on-off-animation-in-roms-how-to/
hit thanks if this helped you!
Click to expand...
Click to collapse
im xcurrently haveing trouble decompiling this apk, im folowing th eguide you linked, but im unable to find the system or twframework.apk files, so im gonna guess its not a deodexed version....hmmmm i wish this was as simple as install zip from sd card hahaha
giggz9269 said:
im xcurrently haveing trouble decompiling this apk, im folowing th eguide you linked, but im unable to find the system or twframework.apk files, so im gonna guess its not a deodexed version....hmmmm i wish this was as simple as install zip from sd card hahaha
Click to expand...
Click to collapse
Systemui.apk - system / app
Framework - res.apk. and twframework-res.apk - system / framework
Use root explorer..
Sent from my GT-S5830i using xda app-developers app
js2892 said:
this will provide "off" animation..
decompile framework-res.apk
go to res/values and find bools.xml
Change this
<bool name="config_animateScreenLights">true</bool>
to this
<bool name="config_animateScreenLights">false</bool>
how to decompile framework-res.apk
http://forum.xda-developers.com/showpost.php?p=36388165&postcount=2
if you want unlock animation too...read here
http://rootzwiki.com/topic/2553-dev-enabling-crt-on-off-animation-in-roms-how-to/
hit thanks if this helped you!
Click to expand...
Click to collapse
i found the asystem ui.apk but the twframework.apk is non existant
giggz9269 said:
i found the asystem ui.apk but the twframework.apk is non existant
Click to expand...
Click to collapse
twframework-res.apk is only for samsung phones with touchwiz... that's why it's not there...
use systemui.apk and framework-res.apk :good:
js2892 said:
twframework-res.apk is only for samsung phones with touchwiz... that's why it's not there...
use systemui.apk and framework-res.apk :good:
Click to expand...
Click to collapse
THANKYOUI SO MUCH, ok so i have the value you specified changed, now, is there anyway i can flash it into my phone so i dont have to painstakingly reinstall the rom and set all ym stuff back up?
also, after i have decompiled and the value changed, what is the next step to recompile? to chose option 15 and compile and sign and install apk?
giggz9269 said:
THANKYOUI SO MUCH, ok so i have the value you specified changed, now, is there anyway i can flash it into my phone so i dont have to painstakingly reinstall the rom and set all ym stuff back up?
also, after i have decompiled and the value changed, what is the next step to recompile? to chose option 15 and compile and sign and install apk?
Click to expand...
Click to collapse
ok..good you have decompiled and edited...!! No need to sign...
this is what you do..
use option 11..compile system apk..
go through the guide again, it specifically gives info about editing framework-res.apk
now since u have edited an .xml file, therefore you will have to delete resources.arsc
now again i'm saying see the guide, it tells u step by step along with pictures
after compiling apk, there are two options!
1. rename the compile apk as framework-res.apk and push it to system/framework and replace the old one!!
Note: If you do this you will face lot of force close errors, and screen might go black too...but this is normal..all you have to do is reboot and you'll be good again!:good:
OR
2. Create a flashable zip for cwm
How to-> http://forum.xda-developers.com/showthread.php?t=1721680
P.P.S- If you have committed any mistake in editing or compiling or even there is an software error in APK Multi tool which produced a bad .apk your phone will go into bootloop, hence make a backup with cwm!!
andddd im now bootlooping, i am on the third recompile, and pushing from recovery to /system/framework/framework-res.apk and i deleted the resources.asrc ill try recomiling a few more times just to make sure its not apk mutitool messing up
giggz9269 said:
andddd im now bootlooping, i am on the third recompile, and pushing from recovery to /system/framework/framework-res.apk and i deleted the resources.asrc ill try recomiling a few more times just to make sure its not apk mutitool messing up
Click to expand...
Click to collapse
ok..so i assume u are following the guide correctly and since u have tried three time hence i believe there is no mistake on editing part..following are scenarios:
1. APK Multi Tool is not compiling apk properly, in such case use other apk tools and then check ur results.
2. the problem might be with your phone/OS, i cannot predict what might be the problem, it's best to ask this thing in ur device's section!
I assume you are on deodexed ROM, if u want to check how then-
decompile your systemui.apk and go to folder project and there will be a folder "systemui". Open it and check if there is a folder named "smali" in it! If yes then ur rom is deodexed and if not ur ROM is odexed. I cannot guarantee the working of above method on odexed ROMs.!
Workaround
1. Get CM
2. There's an app called Screen Off and Lock. It gives CRT animation but not by power button press. It creates a shortcut on homescreen, by pressing which u lock ur phone with CRT animation:good:. But again it does not provide aniamtion on screen unlock!

Categories

Resources