Windows Mobile Monitoring software - Windows Mobile Apps and Games

Hi I have an HTC Snap running windows 6.1 what I am looking for, is some tracking/spy type software to monitor sent and received SMS and MMS.
I have found plenty on the net, but they are all expensive "do it online" spying type services that do a lot more than i need. What I am looking for, is a program that comes as an installable CAB or similair, that i can install on the phone and it will be "hidden" on the phone itself.
Then it should store somewhere else in memory all sms and mms activity (regardless of whether user has deleted and or emptied deleted folder)
I guess what i would expect is to have an application on my PC so that i can basically connect the HTC to the computer via a USB cable and "download" the tracked data onto the pc and view it there.
I am not sure if such software exists, it may even be achievable through a 3rd party "activsync" type program but I have never seen software that will store sms and allow you to view it without restoring it back onto another phone first. (and also keep deleted information)
Can anyone point me in the right direction?

maybe someone could create a mortscript to run "pimbackup.exe" at a certain time (or when sms is sent/recieved/deleted)
also which will save the backup file into a specific folder inside windows.
(pimbackup will save all sms etc.. inbox and outbox)
it might be possable to hide the pimbackup process too, eg dont show pimbackup window and just create the backup file.
Rn

Who do you want to spy on? It's seems your goals are not really worthy any kind of support.

altae said:
Who do you want to spy on? It's seems your goals are not really worthy any kind of support.
Click to expand...
Click to collapse
probably a gf but who really cares..
what ever the reason is, i think it can be done with mortscript.
Rn

first attempt by RoryB
@ flamebo, you will need to download and install mortscript to use these scripts, but i do believe this is worthy of support because it is being supported
RoryB said:
Code:
chk=1
# This will check for tmail for about 10 seconds and then move on or exit the script
While(chk)
If(ProcExists("tmail.exe"))
chk=0
Else
chk+=1
Sleep(1000)
EndIf
If(chk > 10)
Exit
EndIf
EndWhile
# Script will still not run if tmail.exe does not exist
If(ProcExists("tmail.exe"))
Run("ppcpimbackup.exe")
WaitForActive("xxxx", 6) # replace xxxx with the actual window name for ppcpimbackup
Minimize("xxxx")
#use the next type of commands to go through the options
SendKeys("xxxx", "type text you need to enter")
Sendzzzz("xxxx") Also, replace zzzz with the command like TAB, CR, etc.
EndIf
Click to expand...
Click to collapse
Rn

Related

[new release] go2contact

I'm using claunch and wanted an easy way create a "photo shortcut" to call/text people. I wanted to click on a photo to jump to a contact's summary screen (the list with all the phone numbers, emails etc). Then from the summary screen I can decide which of the contact's numbers to call/text/IM.
This is a command-line utility and is really only useful when combined with "launcher". You create a shortcut in your launcher (perhaps with a photo) and set it up to execute go2contact with the name of the person you want to dial. go2contact then brings up the contact screen of that person.
There's some other great utilities if you want to jump straight to dialing a number or texting someone (VJPhoneTools), but I wanted to hit the contact's summary screen first since many of my contacts have multiple numbers.
This is my first WM5/6 app so if you're inclined to look at the source and comment, please feel free. VC++ 2008 source is in the zip, installer in the cab. Also, I'm using a fairly liberal OS license so you can feel free to use this code for your own projects provided you follow the terms.
From the readme file:
go2contact v 1.0
(c) Copyright 2008 _craig on forum.xda-developers.com
All Rights Reserved
Released under the Eclipse Public License, see license.htm
Download the go2contact .cab file to the WM5/WM6 device and open it using "File Explorer" to install.
Execute go2contact.exe and supply the name of the Pocket Outlook contact you want see the summary screen of as a single command-line parameter. The name should match the "File as" field in the Contact's information.
Example:
go2contact.exe "Doe, John"
Assuming John Doe is filed as "Doe, John"
Note: Executing go2contact.exe from the "File Explorer" will not work because you cannot enter command line arguments using "File Explorer". You will need to create a shortcut or use sort of 3rd party launcher application, such as cLaunch.
WM5/WM6 required.
Please post some screenshots...
Thanks..
I use claunch too.Thank a lot.
flaviopac said:
Please post some screenshots...
Thanks..
Click to expand...
Click to collapse
Wich word did you understand...
Example:
go2contact.exe "Doe, John"
It's a command line app there are no screenshots.
Will this work for HTC plugin?
Hagow said:
Will this work for HTC plugin?
Click to expand...
Click to collapse
This *should* work with any launcher that you can assign shortcuts to.
That being said, some launchers are more configurable than others. Ideally the launcher supports two features:
1. Command line arguments can be specified in the launcher. You need a way to identify the go2contact.exe executable AND the contact name.
2. Icons can be selected separate from the default icon of the application/shortcut. cLaunch even supports bitmaps, which is what I use for photos of contacts (after down-sizing them in photoshop).
If your launcher doesn't support those two items, I suppose you can overcome it by creating .lnk files for each contact. I think you can even assign icons to lnk files. I’d only recommend doing this if you’re feeling adventurous. I haven’t tried this; if anyone does I’m curious how it turns out.
neat
thanks for sharing, exactly what i wanted
screenies?!
MaxMotus said:
screenies?!
Click to expand...
Click to collapse
IT's INVICIBLE GODDAMNIT!
Nice tool... tried to set up a page in Ultimate Launch with fav contacts...
but when I configure launching a contact in UL and went back to today-screen my PPC freezes....
-> softreset...
Any experience?
SOLVED: Think it´s a prob in UL - sometimes it works - sometimes not... strange
It work in my prothet windows mobile 6.1 and Ultimate Launch....
I have Spb Pocket Plus. I want to implement a *.Ink or *.exe File, but if i rename the file in go2contact.exe "Doe, John" i get an error message, that " is not allowed in the filename...?
Some ideas...?! This would be the perfect tool for me :/
screenshoot please....
black_shadow69 said:
screenshoot please....
Click to expand...
Click to collapse
someone...
black_shadow69 said:
screenshoot please....
Click to expand...
Click to collapse
It really amazes me how few people actually take time to read...
xx
o
Is there a way to make this work where it pulls up the contact in PocketCM instead of Outlook?
This is a great application.
When the contact details is opened, and i either make a call or send a sms, is it possible for the contact details window to close itself? Because after the call or the sms sending, the details window lingers. i have to manually close it.
öti said:
I have Spb Pocket Plus. I want to implement a *.Ink or *.exe File, but if i rename the file in go2contact.exe "Doe, John" i get an error message, that " is not allowed in the filename...?
Click to expand...
Click to collapse
Leave the quotes off
sndance said:
It really amazes me how few people actually take time to read...
xx
o
Click to expand...
Click to collapse
actually i think its the results of reading too much

PortSIP WM6 Auto Connect and Disconnect Patches

APPS ARE A FEW POSTS DOWN CREATED BY RYANMOGUL
I ALSO LINKED ADDINTIMER TRIAL WHICH SCHEDULES RUNTIME OF APPS
certainly there are the registry hacks to disconnect the internet
but i'm looking for a method to turn it on
i've seen the registry hack to make the internet on permanently
this isn't what i'm after
i'll tell you why i want it
voip phone...specifically PortSIP
it doesn't connect to the internet on its own
and i dont like opening the browser everytime i want to use PortSIP
thanks for any tips at all about firing up the internet easily
i'll continue to search but figured i would make this post after my first couple hours of unfruitful digging.
bump...
still searching
bounty?
eigerzoom said:
bump...
still searching
bounty?
Click to expand...
Click to collapse
I got you covered, i will write you a mortscript that doesnt eat battery or nothing. I can either make it to assign a button, connect internet when pressed, disconnect when pressed. Or I can make it automatically connect when you open a certain program or game or w/e. Let me know what you want and the name of the exe you are trying to use.
Edit: Let me know the name of the exe ex: GoogleMaps.exe and also the location of the exe, not the shortcut. ex: mydevice/program files/googlemaps, mydevice/windows, storage card/program files. Etc.. Otherwise I will just make you a Connect/Disconnect mortscript to assign to a button or click to run.
nice ryan
um is there anyway just to have an .exe or something i can link to in program files to run the connection...
shutting off the connection would also be a major plus...but i wont hold it against you
if i have to settle for one prog access here is the lineup
portsip is located at: /Program Files/PortSIP/PortSIP_WM6.exe
thanks for your dedication
i will donate for this
this is the last step to achieving scheduled running of portsip to enable free incoming calls using google voice/gizmo5 during day minutes
i may have to use a different voip app in the future so if at all possible to just be a unique mortscript.exe that would be ideal...
and probably more usefull for others and whatever they might need done
(free incoming calls = paid unlimited data)
You must not know what mortscript does. I can make it any way you want. It requires skill and know how so you can only make one script per program. Thats because you have to create a shortcut to the Mortscript file and make sure the icon looks like your program (if you want it done professionally). I use shortcut manager and edit parameters.
To make it automatically connect doesnt cost the battery or any memory resources. It doesnt use any "while" commands that run at all times. Now this other way uses more battery but I can also make it so that when you launch the program it will automatically connect to the internet and the script will continue to run in the backround until you actually close the program. At that point it would disconnect from the internet and stop running the script.
Or I can make it just a shortcut in your start menu folder somewhere and you can click on it, or assign to a button.
Now if you dont care what the shortcut looks like and you just want the liberty of being able to use it for other programs thats very easy. Just open my mortscript file with notepad, or wordpad (on PC) and edit the run command matching where your exe is. then simply copy and paste it on to your ppc wherever you want in the start menu.
Just really let me know what you want, and I will get to work on it now.
if you can do anything about making sure the data connection stays active that would be nice
i'm not actually sure at this point of it times out or not
some apps close the connection when exited...
registry edit would be nice...again not 100% sure if its a concern or not...
just saw your last reply
to save complication
i will opt to just have portsip connect when started and close connection when exited
eigerzoom said:
if you can do anything about making sure the data connection stays active that would be nice
i'm not actually sure at this point of it times out or not
some apps close the connection when exited...
registry edit would be nice...again not 100% sure if its a concern or not...
Click to expand...
Click to collapse
you said you already found out how to make the data connection always on?
I never asked if it times out, but it probably goes stale "times out" eventually. Plus setting your phone like that EATS mad battery.
Yes some apps do close the data connection, thats all commands in the programs .dll's. No registry edits for it, registry is not the magic answer to every workaround on PPC's. Thats why they have the program Mortscript, and its Mortscipters "me"
yea i just meant in general...not app related...
i'm not sure if the internet connection will time out at all
i'm assuming that would be in the registry
timeline wise:
portsip opens & connects 7am ::: 12noon internet disconnects from timeout
(not looking for scheduling...i'm using a program called addintimer to start/stop portsip)
Now the information you are giving is getting confusing.. You said that PortSIP doesnt automatically connect to the internet and now you are saying you use Addintimer to automatically open and run it.. You are leaving out details, like how you set up your addintimer to run it, did you have to point to a shortcut for PortSIP? Did you have to point to the EXE, I need to know these things or else you are not going to get what you want out of the deal. So you are saying addintimer opens PortSIP at 7am and connects to the internet like normal right? You just want it so during other times if you open PortSIP that it will automatically connect to the internet right? Am I on the right page now let me know. I will get started.
ok...thanks
addintimer starts or kills the process
using addintimer you assign a start or kill on a schedule to the .exe directly
hope that helps
if its easier just to create a program shortcut which enables the internet by all means
then i can just link addintimer directly to your mortscript 1 minute before portsip...etc
i think this method would be more universal for others to make use of it as well
sorry to leave the decision in you hands...
i know its easier to work with specific direction...lol
and thanks again for your attending to my needs
eigerzoom said:
ok...thanks
addintimer starts or kills the process
using addintimer you assign a start or kill on a schedule to the .exe directly
hope that helps
if its easier just to create a program shortcut which enables the internet by all means
then i can just link addintimer directly to your mortscript 1 minute before portsip...etc
i think this method would be more universal for others to make use of it as well
sorry to leave the decision in you hands...
i know its easier to work with specific direction...lol
and thanks again for your attending to my needs
Click to expand...
Click to collapse
So what do you do right now? Just leave your data connection running before you goto sleep? Because you still arent answering if the program addintimer launches the internet also.
ok
well if you want to just post up the .exe that initiates the internet then i can just link it into addintimer
i dont know what starts the internet...hence my issue here...
right now i manually connect to the internet before using portsip by opening a browser and leaving it open
day minutes are 7am to 7pm...and so i see an extended battery purchase in my future
but my phone is plugged in most of the time anyways...so this isn't a huge deal for me
Ok gotcha, mortscript file is not an exe. Its a .mscr or .mortscript extenstion.
and the files use the app Mortscript.exe to run the commands.
I am making a cab which will install mortscript, and the Data Toggle shortcut in Start menu.
i have mort installed...however it might help others to include it
its not that i dont understand what mortscript does...
its more not knowing what initiates the data session
thanks again
well i just found this registry entry which may help with the potential stale connection issue
HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}
dword: StaleCellularConnectionFixEnable
maybe setting it to 1 will insure she stays on once i get this all working
currently set to zero
PortSIP WM6 Auto Connect Only and Auto Connect and Disconnect PATCHES​
These patches are only for PortSIP WM6 version. The patches do not install PortSIP, but they overwrite the shortcut to it in programs. So if you uninstall this you lose your PortSIP shortcut which can easily be re-created through your phones file explorer.
These Patches will work perfectly with how you have your PortSIP set up and any programs you may use to launch apps at certain times or automatically "addintimer".
The Auto Connect and Disconnect "ACD" Patch will install Mortscript files to a new folder in your Start Bar/Programs called Scripts. There will be ConnectData and DisconnectData those are obvious what they do, and there will be Startscript and Endscript. That way you can set your addintimer to Startscript, then PortSIP, and then Endscript. This will save your battery life! Say you start PortSIP the while command is running, when you exit PortSIP the while command and mortscript stop. So in between uses it does not waste battery life. Thats why I have the shortcut to PortSIP set to re-launch the while command and the PortSIP.exe. Now another thing say for example when you reset the phone the While commanding mortscript in startup folder is running until you start up PortSIP and exit it. You can use the Endscript when you first boot if you are not planning on using PortSIP to save battery life.
You can just click to run each of these mortscripts. If you arent going to use PortSIP run the Endscript so it turns it off. The PortSIP will automatically start the script when launched from Start Bar/Programs folder. I hope this explains how to use the Patches I spent hours trying to figure out the best way to accomplish your tasks.
These Patches will install Mortscript.exe and its registry entries, it will also install 6 mortscripts. 4 are explained above 1 is linked to the PortSIP shortcut and 1 is in your startup folder and that automatically connects and disconnects PortSIP when opening, and closing the program. Its the main script that runs automatically at startup and that Start and End will work with to enable or save battery without having to soft reset).
But for installing the Patches you have to soft reset afterwards to activate the Startup file PortSIPacd.mscr that the CAB installs in your start up folder.
The Auto Connect Only "AC" patch automatically starts the data connection when running PortSIP without using while commands (will only work using PortSIP shorcut in programs). Downside to that is it will not end the data connection. That can easily be ended by pressing and holding the End Call key for a couple seconds. The Patch also installs Mortscript and Connect and Disconnect shortcuts to scripts folder for you to use.
***This paragraph is for people not using PortSIP that still want to use the Data shortcuts! Here is a Data Toggle Shortcuts CAB to install. It will install Mortscript and create a scripts folder with Connect Data and Disconnect Data shortcuts.***
Each patch should be uninstalled before applying the other patch..
here's a copy of addintimer trial if anyone is interested
lets you schedule just about any kind of event on your phone
app/shortcut start & kil...alarms and more i haven't looked into...lol...
eigerzoom said:
here's a copy of addintimer trial if anyone is interested
lets you schedule just about any kind of event on your phone
app/shortcut start & kil...alarms and more i haven't looked into...lol...
Click to expand...
Click to collapse
Good share, and also Thanks for the donation eigerzoom!
BUMP !!!
for official thread name change and general awesomeness...

Task / Todo List apps??

Hi, im curious to know what other HD2 users are using to sync their Task /To Do lists.
Anyone using Toodledo and Nuevasync? either of them or both?
thanks
sync? it is activesync with contact and calendar.
sorry i wasnt clear.
i am referring to over the air syncing
HD2 Tasks
Hi,
Are there many users utilising their Task lists?
So far as I know that is possible with P. tasks you can buy it for 2.39 euro. There is a thread about on xda. I can sync with exchange I tought.
I wish Remember The Milk worked on WM that same as it does on Android. Unfortunately, all it does is sync/mix between Tasks and RTM online. PITA if you ask me. Android version was great. This is sh1t. Am having to use Tasks for everything now - business and personal - but the default app is not particularly good at displaying what order you want to get things done in.
GLO said:
Hi,
Are there many users utilising their Task lists?
Click to expand...
Click to collapse
Sorry guys where can I eevn fnd the Tasks list?
I dont need to synch it but it wouldbe good to have a local easily accessible list to add to and tick off when stuff is done
i struggled for weeks, cos theres a bug in where you can't set start and due dates, making tasks useless.
came across "manila tasks" on xda (where else) which makes tasks much more finger friendly, and it the built in task list so syncs when outlook syncs.
eeerrrmmm......so where is it then please?
hmm let me see if i can find it, , hang on (types manila tasks into google) oh there it is, hit number 1!
http://forum.xda-developers.com/showthread.php?t=591794
oh wait, did you mean where it is the default one on the phone? well on a stock rom its called tasks, and is in the start menu, but on a cooked rom the link could be in a sub folder, so you can get to it directly in windows/tasks.exe (it may be hidden, make sure you show all files)
I have the the stock rom.
I have no Tab called Tasks.
I then did a search in Windows and way down at the bottom there is Tasks.
It does not show up when I look at the programs visible by pressing the "windows" buttom.
I have in the interim created a quicklink to it but I would like to be able to see it when I press the windows button - any idea how I do this please?
I am guessing the same way as I managed to see the games but when I long press on it I just get the option to send via bluetooth or copy, not to create shortcut etc.
EVen when I copy it I dont then get to paste it anywhere
wigwam12 said:
I have the the stock rom.
I have no Tab called Tasks.
I then did a search in Windows and way down at the bottom there is Tasks.
It does not show up when I look at the programs visible by pressing the "windows" buttom.
I have in the interim created a quicklink to it but I would like to be able to see it when I press the windows button - any idea how I do this please?
I am guessing the same way as I managed to see the games but when I long press on it I just get the option to send via bluetooth or copy, not to create shortcut etc.
EVen when I copy it I dont then get to paste it anywhere
Click to expand...
Click to collapse
choose copy, then scroll right up to the top, go into the folder 'start menu' then click menu - edit - paste shortcut
you might find the tasks link in you start menu (windows key) in a subfolder, tools, maybe, or outlook perhaps. (Im on a non stock, so dont know where it was by default)
I remembered that eventually (paste shorcut then rename it).
Also good call about Outlook - it is indeed there as is "notes" which I also wanted (i created a link to Onenote in the interim).
I thought Outlook was the program not a folder so have never pressed it to date.
Thanks for the heads up

Question - Batch Files & WinMo

I have a question about WinMo / Batch files
I want to keep 'certain' images in one folder, along with 2 batch files
show.bat
hide.bat
If hide.bat is executed it converts all the file extensions (.jpg) to .895 (or anything random)
If show.bat is executed it reverses the process.
Where as this entire process is working flawlessly on the PC the batch files do not execute on Winmo, what is the way around?
I feel this should be the easiest way to hide unwanted content when you leave your phone unattended around home or work OR worse, give it to your partner to play with
thanks
V
P.S. - if there is already a utility that does that please let me know!
have a read up on mortscript.
http://www.sto-helit.de/index.php?module=page&entry=ms_overview
Methinks someone is trying to keep their Pr0n hidden ....
Mortscript is your way to go ....
but there are , I know I've seen them in action , just don't know what it is called, a program that keeps an encrypted file store on WM that can only be access with a pw.
I know a little off base from your question but .........
samsamuel said:
have a read up on mortscript.
Click to expand...
Click to collapse
Thanks Sam I will read up on this.
watcher64 said:
Methinks someone is trying to keep their Pr0n hidden ....
Click to expand...
Click to collapse
Ofcourse, what else???
Its pr0n for them..... for us its 'me' time
disregarding the nature of yours khmmm... "important documents of sensitive nature", I'd rather recommend more adult solution, i.e.
FreeOTFE: "free, open source, on-the-fly transparent disk encryption program for PCs and PDAs"
p107r0 said:
disregarding the nature of yours khmmm... "important documents of sensitive nature", I'd rather recommend more adult solution, i.e.
FreeOTFE: "free, open source, on-the-fly transparent disk encryption program for PCs and PDAs"
Click to expand...
Click to collapse
+1 That was one I had seen but could not remember the name ....
But what I wonder who does the OP give his phone to that might see his "Sensitive" Documents, hell my HD2 rarely leaves my hand when it is on , except when I need a free one .......

[Q]Get hardware-key-event while in background

Ever since I got my Droid 3 I wanted to be able to control games using the keypad, but sadly most games won't support it, so I figured, it would be cool if I could make an app that catches all the keyboard events and triggers fake MotionEvents for preset regions of the touchscreen (kindof how it's done on the iControlPad).
I believe I've found a way to fake the touches, but when searching for a way to read keyboard events when my app doesn't have the focus all lead to dead ends.
Does anybody have a clue how I could do that?
If anyone cares: I not only managed to find a way to read out all the touches and keystrokes that should go to other apps (though some android-coworker said it was impossible), but I can also filter which one of those I let through. I can even block the back- and home-buttons. And it's runnable without any running service or activity, so invisible and unkillable. I don't need most of that for my app, so I won't use what I don't need, I just stumbled across it by accident.
Every threat on this topic ended with "It's impossible to read out keystrokes destined to another app, because it would be too much of a security issue." Well, it is possible.
Sent from my XT860 using xda app-developers app
Dakkaron said:
If anyone cares: I not only managed to find a way to read out all the touches and keystrokes that should go to other apps (though some android-coworker said it was impossible), but I can also filter which one of those I let through. I can even block the back- and home-buttons. And it's runnable without any running service or activity, so invisible and unkillable. I don't need most of that for my app, so I won't use what I don't need, I just stumbled across it by accident.
Every threat on this topic ended with "It's impossible to read out keystrokes destined to another app, because it would be too much of a security issue." Well, it is possible.
Sent from my XT860 using xda app-developers app
Click to expand...
Click to collapse
I do care! I would appriciate to hear how this works, because I would need it for my ongoing development.
Besides Camara button, which is of cause easy due to the broadcast event, and the volume keys (which are more tricky, since you have to inject an own BroadcastReceiver to the AudioManager), how do you handle other keys?
Ok, it's been a while since I did this, and I had a lot of work on other projects in between so, I hope I get everything right.
To do the whole trick you need root access.
1) Get the android.permission.SYSTEM_ALERT_WINDOW permission
2) Open up a system alert window with no content. There is a setting somewhere that lets you catch all keystrokes and touches. This blocks them all from going through
3) This one is tricky. I had to analyse nonsense for days to get it right, and I fear it's still not very good. Go to /dev/input on your phone. There are files named event1, event2, ...
Each of those correspond to one input device, so one is your touchscreen, one is the keyboard and so on. What you do now is you perform the action you want to recreate on the phone (e.g. press a key) and monitor the event files through adb (there is a linux command, that I forgot, that lets you view a file in real time. Also you can copy that real time view to your harddrive by typing "adb shell [command] > record.txt").
Once you know every event that you want to recreate, you can go to the next step.
4) This is what your app has to do to let a keystroke through: The user presses a key, your app catches it. Then it changes it's mode (see 2) ) to not catch any keystrokes at all, posts the corresponding event for that key in the fitting /dev/input/eventX-file, and sets itself to catch keystrokes again.
Before the whole thing make sure, your /dev/input/eventX-file has a chmod of 666 or therelike, since you can't write into it from your app. You only need root for that, after that you don't need root. The OS resets the chmod on each reboot.
It is a hell of a lot of work. Calculate about a week or more for just that (at least that was what it took me to figure it all out). Good luck
PS: If you get your app system privileges, there is also the android.permission.INJECT_EVENTS, which allows you to inject key- and touch-events to another app using a simple function (can't remember it, but Google does). For your app to be able to get system privileges you need to copy it to /system/app, which requires root and a mounted /system. Catching the keystrokes still works the same way as above.
Dakkaron said:
Ok, it's been a while since I did this, and I had a lot of work on other projects in between so, I hope I get everything right.
To do the whole trick you need root access.
1) Get the android.permission.SYSTEM_ALERT_WINDOW permission
2) Open up a system alert window with no content. There is a setting somewhere that lets you catch all keystrokes and touches. This blocks them all from going through
3) This one is tricky. I had to analyse nonsense for days to get it right, and I fear it's still not very good. Go to /dev/input on your phone. There are files named event1, event2, ...
Each of those correspond to one input device, so one is your touchscreen, one is the keyboard and so on. What you do now is you perform the action you want to recreate on the phone (e.g. press a key) and monitor the event files through adb (there is a linux command, that I forgot, that lets you view a file in real time. Also you can copy that real time view to your harddrive by typing "adb shell [command] > record.txt").
Once you know every event that you want to recreate, you can go to the next step.
4) This is what your app has to do to let a keystroke through: The user presses a key, your app catches it. Then it changes it's mode (see 2) ) to not catch any keystrokes at all, posts the corresponding event for that key in the fitting /dev/input/eventX-file, and sets itself to catch keystrokes again.
Before the whole thing make sure, your /dev/input/eventX-file has a chmod of 666 or therelike, since you can't write into it from your app. You only need root for that, after that you don't need root. The OS resets the chmod on each reboot.
It is a hell of a lot of work. Calculate about a week or more for just that (at least that was what it took me to figure it all out). Good luck
PS: If you get your app system privileges, there is also the android.permission.INJECT_EVENTS, which allows you to inject key- and touch-events to another app using a simple function (can't remember it, but Google does). For your app to be able to get system privileges you need to copy it to /system/app, which requires root and a mounted /system. Catching the keystrokes still works the same way as above.
Click to expand...
Click to collapse
Thank you for your innovative solution
I do not understand two points:
1. How does your app will stay on top and its windows receives events, when the user opens another app, a game for example.
2. How does the background app, the game, keep running? Isn't the game onPause() when you are running your app in front?
Thanks you.
Dakkaron said:
2) Open up a system alert window with no content. There is a setting somewhere that lets you catch all keystrokes and touches. This blocks them all from going through
Click to expand...
Click to collapse
Can you please try to remember and elaborate " a setting somewhere" part?

Categories

Resources