Can You Backup Wifi Settings? - G1 Q&A, Help & Troubleshooting

I like to whipe periodically for that fresh g1 feel and smoothness, only reason I hate doing it is that I have to manually punch in my WEP code for the wifi over and over again. It's an annoyance I would love to get rid of. I've tried a few backup apps, none do it though. Anyone know of a specific app that does, or a way I can do it through term/adb? Any way?

I'm sure there is a way to pull the wifi settings data from the system somehow but I've actually found a gscript which I edited a little that goes through and calls the settings screen, turns on wifi, clicks on the topmost network available (assuming youre near the one you want to connect) and enters the WEP key as defined in the gscript code.
You may be able to find it in the 'useful gscipt' thread that was around on xda but if not, I can post mine (edited of course) as soon as my g1 gets done flashing the latest CM rom. :]
EDIT: Here you go put this in gscript or make an empty txt document, paste the following, edit the bold type to reflect your WEP key, save as setupwifi.sh file and run through terminal "sh setupwifi.sh"
***Requires root / 'su' *** either way you run it.
setupwifi.sh said:
am start -a android.intent.action.MAIN -n com.android.settings/com.android.settings.Settings
sleep 1
input keyevent 20
input keyevent 23
sleep 1
input keyevent 23
input keyevent 20
input keyevent 23
input keyevent 20
input keyevent 20
input keyevent 23
sleep 1
input text CHANGE THIS TO WHATEVER YOUR WEP KEY IS
input keyevent 20
input keyevent 20
input keyevent 21
input keyevent 23
input keyevent 3
Click to expand...
Click to collapse
Just make sure your wifi is turned off for the purpose of this script, since first thing it does is go to settings, clicks wireles, turns on wifi. If you had the wifi on and ran this script, it'll turn off and script will sort of go haywire. No damage but just it wont do what its inteded to do.
It's actually fun to watch your phone do things on it's own and press keys and all that. If you want more details on what each of the keyevent's do, just find the GScript thread and its all in there.

Hello! Sorry for bringing this thread back up. But, before anyone gets angry at me, I'm sorry in advance... I did use the search (trust me, I'm in love with it) and didn't have any luck finding anything other than this.
Anyways, just had a small question: let's say I don't know the wep key because my admin at work put it in for me (they wont share it) but I don't want to ask him every time I flash a rom for it again and again. So I was wondering if the script below would make my device pull the inputted wep key from the device and memorize it after every flash or does it only work if the wep key is inserted?
Is there maybe an app that can just backup data (including wifi wep keys)? or another script that shows you the currently inputted wep key on my device that my admin types in it?
When I had my blackberry the desktop manager backup system would save the wifi wepkeys, don't know why Google wont synchronize settings, data, apps, and wep keys but I guess to each it's own.
I have a T-mobile USA G1
Thank you.
prash said:
I'm sure there is a way to pull the wifi settings data from the system somehow but I've actually found a gscript which I edited a little that goes through and calls the settings screen, turns on wifi, clicks on the topmost network available (assuming youre near the one you want to connect) and enters the WEP key as defined in the gscript code.
You may be able to find it in the 'useful gscipt' thread that was around on xda but if not, I can post mine (edited of course) as soon as my g1 gets done flashing the latest CM rom. :]
EDIT: Here you go put this in gscript or make an empty txt document, paste the following, edit the bold type to reflect your WEP key, save as setupwifi.sh file and run through terminal "sh setupwifi.sh"
***Requires root / 'su' *** either way you run it.
Just make sure your wifi is turned off for the purpose of this script, since first thing it does is go to settings, clicks wireles, turns on wifi. If you had the wifi on and ran this script, it'll turn off and script will sort of go haywire. No damage but just it wont do what its inteded to do.
It's actually fun to watch your phone do things on it's own and press keys and all that. If you want more details on what each of the keyevent's do, just find the GScript thread and its all in there.
Click to expand...
Click to collapse

Wifi settings are located here:
Code:
/data/misc/wifi/wpa_supplicant.conf
Copy the .conf file to a safe place before you wipe and install a new ROM and then push it back using ADB or place it on your sdcard and push it back using terminal.
With this method, there is no way to see what the key is, but then again, you don't have to because once you push the file back, all your data is remembered.

DirectMatrix said:
Wifi settings are located here:
Code:
/data/misc/wifi/wpa_supplicant.conf
Copy the .conf file to a safe place before you wipe and install a new ROM and then push it back using ADB or place it on your sdcard and push it back using terminal.
With this method, there is no way to see what the key is, but then again, you don't have to because once you push the file back, all your data is remembered.
Click to expand...
Click to collapse
Just open wpa_supplicant.conf with notepad on PC and whoops your wep key is there.
Write it on paper and make tatoo of it on your leg
Edit:
Solution(s) witouth PC
Or open it with TxTPad Lite (free on market) directly on phone and read it
Upload wpa_supplicant.conf to dropbox with droidbox free

Related

how do i turn off confirmation "beep" after hitting send

is there a way to turn off the beep when you hit "send" after dialing a number?
Lavachild said:
is there a way to turn off the beep when you hit "send" after dialing a number?
Click to expand...
Click to collapse
You need to install a program that can edit registry and do the following change:
Look up HKEY_CURRENT_USER\ControlPanel\SoundCategories\CallStart
Change the InitVol value to 0
Thanks a lot for that bit of info... The beeping was beginning to annoy me aswell
brilliant,thank you!
Amateur question. Where can I find a reg edit program?
Lurchy24 said:
Amateur question. Where can I find a reg edit program?
Click to expand...
Click to collapse
This is free:
http://www.phm.lu/Products/Smartphone/RegEdit/
Guess you have to choose the ARM version at the top in the drop down list.
Didn't get the desktop installer to work.
Copy the .cab over to your device and run it from there.
Well... why not just put it here.
Thanks.....
i downloaded the free trial of resco and that works great. i liked it so much i will buy it for sure. www.resco.net
After changing the value to "0" and pressing done, I exit the program and no longer have the beep when dialing. Once I shut down the phone and reboot, the beep starts up again. Is there a way to make it permanent?
It happened me too, permanent solution - I rewrited file callstart.wav in Windows folder in Audacity program and I used function - silence. It means now when I call my handy play only silence on call start
Lurchy24 said:
After changing the value to "0" and pressing done, I exit the program and no longer have the beep when dialing. Once I shut down the phone and reboot, the beep starts up again. Is there a way to make it permanent?
Click to expand...
Click to collapse
There is. 1. Use Total Commander (freeware) and copy the file Silent.prof.xml from the folder Application data\Profiles to the folder \Application data.
2. Then rename the copied file name to Normal.prof.xml (or Meeting.prof.xml, if wished, this is the buzzing profile).
3. Then move the new Normal.prof.xml (pr Meeting.prof.xml) back to the folder Application data\Profiles and overwrite old file.
4. After this you'll to have to reconfigure your settings in the normal (and meeting) profile but the beep at call start won't return even if device is restarted.
Got this solution from another S730 forum. Seems the Silent.prof.xml file is the only one in which the beep at call start is disabled.
it's quite a lot easier editing your profile xml file. change the value 'CallStart' to '0' and you're done.
Hey Admins,
perhaps you can make a sticky "Tweaks for HTC Wings" including this tweak.
Bye
shadow2000 said:
Hey Admins,
perhaps you can make a sticky "Tweaks for HTC Wings" including this tweak.
Bye
Click to expand...
Click to collapse
I second the proposal.
can anyone tell me how to get rid of this on a kaiser? its driving me nuts! ive checked everywehre
ksga said:
it's quite a lot easier editing your profile xml file. change the value 'CallStart' to '0' and you're done.
Click to expand...
Click to collapse
I tried this to do with the built-in editor of total commander and I even tried downloading and uploading the file.
I haven't had any success. I changed the value to "0" and then I wasn't able to select that profile any more.
I had to start over with "use defaults", then I was able to select and configure that profile again.
What have I done wrong?
I was having the Same issue over here.
Now I solved it thanks to Radiax!
The solution is simple, change your profile again like you did last time, but after saving the file you have to navigate to Properties (File -> 0 More -> 4 Properties) and change the System value to +. Make sure to use the latest version (V2.5, released 24th of April) because this function doesn't work in previous versions.
Hope this'll work for you just like it did for me.
thats it!
Its necessary to set the system-bit!
Many thanks!
JunkieXP said:
I was having the Same issue over here.
Now I solved it thanks to Radiax!
The solution is simple, change your profile again like you did last time, but after saving the file you have to navigate to Properties (File -> 0 More -> 4 Properties) and change the System value to +. Make sure to use the latest version (V2.5, released 24th of April) because this function doesn't work in previous versions.
Hope this'll work for you just like it did for me.
Click to expand...
Click to collapse
Nice! This indeed works a lot easier than the steps I mentioned earlier in this thread.
Latest Total CMD + System bit set
Hi all,
I tried to set my Wings like described above, but I cann´t use the profile anymore after changing something.
I´m doing this with TC 2.5 and the system bit is set.
Any ideas?
edit: in addition - i don´t have a folder profiles in appdata, the xml´s are in windows folder on my wings

[Developement] Computer App to Control Phone

i know we have a few applications that allow us to use our phone's screen and keyboard to control our computer, and while it is cool, it's just not something that i have a use for currently. i was wondering if there were any apps that you know of that allow me to have a window on my comp that is my home screen on my phone and control things on the phone from the comp. i hate when i am working on my themes and i get 100 texts and i have to go from using the comp it using the phone and back and forth. WM had several apps like that and i loved them when i was running windows but now i run linux(ubuntu 8.10) and i would love to be able to type texts and run apps on my phone while using the computer keyboard.
i have looked through the market and can't seem to find anything on there and i was hoping someone could point me to one elsewhere or if i missed one on the market. thanks in advance
That would be cool. A VNC Server has already been ported to iPhone, so it's probably not too difficult for someone who knows what they're doing (i.e, not me =P)
It would definitely be great to be able to type text messages and whatnot using the computer's keyboard and screen instead of that tiny little G1 keyboard.
or if there are some commands i can run from adb shell that would work too, all i have been able to figure out how to do is play an mp3 on the phone by typing the command. cool but not what i would like.
alright, for those that care i have figured out how to start an app on the phone by using the adb shell commands, and i can even start to compose a text if i do it correctly
to start the messaging app you need to type in the adb shell(or android terminal but the point is to be able to do it from the comp
adb shell
am start -a android.intent.action.MAIN -n com.android.mms/com.android.mms.ui.ConversationList
the above line brings up the conversation list to allow you to choose a list, but i have yet to figure out how to atually pick a convo from that page
to bring up the compose message to start a new text type in the following
am start -a android.intent.action.MAIN -n com.android.mms/com.android.mms.ui.ComposeMessageActivity
from there i can input the number to send the message to but not what i want the text to say,
input text <string> #that inputs a single word and no more after the word text
so if i were to type
'input text hello android' my phone would act as if i had just typed hello, this also works on the home screen to search your contacts. i am working on in[utting more than one word and also choosing your conversation from the comp
Cool! nice progress. Maybe other Android intents can be used...
progress
i know i can start any app by knowing the commands for it now and typing it in. but for right now my main concern is getting a multi word string to appear in the text box. if i can get that then i just need to figure out how to attach "input keyevent 66" to it as well so it runs cleanly. key 66 is the enter key and i figured out several others along the way but i will list them later. i pulled the input file from the /system/bin directory and maybe someone else should have a look at it and figure out how to acheive multi word texts without placing "_" between all the words, cause right now that's where i'm at. i'm attaching the file for the guru's to take a look at. obviously it isn't saved as a .txt file on the phone but that's how i uploaded it to here.
CALLING THE ANDROID GURU'S TAKE A LOOK AT THIS
Cool. Once you figure out a bunch of commands, I could try making a user interface for it as a project...
just wanna drop this lines here, there is an app from motorola MPT Motorola Phone tools, and it does all that you want and more, the phone can be connected to the pc via USB or Bluetooth... you can send receive msg, phone calls, see and edit contacts, drop images, ringtones browse the files etc
juangil said:
just wanna drop this lines here, there is an app from motorola MPT Motorola Phone tools, and it does all that you want and more, the phone can be connected to the pc via USB or Bluetooth... you can send receive msg, phone calls, see and edit contacts, drop images, ringtones browse the files etc
Click to expand...
Click to collapse
Im not sure if you know that your posting in a forum dedicated to the G1/android but MPT supports, as the name would suggest, motorola phones only.
juangil said:
just wanna drop this lines here, there is an app from motorola MPT Motorola Phone tools, and it does all that you want and more, the phone can be connected to the pc via USB or Bluetooth... you can send receive msg, phone calls, see and edit contacts, drop images, ringtones browse the files etc
Click to expand...
Click to collapse
does said program work with the G1? i can't imagine moto being nice and making a program that works for everyone else's phone
kp126 said:
Im not sure if you know that your posting in a forum dedicated to the G1/android but MPT supports, as the name would suggest, motorola phones only.
Click to expand...
Click to collapse
yeah I know, my bad.. just wanted to put an example of an app (that of course is only for motorola) for any1 wanting to do something like it
i know there's several out there for different phones, but nothing for android. hell i'd be satisfied if i could just have the emulator read from my phone and let me control it that way. right now i don't like what i have to do to send a text
input text hello
input keyevent 62
input text android
input keyevent 66
that is a whole lot of typing for a simple text that says "hello android" and then sends it
would it be possible to write a program that takes what you type and breaks it into one word or one letter segments and runs the proper keyevent for each charecter there?
from what i remember of my programming in java and visual basic from years ago is that it would basically be set to read an input and use a case method to say if $input=="hello" then adb shell input text hello. it would be easier i would assume to just break it down into words and place "adb keyevent 62" between each word to input the spaces, and at the end of the line of input you would have to have the code "input keyevent 66"
i have the keyevent mapped out for each button and such on the phone if anyone is interested. i will see what i can come up with on my own though for now
Hope!
I would <3 who ever release's this in some form or another =)
I could really use an application that lets me use my phone from my computer. Preferably it'd show the desktop of the phone, and allow remote access to all the features.
I don't know if it's possible, but it sounds like some of you are progressing, so I hope for the best.
that is the goal, but right now i think i want to just get a java script written by the end of the week next week that reads the key i press on the computer and inputs it into the phone. so i have a lot of relearning to do since i haven't written javascript in 4 years and even then it was just simple stuff to be run in a console. if someone wants to take whatever i get done and run with it to make a FREE APP then by all means. if i find my work in a paid app then you better hope the US gov't can't find you cause i'll be at your door ready to kick your ass.
i'm not sure how one would go about coding the computer to display the phone desktop, but however it gets done i would prefer it to be written in java so all users of linux, mac, and windows can use it.
alright i have found a program that allows me to display the phone screen on the computer using java *hooray* but it does not switch to landscape when the phone does, and i can't control the phone from the app. it was written so that people could do presentations with the phone instead of using the emulator. the gist of it is described here
http://groups.google.com/group/cw-android/browse_thread/thread/d2dbcabee6bcba1a
i have already emailed the developer asking politely to see the code and for permission to try and run with it to make the ideal app. at this point the only thing i could come up with would be to make a javascript that had a case for each key on the keyboard and when a key is pressed it sends the corresponding command(adb shell input keyevent ##) to the phone. this would work fine to use the arrow keys to control the phone, and i am not sure how to code the mouse into it yet. i will be waiting for a response from the dev hopefully he will give his permission and blessing for us to use the app.
Tubaking182,
Perhaps I could offer some help. Brad Fitz has written a program that injects keys into the Linux input layer. Perhaps the source code to his project can help you. It appears to contain a key code map. Here is the link to his code:
http://github.com/bradfitz/android-misc/blob/master/type.pl
Also, here is a link to his live journal entry regarding his program.
http://brad.livejournal.com/2400054.html
All of this would be wonderful to have with my G1. I wish all involved the best of luck!
the developer of the program i posted gives his blessing but he claims what we are trying to do is impossible without certain firmware. he claims that android does not support remote control. i have already proven it can be done though but you have to use keyvalues instead of the mouse. i don't know much java, but i know i need a case switch that executes adb shell input keyevent when i press a key on the computer. if someone wants to tell me the proper syntax and java command to run a run a command then awesome i can write this up *hopfully* and start testing it.
would it work if i typed it as
int key = evt.getKeyCode();
switch (key){
case 65: run.exec(adb shell input keyevent 29);
break;
what would be the proper way to execute the adb command
tubaking182 said:
the developer of the program i posted gives his blessing but he claims what we are trying to do is impossible without certain firmware. he claims that android does not support remote control. i have already proven it can be done though but you have to use keyvalues instead of the mouse. i don't know much java, but i know i need a case switch that executes adb shell input keyevent when i press a key on the computer. if someone wants to tell me the proper syntax and java command to run a run a command then awesome i can write this up *hopfully* and start testing it.
would it work if i typed it as
int key = evt.getKeyCode();
switch (key){
case 65: run.exec(adb shell input keyevent 29);
break;
what would be the proper way to execute the adb command
Click to expand...
Click to collapse
I've been doing Java for about 4 or 5 years now, nothing to fancy, but anyway,
Code:
int key = evt.getKeyCode();
switch (key)
{
case 65:
Runtime.getRuntime().exec("adb shell input keyevent 29"); // I dont know if this is what you "run" variable is referring to. and you would need quotes around your command as it takes a String parameter.
break;

[APP][3-13-2009] Kwik-E-Map v0.2 -- Simple FUZE keyboard mapper (map CTRL, etc)

KwikEMap
Version 0.2 (Beta)
To Use
======
* Install the KwikEMap.CAB on your device. (Do NOT install it on a Storage Card)
* Execute KwikEMap.exe, it will run in the background and your key mappings will be in effect. It uses about 35KB of memory and less than .5% of your CPU (while keys are being pressed only).
* Add a shortcut to KwikEMap.exe to \Windows\StartUp if you'd like the app to run each time your phone boots.
* If you execute KwikEMap.exe while it is already running, the KwikEMap Window will appear. From there, you can HIDE the application again, or QUIT and restore all key mappings to normal.
* There is also a "Show Window" keyboard shortcut you can use to open the KwikEMap window. By default, it is FN+PERIOD.
Default Key Mappings
=====================
These all can be changed in the KwikEMap.cfg file. See "Important Note", below, regarding the first 4 mappings.
Code:
FUZE Key Maps To Notes
------------- ---------- ---------------------
CALENDAR CTRL see "Important Note", below
CONTACTS TAB see "Important Note", below
EMAIL HOME see "Important Note", below
INTERNET END see "Important Note", below
SHIFT+BACK ESC
QUESTION MARK CTRL Makes a nice right CTRL key, for pressing CTRL-X, etc.
SHIFT+PERIOD ? Since we no longer have a question mark due to prev. map
FN+PERIOD KwikEMap Shows KwikEMap Window
You can use modifiers with this mappings and use multiple combinations. For example, you can press CTRL+HOME, or SHIFT-TAB.
Important Note Regarding CALENDAR, CONTACTS, EMAIL, INTERNET
=============================================================
To use these keys, you must configure the FUZE so that the normal functions of those keys are disabled. Some ROMS (Da_G's, NATF, RSW, etc) let you do this via the Buttons setting. If your ROM doesn't, this must be done by placing "null" shortcuts in specific locations. (thanks to Da_G for this information)
There is a shortcut in Program Files\KwikEMap\ called "NoButton.lnk". The shortcut basically does nothing. Simply copy this shortcut to the locations indicated to effectively disable the normal function of any of the 4 keys you'd like to use:
Code:
To Disable Copy "NoButton.lnk" as:
------------ ----------------------
CALENDAR \Windows\Start Menu\Calendar.lnk
CONTACTS \Windows\AppButtons\Contacts.lnk
EMAIL \Windows\Short_Messaging.lnk
INTERNET \Windows\Start Menu\Programs\Media Net Home.lnk
Notes:
1) To hide the start menu location links so they don't appear in the Start Menu, simply edit the files' properties and mark it as "Hidden".
2) Future versions of this app will copy these shortcuts automatically.
3) Even if those shortcuts do not currently exist on your phone, you still can (and must) disable the normal function of those keys by creating the "NoButton.lnk" shortcuts as specified if you wish to map them.
Setting up your own Mappings
============================
* See the KwikEMap.cfg file for full information and examples.
* While the KwikEMap window is open, you can press various keys and KwikEMap will show you the corresponding Key Codes and any modifiers used. You can use this to assist in setting up your own key mappings.
* The order you list the mappings matters; the first one found is what gets used. So, if you want to map WIN as CTRL, but keep WIN+PERIOD as the normal Windows Key, list WIN->CTRL first, then list CTRL+PERIOD->WIN next, and it will work. (This is because WIN has already been re-mapped to CTRL)
* The app should be smart enough to avoid cycles, so you can swap two keys. For example, you should be able to map A to B, and then also B to A, without any problems.
* Note that the FUZE's keyboard is odd; you will see that when you press the Question Mark key, for example, it actually is registering as "SHIFT+/" even though you are not pressing the SHIFT key! Keep this in mind as you set up your custom mappings.
* For now, you must QUIT and re-start the app to re-read the mappings from the .cfg file.
* A full list of Windows Mobile key codes can be found here:
http://msdn.microsoft.com/en-us/library/bb431750.aspx
Notes Regarding Specific Keys
=============================
* The WINDOWS key now should be fully mapable; i.e., it makes a good CTRL key.
* The CAPS LOCK key is partially mapable (i.e., you can map it to TAB), but there are two issues:
1) It still toggles the caps state, even when mapped
2) It never stays registered as pressed, so you cannot use it as a modifier-type key (i.e., CTRL)
* You can use the FN key as a modifier (i.e., map FN+C to CTRL+C to "cut"), but only if that key doesn't already have a FN modifier built-in. So, feel free to map a whole bunch keys like FN+A, FN+C,FN+B, etc, to whatever you want! (some examples are below)
Other Mapping Examples
======================
Use the WINDOWS key as a CTRL key, but still map WINDOWS-PERIOD to the old windows key:
5B=+00 (WIN -> CTRL)
+BE=5B (CTRL+PERIOD -> WIN)
Use CAPS LOCK as a TAB:
14=09
Use FN+A, FN+X, FN+C, FN+V for Select All, Cut, Copy, Paste, respectively:
#41=+41 (FN+A -> CTRL+A, Select All)
#58=+58 (FN+X -> CTRL+X, Cut)
#43=+43 (FN+C -> CTRL+C, Copy)
#56=+56 (FN+V -> CTRL+V, Paste)
Use WIN-UP as HOME, WIN-DOWN as END
&26=24 (WIN+UP -> HOME)
&27=23 (WIN+DOWN -> END)
=======================================
Have Fun! If all goes wrong, just soft-reset.
How does it work?
Can you tell me how this works? I'm an experienced software dev, but new to Windows Mobile programming.
Hi -- I am in the same boat as you; experienced developer, but very new to windows mobile and very rusty with C++. So, I may not be the best to learn from! but, at the core of things, we use a windows "hook" to grab keyboard messages before they are processed.
More info here:
http://msdn.microsoft.com/en-us/library/ms644990(VS.85).aspx
Hope that helps. I will also post my source code eventually.
Just try it but not working
MSG = warning Couldn't install hook... terminating
have any sugestion?
jsmith8858 said:
Here's a very simple key re-mapping app, Kwik-E-Map. Please try to forget my terrible, hacky first attempt, FuzeKeys, and don't hold that against me!
You can pretty much re-map anything except the HOME key at this point. This isn't a "hotkey" app launcher or anything fancy, just something simple to put CTRL and TAB keys on your FUZE, things like that.
Here's the scoop:
1) unzip the two files to a folder somewhere on your phone
2) run KwikEMap.exe.
That's it! It runs in the background, and currently maps the following:
CALENDAR --> CTRL
CONTACTS --> TAB
MESSAGING --> HOME
INTERNET --> END
? -- > CTRL (i.e., a nice Right-CTRL, to press CTRL-A, CTRL-Z, etc)
SHIFT-PERIOD --> ? (since we lost the ? key)
SHIFT-BACKSPACE --> ESC
4) In addition, pressing FN-PERIOD will bring up the "Kwik-E-Map" window, where you can close the application or test out some key presses to view key codes. (this key is re-mappable, see below)
It runs in the background, put a shortcut to it in your start-up if you like. It uses about 35K and I have not seen the CPU usage go above .5% (and that's when pressing all kinds of keys really quickly to see how high we can get it go!)
Don't like those key mappings? want to add more? See the key mappings in the KwikEMap.txt file. All of the info you need is there.
Final notes:
1) You can map the CAPS LOCK key to, say, TAB, but I cannot figure out how to not get it to affect the CAPS LOCK state. In other words, go ahead and map CAPS LOCK as TAB, it will work, but it will toggle capitals each time you press it. Also, CAPS LOCK always registers an "UP" event as soon as you press it, so it won't work well if you need to hold it down; e.g., to use it as a CTRL mapping.
2) You can map the windows key, but it still makes the start menu appear. You CAN map the windows key to "00" (see the .txt file) which will effectively disable the windows key normal operation (such as the start menu appearing) for any un-mapped keystrokes.
3) the order of mappings in the config file matters. If you map the "A" key to one thing, and then SHIFT-A to another, you'll never get the SHIFT-A mapping unless you list that one first.
4) to use the CALENDAR, INTERNET, etc, mappings, you need a ROM that let's you use the Buttons settings to map those keys, and map them to "Do Nothing". (most of the roms here have this feature added, I believe)
5) If you change the .txt mappings, you must stop and re-start the app.
6) If you re-execute the KwikEmap.exe file, the app's window will appear, allowing you to shut it down if you like.
7) A list of windows mobile key codes can be found here.
Everything is still in alpha test mode. The Fuze keyboard is funky, so there's no telling what will work and what won't, or what side effects you might encounter. USE AT YOUR OWN RISK. (However, the worst-case scenario is that you need to do a soft-reset to get back to normal).
Please let me know how it goes. It can and will be made more efficient, eventually, perhaps a better UI at some point, a CAB installer, etc.
Click to expand...
Click to collapse
I really think this app as potential but all i really want to to remap the the internet key to CTRL and it seems to work but it will also open the file.... example if i want to copy over pictures from a folder but the files are not next to each other i press the internet button and it will let me select three different pictures but will open them also so how do i get around that. hope i explained it correctly. thanks
irus said:
I really think this app as potential but all i really want to to remap the the internet key to CTRL and it seems to work but it will also open the file.... example if i want to copy over pictures from a folder but the files are not next to each other i press the internet button and it will let me select three different pictures but will open them also so how do i get around that. hope i explained it correctly. thanks
Click to expand...
Click to collapse
see "note #4" in my post. (which you quoted)
If you can't map those keys using the Buttons settings, then the easiest way is to map the "?" key as CTRL, and then simply map SHIFT-PERIOD (or something like that) to the Question mark. I don't think an extra keystroke for a question mark is a big deal if it gets you a nice CTRL key.
EDIT: I just re-read your post more carefully. I actually have no idea what you are asking.
jsmith8858 said:
Hi -- I am in the same boat as you; experienced developer, but very new to windows mobile and very rusty with C++. So, I may not be the best to learn from! but, at the core of things, we use a windows "hook" to grab keyboard messages before they are processed.
More info here:
http://msdn.microsoft.com/en-us/library/ms644990(VS.85).aspx
Hope that helps. I will also post my source code eventually.
Click to expand...
Click to collapse
Thanks, yes that helps. You may want to Google "Windows Mobile services.exe" - you can make this app run as a service so there isn't a window hanging around.
jsmith8858 said:
see "note #4" in my post. (which you quoted)
If you can't map those keys using the Buttons settings, then the easiest way is to map the "?" key as CTRL, and then simply map SHIFT-PERIOD (or something like that) to the Question mark. I don't think an extra keystroke for a question mark is a big deal if it gets you a nice CTRL key.
EDIT: I just re-read your post more carefully. I actually have no idea what you are asking.
Click to expand...
Click to collapse
sorry i will try to give a better example below
file1
file2
file3
file4
file5
so lets say im in total commander and i want to copy file 1, file 3, file 5 to a different directory. so i press and hold the internet button(which i have remapped as CTRL) and tap on file 1 which opens the document so i close out of the document and tap on file 3, so now file 1 and file 3 are highlighted(selected) so file 3 opens and i close out of file 3 and tap on file 5 which opens file 5 which i close out of and now i am in total commander with 3 files selected i can now tap & hold and select copy and it will copy. but i want to select the files with out them opening. i know i can change the options to double tap in total commander and that would fix the problem but i was just wondering if there might be another way. thanks hope this is better
irus said:
i know i can change the options to double tap in total commander and that would fix the problem but i was just wondering if there might be another way. thanks hope this is better
Click to expand...
Click to collapse
I think you gave yourself your own answer. I can't really give you Total Command support here in this thread, I have no idea. I just map the keys, I don't control how applications respond to them!
vizmaster said:
Just try it but not working
MSG = warning Couldn't install hook... terminating
have any sugestion?
Click to expand...
Click to collapse
hmmm, interesting. Are you using a Fuze or some other device? What ROM? Any info you can provide would be useful.
mhumphrey said:
Thanks, yes that helps. You may want to Google "Windows Mobile services.exe" - you can make this app run as a service so there isn't a window hanging around.
Click to expand...
Click to collapse
Absolutely. An item on the "to-do" list.
jsmith8858 said:
hmmm, interesting. Are you using a Fuze or some other device? What ROM? Any info you can provide would be useful.
Click to expand...
Click to collapse
I'M using a touch pro for Telus ROM 1.03.661 date 10/14/08
I tried a hard reset before still no luck
Doesn't seem to work for me. When I start the program, no window appears, and the key maps don't work, except for FN-period, which opens the window...
I'm using Rogers_Fuze_Rom_v2_2009_02_19 by digitalextremes, which is essentially RUU_Raphael_HTC_WWE_5.05.405.1_R_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship
I have a Fuze.
efrant said:
Doesn't seem to work for me. When I start the program, no window appears, and the key maps don't work, except for FN-period, which opens the window...
I'm using Rogers_Fuze_Rom_v2_2009_02_19 by digitalextremes, which is essentially RUU_Raphael_HTC_WWE_5.05.405.1_R_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship
I have a Fuze.
Click to expand...
Click to collapse
No window appears when the app starts.
Are you sure your key mappings are not working? Nothing really seems to happen for most of them, since they are keys like HOME, END, CTRL, etc -- you'd need an app open that uses those keys to see the effect.
For example, open up Word, and tell me what happens when you press the "?" key on your keyboard. Or, give me specific examples of what you tried, what you expected to happen, and what did happen instead. That info makes things much easier to troubleshoot rather than just saying things "don't work".
jsmith8858 said:
No window appears when the app starts.
Are you sure your key mappings are not working? Nothing really seems to happen for most of them, since they are keys like HOME, END, CTRL, etc -- you'd need an app open that uses those keys to see the effect.
For example, open up Word, and tell me what happens when you press the "?" key on your keyboard.
Click to expand...
Click to collapse
I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
efrant said:
I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
Click to expand...
Click to collapse
It runs in the background! It is designed to be used while the window is hidden. The app's keymappings are suspended when the window is open so it can show off the key codes and in case you have errors/problems with the mappings. Simply don't show the app's window (click HIDE if it is open already) and the key mappings should take effect.
EDIT: Also, as mentioned in the initial post, you cannot use the Calendar, Internet, etc, keys unless your ROM let's you map those keys to "None", otherwise the normal button action still occurs. So, you'd need to use ? for CTRL in that case, or define your own mappings using other keys.
jsmith8858 said:
It runs in the background! It is designed to be used while the window is hidden. The app's keymappings are suspended when the window is open so it can show off the key codes and in case you have errors/problems with the mappings. Simply don't show the app's window (click HIDE if it is open already) and the key mappings should take effect.
Click to expand...
Click to collapse
Sorry, my previous post should read as follows:
"I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then click on HIDE. I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
efrant said:
Sorry, my previous post should read as follows:
"I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then click on HIDE. I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
Click to expand...
Click to collapse
See the EDIT in my previous post. And, tell me what happens when you press ? (question mark) plus "B". That should do what you want. (Assuming Outlook supports CTRL+B = bold)
A good one to test that's pretty universal is CTRL-A to select All. (i.e., works in File Explorer, Word, any text control, etc)
jsmith8858 said:
See the EDIT in my previous post. And, tell me what happens when you press ? (question mark) plus "B". That should do what you want. (Assuming Outlook supports CTRL+B = bold)
A good one to test that's pretty universal is CTRL-A to select All. (i.e., works in File Explorer, Word, any text control, etc)
Click to expand...
Click to collapse
Yes, CTRL is maped correctly to the ?-key. So it actually does work. My mistake. Except for the calendar, contacts, internet, etc. keys.
It's too bad that my ROM doesn't support mapping those keys to NONE. Is this something a chef can cook in?
efrant said:
It's too bad that my ROM doesn't support mapping those keys to NONE. Is this something a chef can cook in?
Click to expand...
Click to collapse
Yeah, it must be cooked in as far as I know, drivers and system files need to be replaced or updated as far as I know. NotATreoFan's ROM and I think Da_G's have this feature. I am trying to see if I can figure out a way around this, but no luck so far. I am going to see if I can "hook into" messages sent to the Keypad.dll and figure out if that works.

[XAP] Functional Webserver

I've enhanced my Webserver sample to support reading from the device (where allowed), as well as reading/writing IsolatedStorage
The XAP is located in the Webserver project.
To access the webserver, open the app on your phone (it will disable the idle timer and run behind the lock screen--but WiFi will turn off, so you'll want to be connected via USB or don't let it sleep)
//phone_ip/IsolatedStorage
//phone_ip/Windows
IsolatedStorage is a special case (virtual directory that uses the SDK IsolatedStore APIs), the filesystem is mounted at the root of the webserver. Note that if you navigate to //phone_ip/, you will not see anything, as we are not able to list the contents of the root directory.
I am working to create a real socket library that mimics System.Net/.Sockets, and System.IO for file access. TcpClient and TcpListener are in a mostly functional state already.
Most of the socket and I/O code came from jmorrill. I have pulled code from mono to mimic System.Net.
Perhaps I'll spend some time on the web UI next, maybe a fancy Silverlight uploader. There doesn't seem to be a ton of interest though, so we'll see.
Update ("v2"):
- Authentication
- UI
- Adapter list
- More reliable
nice.. will try it out.
Very nice! Thanks!!
I've updated the sample to one with a UI, Authentication and more reliability.
Looking at your code WP7 looks more and more like a normal windows CE with a secured UI.
Yeah, I think someone with a strong WM background could port code to [native, homebrew] WP7 pretty quickly. Pretty much everything works just fine.... I just wish we could add the System.Net .NET CF assemblies back to the GAC. :/
davux said:
I've enhanced my Webserver sample to support reading from the device (where allowed), as well as reading/writing IsolatedStorage
The XAP is located in the Webserver project.
To access the webserver, open the app on your phone (it will disable the idle timer and run behind the lock screen--but WiFi will turn off, so you'll want to be connected via USB or don't let it sleep)
//phone_ip/IsolatedStorage
//phone_ip/Windows
IsolatedStorage is a special case (virtual directory that uses the SDK IsolatedStore APIs), the filesystem is mounted at the root of the webserver. Note that if you navigate to //phone_ip/, you will not see anything, as we are not able to list the contents of the root directory.
Click to expand...
Click to collapse
Noob questions: It says "connect to your wifi address below". How? Also, connect the phone or the pc? And navigate via IE mobile?
As I said, noob questions. Thanks for any help.
start ie and type in http://wifi address
I have found on alternateboot.reg
HTML:
; Disable MTPz USB function driver
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\CompositeFN]
"ClientDriverList"=multi_sz:"Serial_Class"
What is MTPz USB function driver?
ajhvdb said:
start ie and type in http://wifi address
Click to expand...
Click to collapse
... which gives me the ever-popular "cannot find server or DNS address". What am I doing wrong? I assume you meant IE on my phone.
piaqt said:
... which gives me the ever-popular "cannot find server or DNS address". What am I doing wrong? I assume you meant IE on my phone.
Click to expand...
Click to collapse
I think (might be misreading your question), you'll need to plug your device in to USB (or be prepared to loose the connection), then on your desktop, go to one of the IPs listed (in IE or any other browser).
On the screenshot shown, WiFi is the last one, with "BCMSDDHD1" attached to the label, thought the device name may be different for you. Try one that has "192.168.1." as that'll be the most likely option.
l3v5y said:
I think (might be misreading your question), you'll need to plug your device in to USB (or be prepared to loose the connection), then on your desktop, go to one of the IPs listed (in IE or any other browser).
On the screenshot shown, WiFi is the last one, with "BCMSDDHD1" attached to the label, thought the device name may be different for you. Try one that has "192.168.1." as that'll be the most likely option.
Click to expand...
Click to collapse
Thanks. Next noob question: It asks for a user/password. What do I use and or where do I set it?
piaqt said:
Thanks. Next noob question: It asks for a user/password. What do I use and or where do I set it?
Click to expand...
Click to collapse
I don't know what the default password is, but if you type admin/admin in on the device for user/pass that works fine.
EDIT:
Code:
// In order to secure the device, the default password is a random number, not a static default
So you'll need to change it, unless you can read minds
l3v5y said:
I don't know what the default password is, but if you type admin/admin in on the device for user/pass that works fine.
EDIT:
Code:
// In order to secure the device, the default password is a random number, not a static default
So you'll need to change it, unless you can read minds
Click to expand...
Click to collapse
OK. admin/admin works. Next nq: I get "Error opening directory:O". Is there a specific path to enter?
piaqt said:
OK. admin/admin works. Next nq: I get "Error opening directory:O". Is there a specific path to enter?
Click to expand...
Click to collapse
Try 192.168.1.XX/Windows and that should work.
l3v5y said:
Try 192.168.1.XX/Windows and that should work.
Click to expand...
Click to collapse
Ba-da-bing! We are in business.
this works great! does this work just over USB? I assumed that since I didnt see an SSID advertised that the webserver wasn't broadcasting over WiFi.
A few feature suggestions:
* Make it clearer in the device UI to use the last IP address. I had assumed I would use the SERIAL ON USB IP address
* When browsing files, show a detail view so that you can see date/time modfied, type (optional), size
* when in a subdirectory add an Up ellipsis (...) to more easily walk back up the directory tree.
* be able to filter a directory listing so that you can display just certain file types (ie *.exe)
* Be able to download files
I love it! Its handy to be able to get a file listing that you can copy so that you can capture file listings.
Scratch the suggestion to add downloading files, the filenames are of course URLs which enable http downloads
I found a bug. When you click on a file to download it the href seems to have an issue since the file extension is stripped. You can easily add it during the save but it would be easier to have that done by default. I need to check the syntax but for example for filebrowser.exe the html is:
FileBrowser.exe<br />
This was handy so that it was possible to download an EXE and see what certificate is used for signing.
It looks like if you press Back or Start the webserver shuts down or is tombstoned.
I wonder if anyone has come up with a way to keep an application from being killed.
If that was possible then the webserver could provide active control. In that case if it was running in the background a great feature to add would be a screen capture function.

[Q] No input from bluetooth keyboard/case CM9

I have a cheap/generic bluetooth keyboard-case that works perfectly in WebOS, but I can't get it to work with CM9! Is there a bluetooth patch or something that I need?
When in the bluetooth menu on CM9 (alpha 2) it says "connected". Also, it is checked off as an "input device" but still nothing when I try to type.
fredmc2020 said:
I have a cheap/generic bluetooth keyboard-case that works perfectly in WebOS, but I can't get it to work with CM9! Is there a bluetooth patch or something that I need?
When in the bluetooth menu on CM9 (alpha 2) it says "connected". Also, it is checked off as an "input device" but still nothing when I try to type.
Click to expand...
Click to collapse
Check the CM9 thread and see if it mentions any Bluetooth incompatibility.
I'll see if I can get your any info on that.
Sent from my MIUI Evo 3D
There is a difference in the way you connect using Android than the way you do with webOS. webOS shows you a "key" and you type the key on the BT keyboard. But in Android, you first generate a key using the TP's onscreen keyboard and then repeat the key using the BT keyboard. You can use any key combination on the TP for a key. "1234" or "8888" are just two examples.
lewmur said:
There is a difference in the way you connect using Android than the way you do with webOS. webOS shows you a "key" and you type the key on the BT keyboard. But in Android, you first generate a key using the TP's onscreen keyboard and then repeat the key using the BT keyboard. You can use any key combination on the TP for a key. "1234" or "8888" are just two examples.
Click to expand...
Click to collapse
My keyboard does connect to the touchpad on CM9 (it says "connected" after I put in the key on the keyboard), however it does not register any button presses. In other words, I am connected but cannot type.
I have even uninstalled CM9 and re-installed from scratch. Still nothing.
I have been sitting here trying to figure this one out too... no luck. I am however trying to use the slim keyboard from my iMac (and magic mouse). Both connect as input devices (they show up as a keyboard and a mouse) but neither of them DO anything in any app or home.
Did anyone end up resolving this issue because it is the exact problem I have now as well?
juzz18 said:
Did anyone end up resolving this issue because it is the exact problem I have now as well?
Click to expand...
Click to collapse
There is a app called Bluetooth Keyboard on the market that should do the trick
Have you tried pairing via terminal?
Sent from my Galaxy Nexus using Tapatalk 2
fredmc2020 said:
I have a cheap/generic bluetooth keyboard-case that works perfectly in WebOS, but I can't get it to work with CM9! Is there a bluetooth patch or something that I need?
When in the bluetooth menu on CM9 (alpha 2) it says "connected". Also, it is checked off as an "input device" but still nothing when I try to type.
Click to expand...
Click to collapse
Up....i have the same problem....
cryomike said:
Up....i have the same problem....
Click to expand...
Click to collapse
this is the part where someone else has this problem. Booted into webOS just to type this. :/
I have this case and I have no troubles connecting with CM9, running the 07/20 nightly. I have found that if I pair it in WebOS, it won't connect properly when I reboot to CM9, but if I tell CM9 to forget it, then turn the keyboard off and back on, I can press the connect button on the keyboard and re-pair it, and it will work properly.
The case fits nice and snug, too, once I slit the bottom of it slightly for a bit more give...it's designed for an iPad, so the Touchpad needs just a hair more space.
you can manually add the hciconfig, hcitool, and hidd binaries to your system/xbin/ directory.
move all three of these binaries to the directory
chmod them to 4755
then you should be able to run the tools from the terminal
pair the keyboard to the touchpad with whatever pin, probably 0000 or 1234 or whatever.
it will probably say paired but not connected
then run hciconfig and it should show you the mac addy of your bluetooth adapter and list the device as hci0
then run hcitool scan
that will show you the mac addy of the keyboard
once you have that then you can connect to it with hidd --connect [macaddyofkeyboard]
verify youre connected properly then by hidd con
that will show you your bluetooth connection to the keyboard and ebverything should work like normal.
you can make a script to connect faster in the future also.
if you want to see more options for these tools you can always hciconfig --help hcitool --help hidd --help
how exactly do i run these?
Vnge said:
how exactly do i run these?
Click to expand...
Click to collapse
you can run them from any terminal emulator, if you create a script you can easily just execute the script each time instead of runnin the tools from the terminal.
Does chmod need a directory or something like that after? I'm going to attempt to write a script for it
Vnge said:
Does chmod need a directory or something like that after? I'm going to attempt to write a script for it
Click to expand...
Click to collapse
ok so maybe i didnt explain it like i should have, im sorry.
dont worry about the script unitl after yove gotten everything working.
so first off make sure bluetooth is on in android settings and pair the keyboard to it
copy the all three bluetooth tools into the touchpads /system/xbin/ folder you can use a file manager that has root permissions like esfile explorer or root filebrowser.
once the files are there then you need to change the permissions of those files. so open a terminal on the touchpad and
$ su
# chmod 4755 /system/xbin/hciconfig
# chmod 4755 /system/xbin/hcitool
# chmod 4755 /system/xbin/hidd
you only need to do that once you dont have to make a script to do that everytime
the rest happens in the terminal or in the script that you make.you will type
# hciconfig
# hcitool dev
# hcitool scan
(when you typw hcitool scan it should show you the keyboard device and mac address)
# hidd --connect (keyboardmacaddress)
# hcitool con (should show the keyboard connected)
that should do the trick aand you should be able to start using he keyboard after that
if youre still haveing trouble give me your keyboards bluetooth mac address and ill write up the script for you.
For me the issue is not that the keyboard is not connecting, but rather that it is not being used as an input device. I tried your instructions and succesfully connected my keyboard, but there was still no input. If I use an app such as bluekeyboard JP that works. Anyone have any ideas?
Sent from my cm_tenderloin using xda premium
How come you guys have to do all that complicated-looking stuff, but I don't? Not complaining (or bragging), just genuinely curious.
haxin said:
ok so maybe i didnt explain it like i should have, im sorry.
dont worry about the script unitl after yove gotten everything working.
so first off make sure bluetooth is on in android settings and pair the keyboard to it
copy the all three bluetooth tools into the touchpads /system/xbin/ folder you can use a file manager that has root permissions like esfile explorer or root filebrowser.
once the files are there then you need to change the permissions of those files. so open a terminal on the touchpad and
$ su
# chmod 4755 /system/xbin/hciconfig
# chmod 4755 /system/xbin/hcitool
# chmod 4755 /system/xbin/hidd
you only need to do that once you dont have to make a script to do that everytime
the rest happens in the terminal or in the script that you make.you will type
# hciconfig
# hcitool dev
# hcitool scan
(when you typw hcitool scan it should show you the keyboard device and mac address)
# hidd --connect (keyboardmacaddress)
# hcitool con (should show the keyboard connected)
that should do the trick aand you should be able to start using he keyboard after that
if youre still haveing trouble give me your keyboards bluetooth mac address and ill write up the script for you.
Click to expand...
Click to collapse
I will definitely try that when I get a chance. but also I am having the issue of the bt keyboard not being used as an input device, out of curiosity, how does this make the keyboard usable for an input device? instead of a connected paperweight?
Vnge said:
I will definitely try that when I get a chance. but also I am having the issue of the bt keyboard not being used as an input device, out of curiosity, how does this make the keyboard usable for an input device? instead of a connected paperweight?
Click to expand...
Click to collapse
thats what the hid is human input device, so when you type hidd --server and hidd --connect youre connecting the device as an input device. you can see more options by typing hidd --help from the terminal

Categories

Resources