Related
Hi all,
as am now moving to a more open platform (android), i would like to return the favor of learning through this forum, how to program on win mobile by posting the code of this utility.
Its given as is, no warranties, no tricks, do not expect a well written code etc.
Based on C++, no .Net.
Hope will provide to someone, knowledge and info on this subject.
Have fun with it.
Chris
This is the link
http://rapidshare.com/files/419726318/csdevctrl.zip.html
--- Old introduction ---
Hi all,
this is mainly an auto locking program which utilizes the Windows Locking for partial locking (phone related keys are active)
or complete locking (no keys are active).
It can be considered as an add-on to other programs which provide the User Interface, an 'In Call Locker'
with some goodies as mentioned later on which may or not depend on whether the device is locked (with any program that uses
the Windows locking).
The locking can be activated at the following events:
1. After a specified period of idle time (no screen tapping or touching the keyboard).
2. After the device has waken up.
3. During a call ("In-Call Locking" Partial or Full).
Also for any of the first 2 events (idle or wake up) the program can run a specified executable/registered file together with any command line arguments that might be required.
Finally, some 'goodies':
(Stand-alone means it does not require any other option or the device to be locked)
A.(Stand-alone) it can provide some customization on the carrier name so that:
- It can fit on the screen (for example not to overwrite the Battery icon in SPB Shell).
B. (Stand-alone) Turn on Bluetooth if a call is being dialed or received. Then switch it off after
the call has ended and the headset is not connected.
Usefull if you have a bluetooth handsfree kit in your car and you do not want to keep on turning on/off
the bluetooth.
C. (Stand-alone) Flash the Backlight and or Vibrate while ringing.
At last, you can 'see' if your phone is ringing.
D. Reset the Exchange Server Policy.
Stops the frustrating setting of the password being required after connecting to the exchange server.
F. Turn off the display or/and the device itself.
It can be used as a power saver while playing music etc.
G. Set your favorite SIP (which is being reset back to the default with every soft reset).
H. HotKeys (NEW)
You can assign as sequence of keys to perform an action.
(see http://forum.xda-developers.com/showpost.php?p=3666785&postcount=702)
The parameters that are driving the behaviour of this utility are located at:
http://forum.xda-developers.com/showpost.php?p=2424492&postcount=148
The parameters can also be updated using the setup program provided (csdevctrlsetup.exe).
A flow diagram of the parameters that relate to locking, is provided in the zip file for better understanding of their use.
The debugscr.exe program has been added to help identifying the keystroke codes and coordinates. Before this program is executed
the csdevctrl must be stopped as mentioned further down.
To install it:
- Use the cab file provided.
Simply run it and it will create:
- under the 'Program Files' a directory with name CSDevCtrl'
This directory will contain:
csdevctrl.exe is the main program
csdevctrlsetup.exe is the setup program
debugscr.exe is a utility to find the coordinates and keystrokes (optional).
- Shortcuts under the 'Programs'.
- They can be installed either in the internal memory or on a storage card.
To run it:
> Run the Setup program to set the parameters and the Start Up option.
> Run the program (csdevctrl) and it will spawn at the background as another process.
The device will vibrate once to show that the program has started.
To stop it:
> Running the program second time will cause the program to exit (It will show a confirmation window which will close in 3 seconds unless you close it sooner).
To uninstall it:
> Close the process as usual (run it again or kill the process).
> Remove it from the installed programs.
> Also delete the registry key HKEY_LOCAL_MACHINE\Software\CSDevCtrl
As a note, do not rename the csdevctrl.exe as the uninstall depends on this name.
It has been compiled only for WM6.
For more information see the next link:
http://forum.xda-developers.com/showpost.php?p=2391054&postcount=142
If you wish to buy me a beer or a pitta of souvlaki for my effort, feel free to click on the link below:
https://www.paypal.com/cgi-bin/webs...ode=EUR&lc=CY&bn=PP-DonationsBF&charset=UTF-8
Cheers
Chris
Log:
29/11 - v.6.5 - Added power off after disconnect, support for 6.5 win (beta)
17/09 - v.6.18 - General Policy handling, Dump variables for debugging purposes
04/08 - v.6.16 - Added option for startup delay, Keep the backlight on while on call, lock when dimmed.
27/06 - v.6.15 - Added option to lock only if specific programs are running
20/06 - v.6.14.1 - Fixes.
no bad, i like how it uses the built in windows lock.
Thanks,
it works well with my favourite program (Spb shell) which is the reason of me developing this.
this works great on the smartphone but there is a visible window which can be closed too easily with task managers and can't be navigated away from.
any poss you could hide it rather than minimise it?
looeee
i have updated the program to be windowless as you mentioned (attachment replaced)
Hope it works for you.
Cheers
Chris
chrisstavrou said:
i have updated the program to be windowless as you mentioned (attachment replaced)
Hope it works for you.
Cheers
Chris
Click to expand...
Click to collapse
First of all, thanks for sharing!! This is a very nice app.
I've tested the 2 versions (window and windowless), and I have a suggestion if I may.
I like the idea of the program being windowless, since it becomes more appealing to the eye (I mean, it's great we don't have to see the small window minimize everytime we wake the device), but now, to be able to close the app, we must use a task manager to kill the process(e.g. sometimes we may want to test some other locking software and we need to disable it temporarily). So my suggestion would be that when we run the program once it starts, the next time we run it, it stops. Would that be possible? I think it would make your app perfect!!
Remember, it's only a suggestion.
Thanks in advance.
Its good to know that it may be of use by someone
I have updated it as you mentioned, it will exit if you run it the second time (attachment replaced).
chrisstavrou said:
Its good to know that it may be of use by someone
I have updated it as you mentioned, it will exit if you run it the second time (attachment replaced).
Click to expand...
Click to collapse
Now it's just great!!
Thank you very much for this.
What's the purpose of this app, from the description above it looks as though it does what the original lock already does, so I ask again; what's the purpose of this app?
NiteStalker said:
What's the purpose of this app, from the description above it looks as though it does what the original lock already does, so I ask again; what's the purpose of this app?
Click to expand...
Click to collapse
Automatic lock!!
Once your device light gets dimmed, or on device wake up, without having to press the lock button.
Is that clear enough for you?
Just set the time for 0 minutes, and it's locked on wake-up.
Guess the dim part is good, thanks for clearing that up. I guess my brain wasn't working, I couldn't figure out what deemed was.
now i love the app for what it does... my only suggestions or worries are... after setting that up, i no longer am able to input a password when the lock is activated... and when the program is activated, it wakes the device up from the dimmed, light, thus defeating the purposes of the backlight going off... and also draining the battery a little more... is there ayway that the program can run without waking the device?
MrGalione973 said:
and when the program is activated, it wakes the device up from the dimmed, light, thus defeating the purposes of the backlight going off...
Click to expand...
Click to collapse
I have had this happen to me sometimes as well, already in my short testing time span: when pressing the power button (once) the backlight switches off and back on!
I am also experiencing that it sometimes just does not seem to lock: when pressing the power button twice (with pause) my device only sometimes locks.
And in case you are open to another suggestion: perhaps you can minimize all windows when locking, so the lock ends up on the today screen; or make it an option somehow (command line parameter?)
Thanks for the advices i will be checking them out and come back to you
mousio said:
And in case you are open to another suggestion: perhaps you can minimize all windows when locking, so the lock ends up on the today screen; or make it an option somehow (command line parameter?)
Click to expand...
Click to collapse
Another vote for that!
TBH the only reason I still use S2U is because I can see my missed calls, appointments etc. It's a great app, don't get me wrong, just not something I need.
Your locker would be perfect for me with an option to go back to Today on locking.
Or, perhaps you could implement a simple count of missed calls, SMS, MMS, emails and appointments directly on the lock screen? Just don't let it grow too much!
works beautifully for me with the spb mobile shell 'now' screen showing me the info, thankyou very much!
Why don't you add an option of command line parameter specifying a program/link to be launched before locking? That way it would be very flexible (there are plenty of small programs around doing loads of stuff - like minimizing everything or sending a text or calling your mama - possibilities are endless)
Program has changed as per your advices:
- Leaves the device in idle state for better power management
- Run an application while trying to lock by reading a file.
I have updated the first entry of the thread with some more info and the file.
Any comments are welcome.
Enjoy
I love it. It's simple and effective. Just the way I like things. I'll keep testing it for a while and report back.
I've got another idea actually.TODAY option works really well, the only 'problem' (its not a problem,just room for improvement ) that you need to reopen all the windows you had opened before.
How about an option TODAY&BACK when the minimised windows would be reopened when unlocked? In other words-minimised when locked, back to what it had been before locking when unlocked? It would make it perfect (until next idea strikes)
Anyone tested it on WM5?
Hello. Today I a friend of mine gave me his Dexim Click Stik since he didn't need it anymore. It's a simple bluetooth clicker for taking pictures with iOS or Android phones.
I don't take many pictures with my phone, much less ones that need me in them. I was hoping I could use the clicker as a remote activator for some shortcut or app.
I've been googling and searching around for hours without much luck. The only thing I've been able to do so far is find an app that lets me open an app upon the Click Stik connecting to my phone, but not when I specifically press the button on the device itself. Not very practical, in my opinion.
I found a tutorial I thought was helpful in somewhat understanding what I might need to do in order to get the functionality I'm looking for here: http://chris.boyle.name/2010/08/android-keymaps. However, the KeyTest.apk he links to in order to obtain the KeyEvent from the bluetooth device does not display any input events when I hit the button on the clicker.
I also haven't been able to find any similar apps to what KeyTest seems to say it does.
Any help or insight is greatly appreciated!
Edit #1: I was able to install the KeyTest.apk via ADB by "adb install KeyTest.apk". Not sure why it worked this way when it wouldn't install normally. That said, now that I have the program open, pressing the button on the bluetooth clicker doesn't result in the KeyTest program telling me anything. Kind of disappointed. Not sure where to go from here.
Hi,
This is a pretty special use case, and I hope you guys can help me put together a solution, that will help my family.
My daughter is severely autistic, but loves music. We have worked with CD's for years, but they get destroyed by herself, and are a constant source for conflict for a variety of reasons - because we need to control her access to them (music-time vs. sleep-time for instance) and control the volume. I have to think, I could come up with a technical solution, so we could avoid physical media altogether.
Here is what I would like:
Take our Nexus 7, fill it up with music (maybe google music), mount it on the wall in her room, hook speakers up to it and let her control it as she likes. However, we need to be able to override, ie. lock her out of it if necessary, control the volume etc. I also do not want her to be able to screw up the Nexus by doing other stuff on it, so I would like to be able to lock it to just the music app, unless myself or my wife unlock it to do some sort of maintenance.
To sum up:
- Nexus 7
- Control volume / lock remotely - from pc or another android phone
- Music software
- Access restricted to limited list of apps (music app first and foremost)
How could this be done on Android? What software should I use?
I hope you guys have some good suggestions, so I can get a nice solution to this. Thanks in advance.
Hi
Never really tried to do anything like this but maybe you could create another user profile that has limited functions, I don't know how limited you can be with this but any nexus seven model should allow for a second profile, only allow her to use this one
And in this profile use a launcher that allows you to hide apps if Google won't remove enough for you.
On this profile and the one you create for yourself have a lockscreen password of sorts as well
There may even be an app or launcher in the market to do something this similar.
As for remotely controlling it, I've never tried this, I know you can if it is wired... Actually if you have an adb shell opened on a PC and connect wirelessly to that PC with adb then you could use the PC to turn it off but it would disconnect at this point
Hope you find a working solution, feel free to bounce ideas or questions off me, best of luck!
Sent from my Nexus 4 using XDA Premium 4 mobile app
peanutsy said:
Hi,
This is a pretty special use case, and I hope you guys can help me put together a solution, that will help my family.
My daughter is severely autistic, but loves music. We have worked with CD's for years, but they get destroyed by herself, and are a constant source for conflict for a variety of reasons - because we need to control her access to them (music-time vs. sleep-time for instance) and control the volume. I have to think, I could come up with a technical solution, so we could avoid physical media altogether.
Here is what I would like:
Take our Nexus 7, fill it up with music (maybe google music), mount it on the wall in her room, hook speakers up to it and let her control it as she likes. However, we need to be able to override, ie. lock her out of it if necessary, control the volume etc. I also do not want her to be able to screw up the Nexus by doing other stuff on it, so I would like to be able to lock it to just the music app, unless myself or my wife unlock it to do some sort of maintenance.
To sum up:
- Nexus 7
- Control volume / lock remotely - from pc or another android phone
- Music software
- Access restricted to limited list of apps (music app first and foremost)
How could this be done on Android? What software should I use?
I hope you guys have some good suggestions, so I can get a nice solution to this. Thanks in advance.
Click to expand...
Click to collapse
I may have a working solution for you, But just bare with me whilst i gather it together to make sure it works like i think it will, I'm heading off to sleep now for work but when i get out i'll be right back at it again and hopefully will be able to deliver a working solution for you tomorrow.
Thanks, look forward to what you have come up with.
peanutsy said:
Hi,
This is a pretty special use case, and I hope you guys can help me put together a solution, that will help my family.
My daughter is severely autistic, but loves music. We have worked with CD's for years, but they get destroyed by herself, and are a constant source for conflict for a variety of reasons - because we need to control her access to them (music-time vs. sleep-time for instance) and control the volume. I have to think, I could come up with a technical solution, so we could avoid physical media altogether.
Here is what I would like:
Take our Nexus 7, fill it up with music (maybe google music), mount it on the wall in her room, hook speakers up to it and let her control it as she likes. However, we need to be able to override, ie. lock her out of it if necessary, control the volume etc. I also do not want her to be able to screw up the Nexus by doing other stuff on it, so I would like to be able to lock it to just the music app, unless myself or my wife unlock it to do some sort of maintenance.
To sum up:
- Nexus 7
- Control volume / lock remotely - from pc or another android phone
- Music software
- Access restricted to limited list of apps (music app first and foremost)
How could this be done on Android? What software should I use?
I hope you guys have some good suggestions, so I can get a nice solution to this. Thanks in advance.
Click to expand...
Click to collapse
Well i hope you can bascially connect the nexus to the speakers and use a app locker just sure u wont lock the music app then it would lock other apps and through it you can allow or deny access to other apps and check these links to remotely use the nexus via ur pc http://drippler.com/google/nexus_7#!766313
http://www.yumapk.com/how-to-control-your-nexus-7-on-pc-with-airdroid.html
Hope it might help!
Best of luck
Hit thanks button if i helped
After finally getting root on the device, I hours trying to get a VNC server to work - with no luck at all.
Airdroid works, and while it is pretty damn clever piece of software, it does not really allow me meet any of my requirements. Yes, I can lock the device, but I cannot turn off the sound or exit a running application.
Limiting a profile to just a few apps seems doable, but if we cannot control volume and access to the device remotely, I cannot wall-mount it and prevent her taking it and damaging or losing it. Having a connected to a PC permanently becomes to complicated.
I am considering maybe just putting all her music on a mediaserver, installing an app for it on the nexus (like Plex) - and then creating a kill-switch for the mediaserver. That way there is no local music on the device, and I am able to cut the connection to the music, which I think eliminates the requirement to remote control the device itself.
Did you try setting up adb wirelessly? This would at least allow you to kill the app or turn off device, I don't know if you could change volume though.
Looking through the app store their are many child lock apps, maybe dig around there a bit and see if there is something that has more controls that can be done remotely
Sent from my Nexus 4 using XDA Premium 4 mobile app
If I may, the style of music makes a difference too. Easy listening gospel being the best and the Lord being the very top, He listens and His yoke is light.
peanutsy said:
I am considering maybe just putting all her music on a mediaserver, installing an app for it on the nexus (like Plex) - and then creating a kill-switch for the mediaserver. That way there is no local music on the device, and I am able to cut the connection to the music, which I think eliminates the requirement to remote control the device itself.
Click to expand...
Click to collapse
I have now set up plex with a specific section for her music, shared that folder with a user account I logged in with on the Android Plex App - and she can now see her music collection and play it. I have not yet found an elegant (read: wife friendly) way to "unshare" her music library - without taking down all plex server sharing. But I will figure something out.
I have also managed to limit the user profile on her nexus 7 to just the plex media player. However, there are many options for her to mess with in the player itself, that I am unable to lock down. I am also unable to let her use the youtube app, as it does not run on "restricted profiles" - but that was just a "nice to have", not a "need to have".
Input and ideas are still welcome.
peanutsy said:
I have now set up plex with a specific section for her music, shared that folder with a user account I logged in with on the Android Plex App - and she can now see her music collection and play it. I have not yet found an elegant (read: wife friendly) way to "unshare" her music library - without taking down all plex server sharing. But I will figure something out.
I have also managed to limit the user profile on her nexus 7 to just the plex media player. However, there are many options for her to mess with in the player itself, that I am unable to lock down. I am also unable to let her use the youtube app, as it does not run on "restricted profiles" - but that was just a "nice to have", not a "need to have".
Input and ideas are still welcome.
Click to expand...
Click to collapse
try applocker it might let you active apps you need and deactive apps you dont and i dont have a solution for the music app thingy which has less settings.. Still working on it.. Ill let you know as soon as i find something. Till then try this one "Songbird Music App"
Please hit thanks if i helped!
Good Luck!
Hi,
So there is this user which upon opening some apps is encountering a request to turn on the GPS and start sharing information with google.
Is there some way to disable the user access to the options through this request?
I mean, I still want him to be able to activate his location component when necessary, but I don't want it to be that easy. I want him to go directly to options-> location-> activation button, instead of just mindlessly poking the screen, conforming with the apps directions.
Thank you.
hm?
up
yup...
I'm working on doing some automation on my phone, and I want to perform some actions that I'm hoping I can perform using Android intents. I'm not very knowledgeable about how they work or how to find them, but I'm trying to hack some stuff together.
Here's my main question: how do I go about figuring out if I can use intents for a particular task or see what I can do with intents?
For example, I would like to be able to trigger the "Share trip progress" feature within Google Maps automatically (using Flic buttons, which allow me to use Android intents). I don't know if I can set up an intent myself to trigger this action in the Google Maps app, and I don't really know where to start in order to try to find out how to do it.
Another example is that I would like to trigger Google Assistant with my Flic button, but I want to use my Anker Roav Bolt in my car to respond to the action. Flic has a function built in to trigger Google Assistant, but it's a lot more invasive in that it opens the prompt on the phone and disrupts my Google Maps navigation as opposed to if I long-pressed the button on my Roav Bolt and it just listens for instructions without disruption. I have no clue if this is something I could trigger using Android intents, but I'd like to find a way to make this smoother.
If you have solutions to these two problems, that would be great. But as I said, I would also like to have a better general understanding of how I could find this stuff myself for future stuff I want to set up on my phone.
Thank you.