yashsingh1/xdaforums huggingface dataset:
[HTC One X] tombriden:
I got so used to using the volume rocker to wake my DHD and show the lockscreen instead of the power button that i decided to try and add the same functionality to the OneX. The only caveat with this is that sometimes the volume slider shows up when it wakes, but i can live with that :)

Hopefully, in time, the ROM devs will add this in by default or as an option. Until then it'll require these manual mods...

Don't try the following if you're unsure what you're doing as you could potentially break the ROM if not done correctly. I recommend backing up first in Clockwork Recovery in case things go wrong.

I accept no responsibility for any issues encountered making these changes!

Requirements

Rooted phone

Android-SDK

baksmali/smali from here

Step 1 - Update android.policy.jar

1. Do the following to get the android.policy.jar from your phone and disassemble it

adb pull /system/framework/android.policy.jar .
baksmali -x android.policy.jar -o classout

2. Open the following file in a text editor

classout/com/android/internal/policy/impl/KeyguardViewMediator.smali

3. Find the method "isWakeKeyWhenKeyguardShowing(IZ)Z"

4. At the bottom of the method, there's a switch statement. Remove the following 2 lines from it:

0x18 -> :sswitch_5
0x19 -> :sswitch_5

5. Save the file and close it.

6. Run the following commmand to re-assemble classes.dex

smali classout -o classes.dex

7. Drag the classes.dex into the android.policy.jar file to update the file in there.

8. Push the updated android.policy.jar back to the phone

adb push android.policy.jar /sdcard/
adb shell
su
sysrw
cp /sdcard/android.policy.jar /system/framework/
chmod 644 /system/framework/android.policy.jar

Step 2 - Update Generic.kl

1. Pull the file from your phone

adb pull /system/usr/keylayout/Generic.kl

2. Open it in a text editor and change the lines

key 114 VOLUME_DOWN
key 115 VOLUME_UP

to

key 114 VOLUME_DOWN	WAKE_DROPPED
key 115 VOLUME_UP	WAKE_DROPPED

3. Push the file back to your phone

adb push Generic.kl /sdcard/
adb shell
su
sysrw
cp /sdcard/Generic.kl /system/usr/keylayout/
chmod 644 /system/usr/keylayout/Generic.kl

(of course, you could also make those changes to the file directly using a root file explorer app and text editor.)

Step 3

Reboot the phone.

Note: The first time it boots after changing android.policy.jar, there'll be an 'Android is upgrading' dialog. This is normal and it won't happen on subsequent reboots.
[HTC One X] w1nter456:
How if I play music in off screen mode adjusting the volume?
[HTC One X] tombriden:
It'll still work, but the screen will wake too.
[HTC One X] mmx6688:
thanks much. I need this feature much.

One question, is this change use up volume or down volume or both will work?
[HTC One X] ckpv5:
Am I correct that this mod will work only on deodexed android.policy.jar ?
[HTC One X] tombriden:
Yep, it'll work for both.

Yep, the above steps are for de-odexed ROMs, but you may still be able to disassemble if you pull the jar and odex and run baksmali on android.policy.odex. If you get errors trying that then pull everything from the /system/framework folder and try it again

Annoyingly, i've just noticed that once the phone goes into a 'deep sleep', the volume buttons don't always wake it. Sometimes they'll work after a double press sometimes it needs to be the power button :-\
[HTC One X] leventccc:
Thanks it worked on my device. And I have added your mod to my mod pack for easy enabling and disabling
[HTC One X] ck_looi:
any kind person can help to make it into a flashable zip?
[HTC One X] jonata:
+1 10 chars
[HTC One X] mgmCube:
Would it in theory be possible to use the home button to wake the phone or is that impossible because the buttons don't work when the screen is off?

I have wake on TP on my Desire now.
[HTC One X] ckpv5:
Not possible as the buttons don't work when the screen is off.

And when the phone goes to deep sleep mode, volume button to wake it not really works (tried both on odex and deodex ROMs).
[HTC One X] MasK:
Totally eager to try this out.

I'm using the LC ModPack 2.1.0 and this doesn't work :(
[HTC One X] mgmCube:
Ok so this volume unlock doesn't really work when in deep sleep?

This isn't mentioned in the first post.

So what if I use this volume unlock and disable the power button, then I have a problem after deep sleep?
[HTC One X] ckpv5:
Yeah... most of the time it doesn't work when in deep spleep. OP mentioned this on post #6 too.

With volume to wake (not unlock, you still need the swipe up to unlock), and disable the power button, you will have problem to wake and unlock when it goes deep sleep. When you have this problem, the only way to wake it is to plug-in a usb cable or charger as it will wake the phone, then you can unlock.
[HTC One X] MasK:
Well then.. I think its better to disable it as it does messes up my volume levels even if it doesnt wake up the device..

Any chance of a full feature here? Coz the phone is expected to go into deep sleep most of the time..
[HTC One X] elesbb:
Jumping in here real quick, i dont (unfortunately) have an amazing all powerful OneX but i do have an HD2 :P

Anyhow, im posting in regards to the isWakeKeyWhenKeyguardShowing(I)Z method in the KeyguardViewMediator.smali file found in android.policy.jar. I already have the volume wake keys set via cyanogen mod, my question is this:

How can i ADD keys to this file to prevent the device from waking?

I tried converting the hex values from that file but they dont correspond with any key values (ex, volume down is 115) but 0x18 is 24, decimal value, so im not sure exactly what numbers must be added to correspond to the correct key.

Thanks all for your efforts and time spent reading!
[HTC One X] Kammii:
Thank you for the guide. I don't have Generic.kl on my Motorola XT530, so I think I might need to fiddle round with the .kl files to see if I can get this mod working.

I had to modify my process slightly, so I'll explain what I did in case it may be of help to anyone else.

1. To copy android.policy.jar to my PC, I used Android Commander. It's nice and simple. Make sure you make a back up of android.policy.jar before you modify it in case you need/want to restore it.

2. Use Command Prompt and navigate to the folder in which android.policy.jar is located. For example:

cd C:\Android\temp

3. Disassemble classes.dex using the following command:

java -jar baksmali-1.3.2.jar -x android.policy.jar -o classout

4. Edit and save KeyguardViewMediator.smali as per the original post.

5. Reassemble classes.dex using the following command:

java -jar smali-1.3.2.jar classout -o classes.dex

6. Open android.policy.jar with 7-Zip (any archive manager should work) and replace classes.dex with the modified one.

7. Use Android Commander to replace android.policy.jar on phone.

8. Edit Generic.kl as per original post. I don't have Generic.kl on my phone, so I just left-out this step. I figured I could poke around the .kl files later if need be. I haven't done so yet.

9. Reboot.

Note: The filenames for baksmali-1.3.2.jar and smali-1.3.2.jar may be different if you have a different version. Simply adjust the commands above accordingly.
[HTC One X] simster007:
HTC Ones S --Works

Was looking for this on the HOS forums but found this close enough instead. Prob everyone knows this, but I did this same setup on my one s (t-mo-us) version, and it stuck. So thanks for this nice little tweak. Good to know dev's have our backs in everything.
[HTC One X] andybones:
this was much appreciated for my inc2!

we got a new kernel and messed up it working in the tweaks app, so this really saved me, I didn't realize the Generic.kl needed to be updated.

thanks again!
[HTC One X] espaciosalter20:
in defy, it's umts_jordan-keypad.kl instead of Generic.kl (doesn't exist).
[HTC One X] jh787:
I need some help if you would be so kind.

I am trying to follow your instructions but i am only getting as far as pulling the files.

I am on a rooted stock odexed rom and when i try to run

baksmali.jar -x android.policy.odex -o classout

It seems to go through (no error) but i dont get a classout folder in my adbtools folder or anywhere else as far as i can tell.

Am i doing it all wrong?
[HTC One X] tatankam@hotmail.com:
For me it works only when the teriminal is connected to usb.
[HTC One X] wmg316:
Try setting /sys/keyboard/vol_wakeup to 1 instead of 0...along with instructions in OP....
[HTC One X] s0uky:
"/sys/keyboard/vol_wakeup to 1 instead of 0" doesn't work...
[HTC One X] Alex-V:
thats an old thread..look here:

http://xdaforums.com/showthread.php?t=2084522

this one works
[HTC One X] Cyb0rgz:
Thank you OP. Just followed the instructions and now i modded Incredible S to wake up by pressing volume up/down.

Thank you so much!
[HTC One X] Benowit:
Thank you for this mod, work fine on my Acer Gallant :D
[HTC One X] Wil53664:
where should I put baksmali and how to run it?
[HTC One X] Minimilised_MR:
Anyone please MOD Mine? :) I'll be thankful to you!! :)
[HTC One X] navmad:
Please find the modded android.policy.jar

Regards,

navmad
[HTC One X] Dwill107:
Sorry if this is a weird question but I am interested in disabling this feature in the ROM I'm on, it's the only feature I don't care for. On a galaxy s2 if it matters. Can I simply reverse the processes if this was the process used to initiate volume wake?
[HTC One X] andybones:
Yes you most certainly can.
[HTC One X] alfanveykov:
Hi im from the future, can i do this on android 8 ?
[Samsung Galaxy Tab Plus] ngc2264:
Hello,

this is a poll: did you buy the wifi or the wifi+3G version?

Cheers
[Samsung Galaxy Tab Plus] Ceelos09:
Wifi.

Thot about the 3G version, but, seeing as how I have Sprint and a hacked hotspot tether, I really didn't need another data plan ;)
[Samsung Galaxy Tab Plus] scottypimpin636:
3G only because I'm in Afghanistan but once I return home I'll tether through my 4G phone like the other guy.

Still waiting for my 6200 to get here :-)
[Samsung Galaxy Tab Plus] [David]:
P6200 so 3G from italy

Sent from my Galaxy Note with DarkyROM 3.3
[Samsung Galaxy Tab Plus] wolverine38812:
Wifi for me

I'm not paying extra data charges when I can tether free with my phone
[Samsung Galaxy Tab Plus] likenota:
3g will be obsolete eventually...

why spend money on a 3g + wifi when 3g will just go bye bye? ive also got my phone tethered to use tablet wherever i go if only i could just rid the phone lol oh well.
[Galaxy S II Q&A, Help & Troubleshooting] fenjen:
So all the interactive widgets which for example include scrolling are pretty sluggish for me. For example the social hub widget or the e-mail widget (or the one 2do includes). It feels a bit slow and is pretty stutter-ish. Is this normal or...?
[Galaxy S II Q&A, Help & Troubleshooting] fenjen:
Anyone else?
[Galaxy S II Q&A, Help & Troubleshooting] fenjen:
Bump. Can anyone just say wether this is the case fot them or not?
[Galaxy S II Q&A, Help & Troubleshooting] bala_gamer:
scrollable widgets are mainly dependent of the launcher you use, so try using different launcher, that should solve your issue.
[Galaxy S II Q&A, Help & Troubleshooting] fenjen:
I don't want to use another launcher.. I just want to know wether this behaviour is normal or not..
[Galaxy S II Q&A, Help & Troubleshooting] htcmagic:
No this behavior is not normal, they were working perfect on gingerbread, now they redraw themselves very often on ICS. I think they need updating to use ICS scrolling capabilities natively because so far they use the open source library from Launcher+.
[Galaxy S II Q&A, Help & Troubleshooting] JJEgan:
Not normal .

Backup data factory reset .

Custom rom wipe and flash again .

jje
[Galaxy S II Q&A, Help & Troubleshooting] fenjen:
I've done multiple factory resets and reflashes actually.. And as I dont want to void my warranty I'm not going to root
[Galaxy S II Q&A, Help & Troubleshooting] fenjen:
People...?
[Galaxy S II Q&A, Help & Troubleshooting] fenjen:
Can someone close this??? I've made another thread
[Atrix 4G General] nekrosoft13:
How can I safely update 4.5.91 to latest ota? My bootloader is locked, my phone is rooted with something called fastboot.

The ota update notification is getting annoying. Please help.
[Atrix 4G General] live4nyy:
Just an FYI, "fastboot" is a protocol used to flash system files:

http://www.androidcentral.com/android-z-what-fastboot

Either way, if you want to stop the notifications you can use a root file manager (such as Root Explorer) to freeze the "Updater.apk" (or Upgrader.apk?) in the /system/app folder by adding a ".bak" to the end and rebooting.

You can maybe try "rootkeeper" and do the OTA but

I don't know the extent of your modifications so I really can't recommend that

.

Or you can take the leap and unlock the bootloader and flash custom ROMs.

:)
[Atrix 4G General] psychephylax:
Or he can use the Automatic Update (PC Only) from here if he wants to stay stock:

http://www.motorola.com/Support/US-EN/Android_Products/ATRIX-4G_Software_Update_Page

That will flash the 141 sbf onto your phone so you will lose root

Then you can re-root using the preinstall method using Fastboot again.
[Atrix 4G General] ltdanno360:
or just root / unlock and load a custom rom They are FAR superior that any stock atrix firmware! period!:D
[Atrix 4G General] nekrosoft13:
ok, i was able to unroot and run OTA :) using these directions http://xdaforums.com/showpost.php?p=22723943&postcount=15

how can i root now? is there any method other then preinstall method?
[XPERIA X8 General] 8cpaiw:
pls tell my how to move that circle:

link:http://youtu.be/ifCiY3WoUl8
[XPERIA X8 General] KunalAggarwal92:
Flash the cypress fix here
[XPERIA X8 General] 8cpaiw:
thanks ......
[XPERIA X8 General] Lloir:
"Use the search button luke"
[HTC One X] nickhuk:
Yesterday morning I received my grey One X and was surprised to hear a rather big handful of people complaining about a rattle. So, I (as you do) picked up my phone and began violently shaking it.... I couldn't hear anything - until I turned off my TV - yes, it REALLY is that quiet. So after around 45 seconds of investigating I discovered that it is coming from the volume rocker. Slightly touching the rocker whilst shaking it stops the rattle – Remember though, you will require BOTH hearing aids to be turned up to 11.

It is NOT a problem or a fault. Yes perhaps they could have designed it with some more resistance which would stop the very slight rattle... BUT then EVERYONE would then be complaining that it takes too much force to increase or decrease the volume.

So, to conclude, Can EVERYONE please STOP complaining about it! Who is actually going to be shaking their phone to their ear on normal day to day use? Exactly, no 1) :D
[HTC One X] sindresv:
It just shows that if you want to find an issue with a device, you will. And everybody blames the camera without thinking of the two only movable parts on the phone :D

And maybe you could change the thread title to "HTC One X Rattle: A non issue" or something?
[HTC One X] Basil3:
Good to see a bit of comic relief from these forums. I have been through all this before with all the *****ing and moaning about a new device, but this phone seems completely bad with the number of multiple threads on the same issue, and people making a mountain out of a molehill with other issues.

Makes me think of issues of last couple of devices I've had: Proximity sensor, battery cover poorly designed, screen tint, creaking, dust under screen, battery life, low speaker volume, tiny gaps on phone housing, not to mention software issues....the list goes on and on.
[HTC One X] nickhuk:
exactly... have experienced some of the issues in some way with: Desire, Desire HD and Sensation
[HTC One X] r_a_c:
Maybe with your device it is...With most of our devices it's the focus "ring" of the camera. Witch happens with all devices and their different models.
[HTC One X] Deleted member 2496007:
You have to have a quiet room and hold it next to your ear. Not really a problem. I'd like to think that instead of a problem, we've found another feature!...
[HTC One X] atrako1973:
I love my wife
[HTC One X] Sindroid:
Is the camera focus ring. Nothing to be worried about..

Even iPhones have the rattle out of the box.

Sensationaly sent from my Sensation.
[HTC One X] nickhuk:
EVEN iPhones??? strange comparison.... Ohh yeah i forgot that the iPhone is the phone of all phones :rolleyes:
[HTC One X] arzbhatia:
HTC volume rockers have always sucked >.<

My Sensations' rocker kept falling off! Then I got a replacement ^-^
[HTC One X] PsiAdster:
I always thought it was the camera.. My nexus one rattles, but a lot more noticeably. This is the reason why I haven't worried about it.
[HTC One X] heavy16:
Hi,

The rattle of volumerocker is a defect or no ?
[HTC One X] nickhuk:
NOT a defect
[HTC One X] Sindroid:
Yes EVEN iPhone. To be honest, they are more solid built and very compact assembled since there hardly is plastic. Especially the 4/4S.

Sensationaly sent from my Sensation.
[HTC One X] nickhuk:
I was being a tinnnny bit sarcastic :p
[HTC One X] Zinu:
On my white One X it's not the volume rocker, nor the power button. It really is the camera.
[HTC One X] Nit3m4re:
Guys I know it probably seems annoying but I have had my SGS for a very long time and that had the flimsiest USB cover slider that had a mind of its own. It rattles a lot if it comes undone and believe me, it was a pain initially driving me mad at first but you get used to it. Honestly, I don't even begin to hear it now and I would bet its probably a lot louder lol. Be happy your phone works properly if that is your only issue :) Others are having a lot more trouble
[HTC One X] knoxploration:
On mine it is neither the buttons or lens bezel, and I doubt it is on anybody else's, either. My guess is it,s a focus element in the lens, or perhaps an orientation sensor.
[HTC One X] Aja82:
Mine its the volume rocker. I press it and voila, silent. If I dont, it rattles.
[HTC One X] Zinu:
Maybe its not the camera, but the SIM card inside the slot, or the slot itself? I remember reading some messages about some SIMs being too slim
[Galaxy S II Q&A, Help & Troubleshooting] liljom:
Exact same here. Would be so nice to have a solution.

Wiping data doesnt help.
[Galaxy S II Q&A, Help & Troubleshooting] fenjen:
Forcing 2D on gpu creates the problem. Turning it off solves it :)
[Galaxy S II Q&A, Help & Troubleshooting] Paulius7:
Wipe dalvik cahce and cahce
[Galaxy S II Q&A, Help & Troubleshooting] fenjen:
Doesn't help.
[Galaxy Note GT-N7000 Themes and Apps] Martini3001:
I want to show you my new creation of WhatsApp, called "Whatz-Red"

I customized the colors and icons in many ways.

Have a look, try this app and get happy with this bloody styling :D

Best Wishes!

Martini
[Galaxy Note GT-N7000 Themes and Apps] m3dd0g:
Great work mate :D

Gesendet von meinem GT-N7000 mit Tapatalk
[Galaxy Note GT-N7000 Themes and Apps] Martini3001:
Thanks, in a few days you will see more...
[Galaxy Note GT-N7000 Themes and Apps] cosmoboi:
I tried installing but it prompted me not installed... y?
[Galaxy Note GT-N7000 Themes and Apps] bangsti:
Hello Martini

Super das du jetzt auch hier vertreten bist.

Top Arbeit.

Great Work.
[Galaxy Note GT-N7000 Themes and Apps] ishay_maimon:
i install how i starting? .
[Galaxy Note GT-N7000 Themes and Apps] MyCephei:
Who need this??

Or, for what is this?
[Galaxy Note GT-N7000 Themes and Apps] Martini3001:
Are you kidding me? Its a better styled whatsapp..

Gesendet von meinem GT-N7000 mit Tapatalk
[Galaxy Note GT-N7000 Themes and Apps] Alessandro75:
really cool
[Galaxy Note GT-N7000 Themes and Apps] plee85:
red....green....

I like the original... red is just too.....ugly
[HTC Sensation] BshadoW1:
hi!

i just upgraded my phone to arhd 6.5.5 .

i have an issue that in my house i dont have signal.

while people who are coming over have full signal.

is there something i can do?

thanks!
[HTC Sensation] Thermalbad:
Did you install the newest firmware / radio? See first post on arhd.
[HTC Sensation] BshadoW1:
yes i did.

i mean not the news for the 6.6.1

but the newest for the 6.5.5
[HTC Sensation] BshadoW1:
someone else?
[HTC Sensation] azzledazzle:
Which provider are you with ? Have you checked their website for any technical issues on their part ?

Have you tried to re-flash the ROM + Radio ??

If you enter the diagnostics menu, there are several options you could mess around with to see if that helps - just dial *#*#3424#*#* - or use the option under leedroid tweaks (if you have it)
[HTC Sensation] BshadoW1:
im on an israeli provider called pelephone.

when i put your code in i just go back to the recent calls list.

im sure there is something wrong with my radio but i tried to reflash and nothing helped.

i know its not the provider as my friends get full signal on the same spot i am.

please help me

thanks
[HTC Sensation] azzledazzle:
Select 2g networks only and see if that makes a difference
[HTC Sensation] BshadoW1:
how do i do that?
[Asus  Eee Pad Transformer Prime] josho133:
I've unlocked, rooted and encrypted my TF201. It's running the stock Asus ICS ROM (albeit unlocked and rooted). CWM is installed.

When I unlocked this device, I had no idea it was permanent, and frankly I recognize now that I really don't need an unlocked tablet.

I would like to sell my device now, so I would like to wipe it. Knowing I can never revert it back to an original factory "locked" state --

what is the best way to wipe all my data from this device and avoid bricking

?

Many thanks!

As an aside, if anyone wants it, it's ~1 month old, in great shape, and I'll be asking $450 for it (NYC area).
[Asus  Eee Pad Transformer Prime] josho133:
*bump* anyone?
[Asus  Eee Pad Transformer Prime] lil-devil:
i believe you can just delete all your user information, and set it to default factory settings

and just reflash your rom it should be good to go for sale
[Asus  Eee Pad Transformer Prime] josho133:
Thanks for the reply. It looks from all the 'brick' posts that doing this incorrectly will result in permanent brickage. Which ROM were you suggesting I install, and exactly which wipe were you suggesting I use (cwm wipe or ics->settings)?

Thank you
[Asus  Eee Pad Transformer Prime] barryflanagan:
Use CWM wipe for sure. As for ROM, probably best with just the cwm-flashable stock .21 which is in the Dev section setting as you are selling it.
[Asus  Eee Pad Transformer Prime] josho133:
Thanks barryflanagan! Am assuming you're referring to VirtuousROM?
[General Questions and Answers] morgadaan:
Greetings all :)

This is my first post here, and I have done the required searches (to the best of my ability lol)...

I desperately want to root and flash my i9000M, but just as I was doing my last bit of research, I came across the words "operator locked," and this worried me :confused: I live in Saskatchewan, Canada, and my SIM is locked to SaskTel.

Will this affect how I root the phone, or if I am able to root it at all? (Root-wise, I've found great tuts...I have upgraded to GB from Froyo, so I'm going to do a factory reset before anything, so I won't need any help with that [yet lol])

Thank you so much for your help!!!