yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] dferreira:
AndyYan are a build of LineageOS, that cherry-picks TrebleDroid patches that work with LineageOS GSI images. They are not "official" LineageOS builds if that's what is confusing you. They are provided as is by AndyYan. My build uses AndyYan source and I made changes to add the eink service as a system service + Eink Center app, plus some system.prop changes that were added to Lineage GSI device so the screen resolution is set by default. If you install AndyYan image directly, you'll get a tablet UI for some odd reason on our devices. So updates to my Eink'ed LineageOS 20 will come from me, and you can flash the system.img and leave userdata intact whenever there is a new release.

sperhoooo's LineageOS 21 would work the same for most part. At some point, we could just focus on the latest version of LineageOS 21 and we could just add the system service to his build. I think he's not building from source, but extracting and repacking AndyYan's builds which has its limitations. For example, I edited SurfaceFlinger to disable hw overlays by default, which allows us to see the boot animation as the device boots. And I added the eink service to services that boots together with the device. I don't think extracting and repacking the build will allow us to do that. So we could just build AndyYan's LineageOS 21 GSI from source, make the changes we need and release it, independently of AndyYan's non-einked images.

Right now, I've been using LineageOS 20 simply because that's what was available when I started this investigation. I still want to enable ambient display support ootb (it's native to LineageOS, we just need to set a config overlay), night light to work natively with the OS when we enable it from Settings > Display, USB-C OTG enabled, and pre-install IMS network. Some folks want a Googless build, so that's another build I can generate once I figure out these missing pieces.
[Android Q&A, Help & Troubleshooting] zxczxc4:
Thank you, very much appreciated!

Yep I'm waiting for a google free version of your build - no rush.

We can install microg easily now in LineageOS, they finally adding signature spoofing (specifically only for microg, nothing else)
[Android Q&A, Help & Troubleshooting] artelse:
Following this thread for a while now, great progress! I'll wait a little longer for the Googless build :D Keep up the good work!
[Android Q&A, Help & Troubleshooting] artelse:
Other question, has anyone replaced the standard shiny screen protector with a matt version?
[Android Q&A, Help & Troubleshooting] kevkiid:
Mine came with matte
[Android Q&A, Help & Troubleshooting] artelse:
This hopefully shows the difference between the A9 and A5 protector. The A5 has a much more paper feel than the A9.
[Android Q&A, Help & Troubleshooting] biodbl:
A cool function of the stock rom was “slide one page”. As a result, the screen did not scroll like on any Android, but the first page transformed into the second, as if the user had scrolled the entire page. This applies to several applications, for example: file manager, browser, settings. It would be cool to have this function on the eink screen. What do you think?
[Android Q&A, Help & Troubleshooting] biodbl:
In this photo you can clearly see the difference in reflection. Mine is the same as your a9, but I tilt the screen a little if the reflection appears. Is this A5 film available on Aliexpress?
[Android Q&A, Help & Troubleshooting] artelse:
Don't remember where I bought it, but make is Brotect Airglass matte. I see on Amazon fr, they offer one for the A9. As this is more matte, the screen might become a little less sharp. I also like the anti-fingerprint of the screen protector.

Edit: also on eBay for ~6eu.
[Android Q&A, Help & Troubleshooting] dferreira:
Eink Center v1.3

- Fixed a bug where OS dialogs would cause the service to crash because they don't come from an app package

- Improved UI for Eink Center by adding app names

- Fixed a bug where we could not set the speed of Eink Center itself
[Android Q&A, Help & Troubleshooting] dferreira:
I think we can do that with the accessibility service ☺️
[Android Q&A, Help & Troubleshooting] jixbo:
Awesome work dferreira!!

Just got the phone yesterday, and wasn't expecing this, and it works really well already!! Congrats.

Unfortunately didn't manage to make the eink center work. It shows disabled for my security in accessibility settings, tried original version and 1.3. Manage to set it to "on" after enabling "allow restricted settings", but the list of apps in the eink center was empty. So I uninstall updates, and the option "allow restricted settings" is gone.

Any suggestions? Thanks
[Android Q&A, Help & Troubleshooting] ferlanero:
You have to stop app in "settings - Manage apps" to came "Allow restricted settings" back
[Android Q&A, Help & Troubleshooting] dferreira:
I just realized 1.3 has a new bug :) the overlay is created by Eink Center so whatever option we pick goes to it instead of the previous app. Use 1.2 for now. I'll fix it today.

To get the allow restricted settings, you need to stop the Eink Center app so you can change it 😉
[Android Q&A, Help & Troubleshooting] zxczxc4:
I said I'd wait for your release with no gapps, but have tried it out anyway and it's great!

One thing about Eink Center, probably a good idea if we can remove/delete an app from the list too.

(Not sure if an entry is removed if it detects an app has been uninstalled etc)

Additionally, has anyone encountered issues with back gestures not working?

I've change the navigation to gesture based, and I think back gestures were working -- but not anywore.

I've changed the sensitivity etc, didn't make a difference.

It's a shame LOS has no theme engine, it would be good to make the UI more pure black and white (instead of light not true white, and dark not true black).

I'll test around with cf.lumen, see if I can use that to alter the contrast or boost the gamma(?) and see if that makes things look cleaner.

- edit - I don't recommend testing out cf.lumen, screen got weird and I had to reboot / uninstall, thankfully I could do that via adb!

and fixed the back gestures by switching back to the navigation bar, rebooting, and switching back to gesture navigation :)
[Android Q&A, Help & Troubleshooting] artelse:
Another idea about the speed settings per app, no experience yet, but it would be great if it would just remember the manual speed setting while operating an app. (I think Hisense does this as well.)

Regarding the UI, as @zxczxc4 just mentioned, it would be great if we could get a good graphic black and white theme enabled. That way, like the original rom, an e-ink screen really shines.
[Android Q&A, Help & Troubleshooting] damianmqr:
Presenting new release of my patching script and accessibility service for A9

Now the native service implements access to more relevant functionalities so there probably won't be a need to reflash as much for the future updates.

The release to patch an image yourself is under https://github.com/damianmqr/a9_accessibility_service/releases/latest

And a new system image for LineagOS 21 with GApps is here https://mega.nz/file/ErdhQQCS#FU0H1DDp24veo97_Th-VWjL6vHbT5baaziCfN_U0v0E

I've added support for Always On Display I designed to be similar to stock, below video demonstrates all of the experimental features added. These are:

Always On Display overlay with custom background image support and battery/connectivity indicators

A mode for AOD for Chess enthusiasts like myself :) Once enabled it will display a random game from a large database stored in the app and make a move every minute, or when eink button is double pressed.

A slider can be enabled for display temperature instead of a switch

The PHH setting to enable AOD is now set by default, but you will have to restart the device once after setup for it to actually take effect.

DISCLAIMER OF WARRANTY

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement.
[Android Q&A, Help & Troubleshooting] treff89:
Wow. This is awesome, creative people truly realising the potential of this hardware!
[Android Q&A, Help & Troubleshooting] ferlanero:
It looks incredible! Is double touch to wake possible on the lock screen? It would be a very interesting option to extend life of the power on button. Anyway (y)(y)
[Android Q&A, Help & Troubleshooting] damianmqr:
Thanks! As for the double tap to wake I think it would have to be enabled through hardware overlay somehow or directly through a kernel file, it isn't AOD specific. Lineage doesn't allow software implementations of DT2W because it would be very battery hungry.

I've tried writing to "/sys/devices/platform/soc/4a88000.i2c/i2c-2/2-004b/wakeup_mode" to enable it but with no luck (neither with stock AOD nor the overlay) so maybe someone else has an idea what stock uses for this feature.
[Android Q&A, Help & Troubleshooting] vbhai:
Wow, this chess AOD looks amazing!!! I am going to give this a shot. Does this also contain the overlay I had compiled for the Hisense which enables auto brightness, etc?
[Android Q&A, Help & Troubleshooting] damianmqr:
Thanks! Yes it does have the overlay so auto brightness should work (and thanks for figuring out how to run stuff as root in init.rc).

The battery saving mode also works but it unfortunately disables AOD when it's on.

I think I'll add automatically clearing the screen when AOD is opened because rn it gets a bit of ghosting and maybe uploading your own PGN games to it, it would just be an apk update so no need to reflash.
[Android Q&A, Help & Troubleshooting] vbhai:
Awesome! Just flashing it now and checking how it goes. The display working out of the box is great!

I had also pushed some changes for the Treble app which enabled settings required for the Hisense. I wonder if those get enabled out of the box once you connect to the internet. Just checking now.
[Android Q&A, Help & Troubleshooting] jixbo:
Didn't work for me, moved back to 1.2, cleared data, restarted...
[Android Q&A, Help & Troubleshooting] jixbo:
Awesome @sperhoooo , already have it in my phone and that chess lock screen looks amazing!!

Hope is not too distracting

Many thanks to everyone for making this the most fun device in 10+ years
[Android Q&A, Help & Troubleshooting] treff89:
I presume there's no GravityBox for the GSI ROMs.

One feature I will really miss is the ability to change the software nav buttons to custom functions.

In particular, holding down the back button for 1 second to kill the foreground application.

Is there anything that could perform a similar "kill" on holding the back button for LOS 20/21?
[Android Q&A, Help & Troubleshooting] biodbl:
Go to Setings/system/buttons/ there is an option to custom functions of the nav bar buttons
[Android Q&A, Help & Troubleshooting] ferlanero:
Mother of God! Battery in @dferreira LOS 20 has lasted 3 full days with a normal use of the phone 😳
[Android Q&A, Help & Troubleshooting] vbhai:
@sperhoooo Tried your ROM. Anyone having trouble with the vibration on the phone not working as expected? When the phone is supposed to vibrate, it makes a weird distorted sound and a very feeble vibration.

Giving @dferreira Lineage a shot.

EDIT: Can confirm that vibration is busted on the Hisense with the GSIs. Tried Lineage 19, @dferreira build of 20, and lineage 21 and it didn’t work.

I am surprised no one has pointed it out till now 😅

Overlay is not the problem since @dferreira build doesn’t have the overlay I wrote.
[Android Q&A, Help & Troubleshooting] damianmqr:
I do have that issue with vibration as well, it seems to be the same intensity as haptic feedback which is weird. Not sure what can be done about this but I don't think it's specific to my ROM but rather lineage GSI itself.

I can try to make a build variant that makes the service only act as AOD, stripping away the other functionality, so it can be used with LOS 20 by @dferreira while still relying on his EInk Center app for everything else
[Android Q&A, Help & Troubleshooting] vbhai:
That would be neat. @dferreira build doesn’t have the overlay for brightness either.

Also, vibration is an issue. Needs to be resolved. Will look into how to do this. But it is definitely an issue with the GSIs. Don’t think the device can be daily driven without vibration.
[Android Q&A, Help & Troubleshooting] dferreira:
https://www.reddit.com/r/LineageOS/s/id8OXVKhQq

Seems that this vibration intensity is something that is missing on LineageOS or we are missing some prop override 🤔 otherwise, I think we can create a workaround by adding our own vibration handler when a phone call comes through perhaps? Vibrator motor is accessible programmatically afaik.
[Android Q&A, Help & Troubleshooting] dferreira:
I'll add the overlay on the next build. Last time I added it, I was messing with props and somehow the whole screen became really sloppy and slow and I assumed it was the overlay. I wonder if there is a way to just install the overlay .APK and see if it works 🤔
[Android Q&A, Help & Troubleshooting] vbhai:
Yeah, @AndyYan created a vibration HAL for the Meizu. The same issue we’re facing.

EDIT: Link the GitHub issue https://github.com/phhusson/treble_experimentations/issues/1891
[Android Q&A, Help & Troubleshooting] ferlanero:
Yes, please!
[Android Q&A, Help & Troubleshooting] dferreira:
That would be awesome. And I can make the Eink Center app functionally without the overlay for LOS 21 😎
[Android Q&A, Help & Troubleshooting] dferreira:
@sperhoooo I'll expose a broadcast you can use on your overlay to add an app and speed to Eink Center app. So you can use your overlay for setting the speed and it will save it on Eink Center. Then Eink Center will send you a broadcast of what speed should be used for a given app so you can set the speed automatically when people move across apps from your accessibility service. Sounds good?
[Android Q&A, Help & Troubleshooting] damianmqr:
Sounds great!

But no rush, I'll probably have to take a few days break from working on A9 to take care of some other things :)
[Android Q&A, Help & Troubleshooting] treff89:
On stock,

HLTE556N:/ # settings list global | grep vib

vibrate_level_value=0x48
[Android Q&A, Help & Troubleshooting] treff89:
Try ./adb shell settings put global vibrate_level_value 0x48

Unlikely it's exposed but we may get lucky
[Android Q&A, Help & Troubleshooting] vbhai:
Legend! That worked! Vibration working perfectly now!
[Android Q&A, Help & Troubleshooting] vbhai:
@sperhoooo Your overlay is fantastic. Absolutely loving the chess AOD setup! You keeping tabs on the candidates?

Was wondering if it is possible to add a counter for notifications? Would love to see from the AOD if there are any WhatsApp texts or texts.
[Android Q&A, Help & Troubleshooting] treff89:
Is there the ability to show full notifications on the AOD of these Lineage ROMs?

If so, I might switch today
[Android Q&A, Help & Troubleshooting] damianmqr:
No notifications on the AOD yet, It's something that I'd definitely like to add soon-ish

Somewhat, I'll have to catch up a bit on what's been going on
[Android Q&A, Help & Troubleshooting] dferreira:
I have been testing 1.4 of Eink Center and it's working great now - no crashes. I'll add these new broadcasts and make a release so you can test it before your next release. I'll do Android SDK check to ignore showing the overlay on LOS21 so it doesn't interfere with yours. For LOS20 it will show the overlay.
[Android Q&A, Help & Troubleshooting] dferreira:
On LOS20, the screen refreshes when we get a notification and stays visible. I don't have yet enabled AOD on LineageOS but will do now so we get LOS Ambient Display working too.
[Android Q&A, Help & Troubleshooting] jixbo:
My main issues after one day whith lineage 21 is that I lost 4g, I've got only 3g. Any ideas?

I've also noticed telegram calls are unusable because they hear me with echo.

And on normal phone calls, screen brightness doesn't go away 😅

Anyone else facing this issues?
[Android Q&A, Help & Troubleshooting] vbhai:
Go to treble settings and install the IMS APK.

By default, the network mode is set to 3G on the GSI ROMs, change that to LTE in mobile network settings.

Don’t know about the echo. @bigwigs also mentioned that but personally never faced this issue. Make sure that the audio settings are correctly set in the treble settings, try using alternative audio settings in the treble settings.

Also, are you using the Lineage 21 ROM that @sperhoooo uoloaded?
[Android Q&A, Help & Troubleshooting] jixbo:
Thanks! Got 4g working now.

Yeah I'm using @sperhoooo lineage 21!

I'll experiment a bit with the audio and report back, thanks
[Android Q&A, Help & Troubleshooting] dferreira:
That's odd. The proximity sensor is not working on LOS21? 🤔 Done a few calls on LOS20 and the screen turns off when I place it next to my ear 🤔
[Android Q&A, Help & Troubleshooting] damianmqr:
The sensor is working, it's just an issue with how the accessibility service handles screen brightness.

Are you using the slider from experimental settings or have you set the toggle to yellow light?

I'll probably have to add a fix to detect screen dimming somehow, but for now you can see if it works fine if you disable the slider and set the backlight color to regular white (so you should see the switch in the pop up menu with a sun icon), then system should be fully controlling the brightness and at it should work fine :)
[Android Q&A, Help & Troubleshooting] damianmqr:
Small update and last one I'll make before a break unless some major bug pops up. Notifications can be enabled and icons will show up under the clock, it's not perfect since it uses application icons instead of notification icons and there isn't a limit to how many notifications can be displayed but it's better than nothing for now and you should be able to tell you have new messages.

To update just install the apk, I'd suggest using adb install command, but you'll probably have to enable the service in accessibility settings (or restart the device and it should get enabled automatically)

Once installed there is an option in eink popup settings that allows you to grant notification permissions, once they are granted the notifications in AOD should work.

They can be disabled just by removing that permission the same way.
[Android Q&A, Help & Troubleshooting] dferreira:
30h20 minutes, 23h14 minutes to go. Connected to 4G, WiFi at home, regular phone usage, notifications etc 😎😁
[Android Q&A, Help & Troubleshooting] bigwigs:
I didn’t have echo issue , it was issue where first call had to go through Bluetooth headset or connected headset for other person to hear me. Initially other person couldn’t hear me.

Echo issue was faced by someone else. They had issue even with stock rom after unlocking boatloader and rooting phone, I believe.
[Android Q&A, Help & Troubleshooting] dferreira:
Tried this on LOS20 and it didn't make a difference :-/
[Android Q&A, Help & Troubleshooting] dferreira:
I've added a new receiver for Eink Center 1.4 (I'm about to publish it) that @sperhoooo can use to add an app to Eink Center. Speed is one of :

CLEAR(515),
BALANCED(513),
SMOOTH(518),
FAST(521),

val intent = Intent("com.hisense.einkservice.ACTION_NEW_APP")
intent.putExtra("packageName", "your.package.name")
intent.putExtra("speed", 513)
context.sendBroadcast(intent)
[Android Q&A, Help & Troubleshooting] dferreira:
Eink Center v1.4

- now possible to install with LOS21 for @sperhoooo - pending integration from the accessibility service to add new apps from the overlay on clicks. I'm ignoring button presses on Eink Center accessibility for LOS21 so his accessibility service will handle that to show the overlay. I've simplified the integration in which all you need to do is add the app to Eink Center. Eink Center will restore the speed automatically for that app as you move between apps :)

- improved the amount of refreshes we see by only setting a speed if it actually changed

- fixed bug when loading package info of a system component (there is no package info :D)

it's also now uploaded to GitHub:

Releases · denzilferreira/vendor_hisense

LineageOS vendor folder for Hisense A9. Contribute to denzilferreira/vendor_hisense development by creating an account on GitHub.

github.com
[Android Q&A, Help & Troubleshooting] vbhai:
I had this working but then I changed some audio related setting in treble settings and it bugged out on me again. If I run the command again, it works for a wee bit and then again bugs out.
[Android Q&A, Help & Troubleshooting] ferlanero:
Seems like the broadcast receiver for integration with reader apps or Tasker: "com.hisense.einkservice.EinkClearReceiver" has been lost in v.1.4 :/
[Android Q&A, Help & Troubleshooting] dferreira:
It is there, I just moved it to broadcasts:

com.hisense.einkservice.broadcasts.EinkClearReceiver
[Android Q&A, Help & Troubleshooting] dferreira:
I'll try to fix it on the app level by changing the vibrator motor when a call comes in.
[Android Q&A, Help & Troubleshooting] vbhai:
You’d have to do that for notifications as well. But this is not a viable solution. Vibration needs to be fixed at the system level.
[Android Q&A, Help & Troubleshooting] dferreira:
Yeah, totally 💯. Maybe something we can see if we can figure out from Meizu fix.
[Android Q&A, Help & Troubleshooting] idonotbelonghere:
Just installed 1.4 on LOS20 and single press refresh doesn't seem reliable.

Double press and long press works every time so I don't think it's my button failing.

Side question: Do apps with no speed set use a default speed or the current speed when they're opened?
[Android Q&A, Help & Troubleshooting] dferreira:
Single press works, it's a matter of how quick you press. Shorter the better 😉 apps without speed use what the current speed is.
[Android Q&A, Help & Troubleshooting] einkys:
Thanks @dferreira for the hard work. Can I use your LOS build for my Hisense Hi Reader Pro? I am succesfully running a unlocked rooted version of the stock ROM. Thanks!
[Android Q&A, Help & Troubleshooting] dferreira:
Make sure to backup system partition before flashing this. I don't have that device so I'm not sure how well will it work!
[Android Q&A, Help & Troubleshooting] damianmqr:
I use my patched lineages OS on a HRP so I assume you can use @dferreira's LOS 20 as well,

You should be able to just use an EDL backup for A9 to restore HRP if anything goes wrong but I agree it's a good idea to still have your own backup
[Android Q&A, Help & Troubleshooting] einkys:
Thanks Both - can confirm @dferreira 's build works on the Hireader Pro. I will try @sperhoooo 's soon.

Any suggestions on the best way to get google apps working ?
[Android Q&A, Help & Troubleshooting] dferreira:
Go to Settings > Treble Settings and enable Spoof system properties and reboot. Then long press the Play Store, Clear Storage and re-open it. Should be ok then. Make sure to install Eink Centers 1.4!
[Android Q&A, Help & Troubleshooting] einkys:
Thanks @dferreira ! I have just installed the latest eink centre but I am just getting the Welcome message, but not seeing any apps! I have enabled the accessability settings.

Very much appreciate the work here - I will donate in the next few days!

Sorry I have just found the original post and understand how to use the app now!
[Android Q&A, Help & Troubleshooting] zxczxc4:
Is it possible to make it so apps that have no speed set, use a configured global "default" speed instead?

(And not use the previous app's speed)

Seems like a better idea to me, but that might just be my opinion :D

It would enable us to have the entire phone in "fast mode", but have an ebook reader app be "clear" - and not have every app use the "clear" setting after reading a book.

Appreciate all of the hard work!