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

Android support #11

Open
Be-ing opened this issue Jan 18, 2022 · 2 comments
Open

Android support #11

Be-ing opened this issue Jan 18, 2022 · 2 comments

Comments

@Be-ing
Copy link
Collaborator

Be-ing commented Jan 18, 2022

https://developer.android.com/guide/topics/ui/look-and-feel/darktheme

@Rudxain
Copy link

Rudxain commented Jan 10, 2025

The "easiest" (hacky) way, to avoid linking to the SDK/NDK (or any similar sort of quasi-proprietary bullsh-), is to run a command:

cmd uimode night

It works worked unmodified on LL-AM (no ADB shell UID, no root). It seems to be a restriction of Android 13 or 14, as it worked on previous versions.

It also stopped working on Termux:

  • I used Termux' own cmd "overload" to no avail
  • I tried Android's official /system/bin/cmd which requires this hack, but even that was rejected by the UiModeManagerService. See here for the script I ran

There's also:

settings get secure ui_night_mode

But it requires adb shell privileges on (almost?) all versions

@Be-ing
Copy link
Collaborator Author

Be-ing commented Jan 10, 2025

Contributions welcome.

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

No branches or pull requests

2 participants