Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #70. Adds an experimental, opt-in ADB workaround for the Android wallpaper restriction reported with Lawnchair. This is a standalone source-checkout helper, not a new application UI control or an automatic installer change.
Android exposes two relevant UserManager restrictions:
These can clear base restrictions when the device supports the command and grants the ADB shell sufficient permission. They do not override a separate device/profile-owner policy and cannot restore an omitted wallpaper service. The helper checks those conditions rather than treating an exit-code-zero command as proof of a fix.
Changes
tool/repair_wallpaper.py: standard-library-only Python 3.10+ diagnostics; read-only by default.--applyclears only detected base wallpaper flags, and--open-pickerrequestsandroid.intent.action.SET_WALLPAPERonly after a verified-clear result.docs/wallpaper-troubleshooting.md: manual commands, limitations, rollback guidance, privacy notes for diagnostic output, Android/AOSP references, and device-validation steps.tool/tests/test_*.pydiscovery.Validation performed
python -m unittest discover -s tool/tests -p 'test_repair_wallpaper.py' -v— 35 tests.--helpsmoke check.Required hardware validation before declaring #70 resolved
--apply --open-picker; confirm a custom image actually applies in Lawnchair.Keeping this PR in draft and using
Refs #70rather than an auto-closing keyword because the reported tablet has not yet been hardware-tested.Usage
Use
--adb /path/to/adbfor an ADB executable outside PATH; Windows users can usepy -3.