Ported ROMs and trackpad on/off functionality - myTouch 4G Q&A, Help & Troubleshooting

Hi,
I'm using eViL's DesireHD port, if it matters, but I believe it'll be the same for other ROMs.
The original MT4G ROM allows the trackpad to act as on/off button when the screen is locked, which is very useful - for checking time, etc. On the other hand, the port doesn't allow that - it only allows trackpad wake (and I had to decompile and recompile HtcLockScreen.apk to get rid of eViL's trackpad unlock).
The problem is that I don't know where to look for differences in the framework (I don't think lockscreen makes the difference). The wake is in android.policy.jar. Any suggestions where to look for "sleep"? I believe it won't be easy to integrate sleep code into the HTC lockscreen app...

Nobody knows? No devs in Q&A?
Oh well, I guess I'll dig deeper in the meantime, maybe I'll find what I need on my own while waiting for help.
If anyone knows a way to invoke lock using HTC framework, without instantiating DPM and requesting permissions for lockNow() function - it can also be very helpful.

Related

Auto KEY lock wanted

What I am looking for is a simple auto key lock, I am not the only one!
S2U2 I have tried and found to be laggy and unstable, essentially it is overkill, as are most auto key lock programs. I want something simple!
When pressing and holding the end key the keypad locks, all i want is a program to do this automatically after a set time delay, without any fancy tricks or graphics - surely this isn't too much to ask?
I am aware that the power button can put the phone to sleep and disable the keys/screen BUT they do not stay disabled if the phone wakes up (when getting a call/message etc.). Only the key lock does this.
As an alternative, does anyone know how to call the key lock software, where is it located in the windows folder? I can try and write something to do this?
I guess you don't want the password to be activated?
If you do want the password then you can easily do this via
Settings--Personal--Lock
and just specify the time before auto-lock happens
Here are a couple of aps that might help:-
LockWithPassword -I have this little app mapped to a shortcut on my today ...so I can instantly lock when needed ... thanks to slow23 right here at XDA
LockAndOff -does what it says on the tin ...again can be set up as a shortcut, and this one locks keys & turns the screen off (with a single click on the shortcut) but does not invoke the password
Got it from here:- link
Thanks jcsxda, LockAndOff is pretty close to what i want, now if it could be set to run after a short period of activity, or on device sleep/wakeup then it would be perfect
Im looking for the same thing.
A simple auto lock just like any other phone...
S2U2 is overkill and can miss up someother app.
it is the same as the device lock today shorcut?
sorry, my phone is in my car and im too lazy
VJDeviceLock can be used to automatically lock your phone when you switch it off (actually, when you switch it on but it amounts to the same thing).
You can assign any app to launch on power on, by using the events management functions built into the OS. Eg Memory Maid will let you run apps on power on etc.
V
Thanks Vijay for the great info. shutil.dll is responsible for the device lock on windows mobile when you press the today plugin for locking.
Do you know a command to use this DLL (to put in Memory Maid) ?
Is there a rundll32.exe like on desktops or something
VJ you are a star!
Exactly what I've been looking for. A little fiddly to setup, but shouldn't be a problem for anyone unless they are a total newbie!
Now it's setup it is perfect.
Thank you very much, donation on the way!
@jrg1967
Many thanks for the donation! For various personal reasons, I went cold turkey off XDA Devs for about a year, but I'm really glad to be slowly getting back into it. It's amazing how strong this community is, internationally!
@el_lo:
Although there is an API for enabling the lock, when I tried to implement it when WM5 first came out, for VJDeviceLock, it wasn't well documented, so VJDeviceLock does something else that I can't remember now to enable the lock.
I don't believe that there is a rundll32 type app on Windows Mobile. It wouldn't be hard to make one, but then you'd still be running an external app!
I believe that VJKeyPress can also be used to enable the keylock, and there are other 3rd party apps.
HTC may well have built in some function to enable the lock through ROM based software, but for me, VJDeviceLock serves me well.
V
@VJ, you have the makings of a commercial piece of software there- it is very hard to find a simple program to do this, as the poll bias shows. You just need a user friendly settings program to deal with the command lines and make it easy to use. I am sure it would appeal across the WM community...
yeh would be great for the phone to autolock after a set period of time like other phones. ok the screen turns off after 30seconds but it doesnt lock the keys. seems strange why this feature isnt already on the phone...
Ok, I'll put this out there:
If one was developing a (possibly commercial, but cheap) auto lock app, what features would it need?
VJDeviceLock is a very old app now, but it works fine and it still surprises me that autolocking on power off is not a standard feature, so I always install it. I understand that there is a registry entry on the newer non X1 HTCs that does something similar, but anyway:
What features would you need? First, auto locking after a fixed time.
What else?
In the interest of keeping it simple, don't ask for a slide to unlock replacement, as S2U is already fabulous, if that's your thing.
Also note that if you're interested, I can entirely replace the native unlock screen with a different interface, although again, I don't propose replacing S2U. I mean something more like a HUGE unlock button.
Give me ideas.
I can do gesture based unlocks, accelerometer based locking and unlocking (assuming I can do this on the X1, I don't have one, so someone feel free to give me one and I'll come and give your package a fondle).
Note that I'm busy on other stuff, so anyone else can code this, but for simple-ish features I'm happy to start working on it. Bigger stuff will take time.
It would probably be free because I can't deal with the hassle of getting rich
V
I'm using Auto Lock (CSDEVCTRL) works like a charm
http://forum.xda-developers.com/showthread.php?t=386451
Hey Vijay, glad to see you around!
jcsxda said:
I guess you don't want the password to be activated?
If you do want the password then you can easily do this via
Settings--Personal--Lock
and just specify the time before auto-lock happens
Here are a couple of aps that might help:-
LockWithPassword -I have this little app mapped to a shortcut on my today ...so I can instantly lock when needed ... thanks to slow23 right here at XDA
LockAndOff -does what it says on the tin ...again can be set up as a shortcut, and this one locks keys & turns the screen off (with a single click on the shortcut) but does not invoke the password
Got it from here:- link
Click to expand...
Click to collapse
thanks..seems like the lock app i was looking for.
X1 is like a mini comp....anyone can mess around with it if u leave it unlocked
Hi VJ,
It's still working great! Don't make this over complicated, as you can see from the poll people want a simple solution. Now I have it setup it's working just as needed, the standard unlock screen is fine, but the setup was a pain! So, IMHO all that is required is a simple front-end allowing to choose the options, rather than having to enter a command line. More complicated solutions to this issue are already available, so keep it simple.
Options for keylock/password lock at sleep and/or after a set time interval is probably all that is required.
BTW, X1 does NOT have accelerometer.
just having the regular keylock automatically come on after x amount of seconds would do me. no fancy screensavers, passwords or swiping the screen or anything like that. i noticed on diamond tweak there was an option for the keylock to come on when the standby kicked in and the screen goes off, doesnt work on the x1 though but that feature would be ideal.
vijay555 said:
Ok, I'll put this out there:
If one was developing a (possibly commercial, but cheap) auto lock app, what features would it need?
VJDeviceLock is a very old app now, but it works fine and it still surprises me that autolocking on power off is not a standard feature, so I always install it. I understand that there is a registry entry on the newer non X1 HTCs that does something similar, but anyway:
What features would you need? First, auto locking after a fixed time.
What else?
In the interest of keeping it simple, don't ask for a slide to unlock replacement, as S2U is already fabulous, if that's your thing.
Also note that if you're interested, I can entirely replace the native unlock screen with a different interface, although again, I don't propose replacing S2U. I mean something more like a HUGE unlock button.
Give me ideas.
I can do gesture based unlocks, accelerometer based locking and unlocking (assuming I can do this on the X1, I don't have one, so someone feel free to give me one and I'll come and give your package a fondle).
Note that I'm busy on other stuff, so anyone else can code this, but for simple-ish features I'm happy to start working on it. Bigger stuff will take time.
It would probably be free because I can't deal with the hassle of getting rich
V
Click to expand...
Click to collapse
you can make it very simple.assign lock software to power off button.when you display is off you phone ll be locked.this ll be lovely.thank you
Hi Vijay,
I was also trying to develop a simple autolock program. Because I couldn't find any locking program that can prevent X1BC from capturing the keys. What I need is something that kills X1BC just before locking, and re-launches it after unlocking. Currently, I am able to lock the device and kill X1BC when the display dimms, but detecting the unlock is a problem. Do you have any idea how I can detect the unlock? (My program is using the lock mechanism of QuickMenu and that is using the built-in lock).
Cheers

Trackball wake feature with No Lock app input needed

I am posting the timely reply to my email from the developer of the highly popular No Lock app, that many of us have been using for waking up our Nexus One with the trackball until we installed Gingerbread 2.3.3, for you wizards to possibly lend assistance to the developer . I questioned the developer as to getting a change done to the app so we could again enjoy the wonderful benefit of the app in waking up our phones with the trackball. Perhaps with the great knowledge base of our XDA members we can help him find a path to a fix of this most needed app. (especially those with a non functioning power button) He can be sent an email directly from the No Lock app in the Market. Let us all hope for a breakthru.
Here is his reply:
"Hi!
I wish I could do something. Unfortunately this is not in my hands
Normally my app is supposed to work exactly the same on all the devices,
and all the versions of Android. But in the real world, this is not the
case, and there is really nothing I can do about it.
On certain models, the app doesn't even work at all, and I have no idea why!
Have a nice day"
Trackball wake
I got the same formulaic reply. Obviously this developer isn't interested in fixing it on his own and perhaps we'll have to live with that. Trackball wake doesn't work with stock ROM on Anylock either, so it's a generic problem.
I also hope somebody can fix this (before my Vol key dies!)
The developer of widgetlocker commented on the trackball wake issue. It's something about pressing the trackball no longer dispatch event when the screen is off, therefore there is no way for an app to detect trackball press.
widgetlocker.teslacoilsw.com/general/trackball-wake-and-gingerbread-bad-news/
Loving GB - missing my wake on trackball!!
This is a behavior changing issue.
hope someone can make a trackball wake later..
No Lock app would be great to use with GB trackball! Hopefully it's developer will have a fix...in the meantime I'm using No Lock and the Volume button to wake my N1.
Am I missing something about trackball wake? I'm running CM7 nightly #7 and using Widget Locker with the "any hardware button unlock" feature enabled and my trackball wakes my phone just fine (even though I prefer to use the volume keys instead). Our is this an issue on stock 2.3.3?
sitinon327 said:
Am I missing something about trackball wake?....is this an issue on stock 2.3.3?
Click to expand...
Click to collapse
Yes.
10chars
sitinon327 said:
Am I missing something about trackball wake? I'm running CM7 nightly #7 and using Widget Locker with the "any hardware button unlock" feature enabled and my trackball wakes my phone just fine (even though I prefer to use the volume keys instead). Our is this an issue on stock 2.3.3?
Click to expand...
Click to collapse
Yes. It used to be that you could just get an app to add this functionality, but now, you have to change it at the rom level. So sure CM7 will work, but it's over the top for people who just want trackball wake to install a new rom.
Yep, i also asked the widgetlock dev about this issue. Sadly there seems to be no real fix to this.
i really hate the fact that i cannot use trackball wake anymore, especially since the power button of the nexus seems to be quite fragile and can become defect easily. There are many threads about buggy power buttons in this forums.
Workaround for me is also to use the volume buttons for display wake, which is ok, but i preferred trackball wake...
missed my trackball wake..
I normally just use the clock app to prevent my phone from locking. With Gingerbread, I also can't use the trackball to wake the phone anymore. Good thing the volume buttons still work.
Would it be so hard for Google devs to include in stock ROM an option which allowed trackball to wake up screen now that everybody knows how buggy power button is and making a good ROM even closer to perfect?
I know. I'm asking for far too much... Google listening to its customers...
decodecoding said:
Would it be so hard for Google devs to include in stock ROM an option which allowed trackball to wake up screen now that everybody knows how buggy power button is and making a good ROM even closer to perfect?
I know. I'm asking for far too much... Google listening to its customers...
Click to expand...
Click to collapse
yep. this will never happen. there are like a trillion bugs/tasks which are probably more important for Google than this very specific thing...

[Q] Remap Trackpad to Powerbutton

I actually hate the trackpad function on the phone.. is it possible to remap it as a power button that will just turn on and off the screen? I've searched the forum, but nothing gives me exactly what I want. Thanks!
6long said:
I actually hate the trackpad function on the phone.. is it possible to remap it as a power button that will just turn on and off the screen? I've searched the forum, but nothing gives me exactly what I want. Thanks!
Click to expand...
Click to collapse
Miui, has trackpad wake only, stock froyo or gingerbread mysense has wake/sleep...Google trackpad wake/sleep+xda and you'll find what you need...
I actually want to completely turn off the trackpad function and use it as a power button.
There are no ready-made mods that you're asking for, so you have a couple of options:
1) Try to rewrite some AOSP/CM7 code to disable trackpad functionality and compile yourself a ROM.
2) Try to hack the keyboard files from any ROM to achieve the same.
3) Disassemble the phone and disconnect the trackball lines physically.
4) Sell your phone and get something else.
Jack_R1 said:
There are no ready-made mods that you're asking for, so you have a couple of options:
1) Try to rewrite some AOSP/CM7 code to disable trackpad functionality and compile yourself a ROM.
2) Try to hack the keyboard files from any ROM to achieve the same.
3) Disassemble the phone and disconnect the trackball lines physically.
4) Sell your phone and get something else.
Click to expand...
Click to collapse
[email protected] option 4
Jack_R1 said:
There are no ready-made mods that you're asking for, so you have a couple of options:
1) Try to rewrite some AOSP/CM7 code to disable trackpad functionality and compile yourself a ROM.
2) Try to hack the keyboard files from any ROM to achieve the same.
3) Disassemble the phone and disconnect the trackball lines physically.
4) Sell your phone and get something else.
Click to expand...
Click to collapse
+1
From my fist to your face, enjoy.

[Q] Carbon Lockscreen Targets

I am using Carbon ROM (Unofficial 20140107-2007) on my Verizon LG G2 and can't change any of the lock screen targets. Am I missing something here? I tried searching as well and either couldn't find the right key words or there wasn't anything, and since I am a noob couldn't post in the ROM thread. Anyone got any advice?
So far it's an awesome ROM, love everything about it, and will love it even more when the menu buttons can be altered.
Is the option in there or you just can't find it? If its there it might just be a bug. I think they just implemented that in the last few days so it might be a bit quirky.
JRJ442 said:
Is the option in there or you just can't find it? If its there it might just be a bug. I think they just implemented that in the last few days so it might be a bit quirky.
Click to expand...
Click to collapse
The options are there for me to change them, but no matter what I select, it stays "empty". I am actually using Cover lockscreen for now until the company forces me to put a passcode to lock my device.

Help with Xposed

Hello
Can someone explain me why should I install this app, and what is it about?
Thank you
sended from iPhone 9
swarced said:
Hello
Can someone explain me why should I install this app, and what is it about?
Thank you
sended from iPhone 9
Click to expand...
Click to collapse
Xposed is a framework that enables you to mod the system without manual hacks by installing .zip files for various functions. One of the more popular would be Sense Toolbox for HTC ROMs, or Xprivacy to give granular control over permissions and help prevent sensitive data from leaking. Search on the forum here and find the Xposed section. You'll find it informative.
BillTheCat said:
Xposed is a framework that enables you to mod the system without manual hacks by installing .zip files for various functions. One of the more popular would be Sense Toolbox for HTC ROMs, or Xprivacy to give granular control over permissions and help prevent sensitive data from leaking. Search on the forum here and find the Xposed section. You'll find it informative.
Click to expand...
Click to collapse
Alright, thanks
sended from iPhone 9
Im running zulu's full android with xposed
One of the things im assuming only xposed easilly allows, is map various controller hardware keys, like wireless/wired mouse/keyboard/gamepads (note, ive only tested a wireless mouse wich has a few extra buttons, like backwards/forwards, but im pretty sure the others i listed should work) edit:mouse, cant remap left/right click, just one or two of the extra buttons my mouse happens to have
The modules called xposed additions, ive done some simple things for now, like mapping the backwards button on the mouse to, "press the home button", to take me directly to home screen, i click on the backward button once and it works as default by "pressing" the back, but with this module, you can remap different commands with long presses..........so click and let go = back button .....long click = home button......very nice...
If your a tasker user, you can remap hardware buttons to launch tasker shortcuts too......even nicer......many possibilities........iniating tasker tasks with remapped connected controller......directly.........i can imagine really cool stuff folks might be able to do with this, like home automated houses..............ive tested this really compact bluetooth media controller i have, which has buttons one to ten, quickly tested that i can map tasker shortcuts to each button..........possibillities maaaaaan
Only found this neat app because i had a need for it when setting up my shield

Categories

Resources