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?
Related
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
Because some people asked me, I wrote this tutorial that explains how to port ICS transition animations on EVERY ROM & especially on EVERY PHONE!!!.
1) First of all, you need to download and install APK MANAGER:
http://forum.xda-developers.com/showthread.php?t=695701
2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.
3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".
4) In the apk manager folder, double click on the file "Script". A cmd window will open.
5) Where it says "Please make your decision", write "22" (Set current project) and enter. Then enter "1" (to choose the first apk) and enter. Then enter "9" (Decompile apk) and enter.
The script will decompile the framework-res.apk.
6) Now go to your apk manager folder, go to Projects\framework-res.apk\res\anim\.
In this folder there are the animations of your rom. They consist in some .xml files decompiled.
7) Download this:
http://www.mediafire.com/?1qjwtotg1r8umm1
8) Copy the files from the folder "anims" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes. Then copy also the files from the folder "other_files" to the anim folder.
9) Now go to your apk manager folder, go to Projects\framework-res.apk\res\values\. Edit the file integers.xml and put these two lines under the line of "shortAnimTime":
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Save.
10) Return to Script. Enter "11" (Compile apk) and enter.
The script will rebuild the framework-res.apk.
11) You are asked if this is a system application. Enter "y" and enter. Then a second question appears. Enter newly "y".
12) Then after it processes, Don't press anything & DON'T CLOSE THIS WINDOW!!! A new folder "keep" is created in the apk manager folder. Go inside it and delete the file "resources.arsc". Now go inside keep\res\anim\ and delete every file with the same name as every file of the "anims" folder of the zip downloaded.
Then return to Script and press enter. It processes, then if everything went ok, in the folder "place-apk-here-for-modding" a file "unsignedframework-res.apk" is created. Copy it outside and rename it "framework_res.apk".
13) Now you can create a flashable zip or you can simply push it to your system (but you have to sign the apk).
CONGRATRULATIONS!!! YOU ARE DONE!!!
And if you think this tutorial is useful, CLICK THANKS!!!
Now I'm satisfied and i can continue studying phylosophy for tomorrow test...
P.S.: If you think that this post can help or interest people of other forums (with other devices), please share this post and also give credit to me!!!
Video of this mod working:
http://www.youtube.com/watch?v=vf1U_30Ngfk
capez said:
Work in progress
Click to expand...
Click to collapse
WHAAOOON, that's great, that's the post I was looking for mate !
This is what we should expect on this forum : knowledge sharing ! Work sharing and ROM/THEME/APPS sharing is great but knowledge is even better.
If I can test something ...
capez said:
Work in progress
Click to expand...
Click to collapse
Will this work with every devices ?? Wow... Cant wait to do this!!!
Sent from my Nexus One using Tapatalk
Finally DONE!!!
cool animations, thanks!!!
(Replaced)
got bootloops on my desire hd.. running glanet ics..
Rotation animations??
I already installed the CM7 transition animation zip from your other thread.. So, thank you in case I haven't appreciated your work
Does this one have screen rotation animation too?
digkong said:
got bootloops on my desire hd.. running glanet ics..
Click to expand...
Click to collapse
Did you pushed the modded framework-res.apk directly into the phone?
Do you think [Android 4.0 ICS] should be in the title in this form? It's a little misleading.
Hmm...It started FC. Removing my links for now. Gonna see why.
Works great
Great guide. It worked for me.
Oddly though, I replaced my framework-res.apk through root explorer, set all the correct permissions, and when I rebooted, my google accounts were deleted, along with my contacts and google music library.
Not a problem though, Ill just have to relogin to them.
Great, it works very well. I maybe found a more simple way to do it :
1. Dowload ApkTools package I've done here :
http://www.multiupload.com/Q6YSAF2MH3
2. Unzip it to your harddrive and put your FrameWork-res.apk in it,
3. Click on "decomp.bat"
4. A new "unpack" directory has been created, with decompiled files in it,
5. Download this:
http://www.mediafire.com/?1qjwtotg1r8umm1
6. Copy the files from the folder "anims" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes. Then copy also the files from the folder "other_files" to the anim folder.
7. Now go to your apk manager folder, go to Projects\framework-res.apk\res\values\. Edit the file integers.xml and put these two lines under the line of "shortAnimTime":
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Save.
8. Patch the anim files in it, and edit the xml,
9. When finished, just click "recomp.bat" to get a new compiled file "framework-res2.apk",
10. Juste rename the file and put it in a update zip file, you can use this one and replace the framework file in it by yours :
http://www.multiupload.com/PPMFV9Y316
Should work !!!
PS : If your framework-res.apk contains .9.png files, decompilation will fails. No problem with standard CM7 framework-res.apk, but some custom themed ROM can have the problem. Don't know how to fix that, maybe the 1st solution with APK MANAGER work better !?
capez said:
Did you pushed the modded framework-res.apk directly into the phone?
Click to expand...
Click to collapse
i used root explorer..
hmmm.. it maybe beacause i did not set permissions right...
great it worked after i set the permissions.. thanks for ur work will post this guide in dhd forum too..
nmeuret said:
Great, it works very well. I maybe found a more simple way to do it :
1. Dowload ApkTools package I've done here :
http://www.multiupload.com/Q6YSAF2MH3
2. Unzip it to your harddrive and put your FrameWork-res.apk in it,
3. Click on "decomp.bat"
4. A new "unpack" directory has been created, with decompiled files in it,
5. Patch the anim files in it, and edit the xml,
6. When finished, just click "recomp.bat" to get a new compiled file "framework-res2.apk",
7. Juste rename the file and put it in a update zip file, you can use this one and replace the framework file in it by yours :
http://www.multiupload.com/PPMFV9Y316
Should work !!!
PS : If your framework-res.apk contains .9.png files, decompilation will fails. No problem with standard CM7 framework-res.apk, but some custom themed ROM can have the problem. Don't know how to fix that, maybe the 1st solution with APK MANAGER work better !?
Click to expand...
Click to collapse
Maybe this is the problem someone is having...Someone must compare your version and mine, to see which one works and which not. (Obviously with a non-cyanogenmod rom )
Update done for CM7 Nightly 176 (latest) :
http://www.multiupload.com/J88VTO2SU6
---------- Post added at 07:01 PM ---------- Previous post was at 06:59 PM ----------
capez said:
Maybe this is the problem someone is having...Someone must compare your version and mine, to see which one works and which not. (Obviously with a non-cyanogenmod rom )
Click to expand...
Click to collapse
Well, in the APK MANAGER post they say :
>Optimize pngs (ignores .9.pngs)
So it should work better !! (but as I'm lazy, I still use APKTOOL one click solution )
I got instant bootloops! How? Can u patch for me??
Sent from my Nexus One using Tapatalk
nmeuret said:
Update done for CM7 Nightly 176 (latest) :
Click to expand...
Click to collapse
Just a heads up. I downloaded your file and you renamed your framework-res wrong. There's a space between "framework-res" and ".apk" so it won't overwrite the original.
this does not have the rotation animation..
anyway to get that..
dawgpound6985 said:
Just a heads up. I downloaded your file and you renamed your framework-res wrong. There's a space between "framework-res" and ".apk" so it won't overwrite the original.
Click to expand...
Click to collapse
OOpppsss, thanks, fixed here :
http://www.multiupload.com/J88VTO2SU6
Thank you to
montymintypie
for figuring this out
just posting it in a relevant forum
HOWTO
Got a custom ROM going on and want to do this yourself? Well here's how!
1.Download Apk Manager
2.Get your Mms.apk from /system/app/Mms.apk
3.Get your twframework-res.apk from /system/framework
4.Open up Apk Manager and choose option 22
5.Select Mms.apk as your project
6.Select option 10 (decompile with dependencies)
7.When it asks you for your dependency, drag and drop twframework-res.apk into the window and press enter
8.When that's done, go into apk_manager/projects/Mms.apk
9.Under /res/xml open up mms_config.xml
10.Go to: <int name="recipientLimit">10</int> change this to -1
11.Go to <int name="smsToMmsTextThreshold">4</int> Change this to 100
12.Now open up /smali/com/android/mms/transaction/SmsReceiverService.smali and open it in any text editor.
13.Search for 'time'. There will be one entry at approximately line 523
14.Replace this with: invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
15.There will be another at approximately line 2270.
16.Replace this with: invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
17.Save and close them all and go back to apk manager, option 11 'compile'
18.When you're done, it'll tell you about a 'keep' folder. Go delete mms_config.xml, and in the keep folder also delete resources.arsc and classes.dex
19.Copy your new Mms.apk to your phone! Don't forget to back up your old one in case you make a mistake.
hopefully i can send mms now for the first time from skyrocket for some reason i never had mms work on my phone
Doh
can someone please move this to appropriate
section
probably more dev
but def atleast themes and apps
sorry
thanks
Thanks for your time and work. I like seeing this kinda stuff pop up for our skyrocket
Sent from my SAMSUNG-SGH-I727 using xda premium
Calling Jay Harper Calling Jay Harper Mr.Boss Man
Here is another solution to disable the lockscreen vibration. Root is needed.
Be careful, you are responsible for everything you do, not me.
Please don't ask, i won't do anything like a graphical interface or else to enable/disable.
This thread was the inspiration: http://forum.xda-developers.com/showthread.php?t=1605363
I dont yet know how to compile the source from this thread, so i searched for another way, baksmalimanager is the solution.
It decompiles and recompiles .jar files and their contents.
Download baksmalimanager
Take the framework.jar from /system/framework/ on the device and place it into the baksmalimanager directory on the pc.
Be sure to remain a backup of this file if something doesn't work.
Then run "baksmali Manager.bat" press 4 to select the framework.jar file and then 1 to decompile it.
Open this directory path inside your baksmalimanager directory framework\com\android\internal\widget\multiwaveview.
Open MultiWaveView.smali in a text editor, search for "setVibrateEnabled" until you find following line, remove it completely:
Code:
invoke-virtual {p0, v11}, Lcom/android/internal/widget/multiwaveview/MultiWaveView;->setVibrateEnabled(Z)V
Save the file. Run "baksmali Manager.bat" again if you closed it. Press 4, select the framework.jar and then press 2 to recompile.
Then open the framework.jar with 7-Zip or something else like that and replace the classes.odex file with the one from the baksmalimanager directory. Think of the backup before you do it.
Then replace the framework.jar in your devices /system/framework/ directory with the modded framework.jar.
Reboot and vibration is gone.
If something doesn't work like expected. Replace with the original framework.jar again.
works great on CM9 ROM latest nightly build for SGS2,,,,,now i can remove the vibra,,,,,thx a lot mate,,,
just suggestion, it's better to include adb.exe and all related files because without it,your program cannot work,,,
And you're now +1 in your thx meter,,,,
A couple of Qs before I replace my old framework.jar:
1.What if I just put '#' before the line I'm supposed delete? Seeing as # is usually a comment and does not affect the code, isn't it the same if I comment it or delete it? I did delete it, i'm just asking out of curiosity...
2.As much as I can understand, you don't need ADB for this, right? The program decompiles the .jar file without it with no problems, at least for me...
You got your thanks
EDIT: Works like a charm on my HTC Desire (SpazeDog's ICS ROM). Finally, the dreaded vibrations have stopped!
Though the answers to the upper questions would be appreciated...
thank you for this, works great on Galaxy Ace with CM9
Thanks Heaps badcrow! Works perfectly on Galaxy S2, CM9.0.0.
1. Tested commenting out the line (with #) and it works perfectly.
2. Doesn't need ADB coz it's working on the file on your PC, not on your phone, just hit any key when baksmali tells you.
Still have vibrate elsewhere, just not on lockscreen. Also, the file I replaced in framework.jar was classes.dex (not .odex).
siganid said:
1. Tested commenting out the line (with #) and it works perfectly.
Click to expand...
Click to collapse
Thanks for confirming, I thought that might happen, but I just didn't want to destroy my phone
siganid said:
2. Doesn't need ADB coz it's working on the file on your PC, not on your phone, just hit any key when baksmali tells you.
Click to expand...
Click to collapse
I really don't want to say this, but; I told you so
As for the other vibrations, see other settings ot other baksmali files and mess with them
on AOSP JellyBean 4.1.1, I had to edit GlowPadView.smali to remove the vibration.
"framework\com\android\internal\widget\multiwaveview"
form this:
Code:
invoke-virtual {p0, v6}, Lcom/android/internal/widget/multiwaveview/GlowPadView;->setVibrateEnabled(Z)V
to this:
Code:
[B]#[/B]invoke-virtual {p0, v6}, Lcom/android/internal/widget/multiwaveview/GlowPadView;->setVibrateEnabled(Z)V
this has worked for me.
im very confused bro...
"replace the classes.odex file with the one from the baksmalimanager directory."
in baksmalimanager directory not file the classes.odex,,,
You 'baksmali' the jar file (de-compile), make the edits you need and 'smali' (compile). Once you do that, you should have a classes.dex (not .odex, but .dex !!) file.
Then just take 7Zip (or winrar, or whatever else can open .jar files) and replace the original classes.dex with the one you 'smali'd'
badcrow said:
Take the framework.jar from /system/framework/ on the device and place it into the baksmalimanager directory on the pc.
Be sure to remain a backup of this file if something doesn't work.
Then run "baksmali Manager.bat" press 4 to select the framework.jar file and then 1 to decompile it.
Open this directory path inside your baksmalimanager directory framework\com\android\internal\widget\multiwaveview.
Open MultiWaveView.smali in a text editor, search for "setVibrateEnabled" until you find following line, remove it completely:
Code:
invoke-virtual {p0, v11}, Lcom/android/internal/widget/multiwaveview/MultiWaveView;->setVibrateEnabled(Z)V
Save the file. Run "baksmali Manager.bat" again if you closed it. Press 4, select the framework.jar and then press 2 to recompile.
Then open the framework.jar with 7-Zip or something else like that and replace the classes.odex file with the one from the baksmalimanager directory. Think of the backup before you do it.
Then replace the framework.jar in your devices /system/framework/ directory with the modded framework.jar.
Reboot and vibration is gone.
If something doesn't work like expected. Replace with the original framework.jar again.
Click to expand...
Click to collapse
Hmmm. Doesn't seem to work for me Maybe I did something wrong. I had to deviate from these steps a little for my phone. Maybe I screwed it up.
I have a deodexed stock rom for Droid 4 running ICS 4.0.4. I actually found this file and line of code in the framework-ext.jar file instead of framework.jar. And, for some reason, baksmali manager wouldn't find the file when I typed 4, unless I renamed the file to framework.jar. Once I did, it found it and decompiled it fine. I changed the code and recompiled, and copied the classes.odex file into the framework.jar file. Then I renamed it BACK to framework-ext.jar. But when I put it back in the system/framework directory, the phone got stuck at the Droid Eye screen on bootup. It just continuously showed it. I had to used adb to push the old file back in place.
Can you just not do it this way? Any ideas? Thanks
How come Baksmali didn't recognize a .jar file? It does, with every version of the name 'framework' I've tried...
BTW, was there even an .dex file inside the .jar file? (de-odexed, kinda sounds like there aren't any more .dex files... just a thought, tho, since I have no idea what that actually means...)
Did you delete the old version of the framework-ext.jar? Or at least rename it (I keep a renamed original copy of the file right there in /system/framework, just in case)?
someone755 said:
How come Baksmali didn't recognize a .jar file? It does, with every version of the name 'framework' I've tried...
BTW, was there even an .dex file inside the .jar file? (de-odexed, kinda sounds like there aren't any more .dex files... just a thought, tho, since I have no idea what that actually means...)
Did you delete the old version of the framework-ext.jar? Or at least rename it (I keep a renamed original copy of the file right there in /system/framework, just in case)?
Click to expand...
Click to collapse
I'm not sure why it didn't recognize the framework-ext.jar file. Was hoping you could tell me Well anyway, it looks like my rename method should work, because all that Baksmali does is extract the file. So, if I gotta rename framework-ext.jar to framework.jar to do the work, and then change it back, it shouldn't matter. And yes the .dex file was in there (and lol nice xP )
I figured out what I did wrong. I replaced the .dex file with 7Zip incorrectly. I couldn't figure out how to place the new .dex file into the .jar file, so I tried clicking "Copy" and changed the destination directory to C:\...\framework-ext.jar. What that did was erase the .jar file, and replaced it with a renamed version of the .dex file. Whoops, haha I later figured out that you can just drag and drop.
Ok, so my phone boots now....Buuuuuuut....the vibration is still there???? The lockscreen still vibrates. Although, the vibration doesn't seem as intense as before. But, it's still there, even if I disable "Vibrate on Touch" in the sound menu.
I checked to make sure that I didn't accidentally put the original framework-ext.jar file into /system/framework/, but I confirmed that I put the modified file in there with the line of code removed, so I'm not crazy Maybe this method just doesn't work completely on my ROM, but I like that the vibration is at least less intense. Thanks so much for the help!
Request for option on CM website
Hi gyus,
thaks for the explanations.
I don't really like to change the code so I requested the option to able or disable vibrations on lock screen on the CM website.
Maybe if we're enough to say it's a good idea, they'll actually program it
Here is the post (as I'm a new member I can't post outside links, repalce underscores by dots)
forum_cyanogenmod_com/topic/59819-request-lock-screen-vibration-option/
If you didn't subscribe, I suggest you do it because there is many many good stuff there too
Bijnok
Thanks!! ...works great on my SGSII..
Sent from my AOKP'd T989
reapsor said:
on AOSP JellyBean 4.1.1, I had to edit GlowPadView.smali to remove the vibration.
"framework\com\android\internal\widget\multiwaveview"
form this:
Code:
invoke-virtual {p0, v6}, Lcom/android/internal/widget/multiwaveview/GlowPadView;->setVibrateEnabled(Z)V
to this:
Code:
[B]#[/B]invoke-virtual {p0, v6}, Lcom/android/internal/widget/multiwaveview/GlowPadView;->setVibrateEnabled(Z)V
this has worked for me.
Click to expand...
Click to collapse
Recently installed CM9 from modpank and encountered this problem, but your version, help me! Thank you!
Just an update on this, if you want this to work on the ICs and JB lockscreen you also need to repeat the process for GlowPadView.smali as well.
4.2.1
Does anyone know how to get it to work on 4.2.1? I tried it 3 different times with no luck.
thats what you get with a new firmware
Ask on the ROM thread, maybe? If there's enough interest, maybe the DEVs will include a setting in the next version...
there‘s no MultiWaveView.smali after decompiling of moto fire xt
What about some info about your ROM...?
Wouldn't that be nice?
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!