Sorry for the delay - I don't think overriding the power button like this is possible as far as I know.
Last edit: Mark 2021-02-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-02-16
You would need the highest level of access in the Android OS, to block the default programming of the button. The best you can do is find a phone with a programmable button or dedicated camera button. Unfortunately, those are rare designs these days, as the Galaxy/iPhone design has become the industry template for smartphones. Kyocera and some other lesser known companies still offer it on their devices, but you can't really get them unless you go looking. .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-07-15
On LineageOS, there's lineage.permission.PREVENT_POWER_KEY permission. Would it be possible to make a signed release at least for it? I think patch shall be as simple as:
Is there any way to make the power button take pictures?
That way you could use the volume buttons for zooming.
Taken together that arangement would be a very useful.
Last edit: Smokey JoJo 2021-01-13
Bump! Anyone have any feedback on how to do this or shoud it be a feature request for Mark to conisder? Thanks for any info.
Sorry for the delay - I don't think overriding the power button like this is possible as far as I know.
Last edit: Mark 2021-02-08
You would need the highest level of access in the Android OS, to block the default programming of the button. The best you can do is find a phone with a programmable button or dedicated camera button. Unfortunately, those are rare designs these days, as the Galaxy/iPhone design has become the industry template for smartphones. Kyocera and some other lesser known companies still offer it on their devices, but you can't really get them unless you go looking. .
On LineageOS, there's
lineage.permission.PREVENT_POWER_KEY
permission. Would it be possible to make a signed release at least for it? I think patch shall be as simple as: