[Android Q&A, Help & Troubleshooting] damianmqr:
New LOS 21 and patching script release for the A9/Reader Pro

Presenting a new version of my patching script bringing various functionalities and improvements.

The source code can be found under https://github.com/damianmqr/A9PatchingService/

And the latest release for the patching script itself under https://github.com/damianmqr/A9PatchingService/releases/latest

The release also contains the apk inside the zip if someone wants to just update the app, I'd still recommend updating the whole OS as some features need the native service to be updated to function properly. The name of the repo changed, but the old links should still work. I will try to add more detailed instructions to the repository readme sometime later.

The improvements over the previous version are:

Current Music Preview on AOD

When notification listener permissions are granted to the service (easy way to do so can be found in the e-ink settings Always on Display secton) the AOD will now be able to access the currently playing media and display the album cover, title, artist and a pause symbol depending on the playback state. The album image is adjusted for e-ink before displaying,

More button functionality

The e-ink button can now more freely be assigned different functionalities for single and double press. These include

Clear screen

Open e-ink menu

Pause/Unpause song

Skip song

Simulate back button

Perform AOD action (so far it's only performing a chess move, until more views are available)

Adjust system theme

The system color scheme/accent can be changed directly through the e-ink settings. This was built into the e-ink service so, unlike with RePainter and ColorBlendr, root isn't needed, it is however simpler than these two and less functional.

Add properties to pass rootbeer root check

(needed for example for latest releases of Apple Music)

Enable AOD by default

(should work without the inital reset now, the overlay is also enabled by default but in case it causes issues or you prefer the simple stock clock, it can be disabled in e-ink settings)

E-Ink settings are now installed as an activity, so an icon to access them is added to the home screen in case you unbind button from e-ink menu and still want to make adjustments later.

Miscellaneous fixes and preparation to add alternative views to AOD other than chessboard (ideas appreciated ;)) as well as modularization (separating AOD should be much easier now)

I expect there to be some bugs, there was a lot of changes and it's only me testing and working on this so feedback is always welcome. Please post any issues/suggestions either in the github repo issues or directly here (I prefer the former, it's easier to keep track and doesn't clutter this thread).

The compressed image I use has been uploaded here, it's an older build by AndyYan patched with the newest patching script. For those already running LOS21 by AndyYan you should be able to just flash with "fastboot flash system /path/to/system.img" and then "fastboot reboot" without wiping user data, but I strongly suggest a backup anyway. Otherwise, if you're coming from a different OS you need to also wipe user partition with "fastboot -w" before rebooting so a backup is definitely necessary.

More features to hopefully come later (no ETA)

Fix vibration (would need to check the original OS)

Try overlayfs for better yellow brightness management

Add more functional widgets for the AOD in place of the chess widget

Fix music background sometimes getting out-of-sync (right now it will fix itself when song passes or you pause/resume it, doesn't happen that often anyway) fixed in new app version

As always, no warranties of any kind are provided, the license is available in the repo (it's MIT on all the code I have written for this project).

Want to support further development? Consider getting me a coffee at https://ko-fi.com/damianmqr or posting feature suggestions and bug reports here or on the repo issues page!