hemlockiv Btw, check out the username of the last person who commented in that forum thread ;)
haha. That's hilarious. I should probably check who participated in a thread I link before doing so.
hemlockiv Reading a secure setting doesn't require any elevated permission, though.
Interesting. I guess I just read "secure" and figured nothing had access to it. I never tried to access a secure setting from anything I've written. Another hilarious thing. You'd expect I would have known this since it's right there in the documentation, right at the top of the page. This is why I like this forum, can always learn something new from the community, or when someone asks a weird question and I start digging.
hemlockiv If you have a second, I'd actually really appreciate if you ran settings put secure camera_double_twist_to_flip_enabled 1; settings get secure camera_double_twist_to_flip_enabled and see what the output is.
Worked for me.
oriole:/ $ settings put secure camera_double_twist_to_flip_enabled 1
oriole:/ $ settings get secure camera_double_twist_to_flip_enabled
1
hemlockiv It doesn't appear to be a simple enableTwistToFlip = true kind of thing.
I suppose so. My goal in posting here was to hope that it was that simple of a thing, lol.
Uh. So I dismissed it as a possibility, but since I learned something new, I went ahead and tried GCam after setting this, and it works. My camera flips when camera_double_twist_to_flip_enabled
is set to 1
and doesn't flip when set to 0
. It does appear to be as easy as setting something to true
. This makes the Settings code I was reading make a LOT more sense than it did previously.
Don't know why yours isn't working still. Maybe try adding --user [user id]
to your command if using another user? Because check this out:
oriole:/ $ settings put secure camera_double_twist_to_flip_enabled 1
oriole:/ $ settings get secure --user 11 camera_double_twist_to_flip_enabled
null
oriole:/ $ settings get secure --user 10 camera_double_twist_to_flip_enabled
1
btw, I did add --user 10
to enable before, but never did that for user 11. User 11 really is an enabled user on my phone.