[MOD] [Magisk Module] Enable Double Click Camera in India and Wifi auto turn on

anirudhnyg

Senior Member
Jan 17, 2011
810
294
83
Bangalore

Attachments

Last edited:

koolkunz

Senior Member
May 13, 2013
908
1,271
0
thank you !!! was desperate to get double tap power button for camera back ..the wifi setting is cherry on top
edit: installed it and both the things are working :good:
 
Last edited:

Vz97

Senior Member
Nov 29, 2015
158
30
48
Hi Everyone !

This Magisk Module enables the Quick capture when the devices connected to an Indian network ( Double click power button to launch camera) and turn on Wifi automatically feature from Pixel Devices.

Download:
https://forum.xda-developers.com/attachment.php?attachmentid=4575601&stc=1&d=1534657935

Thanks:
@kashyapha1994 for emergencyaffordanceservice disable.
XDA for Turn On Wifi automatically
@topjohnwu for Magisk !
How did you make it completely black? The whole UI
 

anirudhnyg

Senior Member
Jan 17, 2011
810
294
83
Bangalore
Not working on oos 5.1.11 with magisk 16.0
I am using it on 5.1.11, works well. There must be some mod that is interrupting the command that is being run by this module at boot.

Can you try booting with just this module enabled and see if it works ?

PS: try the updated version in OP
 
Last edited:

prins29

Senior Member
Oct 27, 2015
169
90
48
Vadodara
I am using it on 5.1.11, works well. There must be some mod that is interrupting the command that is being run by this module at boot.

Can you try booting with just this module enabled and see if it works ?
Didn't work. With this only module enabled. And will try to pick the logs why this didn't work .

Tried with updated version too.
 

Attachments

Mar 9, 2014
18
2
0
Jaipur
Double tap power button for camera not working!!

Turn on wifi automatically is working, but the main reason I wanted this module is for the double tap power button to open camera is NOT working...

On OP5 oos 5.1.4

Plz help
 

anirudhnyg

Senior Member
Jan 17, 2011
810
294
83
Bangalore
Turn on wifi automatically is working, but the main reason I wanted this module is for the double tap power button to open camera is NOT working...

On OP5 oos 5.1.4

Plz help
Can you try the below steps and share the output ?

Step 1. connect via adb shell
Step 2. Enter the following command without quotes:
"settings put global emergency_affordance_needed 0"
Step 3. Double click power button
 
  • Like
Reactions: pratyush28

poythegreat

Member
Jan 30, 2012
35
11
0
Can you try the below steps and share the output ?

Step 1. connect via adb shell
Step 2. Enter the following command without quotes:
"settings put global emergency_affordance_needed 0"
Step 3. Double click power button
Hi, another OP5T user here. Installing Magisk module did not enable DT2Camera for me as well.

Trying above three steps did make it work though, which means there has to be something different in OP5T for the module to work.

Thanks for the great work BTW :highfive:
 
Mar 9, 2014
18
2
0
Jaipur
Can you try the below steps and share the output ?

Step 1. connect via adb shell
Step 2. Enter the following command without quotes:
"settings put global emergency_affordance_needed 0"
Step 3. Double click power button
Hey!
Tha ks for your reply,
I tried this, but it didn't worked.

OnePlus5:/ $ settings put global emergency_affordance_needed 0
cmd: Failure calling service settings: Failed transaction (2147483646)
2|OnePlus5:/ $


Do note: as my laptop isn't working right now, I have used terminal emulator on phone itself.
Kindly help!!
Thx
 

tom.vipin

Member
Dec 28, 2010
23
8
23
Hey!
Tha ks for your reply,
I tried this, but it didn't worked.

OnePlus5:/ $ settings put global emergency_affordance_needed 0
cmd: Failure calling service settings: Failed transaction (2147483646)
2|OnePlus5:/ $


Do note: as my laptop isn't working right now, I have used terminal emulator on phone itself.
Kindly help!!
Thx
I think you would need root to set that permission on device. Run su before the command you tried above