Related
I originally made it to copy the functionality of stock MyTouch 4G ROM, but then I thought it might be a nice addition to Desire / Desire HD ports on Nexus too.
First trackball press wakes up the phone, the second one puts it back to sleep (as long as the phone's screen is locked).
This mode is only working for ROMs that have trackball wake implemented, and allows the lockscreen to put the phone back to sleep. This
mod doesn't include trackball wake. For this reason it won't work on Gingerbread-based Sense ROMs or older Sense ROMs that don't have trackball wake implemented.
Original thread in MyTouch 4G forum
For Nexus I've made it to work with eViL D:'s NXSense, NXSenseHD (1.1 BETA only!) and MicroMod's SuperHybrid DesireHD.
Instructions:
Flash the attached file in recovery. It should work with CWM3.x - it uses Edify scripting.
Known issues:
When the phone is turned on using power button - the first trackpad press won't put it back to sleep, but pressing once again will. I'll try to look into it and solve it, if it's something that can be solved without touching the framework.
Uninstallation:
Extract HtcLockScreen.apk (located in /system/app/) from your ROM's ZIP file.
Execute: adb push HtcLockScreen.apk /system/app/
Or just reflash the corresponding attached Stock_* ZIP in recovery.
Remarks:
The mod involves HtcLockScreen.apk, found only on Sense ROMs. It's possible to achieve the same functionality on various CM7 flavors, but the mod needs to be compiled into the framework and possibly use another mechanism to put the phone to sleep. My Nexus is now my wife's, and I have absolutely no wish to load CM7 on it, and being unable to test the mod in its framework variation, I won't be able to create one.
13-Apr:
Updated the MicroMod version to avoid bootloop.
Added mod for NXSenseHD Gamma, including RNGuy's trackball wake. WARNING: Some of the notification texts are messed up. I don't have time to clean it - need to return the Nexus, I'd be really glad if someone else did it. The strings are in patched android.policy.jar.
Jack_R1 thanks for this, do you think you could have a go at the desire S?
I see the same requests on MT4G forum...
I guess I'll have to attempt, just have to pick a day for a non-functional phone (as I'll have to back it up, wipe and load Desire S ROM for experiments).
How do I undo / uninstall this mod?
ali3nfr3ak said:
Jack_R1 thanks for this, do you think you could have a go at the desire S?
Click to expand...
Click to collapse
Edited the OP, added the reason for the inability to do Desire S. I believe that more experienced guys already tried to take on the Gingerbread framework and find hooks for trackball wake, if they didn't find anything - my chances are low. There might be places in HTC framework to hook the trackball wake - since it was done for G2 and MT4G trackpads. I just don't have enough time/skills/phone to research it.
Jack_R1 said:
Edited the OP, added the reason for the inability to do Desire S. I believe that more experienced guys already tried to take on the Gingerbread framework and find hooks for trackball wake, if they didn't find anything - my chances are low. There might be places in HTC framework to hook the trackball wake - since it was done for G2 and MT4G trackpads. I just don't have enough time/skills/phone to research it.
Click to expand...
Click to collapse
Ok, thanks for your efforts anyway
hi I'm running "evil nxsense hd v1.0 gamma and have flashed this but all it does is mess up my lock screen and the trackball does not wake the phone any ideas? thanks in advance
I've updated the OP, relocating and making bold the relevant section.
This mod DOESN'T ADD trackball wake. It is based on existing trackball wake. On NXSense 1.1 Gamma there is NO trackball wake.
If you want it to work on Gamma - you need to add trackball wake to Gamma (can probably be done by pushing android.policy.jar from Beta to /system/framework/), and if it works - my mod will work. I can't test it, having no Nexus to play with.
If the mod will work but the screen graphics will be messed up - please post and I'll recompile it for Gamma and create update.zip to include android.policy.jar.
Jack_R1 said:
I've updated the OP, relocating and making bold the relevant section.
This mod DOESN'T ADD trackball wake. It is based on existing trackball wake. On NXSense 1.1 Gamma there is NO trackball wake.
If you want it to work on Gamma - you need to add trackball wake to Gamma (can probably be done by pushing android.policy.jar from Beta to /system/framework/), and if it works - my mod will work. I can't test it, having no Nexus to play with.
If the mod will work but the screen graphics will be messed up - please post and I'll recompile it for Gamma and create update.zip to include android.policy.jar.
Click to expand...
Click to collapse
oh right sorry my mistake thought this would add trackball wake to my rom thanks anyway
Hello, i am using MM's SuperHybrid (HD-Desire v1.7-FINAL 720p HD-RECORDIN) ROM from here: http://forum.xda-developers.com/showthread.php?t=784260 and after falshing this Wake_Sleep_lockscreen_Passion_MicroMod_SuperHybrid_DHD, my N1 is still booting in loop!
Is there something wrong with this ROM?
No, there shouldn't be.
To restore to stock lockscreen, follow the guide for uninstallation. I've uploaded the stock lockscreens from those ROMs, so if you're having trouble with ADB commands - you can just pull out the battery, boot to recovery and install the stock ZIP.
If you don't have trouble with ADB commands - please send me the logcat.
In the meanwhile, I'll try to get a Nexus for a couple of hours to test it.
Thanks.
Thanks for your mod, but you should conside that the best Desire HD rom is the nxsense 1.0 gamma. The beta sucks a lot of battery and other bugs
I'll check if trackball wake is easily ported from Beta to Gamma, and if yes - I'll add it to the mod.
Jack_R1 said:
No, there shouldn't be.
To restore to stock lockscreen, follow the guide for uninstallation. I've uploaded the stock lockscreens from those ROMs, so if you're having trouble with ADB commands - you can just pull out the battery, boot to recovery and install the stock ZIP.
If you don't have trouble with ADB commands - please send me the logcat.
In the meanwhile, I'll try to get a Nexus for a couple of hours to test it.
Thanks.
Click to expand...
Click to collapse
Thx for the quick answer. I have everithing working to use ADB but i don't know what you need.
If you explain to me, i can give you what you want to see.
Sory for my english
It's ok, I convinced my wife to give me her Nexus for a couple of hours
I've debugged the problem, very sorry - I put the wrong file in the ZIP. I've recompiled the mod for MicroMod's DHD port and tested it, it's 100% working now. Uploaded the newer version.
Trying to mod NXSense Gamma now.
Updated the OP with additional mod for Gamma. Put attention - this mod has the notifications with wrong strings, and I'm unable to fix it - returned the Nexus. I hope someone else can. Please search the NXSenseHD ROM thread for possible solutions. RNGuy's mod is linked in the OP.
Yeah, it works! THX Jack_R1!!
Does this MOD will work on any other sense ROM like RunnymedeMOD007, Hypersense, etc?
alisabki said:
Does this MOD will work on any other sense ROM like RunnymedeMOD007, Hypersense, etc?
Click to expand...
Click to collapse
No.
This method never compatible N1 GB
Sent from my Nexus One using XDA App
Thanks mate. But unfortunately it doesnt work with my desire, non of them.
Iam using rom: ROM/MOD 4.0.4][Stable Android 4.0.4 with good video recording][v3.5 08.03.2013]
on this link: http://forum.xda-developers.com/showthread.php?t=2095658
Could you please prepare a good file for this rom.
After all this framework hack does not work well under too many ROMs and causes lots of confusion about version. I accidentally found a universal solution to Home Button vibration that works with JKay theme and won't break anything. So this method is abandoned.Hi everyone. I have been Hellraising i9100 ROMs since Entropy's release, however was puzzled by the Home button which lags and won't give any feeling of touch when pressed.
After some research I finally figured out how to fix this. I made 2 versions, one for XXKI3 and another for XXKI4
Currently ROMs incorporates JKay theme mods (Sensation) are not working.
(Sorry I was too excited to notice I compiled both file from custom ROMs that were containning extended power menu, the fix is not universal and try at your own risk!).
Installtion Instructions:
1. Place the zip file into your Internal SD
2. Reboot into Recovery and select "install zip from sdcard"
3. Select "install from SD card", choose YES
4. hit return and reboot
You should have haptic feedback on Home now, also the Home button should respond instantly.
Caution:
Only apply to ROMs that are based on supported Samsung builds.
android.policy.jar varies from build to build so can not hybrid with different versions.
Credit:
gtg465x - home button lagfix code reference
DesignGears - home button haptic fix code reference
Ande definitely Entropy512, for the awesomeness of Hellraiser!
Please let me know if anything happens.
Downloads
Currently not working with JKay themes.
For i9100XXKI3 based ROMs:
View attachment XXKI3-hapticfeedbackfix.zip
For i9100XXKI4 based ROMs:
This file is modified from an i9100 ROM with extended power menu and header, might not work if the menu had the header removed!
View attachment XXKI4-hapticfeedbackfix.zip
amtrakcn said:
Hi everyone. I have been Hellraising i9100 ROMs since Entropy's release, however was puzzled by the Home button which lags and won't give any feeling of touch when pressed.
After some research I finally figured out how to fix this. I made 2 versions, one for XXKI3 and another for XXKI4.
Installtion Instructions:
1. Place the zip file into your Internal SD
2. Reboot into Recovery and select "install zip from sdcard"
3. Select "install from SD card", choose YES
4. hit return and reboot
You should have haptic feedback on Home now, also the Home button should respond instantly.
Caution:
Only apply to ROMs that are based on supported Samsung builds.
android.policy.jar varies from build to build so can not hybrid with different versions.
Credit:
gtg465x - home button lagfix code reference
DesignGears - home button haptic fix code reference
Ande definitely Entropy512, for the awesomeness of Hellraiser!
Please let me know if anything happens.
Click to expand...
Click to collapse
Thanks.... can you please post what code is changed within it (FOR HOME HAPTIC FEEDBACK) so I can mod the one for the rom I'm using. I don't want to use a generic one.
Thanks!
EDIT: Its rom specific.....you can't do generic addons.... It broke my rom which is why posting the actual change would be best. It booted but broke JKAY mods
shoman94 said:
Thanks.... can you please post what code is changed within it so I can mod the one for the rom I'm using. I don't want to use a generic one.
Thanks!
Click to expand...
Click to collapse
I think KI4 version works for checkROM. However just forget I modified both from custom ROMs so does not work universally...
There are multiple places in smali that needs to edit. So you might want to compare your original file with the attachment.
It's <decompiled dex folder>\com\android\internal\policy\impl\PhoneWindowManager.smali
View attachment PhoneWindowManager.zip
amtrakcn said:
I think KI4 version works for checkROM. However just forget I modified both from custom ROMs so does not work universally...
It's more than one place in smali so you might want to compare with the attachment.
View attachment 780701
Click to expand...
Click to collapse
I've been doing that but there are so many differences that I can't tell which is which.
Can't you just say which lines were changed....?
shoman94 said:
I've been doing that but there are so many differences that I can't tell which is which.
Can't you just say which lines were changed....?
Click to expand...
Click to collapse
Line 3841 to 4568... actually works just override all differences.
amtrakcn said:
Line 3841 to 4568... actually works just override all differences.
Click to expand...
Click to collapse
errors out.....
to good to be true. I've been messing with this all night and I"m not winning.
shoman94 said:
errors out.....
to good to be true. I've been messing with this all night and I"m not winning.
Click to expand...
Click to collapse
Like what kind of error you are encountering? During recompile or during testing?
I don't have time to poke at this (busy sobering up after a party...) but: I suggest providing the modded version,a nd the original, and diffing them.
Note that according to Mikey, designgears' patch accidentally caught a bunch of changes that weren't related to home-button.
And yes, just copying the smali will cause an epicfail most likely, ESPECIALLY if targeting a JKay theme, as JKay did dome significant mods to that smali file.
FYI, shoman94, you've gotten as far as I ever did - I never got a working mod, but I've been pretty busy this week.
Entropy512 said:
I don't have time to poke at this (busy sobering up after a party...) but: I suggest providing the modded version,a nd the original, and diffing them.
Note that according to Mikey, designgears' patch accidentally caught a bunch of changes that weren't related to home-button.
And yes, just copying the smali will cause an epicfail most likely, ESPECIALLY if targeting a JKay theme, as JKay did dome significant mods to that smali file.
FYI, shoman94, you've gotten as far as I ever did - I never got a working mod, but I've been pretty busy this week.
Click to expand...
Click to collapse
Thanks for pointing out, I recalled many other other modifications to the android.policy.jar after I posted but I cannot edit the title of thread now...
When comparing the 2 smali files (Original and DesignGear modified), except the lines for home button I only saw difference in conditions, which I don't really understand. It was a experiment that I just copyed the whole PhoneWindowManager.smali then compiled. The compiled file worked.
The file I posted is from a KI4 ROM with extended power menu with header, however since header modification is in GlobalActions.smali I think this should not affect compiling.
Tell me if I got anything wrong, first time looking into the bytecodes
Will be very thankful if you have time to look at this
View attachment OriginalPhoneWindowManager.zip
View attachment ModifiedPhoneWindowManager.zip
amtrakcn said:
Like what kind of error you are encountering? During recompile or during testing?
Click to expand...
Click to collapse
Well I installed your file and it booted fine but jkay mods were broken. I've been trying different combination for the last 8 hrs trying to get this to work. Epic fail.
I might have to post a message to JKAY for some help.
shoman94 said:
Well I installed your file and it booted fine but jkay mods were broken. I've been trying different combination for the last 8 hrs trying to get this to work. Epic fail.
I might have to post a message to JKAY for some help.
Click to expand...
Click to collapse
Since JKay moded other places than the Home Button as Entropy mentioned... this should happen.
You'll need precise modification that just target the Home button...
amtrakcn said:
Thanks for pointing out, I recalled many other other modifications to the android.policy.jar after I posted but I cannot edit the title of thread now...
When comparing the 2 smali files (Original and DesignGear modified), except the lines for home button I only saw difference in conditions, which I don't really understand. It was a experiment that I just copyed the whole PhoneWindowManager.smali then compiled. The compiled file worked.
The file I posted is from a KI4 ROM with extended power menu with header, however since header modification is in GlobalActions.smali I think this should not affect compiling.
Tell me if I got anything wrong, first time looking into the bytecodes
Will be very thankful if you have time to look at this
View attachment 781002
View attachment 781001
Click to expand...
Click to collapse
and the differences are attached but don't work with JKAY mods.... some things may need to get incorporated. IDK
amtrakcn said:
Since JKay moded other places than the Home Button as Entropy mentioned... this should happen.
You'll need precise modification that just target the Home button...
Click to expand...
Click to collapse
exactly my friend. I've been trying to get some help from DG but he is preoccupied. He tried a quick patch but resulted in the same issues I was getting myself.
I can confirm that it worked for checkrom2.0 but when I updated to checkrom 3.0 and relflashed the mod my phone would bootloop as soon as the phone booted. The first thing that popped up was a fc on com.android.phone (or something that had phone in it
Sent from my SGH-I777 using xda premium
jgrimberg1979 said:
I can confirm that it worked for checkrom2.0 but when I updated to checkrom 3.0 and relflashed the mod my phone would bootloop as soon as the phone booted. The first thing that popped up was a fc on com.android.phone (or something that had phone in it
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
It worked on 2.0 but broke the jkay mod.... extended power menu was out of whack.... AOSP style lock screen stopped working.... etc
jgrimberg1979 said:
I can confirm that it worked for checkrom2.0 but when I updated to checkrom 3.0 and relflashed the mod my phone would bootloop as soon as the phone booted. The first thing that popped up was a fc on com.android.phone (or something that had phone in it
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
It looks like the new checkrom is kj3 based. That haptic fix is for ki3 and ki4. Probably why is messed up.
Sent from my SAMSUNG-SGH-I777 using XDA App
can you post the fix for sensation 1.9.
would be greatly appreciated
nmandi said:
can you post the fix for sensation 1.9.
would be greatly appreciated
Click to expand...
Click to collapse
Hi, I compiled the file but since I'm not on Sensation ROM I did not try it myself.
Let me know if you run into any problem.
THX!
View attachment 782532
amtrakcn said:
Hi, I compiled the file but since I'm not on Sensation ROM I did not try it myself.
Let me know if you run into any problem.
THX!
View attachment 782532
Click to expand...
Click to collapse
i'm getting com.android.phone force close
I upgraded last night to [ROM / LEAK] 5/8 - Stock Rooted RUU 3.14.605.5 / Truly De-Odexed! / Root works! works great for me.
One thing I have lost is the ability to wake on keypress (volume keys) which was working on GB via WidgetLocker.
Short of using a different ROM is there a fix for this.
It looks like a lot of Roms have this buiilt in, but I'm not sure I want to go through the upgrade process again right now just to get that feature back. Took long enough to reload what I had and that was using TB for some stuff.
That feature does not work on all ICS roms based on 3.14.
I asked to the dev of Widgetlocker, and he could not help with that.
You can check volume-wake mod for clean rom 4.5. That should work.
Or, I am currently on the Newts One xXx now (sense 4.0). Widgetlocker is fully functional on the rom.
The only thing I could find was on this post.
http://forum.xda-developers.com/showthread.php?t=1532156
Doesn't parse. I will most likely end up loading one of the ROMS that supports it when I get time.
send me the android.policy.jar found in system/framework
and Generic.kl found in system/usr/keylayout
from whatever ROM you want this for and I'll get it working.
Sense 2.1/3.5/3.6/4.0
doesn't matter..
removed
rhplusa10 said:
That feature does not work on all ICS roms based on 3.14.
I asked to the dev of Widgetlocker, and he could not help with that.
You can check volume-wake mod for clean rom 4.5. That should work.
Or, I am currently on the Newts One xXx now (sense 4.0). Widgetlocker is fully functional on the rom.
Click to expand...
Click to collapse
This feature actually does work on every ICS ROM I've ever tried.
where did you hear that doesn't work on all ICS ROMs?
unless the phone doesn't have volume keys, I can make the MOD
andybones said:
This feature actually does work on every ICS ROM I've ever tried.
where did you hear that doesn't work on all ICS ROMs?
unless the phone doesn't have volume keys, I can make the MOD
Click to expand...
Click to collapse
Hello andybones.
I mean the feature in widgetlocker, not your mod.
Your mod works fine as I said.
Thanks for making that
Also I posted in your mod thread that your volume key wake mod with apm has some bug which makes soft reboot when using screen off apps.
anyways I'm on newt one xxx now, it is fully functional with widgetlocker.
Andybones sent me an update that works with the ROM I was using.
I posted in in the Rom thread.
http://forum.xda-developers.com/showpost.php?p=26983496&postcount=216
Thanks to Andy for it. Made my phone "work" again... I hate the power button to turn the phone on. Works with or without Widget Locker which gives another option.
Any one, please to port this to our plays??? Tried it but got bootloop
Code:
http://forum.xda-developers.com/showthread.php?t=1590848
The GB version works fine in all stock ROM's already, i tested that. For ICS, i ported it to xDark ICS - the android.policy.jar file in there should work for all ROMs based on the official ICS Beta. CM9 and AOKP already have options to enable it (I'm using AOKP now, its under ROM Control > Lockscreen).
EDIT: You need to wipe dalvik cache after replacing framework files like android.policy.jar.
Sent from Xperia Play (R800a) with Tapatalk
CosmicDan said:
The GB version works fine in all stock ROM's already, i tested that. For ICS, i ported it to xDark ICS - the android.policy.jar file in there should work for all ROMs based on the official ICS Beta. CM9 and AOKP already have options to enable it (I'm using AOKP now, its under ROM Control > Lockscreen).
EDIT: You need to wipe dalvik cache after replacing framework files like android.policy.jar.
Sent from Xperia Play (R800a) with Tapatalk
Click to expand...
Click to collapse
Well, I have xDarkICS installed so, do you mean that to install it i have to flash the file which contains android-policy.jar and wipe dalvik only???
Thanks for reply
edit: more exactly, which file have I to flash??
Somebody posted this mod on Xdarkmario's thread a couple days ago, but I pasted the android.policy.jar into the framework folder and all it did was take away the "Home" buttons ability to wake up phone. It did not even change the tracks when I tried it in Play Music app.
Sent from my R800i using xda premium
cyrusalmighty said:
Somebody posted this mod on Xdarkmario's thread a couple days ago, but I pasted the android.policy.jar into the framework folder and all it did was take away the "Home" buttons ability to wake up phone. It did not even change the tracks when I tried it in Play Music app.
Sent from my R800i using xda premium
Click to expand...
Click to collapse
I was the one who ported the android.policy.jar file for xDark ICS. I have since switched to AokPlay which has it built in, but I assure you it worked 100% for me. You need to wipe dalvik-cache when you do copy it, and also chmod to 644. Maybe you need to factory reset too, because I directly copied it into the xdark ICS ZIP file. And it worked fine.
EDIT: I don't use Play Music, it's a buggy P.O.S. and I wouldn't be surprised if it didn't work with that app. The music has to already be playing and the screen has to be OFF for it to do anything. The app has to have bluetooth-remote-aware capability, the included MIUI Music app in xDark ICS worked fine, so did Poweramp and Winamp for me (after enabling the bluetooth headset control options in those apps).
bamsbamx said:
Well, I have xDarkICS installed so, do you mean that to install it i have to flash the file which contains android-policy.jar and wipe dalvik only???
Thanks for reply
edit: more exactly, which file have I to flash??
Click to expand...
Click to collapse
No, don't flash any of the original ICS mods on a Xperia Play ICS Beta ROM. They are incompatible and cause a bootloop. Use my modded one from here, but I've only tested it on xDark ICS it should work on all other ICS Beta-based ROM's for Xperia Play.
Because I'm so damn nice and have no life, here is a flashable ZIP. With the mod. The original one had holding vol-up as previous track which is silly, I swapped them around to be like Cyanogenmod (hold vol-up for next track).
As I said, this was made for xDark ICS, I don't know if it works on other ICS ROM's based on the official Beta. Please report if it does work with a different ROM to help other users.
Works on NeoS rom aswell, just has conflicts with the power menu. Crashes phone when you hold the power button otherwise thats the only issue.
cj360 said:
Works on NeoS rom aswell, just has conflicts with the power menu. Crashes phone when you hold the power button otherwise thats the only issue.
Click to expand...
Click to collapse
Yeah, sadly the same jar file is responsible for those power menu mods. Hence why this is really only for xDark ICS.
You could ask the creator to decompile and tree-compare this modded jar to the original xdark ICS v0.1 jar file, then with those differences he can integrate/port it in his ROM too.
CosmicDan said:
Because I'm so damn nice and have no life, here is a flashable ZIP. With the mod. The original one had holding vol-up as previous track which is silly, I swapped them around to be like Cyanogenmod (hold vol-up for next track).
As I said, this was made for xDark ICS, I don't know if it works on other ICS ROM's based on the official Beta. Please report if it does work with a different ROM to help other users.
Click to expand...
Click to collapse
Succeded and worked on xDark ICS with Walkman... THANKS!!!
only wiped Dalvik-cache & Cache partition
EDIT: Sht!!! I breaks recent apps ( when long press home key ).... any solution???
CosmicDan said:
The GB version works fine in all stock ROM's already, i tested that. For ICS, i ported it to xDark ICS - the android.policy.jar file in there should work for all ROMs based on the official ICS Beta. CM9 and AOKP already have options to enable it (I'm using AOKP now, its under ROM Control > Lockscreen).
EDIT: You need to wipe dalvik cache after replacing framework files like android.policy.jar.
Sent from Xperia Play (R800a) with Tapatalk
Click to expand...
Click to collapse
i am re adding volume rocker mod to XDark ICS v3
Any chance for port of this mod for stock gb?
chery2k said:
Any chance for port of this mod for stock gb?
Click to expand...
Click to collapse
Read the second post jeez
Via Tapatalk - - My Tutorials
Hi ! i need a flashable zip or something like this to activate volume rocker in epinter cm 10.1 with 3.1 kernel( wake up with volume buttons because my phone slept in the water ane power button doesn't work anymore ) and i don't find this in the settings .please help me
Read the information given before posting or opening new threads. It has already been mentioned several times no such thing exists for that ROM yet. CM10.1 is in early alpha stage, it is way too soon to make requests like this. It will have that feature when the dev gets around to doing it.
Hey there actually is a solution to this , its to flash the cm9 with the 3.1 kernel and then flash cm10.1 without wiping, some guy mentioned it in the forum and it works, can't remember his name or I'd give him his credit
Sent from my MB860 using xda app-developers app