yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] JTNiggle:
The end of face dialing!

Just thought I'd share what I did to stop face dialing and hanging up on people.

I remapped the "key 231" from CALL to POWER, and set it for WAKE_DROPPED. This lets me tap the send/call key after answering/making a call, and the screen just turns off, but the call remains connected, don't know how I lived without this for so long. You could also just switch the end call key to power, but I like having the physical call end key.

Also handy, I remapped the "key 127" from SEARCH to MEDIA_NEXT to allow me to skip through music while I'm jogging without using the screen or unlocking the phone, can't live without this now either.
[Hero CDMA Android Development] c00ller:
I think I will implement this on my phone as well.

Is it possible to map different functions to keys when they are long pressed? I would love to be able to press the search button to pause and long hold it to skip to the next track!

If only the Hero had more buttons to map :rolleyes:
[Hero CDMA Android Development] MapleBacon:
I like this guide a lot, especially with the media buttons now. What are the keys for the trackball?
[Hero CDMA Android Development] Decad3nce:
Trackball would be dpad... but I haven't figured out "how" it works. I'll look at it when I have the time.
[Hero CDMA Android Development] Decad3nce:
Check first post for an idea on mapping Custom Application Launching by button push! :D
[Hero CDMA Android Development] c00ller:
There's an app on the market (Button Shortcut) which lets you configure what application opens when you long press aka hold and press the search button (and camera button, for those who have it). The thing is, I don't want an application to open, I just want one of the media commands to run! Or, I would like to know how to modify heroc-keypad.kl such that I can add commands for long-pressed buttons!
[Hero CDMA Android Development] feefeeboomboom:
That app will work well for me. But the first post has that Java hack for custom intents.
[Hero CDMA Android Development] c00ller:
Well, the first post tells you how to assign keys that are pressed normally. The app I was talking about configures what happens when you hold down the search key. The first post (or any online guide I could find, for that matter) does not describe how to go about doing this.
[Hero CDMA Android Development] ViViDboarder:
So when mapping something to CAMERA, does that mean it just launches the camera? Or does it act as a shutter?

If it's the latter, could I map a volume button to volume down and Camera? Assuming the shutter does nothing outside of the camera so it would run volume down?

Or is this not exactly what I'm looking for?
[Hero CDMA Android Development] Decad3nce:
It actually launches the camera and works as a shutter(on second press).
[Hero CDMA Android Development] jcf304:
Replacing stock voice dial with google voice input

One of the features for the green phone button is to hold it down and have it start voice dial. Well the stock option sucks. But I remember being able to use google voice input option to do the same thing and with a recognition rate that was way better than that of the stock voice Dial program. Can this button be mapped to start the search input app for google instead of the stock dial app. This would allow the voice dial to work and not keep pulling up random numbers (I'm not sure why they even put that on the phone as it fails 99 percent of the time )

-J
[Hero CDMA Android Development] c00ller:
I used this method to change my search button to MEDIA_NEXT. However, now nothing happens when I long press the search button. Normally it would bring up the search box.
[Hero CDMA Android Development] Decad3nce:
So it does actually work for skipping to the next media, just the second(long press) action isn't working?

That's normal. I haven't figured out why it takes out the other action, aside from the possibility that both activities stem from the same service.
[Hero CDMA Android Development] c00ller:
Darn. Well, I'm glad at least media_next is working. Both activities probably do stem from the same service, since long press functions aren't a part of the heroc-keypad.kl code.

Oh, and I don't know if this signifies anything but the app "Button Shortcut" on the market does not work for me when I try to assign long pressing search to launch an app. Nothing happens when I long press the search button.

Also, did you know that this thread is the only good google result when searching for "heroc-keypad.kl"? Nice job :)
[Hero CDMA Android Development] primerib:
Can you map multiple actions to a button..for example.

I already have camera launch set at my search..how can i, or can i also mad media next to it?
[Hero CDMA Android Development] Jordanh8:
Sorry to bump a kinda old thread, but is it possible to have my search button show recent apps? If so, what would I change the key name thing to?

Thanks for any help you can give! :)
[Hero CDMA Android Development] oohaylima:
I'm glad you did, or I wouldn't have known about it! I now have my search button to open up my camera. Woohoo!!
[Hero CDMA Android Development] Decad3nce:
Don't think so. So most likely, no.

Nope. Only the available activities.
[Hero CDMA Android Development] SADист:
Maybe I'm a little out of topic, but it is possible to do that track in music player, switched to long press the volume key in the locked position?
[Hero CDMA Android Development] Roqu3:
Hi Decad3nce, thank you very much for the guide, and about this:

Let me tell you that I tried it and it works, on my LG-P500h I ported the CM7 screenshot funcionality and using this guide i remaped the search button to take the screenshot, as you said I just made a simple script to call the CMScreenshot.apk intent and a service on init.rc with the keycode of the search button to trigger it. To disable the search function I just left blank that key on the keylayout file.

Thanks again for the guide
[Hero CDMA Android Development] adimcx:
What attribute must be assigned to a key, to disable it? For example if i want to disable the "Menu" capacitive button, how can i do that?

The original attribute is:

key 139 MENU

If i just erase the word MENU the capacitive key it is not working anymore, but some app are still execute this operation if i touch the MENU button.

So, i suppose i should write something instead of erasing this word, but i have no idea what to do...

If someone has an idea, please let me know. Thanks!
[Hero CDMA Android Development] Roqu3:
The script was this

on ramdisk > init.rc

service screenshot /system/bin/scrnsht
oneshot
disabled
keycodes 217

217 is the search button on my device

system/bin/scrnsht (or the name you want for it)

#! /system/bin/sh
am start -a android.intent.action.SCREENSHOT -n com.cyanogenmod.screenshot/.ScreenshotActivity

And thats it, later I missed my search button so I used combo buttons (back and power) to trigger the screenshot
[Hero CDMA Android Development] guap:
many thanks ;) I'll try to make my own to lauuch music & sygic
[Hero CDMA Android Development] guap:
it doesn't work :(

modified initrc

service key1 /system/bin/key1
oneshot
disabled
keycodes 12

service key2 /system/bin/key2
oneshot
disabled
keycodes 13

and the test script

#! /system/bin/sh
touch /mnt/sdcard/test.txt

pressed the MINUS (keycode 12)... and no txt created, only minus. Did I miss something?
[Hero CDMA Android Development] janeindiran:
I am using defy and i want to launch app drawer when i press menu.. is it possible??
[Hero CDMA Android Development] Angels13:
hello i have samsung galaxy note. and i dont have camera button i want to remap power button to take a photo in camera apk.

for example at the moment i have

116 power wake

what i should write to do that

thank you.
[Hero CDMA Android Development] :
hello, I have a motorola defy and Im actually trying to disable or launch phone or camera or whatever app on longpress search button, (since now I have a useless Siri stuff which came with the default rom I installed, it was in chinese so I cleaned the rom from system apps, but the problem now is that when I longpress the search button a Siri Icon appears and the phone reboots or nothing happens)

I have tried several stuff to remove this, but none work so I guess I have to remap them, I've followed the steps from the first post but it doesnt work

I see that there are 2 search buttons key 127 and key 217 (long press right?) and I have to change it in umts_jordan-keypad.kl is this correct? I also have to chage it in sholes-keypad-kl?

ty for the help ^^
[Hero CDMA Android Development] megaghostgamer:
Guys look for a app called button remapper or launch key in play store and use it :)
[Hero CDMA Android Development] kemoba:
How do i get the keycodes in that part where you need to launch an app with a button, why are there 2 numbers on keycodes, like this keycodes 107 102, why not keycodes 107 ???? What do the 2 numbers mean ???
[Hero CDMA Android Development] kemoba:
Can someone please explain in detail how to make an app run by keypress or what is the script format is it #! /system/bin/sh and then am start or just am start ? And do i need to edit /system/usr/keylayout/somefile to make the script work
[Hero CDMA Android Development] nonextstop:
Hey, I know that this thread is pretty old, but I found out a way to map the hardware keys to open applications, using root access and Tasker. If anyone is still interested, I can post a link to the tutorial.
[Hero CDMA Android Development] oohaylima:
Please do. :)
[Hero CDMA Android Development] nonextstop:
Okay, it isnt too great of a solution, but it works. What you need is root access, a text editing program, and Tasker.

I originally made the guide for the HTC One, but Id assume you can do this for any phone, just make sure that you have on-screen keys enabled so you can still navigate.

Get your keylayout file. There are multiple ways to do this, but since all phones use different names for them, its best to just open up an app like Root Explorer and move to the file itself, and then copy and paste it.

Edit your button IDs. After getting your .kl file, open it with a regular text editor, and find the keys that you want to change. For mine, I used the home and back keys. Locate where they are; it wont be hard as the keys have their actions next to them, and change one key to CAMERA, and the other the SEARCH.

Map button actions in Tasker. Finally, open Tasker (turn off Beginners view in settings), and hit New > Event > Hardware > and then your button of choice. You can either select the Camera button first, or the Search button. Inside the Event screen, set the priority to Highest, and if youre editing the Camera button, check the Stop Event button. Create a new task in the profile for your button, and create a new action. After, click App > Load app, and then select which application you would like to launch on that button. Do the same thing for the Search button, but you have to long press the search button to access it, as regularly clicking it will open Google Now.
[Hero CDMA Android Development] RASHIDDDDD:
hey on my HD2 i want the power button to be not used mean there shouldn't be any function assigned to it so how would i do it ?? because it makes the screen unresponsive to touch..
[Hero CDMA Android Development] alnov:
sorry i didnt read carefully, i wanna ask another question then, i cannot push my init.rc to my phone, because its read only file, and i read in some reference that init.rc is inside "boot.img", so if i want to edit "init.rc" of mine, i need to modified via that "boot.img" ??

and second question, the script u said above, that is for example :

#! /system/bin/sh

am start -a android.intent.action.CALCULATOR -n co.fira.calculator.calculator/.MainActivity

what type i need to save? is it only .txt or what? thanks

--------EDITED------------
[Hero CDMA Android Development] alnov:
hi, what type that CODE you save? is it in .txt type ?
[Hero CDMA Android Development] MASTER MC:
I have edited .kl file using both ES File Explorer & adb shell , but edited file is restoring to previous on reboot. Is there a way to permanently change the .kl files
[Hero CDMA Android Development] MASTER MC:
I got it. It should be edited and changed to /system using twrp recovery.

I mapped volume button to power. It works correctly only when device is powered on and it doesnot reboot when shutdown. Can u tell me where I should make changes to work to power on the device .
[HD2 General] airwater9:
I've found 'My phone' to be very good for backing up the general user data on board the HD2 but am aware of it's limitations.

I want to be able to backup my registry, sense items: (stocks, weather locations etc) opera favourites etc to my backup hard drive so that should I have to hard reset I can easily restore everything as it was as I finally have my phone set up the way that I like. However I don't know the file names or where the files are located.

Can other people add to this the locations of the backup files needed to make a full backup and also any other things that should be backed up that I haven't got in my list?

Favourites:

Internal memory/Windows/Favorites
[HD2 General] boogieTilt:
Backup

Sprite full backup, you can also set it up to backup SD card.:D
[HD2 General] troed:
......... or SPB Backup. Serves me excellent .

BTW: Question to the Masterminds here: what would be the EXACT procedures to make a backup in a way that the entire ROM/RAM/mSD-Card can be backed up, so that in case I have to buy a new HD2 it can be reflashed with my exact ROM-version + rest that works so flawless ?
[HD2 General] ephestione:
regarding the rom, none, you simply need to save the nbh for rom and radio somewhere and flash them again after you buy the new hd2, then restore with a sprite backup or similar over the same rom/radio
[HD2 General] wineds:
has anyone done a full restore using sprite? I am considering trying a cooked rom but I would like to know if I can restore back to a stock rom just in case.
[HD2 General] kilrah:
A full backup should only be reapplied to the exact same ROM it was made on.

- Make a full backup of the old device with SPB backup as you have it

- Download and flash the same ROM you had on the old device, or flash it from the local copy you obviously kept for that exact reason in case the cook somehow decided to take it offline ;)

- Take microSD card from old device and put in new one

- Restore backup on new device

There you are...
[HD2 General] airwater9:
Thanks for those program suggestions however I'd rather copy half a dozen files/folders over to my backup device than spend $20 on a program that does more or less the same thing.

I'm looking to find out the file locations of the stocks, registry, weather locations, time zones ertc not backed up by the 'my phone' application. Does anyone know which files hold this information? In particular I did a google search and despite being a master at it I couldn't find any info on the location of the system registry so does anyone know where that is? I found that CeRegEditor failed to restore the registry backup when I needed it to.

thanks
[HD2 General] troed:
Tx, !!! :D:D So easy ! Could have thought about myself :rolleyes: Sumtimes too little thinking ............... Sorry:(
[Touch Pro2, Tilt 2 Android Development] mike2o6:
For some reason my phone keeps going into airport mode by itself and I cant seem to get out of it... Any one else experiencing this? and anyone have a way to fix it?
[Touch Pro2, Tilt 2 Android Development] mike2o6:
Nvm found out that leaving the sim card in my cdma phone is a bad thing =P
[HD Mini Themes and Apps] veneirt:
hi, i have a problem with mobile maps 10: it doesn't find the internal gps antenna of my hd mini. are there any solutions for this problem?
[HD Mini Themes and Apps] rigo007:
try port com # 4
[HD Mini Themes and Apps] veneirt:
thanckyou!
[Nexus One Themes and Apps] zehcwb:
I dont know if someone is having the same problem,but I've installed PhotoShop mobile and it says I have no pics in my phone.

Can someone help me out? Using froyo.

-------------------------------------

Sent via the XDA Tapatalk App
[Nexus One Themes and Apps] EdwardUong:
I have the same problem here. Help us !
[Nexus One Themes and Apps] watercool:
Everyone with froyo has this problem..waiting for an update..

edit: NO! Settings - uncheck show camera photos only.. how embarrassing.. i looked several times into these settings lol
[HD2 General] thadragon:
hi i have this error coming out every time i reboot...it say cannot find voice command try reinstalling. is there any suggestion on how to fix this? and one more thing i am notable to use the voice command either. i really dont know whats going on i still have the original 2.13 rom.
[HD2 General] ohhyeahh:
I have this same issue as well
[Off-topic] orb3000:
I laughed a lot with this video:D
[Off-topic] rorytmeadows:
I just reposted this on the Facebook group I'm With Adobe, which is against Job's tyranny and I'm sure it will go over well.

If Jobs really thinks porn is immoral and inappropriate, he's a bigger douche than I thought. Porn has saved a lot of marriages and is a great outlet for energy on many levels.
[Off-topic] bunu:
"The Android Phone is for Porn"

This is one reason why I bought an Android phone.

Just kidding or am I....:D
[Off-topic] JAguirre1231:
Gotta love the Dildroid!
[Off-topic] rorytmeadows:
No one should ever be ashamed of looking at porn...Steve Jobs has a cross jammed up his ass
[Off-topic] galaxys:
Porn is what keeps our economy going with $$$billions :D
[Off-topic] ClementNg23:
Basically the video is very funny except for the fact that I dont like the idea of the "popcorn" thing....
[Off-topic] Mr. Clown:
Totally agree with this :D
[Off-topic] Austin021296:
Haha thats funny...
[Touch Pro2, Tilt 2 Windows Mobile General] whatmagame:
Where do I download them and how do I install them on my HTC Tilt 2 ATT Phone thanks
[Touch Pro2, Tilt 2 Windows Mobile General] XERO_Racer:
use the search function next time but keep in mind, not everything is free

http://xdaforums.com/showthread.php?t=550973
[Touch Pro2, Tilt 2 Windows Mobile General] mech_supernova:
http://www.freewarepocketpc.net/ a good place to start
[Touch Pro2, Tilt 2 Windows Mobile General] Aaron McCarthy:
If you dont have windows mobile market place download it. You'll find what you're looking for in there. Like it was said above... some free... some not.
[Touch Pro2, Tilt 2 Windows Mobile General] carhigh:
wmfreeware.net
[HD2 General] puckstar33:
my htc hd2's backlight keeps coming on even after i lock it. i have done everything i thought i could but yeah. after it dies completly and i charge it, the phone acts okay but then after a lil bit it goes back to tweaking. what do i do?
[HD2 General] rlydiard:
Here is a friendly suggestion for you.

If you can supply more information you are more likely to get helpful suggestions. For example, what ROM are you using, what cabs have you installed, and what tweaks have you made. Without this sort of information it is impossible for anyone else to get enough of a handle on your problem to make useful suggestions.
[HD2 General] ephestione:
you obviously have something acting in background that wakes up the phone from standby, check the list of installed applications from the settings and remove one by one those which you think have any reason to be always active on the phone.

I know for certain that HD2proximityscreenoff has te habit of turning on the backlight in standby at random intervals.
[EVO 4G Q&A, Help & Troubleshooting] pixelpop:
If I call up the browser and then turn the phone on its side, the screen rotates to landscape mode as it should. But after it rotates, it won't rotate back to portrait no matter how I orient the phone. Is this normal?
[EVO 4G Q&A, Help & Troubleshooting] KwestJones:
Nope, not normal, don't have a solution for u tho, sorry

-------------------------------------

Sent via the XDA Tapatalk App
[HD2 Windows Mobile 6.5 Themes and Apps] pacman86:
guys, why i couldn't flash my custom rom? it stops in 0%, and recovery sign comes up then i have to unplug the cable and take off the battery.....help please...
[HD2 Windows Mobile 6.5 Themes and Apps] wez89:
Did you put HardSPL onto the phone before flashing a custom rom?
[HD2 Windows Mobile 6.5 Themes and Apps] kurt-willems:
did you check if your AntiVirus protection is turned off; I know with my experience if Norton is on I have the same problem!

perhaps stupid, but sometimes I forgetting it to turn it off!
[HD2 Windows Mobile 6.5 Themes and Apps] pacman86:
ooo...i haven't installed hspl yet...

thx for the information guys...
[G1 Q&A, Help & Troubleshooting] jjimenez650:
Dont mean to sound like a total Noob but im kinda new to rooting and all

anyway is the proper way to install this to

First wipe,reboot to recovery and wipe again.

Second flash Radio reboot

Third Flash danger Spl reboot

Fourth Super E Rom reboot

Last Boot into recovery flash the new gapps and reboot

Am i missing a step or doing it wrong what is recommended btw i want to set up apps2sd is that done after everything or at the same time and swap partions as well ????

Thank you in advance

nevermind
[Hero CDMA Q&A, Help & Troubleshooting] Lasershock:
Found a solution. mod please delete this.
[Hero CDMA Q&A, Help & Troubleshooting] skanndelus:
some people may have been interested in what your problem and solution were :)
[Hero CDMA Q&A, Help & Troubleshooting] abcdfv:
This is why search doesn't help anyone.
[Android Software/Hacking General [Developers Only]] Itoshii:
Sorry if this is in the wrong place I couldn't find a right place to put this. I rooted my phone a few days ago. Everything went fine. I put a theme on it today and it started freezing and everything so I did a system restore. Which to my luck didn't work. Now it starts up and goes black after the sprint screen. Can anyone help?
[Android Software/Hacking General [Developers Only]] Itoshii:
Sorry everyone continued doing some trial and error and fixed it. I figured out a way to hard reset it. I can't how ever figure out how to delete this thread. >.< Sorry for wasting your time and space.

Although if any needs help with the samsung moment feel free to ask me and I'll do what I can to help.
[Windows Mobile Development and Hacking General] yes2000:
Hi All,

I am using skype a lot and the two problems i face are:

1. route the calls to internal speaker, solved

2. change the ring tone, i did use resource hacker and visual studio and changed the ring tone but for some reason does not work, can anyone help?

regards,

Yes
[HD2 General] PUFF1N:
Long story short…. I’ve just returned to Australia from my Las Vegas Trip. On the last night, my HD2 got stolen by this chick from my hotel room along with my watch and wallet…. Yea I know… Vegas baby Vegas.

Anyways, I went straight to the Microsoft myphone web and it couldn’t locate the phone. I’m guessing it was because it was roaming and my home carrier is in Australia. I’ve requested a delete and it is still pending - doubt it will work.

I called my carrier and asked for a bar and also fro the IMIE to be blocked.

I have now found out that IMIE blocking does not work overseas as it is country specific and there is no international list etc.

I’m not so up set about loosing the phone, but I am cut deeply by loosing all the photos from my trip… just like that - all the memories gone.

Anyway I was running the OZ Rom from here and have not got a New Sim card as yet as I only just arrived home. I filled in a security report with the hotel etc.

Now I also have her friends phone number. I keep calling it and she just lets it go to message bank.

I can offer you her friends number for social engineering purposes and the IMIE of my phone. I can have the bar on my sim lifted, but I doubt it will still be in the phone.

So message me what you can / would do and how much money you would want to help.

I would like the phone returned to the hotel in tact obviously so I can get all the photos back. Failing that, I would like the IMIE blocked somehow from all US networks so that at lease it is useless to them.

Hoping someone out there has some handy tricks.

Heres hoping…