I'm rooted so I'm not sure why, and the init.d folder was present. Try it yourself. Doesn't work.
I'm rooted so I'm not sure why, and the init.d folder was present. Try it yourself. Doesn't work.
Install busyboxI'm rooted so I'm not sure why, and the init.d folder was present. Try it yourself. Doesn't work.
I shall. Cheers
Thank you very much for this. [emoji106]Got flashable zips working using the init.d method.
Confirmed working after dirty flashing Lee R86. Any testers interested in confirming?
ButtonSwapLights0% - Swaps back & recents, kills button backlight
ButtonsDefaultLights0% - Default button order, kills button backlight
ButtonsDefaultLights50% - Default button order, backlight brightness 50%
ButtonsDefaultLights100% - back to normal
Probably works on ICE, don't know about Viper, nandroid and see.
For reference, I'm
S-off
decrypted
system-based root
Lee R86
Will do mate, once work dies down today, I'll add it. I've tested it myself and it's working as I'd have hoped..Your welcome, feel free to add it to the OP. Assuming its working for everyone.
Your welcome, feel free to add it to the OP. Assuming its working for everyone.
Cheers mate..@dladz I would like to mention a really cool thing that would be nice if you could add it to the first post.
First of all, you can enable on-screen keys by simply adding a line to build.prop:
qemu.hw.mainkeys=0
And after that, it doesn't really make sense to have double keys, so using your method you can then easily assign other actions to capacitive keys.
My setup is now having the on-screen keys displayed, back button is now play/pause (MEDIA_PLAY_PAUSE) andrecents key as camera (CAMERA).
Note that camera is activated on long press, so tapping the button assigned as a camera key won't do anything.
Sincecameraand media keys work, so should all of the keys from here, just type the string after KEYCODE_
so for ex. KEYCODE_CALCULATOR should be only CALCULATOR in cypress-cap-sensor.kl
EDIT: It seems that camera freezes when taking pictures after this mod... So for now don't use camera as a shortcut key.
And of course, reboot.
Cheers and happy modding!
My setup is now having the on-screen keys displayed, back button is now play/pause (MEDIA_PLAY_PAUSE) andrecents key as camera (CAMERA).)
I like this idea.. I like the xtra screen real estate that using capacitive keys offers, but reassigning them + soft keys sounds like a nice combo... didn't think of that.
Does the play/pause you have assigned to back work with screen off? If so, is it sensitive in pocket?
Cool creative idea though, thanks for posting.
The on screen keys are awesome and I'm definitely keeping them.
Regarding the soft keys, the camera turns out not to be broken because of the key that I assigned but because some other mods I was trying out, so technically using them as camera buttons does work.
As for the media keys, the issue is that whichever media key you assign, it will start media playback (next/prev will just skip track and start playing) and the issue is that you might often press it by accident and music will start playing. Although, they do work.
Unfortunately there arent many useful predefined keys provided by the OS and for other functions we have to either wait for custom roms, or maybe make something with IFTTT (for ex. assign NUM_LOCK to the back key and make a rule to start Chrome when num lock is pressed)
If this phone didn't have buttons already then I'd use what you've just posted..
You can use init.d script to prevent brightness changing on every reboot, i.e
"#! /system/bin/sh
echo 0 > /sys/class/leds/button-backlight/brightness
echo 0 > /sys/class/leds/button-backlight/max_brightness"
Create a file in /system/etc/init.d and paste the above lines (without quotes), and give 755 permission, itll set to 0 before boot Everytime
If on stock rom dont have init.d support then use superSu's su.d, place same file to /system/su.d folder
Sent from my Redmi Note 3 using Tapatalk
Stock Verizon ROM doesn't have init.d support.So this doesn't work with Verizon stock rooted rom, the file exists after flashing the swapbuttons.zip and has the correct values; any ideas?
The backlight only off when you set it to 0 by yourself. And it return to 255 every time your reset the phone. Sry for my bad English.OK when I flash this now on viper this doesn't do the lights.. Any ideas..
Made the init.d file, just seeing if it works.
Will upload once i'm in work.
EDIT: Nah didn't work mate.
Permissions in root explorer are 4 places and not 3.
so 755 comes out like 0755