Help Remapping the PowerSaver Slider - Lenovo P2 Questions & Answers

This phone has a powersaver slider and I want to use it for other things. Can anyone help me in remapping the slider?
I tried an app but the buttons are gives specific codes and I dont know the code for the slider.

ShakuniMama said:
This phone has a powersaver slider and I want to use it for other things. Can anyone help me in remapping the slider?
I tried an app but the buttons are gives specific codes and I dont know the code for the slider.
Click to expand...
Click to collapse
I've been wondering about that too, perhaps it will be a future thing for custom roms.. Actually was thinking on whether it can be used for like a 'do not disturb mode' or something useful like that.

Wmateria said:
I've been wondering about that too, perhaps it will be a future thing for custom roms.. Actually was thinking on whether it can be used for like a 'do not disturb mode' or something useful like that.
Click to expand...
Click to collapse
Yes my thoughts exactly. There are a lot of Button Remapping apps on Play Store but too complicated to use. It wold my nice if someone would come up with a guide for that.

I'd love to have this too

With the Lenovo P1, button remapping it wasn't possible since it was hardware-coded. I think it might be the same for the P2.

There is an app called "KeyEvent Display" in the play store
Did you try that to find out if it has a key code?

Related

[Q] Disable soft key lights? Change lockscreen? (CleanGB 1.12)

Some time ago, there was a thread about how to disable the soft keys and keyboard lights. I read a lot of ebooks at night and it would be wonderful if there was some way to toggle those on and off. I'm not that knowledgeable about scripting and the like, that thread was beyond me. Is there an easy way to do this?
Another minor issue the CleanGB 1.12 lock screen. Great rom overall, very stable, but I have some trouble with the right to left swipe of the standard lock. Is there some way to change this to the upward swipe method?
Thanks for your help, I always feel a little out of my depth with significant modifications.
Alexdi said:
Some time ago, there was a thread about how to disable the soft keys and keyboard lights. I read a lot of ebooks at night and it would be wonderful if there was some way to toggle those on and off. I'm not that knowledgeable about scripting and the like, that thread was beyond me. Is there an easy way to do this?
Another minor issue the CleanGB 1.12 lock screen. Great rom overall, very stable, but I have some trouble with the right to left swipe of the standard lock. Is there some way to change this to the upward swipe method?
Thanks for your help, I always feel a little out of my depth with significant modifications.
Click to expand...
Click to collapse
Don't know about the lights but the lockscreen is right in the OP. He gave people the choice of lockscreens.
Sorry, I didn't see the checkbox for which lock screen was the default. I guess it's the touchwiz version i'm after. No thoughts about soft lights?
Alexdi said:
Sorry, I didn't see the checkbox for which lock screen was the default. I guess it's the touchwiz version i'm after. No thoughts about soft lights?
Click to expand...
Click to collapse
Mannnyyy have asked about the soft lights (including me) but till now there is noooo way possible to turn them off
Sent from my SPH-D700 using XDA App
Alexdi said:
Sorry, I didn't see the checkbox for which lock screen was the default. I guess it's the touchwiz version i'm after. No thoughts about soft lights?
Click to expand...
Click to collapse
Yeah he has a Touchwiz flashable lockscreen in the OP. As for the lights best solution is 2 words....black tape. I had heard some ROMs I think CM7 had linked those lights to the keyboard timeout.
Sent from my SPH-D700 using xda premium
http://forum.xda-developers.com/showthread.php?t=814375
There were some promising suggestions in the second page of that thread, though I'm unsure how to implement them. Navigating to those files in root explorer and modifying them doesn't seem to do much.
Alexdi said:
http://forum.xda-developers.com/showthread.php?t=814375
There were some promising suggestions in the second page of that thread, though I'm unsure how to implement them. Navigating to those files in root explorer and modifying them doesn't seem to do much.
Click to expand...
Click to collapse
CM developer mkasick has looked into it, and thinks it might be kernel related. But even he isnt sure so we're all doomed for sure rofl
I am Z.

[Xposed] [OP2] OnePlus 2 / OxygenOS-specific Xposed modules

Hi all,
Since it didn't seem like anybody had written Xposed modules for some features I wanted, I wrote a couple myself. These are OxygenOS-specific. If you have any other OxygenOS-specific Xposed modules you'd like to see, let me know in this thread. I'm just getting started using Xposed, so I'm learning as I go.
No Quick Pulldown: http://repo.xposed.info/module/io.gavinhungry.xposed.oneplus.noquickpulldown
This disables the "quick pulldown" (which is when you swipe down on the right side of your statusbar, it skips the notifications and takes you straight to quick settings). This module also disables "smart pulldown" (which is when you get the quick pulldown behavior only when you have no notifications). As a side-effect, it also disables "two-finger quick pulldown." Since I don't use that, I don't care, but I could rework it if needed.
Reverse Alert Slider: http://repo.xposed.info/module/io.gavinhungry.xposed.oneplus.reversealertslider
This reverses the direction of the alert slider, so now the bottom position is "No interruptions," and the top position is "All notifications." It also disables the toast notification you see when moving the slider, and it removes the status from below the volume slider, both of which I found annoying (if you want to change the alert slider to control vibratation instead, check out VibrateMode).
No Quick Settings Edit Button: http://repo.xposed.info/module/io.gavinhungry.xposed.oneplus.noqseditbutton
This one is pretty minor, but since I only need to set the ordering of my Quick Settings tiles once, I don't want to see the little edit icon every day in my statusbar. This removes the icon. If you want to reorder your Quick Settings some more, you'll need to disable this module.
Thanks for putting in work?
I cant find the download for apk?
That's what I'm looking for a long time.. Thank you!
Awesome tweak, using both modules
ert69 said:
I cant find the download for apk?
Click to expand...
Click to collapse
The APKs are in his git in the 'dist' folder of each repository
Awesome work bro!
I added RawGit links to the APKs in the OP, for those having trouble finding them.
Thank you so much for the no quick pulldown! It was so frustrating.
some great work, thanks for this, was thinking of a vibrate mode instead of priority for xposed, if there is a solution can you let me know?
merewood bebox said:
some great work, thanks for this, was thinking of a vibrate mode instead of priority for xposed, if there is a solution can you let me know?
Click to expand...
Click to collapse
Check out VibrateMode (I added this to the OP as well).
gavinhungry said:
Check out VibrateMode (I added this to the OP as well).
Click to expand...
Click to collapse
oh yeah thanks, works perfectly. thanks for you work, much appreciated
Edit: think it would be good if you could select if you want the volume short cuts etc. Would be nice touch
Hey, I shared the link to this thread on OnePlus forums, I hope you don't mind. Just installed the reverse alert slider module, works like it's supposed to, thanks!
I miss Wanam Xposed for Galaxy. Since we don't have custom OOS roms, looking forward for OOS specific mods for OPT. Great stuff!
Sent from my ONE A2003 using Tapatalk
merewood bebox said:
think it would be good if you could select if you want the volume short cuts etc. Would be nice touch
Click to expand...
Click to collapse
The biggest reason I disabled that was because I couldn't figure out how to get it stay in sync with the slider - also, I never used it and found it annoying.
Introducing that as an option relies on 2 things - me be able to figure out how to keep it in sync, and me being able to create a UI. I'm not much of an Android developer, I'm afraid. If I can do those, I may also just combine these into a single module, then keep adding options to it.
Great job.
Why don't you add all these options in one app like wanam xposed does to Samsung devices?
Sent from my ONE A2003 using Tapatalk
Great work. Finally found the exact module which I wanted for the alert slider.
Thanks dev
Um, Its been sometime since I've been part of the Rooted Club (Last Phone to be rooted and unlocked was the HTC Droid DNA). I get the "Xposed is not compatible with Android SDK version 22 or your processor architecture (Arm64-v8a)" Can anyone help me out with this? Thanks.
KOAO said:
Um, Its been sometime since I've been part of the Rooted Club (Last Phone to be rooted and unlocked was the HTC Droid DNA). I get the "Xposed is not compatible with Android SDK version 22 or your processor architecture (Arm64-v8a)" Can anyone help me out with this? Thanks.
Click to expand...
Click to collapse
Flash xposed-v75-sdk22-arm64.zip
Anyone have a good working module for expandable volume notification?

Softkeys or Navbar

Hi everyone!
I can't seem to find any reference here how to activate the Softkey/Navbar of this phone? If you happen to know how, please do let me know.
thanks.
So you want to waste screen for something we already have as hw feature!?
you seem to imply that your definition of "waste" is somehow objective.
IMO, your reply above is a "waste". Why? because it has no value.
Please be respectful on your comments
Taking it the wrong way... And it is a waste... Why do you think people are trying to get rid of it and you are the only one who wants it...
Good luck with that...
Sigh... another wasteful reply from you. NOT all people are trying to get rid of it. Do some research first.
I think you can do this, but need to root your phone.
check http://en.miui.com/thread-27328-1-1.html
Tried it. Unfortunately it didn't work. Thanks though.
navbar or softkey,, that's subjective!!
everyone is different
I prefer navbar..
that is costumizable
not like that softkey,, the looks isn't costumizable.. that glowing softkey is ugly af
IMO
you can argue
but that will not solve our friends above's problem
here you are:
as im using MIUI and some other ROM,, i never be able to activate softkey
with all method all over internet
then i try custom rom,, RR
that is had option to enable navbar
the only thing bother me alot is
1. you can't completely disable softkey,, but xposed addition do,, if you want
2. when you succes disable it,, you can use some app to disable the led of sotkey
3. but you can't disable haptic feedback in softkey,, the only thing i tried is xposed vibration tuner,, to disable ALL vibration on phone..
so you can't completely use vibration
i've never find another solution
that best i can do to DISABLE that softkey
please share here to EVERYONE WANTED and SUCCESS do this
that will be appreciated
BY THE ONE WANTED TO
and please,, everyone that just want to argue or insult,, about the things that not relevant to the QA,, kindly dont post here
Regards
someone fond of NAVBAR
Thanks qzxi. I'm using RR now. I have yet to check the xposed addition, maybe later.
Btw, do you have a non xposed solution to making the navbar transparent? I'm using flat style color bars now for that.
I'm using gravity box to turn the led off for the capacitive buttons as well for the vibrate.
Hello, I ordered a Xiaomi Mi Max, great phone, I`m waiting impatiently. To activate soft keys in the nav bar you can edit the line in /system/build prop, must be rooted, there`s a line that says;
qemu.hw.mainkeys=0 (if 0 put 1, if 1 put 0).
replace that file and give permissions 644 with Rootexplorer.apk for example. With roms cyanogenmod based it works. To deactivate the HW keys you must edit certain files in /system/usr/keylayout but really I don`t know exactly
Hello @SubwayChamp, unfortunately that didn't work for me when i was still using MIUI 8. thanks though
You can try Simple Control.apk from Play Store, in mine works.
Simple control is not really what i am looking for.
It's not an alternative a replacement to NAVBAR. it might be an alternative but not a replacement.
btw, there is a builtin function in MIUI that functions the same as simple control, if i recalled correctly it's Quickball.
In MIUI 8.
Flash TWRP
Flash supersu.
Flash Xposed.
Install Xmiui module.
Switch on Nav Bar.
In my opinion it looks ugly. (button on buttons)
but u can get it if u want it.
Finally, I think that this tuto is perfect, it has the option to enable soft keys and disabled HW keys:
https://youtu.be/2wKANork81Q
I'll try this as soon as i have time to revert to MIUI. thanks for this.
"Finally, I think that this tuto is perfect, it has the option to enable soft keys and disabled HW keys:
https://youtu.be/2wKANork81Q"
That didn't work as well SubwayChamp.
I never try system changing beside Xposed,, unless there is no modules that i expect..
I remember there are some transparent related xposed modules out there..
But it makes the ui looks bad,, imo
Transparent is fancy in launcher,, but when you in app,, that looks ugly,, cos the transparent through the homescreen
But i think i know what you looking for
Transparent,, in all apps,, but not through to the homescreen
That's what i looking for too
Afaik,, fscb is the closest to my need
At least that give the decor as the entire screen app
The bad are: tinted the button to b/w,, and not transparent
-----------------
And thanks for the info bout the gravitybox
Try it

How The Heck Can I Disable The On Screen Buttons?

I never thought that it would be this much of a pain to disable the sodding on screen buttons on the Pixel. This thing alone is making the otherwise excellent experience of it rather moot. I can't stand this thing.
I have tried the GMD Auto Hide soft keys app, but it doesn't work on 7.1.1. Then I tried the All In One Gesture app, it did hide the on screen buttons under some immersive modes but then there is no proper Pie like control in that app, making the point moot for me. Then I found LMT, which gives back Pie but no way to hide the on screen buttons. I have given up at this point.
So is there a way? Or do I have to wait until Xposed is released for 7.1.1 and then use the Gravity Box's Pie Control?
WETA ROM. You can choose no nav bar during install, and then use LMT.
^^^
Weta ROM, DU ROM.
GMD does work on 7.1.1. However, many GMD users like me abandoned it for one reason or another. One, the keyboard has to regain focus. Two, it doesn't work in some apps. Three, in some apps, it simply hides the nav buttons, but the bottom row blank, still wasting a row of space.
Thanks guys but I really want to stay with the stock ROM. I guess waiting is the only option now.
ithehappy said:
Thanks guys but I really want to stay with the stock ROM. I guess waiting is the only option now.
Click to expand...
Click to collapse
Doubt you will ever see that being adjustable in stock android
xxfwmxx said:
Doubt you will ever see that being adjustable in stock android
Click to expand...
Click to collapse
I'm in the same boat I want to get rid of the hideous soft keys. The build.prop suggestion from the Nexus line did not work ? some developer please help us!
The moment Xposed is available I'm gonna install the GravityBox and then use that Pie Control, which will make the soft keys go away for good. But till then no option it seems, or probably with the help of 2 apps.
Yamalito said:
I'm in the same boat I want to get rid of the hideous soft keys. The build.prop suggestion from the Nexus line did not work some developer please help us!
Click to expand...
Click to collapse
qemu.hw.mainkeys=1 in build.prop works fine for me. Using swipe navigation app, no issues
Bogega said:
qemu.hw.mainkeys=1 in build.prop works fine for me. Using swipe navigation app, no issues
Click to expand...
Click to collapse
Someone please confirm whether this works or not, read somewhere that it creates some force close issues or something, but if those are false reports would REALLY like to know.
ithehappy said:
Someone please confirm whether this works or not, read somewhere that it creates some force close issues or something, but if those are false reports would REALLY like to know.
Click to expand...
Click to collapse
Not trying to be a wiseguy, but why don't you just try it out and see? If it doesn't work, change it back. No biggie.
spotmark said:
Not trying to be a wiseguy, but why don't you just try it out and see? If it doesn't work, change it back. No biggie.
Click to expand...
Click to collapse
I can see someone's reluctance. Let's say it only works "half-way", the nav buttons are removed, and he gets errors in an app. Without nav buttons, he can't get back to the home screen to revert his changes. That may be the main reason I activated "OK Google" so I can still run apps by voice when I play around with the nav bar.
spotmark said:
Not trying to be a wiseguy, but why don't you just try it out and see? If it doesn't work, change it back. No biggie.
Click to expand...
Click to collapse
I can't take the chance of having a bootlooping phone!
quangtran1 said:
I can see someone's reluctance. Let's say it only works "half-way", the nav buttons are removed, and he gets errors in an app. Without nav buttons, he can't get back to the home screen to revert his changes. That may be the main reason I activated "OK Google" so I can still run apps by voice when I play around with the nav bar.
Click to expand...
Click to collapse
ithehappy said:
I can't take the chance of having a bootlooping phone!
Click to expand...
Click to collapse
That's what backups are for.
quangtran1 said:
I can see someone's reluctance. Let's say it only works "half-way", the nav buttons are removed, and he gets errors in an app. Without nav buttons, he can't get back to the home screen to revert his changes. That may be the main reason I activated "OK Google" so I can still run apps by voice when I play around with the nav bar.
Click to expand...
Click to collapse
Those error will remain after I install a Pie control app like LMT or something?
Just did the build.prop edit, it did the job fine of making the on screen keys disappear, LMT worked fine too, but there are just too many system FC messages! Not possible to use as it is.
ithehappy said:
Just did the build.prop edit, it did the job fine of making the on screen keys disappear, LMT worked fine too, but there are just too many system FC messages! Not possible to use as it is.
Click to expand...
Click to collapse
Are the FC messages from disabling the nav bar or from the LMT. Sorry if I misunderstood you, I'm just trying to get clarity.
Yamalito said:
Are the FC messages from disabling the nav bar or from the LMT. Sorry if I misunderstood you, I'm just trying to get clarity.
Click to expand...
Click to collapse
Have to be from the missing nav bar because apps look for interactions from those buttons. There has to be a graceful error trapping logic to handle the disappeared buttons. In other words, you can't simply yank them.
Yamalito said:
Are the FC messages from disabling the nav bar or from the LMT. Sorry if I misunderstood you, I'm just trying to get clarity.
Click to expand...
Click to collapse
Nah for that missing nav bar or whatever the hell its called. Adding that line is the reason, not LMT I am sure. But you could try that and see whether the same is happening to as well or not.
I can't wait for Xposed to release for 7.1.1. I don't know whether burn in already happened or not, but mental burn in for me definitely happened in these short three days of usage, other than the fact its an incredibly stupid thing to have on a phone.
ithehappy said:
Nah for that missing nav bar or whatever the hell its called. Adding that line is the reason, not LMT I am sure. But you could try that and see whether the same is happening to as well or not.
I can't wait for Xposed to release for 7.1.1. I don't know whether burn in already happened or not, but mental burn in for me definitely happened in these short three days of usage, other than the fact its an incredibly stupid thing to have on a phone.
Click to expand...
Click to collapse
It's definitely not LMT. I've been using it for a couple weeks now with no problems.
ithehappy said:
I can't take the chance of having a bootlooping phone!
Click to expand...
Click to collapse
If you "can't take the chance of having a bootlooping phone", then you shouldn't be making ANY modifications to your phone. Even if you're using mods that are proven to work, what happens if you make a typo? You're taking the chance of having a bootlooping phone.
spotmark said:
It's definitely not LMT. I've been using it for a couple weeks now with no problems.
If you "can't take the chance of having a bootlooping phone", then you shouldn't be making ANY modifications to your phone. Even if you're using mods that are proven to work, what happens if you make a typo? You're taking the chance of having a bootlooping phone.
Click to expand...
Click to collapse
Thanks for confirming it's not LMT.
Don't agree with you about the latter part. I have been modifying stuffs on all phones I use, simple stuffs, installing this and that Xposed module, testing them, never once I had to face any boot looping issue, ever. Never did edit anything build.prop though.
Thanks for your concern though.

Android 10 Home Gesture Button.

How does one go about removing the grey/white strip background on the home gesture button?? I'd like to have the button but without the white background.
The only solution so far I've come across is using "immersive gestures", which is a Magical module. This requires rooting, though this may be a viable solution I'm looking for another solution which may help me avoid flashing my phone and having to start all over.
ChubsKE said:
How does one go about removing the grey/white strip background on the home gesture button?? I'd like to have the button but without the white background.
The only solution so far I've come across is using "immersive gestures", which is a Magical module. This requires rooting, though this may be a viable solution I'm looking for another solution which may help me avoid flashing my phone and having to start all over.
Click to expand...
Click to collapse
Go to settings - display - navigation bar - toggle full screen gestures on - toggle gesture hints off
finac94 said:
Go to settings - display - navigation bar - toggle full screen gestures on - toggle gesture hints off
Click to expand...
Click to collapse
Thank you for your reply but I don't think you understood my query. I already know how to remove the gesture hints, but I don't want to remove it. I want to remove the background strip behind the gesture.
ChubsKE said:
Thank you for your reply but I don't think you understood my query. I already know how to remove the gesture hints, but I don't want to remove it. I want to remove the background strip behind the gesture.
Click to expand...
Click to collapse
In my case it removes the strip, but I'm not sure if there's another way. Maybe somebody else will know.
finac94 said:
In my case it removes the strip, but I'm not sure if there's another way. Maybe somebody else will know.
Click to expand...
Click to collapse
Thank you, let's wait and see if someone has a solution, if not then I hope the upcoming android 11 will be better than the flawed android 10.

Categories

Resources