[Q] strange connection between keylayout file and screen auto-rotate - Android Q&A, Help & Troubleshooting

I ported the firmware CM7.2 (from u8150) for the u8350 and noticed a strange connection between keylayout file and screen auto-rotate.
By default when system boot, the screen is stay in the standart for this device - the landscape mode, then after system complete boot and appeared "lock screen" device screen automatic changes to portrait mode and stays there forever(broken).
BUT, I accidentally discovered that if in the file "qwerty. Kl" remove or comment out the line "key 16 Q", then the auto-rotate works correctly from the start, but respectively stop work "q" key on device keyboard.
Please help me to understand the causes of this.

Related

[Q] Need help tweaking DeskClock - Changes not applying

Hi,
I'm trying to modify the ICS deskclock app for my device so that it simulates being touched when the screensaver mode starts. (if you touch the screen it dims the backlight a lot, and darkens the text).
I have some Android devices on 24x7 and the screens can't power off, so I need to dim the backlight down when the screensaver mode kicks in (deskclock is launched at idle instead of lock screen).
I've got the DeskClock source used on my device and have modified DeskClock.java by adding 'doDim(true);' at the start of 'Private void saveScreen()'
After compiling I got the APK but my device wouldn't load it (reported signature mis-match) so I used the .odex from the original APK not the one with my new package - now the modded APK installed.
But when I launch nothing seems to have changed - I re-compiled after changing the screensaver timeout value in DeskClock.java, but again it doesn't seem to be any different..
Is this because I'm using the original .odex ?
If so, how can I re-create an odex file to match the framework on my device for the new APK? (if I use the odex file generated by compiling the entire ROM is says something like the policy framework signature does not match?!)
If not, any ideas why nothing is changing? (I have no real experience of Java!)
Many Thanks!

[MOD]i9195 Disable HOME button on lockscreen(rooted stock rom)[MOD]

Hi
The main goal: disabling the home button wake on the lockscreen and every other home fuction remain the same
this solution based on this tutorial:
http://forum.xda-developers.com/showthread.php?t=2224688
you need root acces:
http://forum.xda-developers.com/showthread.php?t=2364980
Download Total Commander from Play (it's better bcose there is automatic moun/remount function )
https://play.google.com/store/apps/details?id=com.ghisler.android.TotalCommander
- allow root acces to TC
- navigate to /system/usr/keylayout
- locate and copy to safe place gpio-keys.kl and sec_keys.kl
- open the original files with TC editor (press once on the filename and choose "Edit")
- Search the following lines in gpio-keys.kl:
Code:
key 102 HOME WAKE
key 172 HOME WAKE
and delete the WAKE world and all spaces after HOME!
it should be looking:
Code:
key 102 HOME
key 172 HOME
- save gpio-keys.kl (TC do all mount-remount thing)
- Search the following line in sec_keys.kl:
Code:
key 172 HOME WAKE
and delete the WAKE world and all spaces after HOME!
it should be looking:
Code:
key 172 HOME
- save sec_keys.kl (TC do all mount-remount thing)
restart the phone and enjoy
If you're using CM, go to Settings - Display and Uncheck the second last option to achieve the same effect in a much simpler way
Whosat said:
If you're using CM, go to Settings - Display and Uncheck the second last option to achieve the same effect in a much simpler way
Click to expand...
Click to collapse
Not in 10.2?
Sent from my GT-I9195 using xda app-developers app
shayne77 said:
Not in 10.2?
Sent from my GT-I9195 using xda app-developers app
Click to expand...
Click to collapse
In 10,2 it is found in Settings - Buttons - Home button wake.
How to disable HOME button on Kitkat 4.4.2? This solution doesnt work on Kitkat anymore
Whosat said:
In 10,2 it is found in Settings - Buttons - Home button wake.
Click to expand...
Click to collapse
Same is in CM 11
Very useful tutorial. Thank you a lot. My phone used to unlock itself in my pocket and then make a call or mess up settings... S4 mini reacts to touches trough thin cloth. This wasn't problem on HTC.
Wanam xposed module can do it ss well. Obviously you need to have xposed framework installed.
Sent from my GT-P3110 using XDA Free mobile app
Not working with my AT&T S3 with stock 4.4.2 android. This is driving my nuts. There has to be a way to disable this. HELP!!!
Hi,
I've rooted my Galaxy S4 mini because the home button is turning on the screen continiously draining my battery. The root was succesfull, but i cant edit the files with Total commander. I get a 're-mount error'. Anyone know how to solve this? I'm running stock android 4.2.2.
I also tried installing Wanam Xposed and found the option, but it didn't work.
Thanks
Removing WAKE didn't help my either. I had to comment out (#) the whole line in gpio-keys.kl.
Now HOME is completely disabled and I installed Auto Hide Soft Keys to create a virtual nav bar.
On the other hand, who needs HOME
no-idea said:
Removing WAKE didn't help my either. I had to comment out (#) the whole line in gpio-keys.kl.
Now HOME is completely disabled and I installed Auto Hide Soft Keys to create a virtual nav bar.
On the other hand, who needs HOME
Click to expand...
Click to collapse
Thanks for your reaction! My problem is that i cant change the gpio-keys.kl file. I get a 're-mount error'. But maybe i will need your suggestion further on.
Hmmm, phone is rooted?
I used ES File Explorer in Root Mode, changed gpio-keys.kl file permissions to rx-rx-rx, edited the file and restored permissions to rx-r-r. After a reboot, HOME was disabled.
no-idea said:
Hmmm, phone is rooted?
I used ES File Explorer in Root Mode, changed gpio-keys.kl file permissions to rx-rx-rx, edited the file and restored permissions to rx-r-r. After a reboot, HOME was disabled.
Click to expand...
Click to collapse
Yes the phone is rooted. I checked it with root checker. Maybe i need to change the the file permissions. How can i do this? With ES file explorer?
Do you use stock android ?
Yes I'm on stock rom.
Open ES Explorer and go to Tools. Switch on Root Explorer. Mark the file and change the permissions via More > Properties. Just add the middle and lower check on the right side.
Now edit the file and change the permissions back.
I am able to save the file now, but the home button is still functioning. I commented out the lines with HOME in gpio-keys.kl and rebooted. But still the screen keeps turning on because of the home button.:crying:
In reverse?
Anyone know if the opposite variation on this is possible?
I.e., I'd like to be able to use the home button to wake my phone up, but not to take me to the home screen, simply to turn the screen on so I can continue with whatever app I'm currently using, such as gps... (if it can carry on working as home button when the screen is already on, that would be fine).
Using the side power button can sometimes be a hassle and I'd like a way to simply turn the screen on quickly. I'm also on CM not stock though...
Thanks!

[Q] How to modify the Screen Lock default setting.

Hi All,
New to the forums and have been doing a bit of modifications to my Settings.apk and settings.db files thanks to all the very helpful people in the forum but I'm stuck in changing the default setting for the screen lock.
Essentially I want to stop the Swipe to unlock screen from appearing after a device restart. I have stopped the display from sleeping by modifying the "screen_off_timeout" value in the settings.db file, but that doesn't stop the lock screen from appearing after a restart.
Does anyone know where this setting would be stored? I tried changing "lockscreen.disabled" in the "secure" table to "1" but it seemed to default back to "0" after a reboot. Is this what I should be changing but am doing something wrong?
I am using a generic chinese Allwinner A31s tablet with Android 4.2.2.
Thanks in advance for any help offered.

[Q] need help about touch driver and setting.apk menu edit

Simple Two issues here
the first
my tab hardware support 2g only but ....... Setting-->Wireless&Network-->More-->Mobile networks has an option "Preferred network type" which can be changed to 3g , this causes Major system Error. i want to modify this Mobile networks sub menu and hide "Preferred network type" ,,,,,,,,, i tried editing system.apk but i succeeded only in hiding the root menu "Mobile networks" ,, how to remove any item in "Mobile networks" ?? what's apk file that should be edited?
the Second
the other tablet touch screen rotated and works on part of screen only "touch - display resolution mismatch"
i used to fix this issue in allwinner in bootloader script.bin .... but this tab is quallcomm msm series no script.bin i can't even find ko file of the touch in system partition to replace it with another one ,,, how to fix this issue ??? and where can i find the ko file of the touch in such tablet ?? ...... the driver detected in getevent "FT5XXXX"
thanks for your time
Finaly , i succeeded in solving the first issue , i found the target in TeleService.apk\res\xml\network_setting.xml
now the second issue still here ,
how to even remap touch x , y events .... the programming language code doesn't matter at all

screen unlocker

Any .apk or .zip I can flash that will allow me to have the Fallout terminal lock screen as my lock screen. When you access a locked terminal it has all that random strings of letters, number, symbols and words and you select the password out of that. When I awake my lg g3 running newest CM13 nightly I want to swipe and it open a screen exactly like on the terminal and have to select my password that I have chosen to be my password. Of course with the audio of the terminal in the game too when opening it, all the random strings appearing, selecting the wrong password , selecting the correct password. I would like it to be an option in the lock screen menu though so I can easily switch from it to a pin or just swipe or no lock screen at all and then back to fallout terminal as I please. Thanks!

Categories

Resources