Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] one handed mode support #5176

Open
ohshazbot opened this issue Jan 16, 2025 · 3 comments
Open

[FEATURE] one handed mode support #5176

ohshazbot opened this issue Jan 16, 2025 · 3 comments

Comments

@ohshazbot
Copy link

Describe the feature

Android has support for a one handed mode. I decided to try it out but was met with this error:

Lawnchair bug report Jan 16, 2025 10:53:41
version: 14.Beta 3 (14000203)
commit: 6f4a812
build.brand: google
build.device: caiman
build.display: AP4A.241205.013.C1
build.fingerprint: google/caiman/caiman:15/AP4A.241205.013.C1/12657666:user/release-keys
build.hardware: caiman
build.id: AP4A.241205.013.C1
build.manufacturer: Google
build.model: Pixel 9 Pro
build.security.level: 2024-12-05
build.product: caiman
build.type: user
version.codename: REL
version.incremental: 12657666
version.release: 15
version.sdk_int: 35
display.density_dpi: 360
isRecentsEnabled: false

error: Uncaught exception

java.lang.SecurityException: Settings key: <one_handed_mode_enabled> is not readable. From S+, settings keys annotated with @hide are restricted to system_server and system apps only, unless they are annotated with @Readable.
	at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:3553)
	at android.provider.Settings$Secure.getStringForUser(Settings.java:7012)
	at android.provider.Settings$Secure.getIntForUser(Settings.java:7212)
	at android.provider.Settings$Secure.getInt(Settings.java:7206)
	at com.android.launcher3.util.SettingsCache.updateValue(Unknown Source:30)
	at com.android.launcher3.util.SettingsCache.onChange(Unknown Source:1)
	at android.database.ContentObserver.onChange(ContentObserver.java:184)
	at android.database.ContentObserver.onChange(ContentObserver.java:202)
	at android.database.ContentObserver.onChange(ContentObserver.java:238)
	at android.database.ContentObserver.lambda$dispatchChange$1(ContentObserver.java:332)
	at android.database.ContentObserver.$r8$lambda$_30FqRqKC3pUku8T3BsVPQAFotM(Unknown Source:0)
	at android.database.ContentObserver$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
	at android.os.Handler.handleCallback(Handler.java:991)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8787)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)

Why would it be useful to add?

It's part of general Android (I think? Maybe pixel specific) and should probably be supported

Did the feature exist in Lawnchair v2? (Play Store version)

No

Example(s)

Accessible via settings->system->gestures->one-handed mode

Additional context

No response

@TheRedCyclops
Copy link

It seems to be working for me running on LineageOS 22.1, so it seems to be device or setup specific

@An-Eagle
Copy link

I get this issue running android 15 QPR beta 2 on pixel 6

@ohshazbot
Copy link
Author

ohshazbot commented Jan 17, 2025

This is on the vanilla OS, Android 15 on a Pixel 9 pro, with both the December and January Android security update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants