yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] CatZem:
Thanks
[Android Q&A, Help & Troubleshooting] kevkiid:
A bit off topic but new to lineage on an eink device. What’s the best way to get white screen when putting phone to sleep? I’m too used to the ink OS white themes so just trying to sort aesthetics but this build is rock solid so far!
[Android Q&A, Help & Troubleshooting] damianmqr:
If you want to use Lineage OS 21 I'd really suggest patching your own td system.img from https://sourceforge.net/projects/andyyan-gsi/files/ using the patching script I made with instructions here https://github.com/damianmqr/a9_accessibility_service instead of flashing the initial repack by @vbhai with the older version of the accessibility service

That is because it doesn't require root anymore relying instead on a native service I wrote with unix domain sockets, the style and capabilities of the accessibility app have been improved and on top of that it patches the TrebleApp to make setup work out of the box by disabling hw overlays, so you don't have to mirror your screen.

I'm also re-posting the image I've been using for the last few days here in case anyone missed it if you don't want to run the patch script yourself

1.09 GB file on MEGA

mega.nz

So far no crashes, per-app refresh modes and automatic brightness work well, it even supports swapping between yellow and white light.

The accessibility app is also updatable without reflashing, so more functionality can be added along the way with ease.
[Android Q&A, Help & Troubleshooting] Homerzinho:
@dferreira , thanks for your work. Are there anyway we can contribute financially or buy you a beer?

--

Now, a little question:

I tried but couldn't find anyway to change the light temperature. Am I missing something or we don't have that option for now?
[Android Q&A, Help & Troubleshooting] dferreira:
Thanks! You can send some ADA to the address on my signature 😉

Light temperature will come on a future app update! On my todo!
[Android Q&A, Help & Troubleshooting] kevkiid:
Giving your build a go but before i did this I thought I had bricked my phone. Managed to get it back but the only thing I don't see out of the gate is wifi. Any idea what I did?

Edit: I used a bad boot.img file that aliexpress vendor gave me. Issue solved.
[Android Q&A, Help & Troubleshooting] damianmqr:
You mean your wifi/bluetooth doesn't work?

It doesn't seem to be ROM specific and my guess is kernel gets corrupt somehow when flashing the GSI too many times (weird, but it happened 3 times to me already when flashing different images to try them, first time just with the stock LOS, maybe someone else might have a better idea why it happens)

What I had to do was follow this

https://www.reddit.com/r/eink/comments/16tpr96
under the section in FAQ Q: Things have gone terribly wrong. How do I get back to stock after bricking my phone?

If you have still have access to adb you might be able to do it without an EDL cable by running "adb reboot edl" instead of step 5 in that guide. Once you went through all the steps in that section you will be back to stock ROM and you can flash whatever image you want again and your WiFi should be fixed.

Also, after you're back to stock you might have to update the OS from settings a few times and flash vbmeta.img again.
[Android Q&A, Help & Troubleshooting] damianmqr:
This post by @dferreira might also be useful to more quickly restore in the future if flashing a new image breaks the kernel.
[Android Q&A, Help & Troubleshooting] kevkiid:
Thanks for this. Boot.img was the culprit.
[Android Q&A, Help & Troubleshooting] damianmqr:
I'm glad you got it working.

For me just reflashing boot.img didn't work unfortunately, so I find it useful to always have an edl backup at hand anyway.
[Android Q&A, Help & Troubleshooting] ferlanero:
I was in Oulu with an Erasmus+ program in 2019. I have beautiful memories and best friends in that city :) And now the porter on my current phone is there too
[Android Q&A, Help & Troubleshooting] kevkiid:
If I were to take this route what’s the best way to restore when it’s not a single img file?
[Android Q&A, Help & Troubleshooting] dferreira:
I’ve been here 12 years, and I was teaching Mobile Computing if it happened you took that class 😉
[Android Q&A, Help & Troubleshooting] damianmqr:
The files on the google drive are for use with qfil, you flash it how it's described here and in the reddit post
[Android Q&A, Help & Troubleshooting] kevkiid:
Amazing thanks. This thread is getting crazy long. I feel like a separate forum almost is needed for this project 😂
[Android Q&A, Help & Troubleshooting] dferreira:
Problem is Hisense is not popular outside China. Onyx is doing a better job at marketing themselves to European and US, however they are also not GPL compliant - seems like a lawsuit waiting to happen. A9 is very niche 😉
[Android Q&A, Help & Troubleshooting] bigwigs:
Check out - https://github.com/aimindseye/hisense-a9/tree/main

It has links to all recovery files and methods to restore or flash hisense a9.

It doesn't include current Lineage GSI instructions.
[Android Q&A, Help & Troubleshooting] bigwigs:
Also, the option of not being able to add or modify LTE Bands is the reason, especially in US.

I was using it for couple of months but now it is gone into phone closet as it didnt work as expected i.e. unable to connect back to supported LTE bands once I came back to area where supported LTE bands were available.
[Android Q&A, Help & Troubleshooting] ferlanero:
I was there at University of Oulu : Faculty of Information Technology and Electrical Engineering. Good times there 😊
[Android Q&A, Help & Troubleshooting] ferlanero:
I'm using 2 Magisk modules which leads to an absolutely amazing battery stamina (in case it could be useful for someone):

Universal GMS Doze

Universal-Kernel-Tweaks
[Android Q&A, Help & Troubleshooting] dferreira:
I was on ITEE, at the Center for Ubiquitous Computing! Glad to hear. I left academia for industry during COVID-19.
[Android Q&A, Help & Troubleshooting] R0W3Y:
Anyone managed to get Lineage on a HRP via a silicon Mac?

https://www.reddit.com/r/eink/comments/1byj95t
seems straightforward, but doesn't work directly in OSX.

Trying to run it via a windows virtual machine I can put the HRP into fast boot mode, but 'fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img' gives me an error 'The code execution cannot proceed because AdbWinApi.dll was not found'

An earlier post suggested https://github.com/HikariCalyx/OSTRemote/tree/master/tccadb_arm64_drivers with driver signature enforcement disabled but it still won't let me make install those drivers (windows 11 / parrallels).
[Android Q&A, Help & Troubleshooting] Frost015:
HRP user here trying to flash the Lineage 21 img @sperhoooo shared but I gotta confess I'm scared. It's the first time I'm flashing anything on this phone and the instructions provided are confusing to me. I'm in stock rom with a rooted phone sold to me by the aliexpress vendor who shared the Hisense fw img. Been lurking on here for a long time and I decided to finally create an account to express my deepest gratitude to @dferreira @bigwigs and all the other devs doing God's work
[Android Q&A, Help & Troubleshooting] damianmqr:
I get it, I thought I bricked my HRP for a while when messing with different partitions and got pretty scared too.

Thankfully the A9 backup available on google drive also works for the HRP as I tested myself

A9 Resources - Google Drive

drive.google.com

So if you have an EDL cable it would be VERY tough to hardbrick your device by simply flashing a system.img to the point where it can't be saved.

I made my own EDL cable and it's easier than you might think, just take an old regular usb cable, strip it and expose ground and D+ wires (most often black and green) at the same point, hold all buttons on the HRP and touch the cables together when plugging into a PC, once it appears in QFil just split the two wires apart again and voilà, ur in EDL mode.

I'm no electrician and I got it working in like 10mins. Proper EDL cables are pretty cheap anyway if you don't feel like trying to make your own and it's easier to use them because they have a proper button.

Also, remember that you only really need the EDL cable in case something goes really wrong or you want to go bac to stock OS, otherwise most of the time fastboot will help and it doesn't need any special cables. If you follow the instructions you most likely won't need it.
[Android Q&A, Help & Troubleshooting] damianmqr:
If you managed to unlock the bootloader with fastboot Hisense unlock command from @dferreira 's fastboot (also available at the google drive above) via VM you should be able to proceed with regular fastboot version for MacOS for the rest of the steps.

[Hisense a9] Root - Reward Offered (Snapdragon 662)

The Hisense a9 is an e-ink 4g smartphone that I want to use as my own Frankenstein light phone. I would like to root mine and use this custom launcher to create a minimalist phone that isn't quite as useless as the Light Phone concept (i.e...

xdaforums.com

This post shows you how rooting and unlocking the bootloader is usually done, on MacOS it might be a bit tricky, I think your best bet would be to borrow some Windows machine and just proceed with these instructions until you unlock the bootloader at step ./fastboot Hisense unlock

This only has to be done once and you can do every other command from native MacOS binaries you can get from here https://developer.android.com/tools/releases/platform-tools#downloads
[Android Q&A, Help & Troubleshooting] R0W3Y:
I haven't managed to unlock the bootloader, the Hisense unlock command won't work either
[Android Q&A, Help & Troubleshooting] damianmqr:
Sorry I can't help much with Apple Silicone.

Google drive has a file for linux but I believe it's x64 only, so to unlock it you might need to use a device with linux x64 or windows fully installed. Afterwards, once the bootloader is unlocked, you won't even need a VM but I don't think you can get around this step on a MacOS easily.

A9_Fastboot - Google Drive

drive.google.com
[Android Q&A, Help & Troubleshooting] bigwigs:
Check out - https://www.partitionwizard.com/partitionmagic/adbwinapi-dll-is-missing.html?amp if it helps
[Android Q&A, Help & Troubleshooting] hayzy00:
I have not seen it mentioned but I have flashed @dferreira's ROM and headphone jack does not work anymore for me.
[Android Q&A, Help & Troubleshooting] damianmqr:
I had the same issue with my patched ROMs, the solution seems to be going into Setting -> Phh Treble Settings and enabling two things

Qualcomm features -> Use alternate audio policy

Misc Features -> Use alternate way to detect headsets

And rebooting the device

In the next release I'll try to patch the TrebleApp to set correct default for all the settings
[Android Q&A, Help & Troubleshooting] biodbl:
my banking app won't let me access an account. Is it because of the custom rom, the unlocked bootloader or because of the Magisk app pre-installed in @dferreira's rom?
[Android Q&A, Help & Troubleshooting] dferreira:
Magisk is on the boot.img, not on the system.img 😉 add the bank app to the denylist of Magisk, enable Zygisk so that the bank app does not know you are rooted.
[Android Q&A, Help & Troubleshooting] dferreira:
Eink Center v1.2

- fixed per app speed profiles. You can set a preset speed per app after you set it for the first time with the overlay. Launch an app, double click to get overlay, set the speed you want for that app. It will be available on the Eink Center after that.

- button multiple functionality: single to clear, double for overlay, long press to open Eink Center

- redesigned overlay
[Android Q&A, Help & Troubleshooting] Frost015:
Does an EDL cable work with Windows 11?
[Android Q&A, Help & Troubleshooting] damianmqr:
I think some banking apps (and google pay) rely on passing MEETS_DEVICE_INTEGRITY and MEETS_BASIC_INTEGRITY in Play Integrity (replacement for SafetyNet), so you might need to use this https://github.com/chiteroman/PlayIntegrityFix or something similar if using a denylist isn't enough

Yup, I have went through this procedure on Windows 11 myself
[Android Q&A, Help & Troubleshooting] biodbl:
I'm not rooted. I'm using @dferreira's gsi rom. That's why I considered that the bank app didn't allow access because it didn't recognize the rom as official or because it detected that the bootloader was unlocked or because it detected the magisk app in the boot img. Or other reason
[Android Q&A, Help & Troubleshooting] dferreira:
I had to install Magisk, enable Zygisk and add the app to denylist, and install this module on Magisk https://github.com/chiteroman/PlayIntegrityFix. Clear storage on Play Store after the reboot. The bank app will work after that! The device will also appear as certified.
[Android Q&A, Help & Troubleshooting] dferreira:
You need to enable on Treble settings:

- Use alternative audio jack detection

Reboot and it should work after that!
[Android Q&A, Help & Troubleshooting] biodbl:
I did the procedure you recommended but it didn't work so I completely uninstalled magisk and tested it again but it didn't work either So I'm going to give up on that for now and continue using the banking app on my old phone. Thanks
[Android Q&A, Help & Troubleshooting] dferreira:
What is the bank app? Weird that they are blocking it somehow. Does the Play Store detect the device as certified?
[Android Q&A, Help & Troubleshooting] biodbl:
it is a Brazilian bank called Caixa Econômica Federal. Yes, it is certified by the Play Store, read some forums on the internet that some banking apps block access when they detect the unlocked bootloader Or custom rom
[Android Q&A, Help & Troubleshooting] dferreira:
Delete Cache and Data for that banking app before you try to open it again (some apps will cache that they previously found the phone was rooted) after you added it to the DenyList. I had one app that did that and it works fine after that.
[Android Q&A, Help & Troubleshooting] dferreira:
Just tested Google Assistant is fully operational, and activates from Lock Screen too:

Dr. Denzil Ferreira :fedora: (@denzilferreira@techhub.social)

Attached: 1 image And now that the device is certified, lock screen and anywhere Assistant wake up works!

techhub.social
[Android Q&A, Help & Troubleshooting] biodbl:
I already tried this
[Android Q&A, Help & Troubleshooting] dferreira:
Can you try installing Magisk Hide Props module?
[Android Q&A, Help & Troubleshooting] vbhai:
Try using shamiko:

Releases · LSPosed/LSPosed.github.io

Contribute to LSPosed/LSPosed.github.io development by creating an account on GitHub.

github.com

Also try using a separate workspace for your bank apps with insular:

Insular | F-Droid - Free and Open Source Android App Repository

Isolate your Big Brother apps

f-droid.org

Also, try renaming the magisk package in Magisk settings
[Android Q&A, Help & Troubleshooting] dferreira:
Also, check on the denylist there are not several points where the app can detect root/unlocked bootloader. I had to enable them all!
[Android Q&A, Help & Troubleshooting] biodbl:
In @dferreira's rom I noticed that the OTG function is not working, I tested it with a USB storage device and with the microphone on the USB Type-C input and it doesn't detect anything
[Android Q&A, Help & Troubleshooting] dferreira:
Yeah, seems we are missing something for OTG. USB-C headphones also don't work.
[Android Q&A, Help & Troubleshooting] R0W3Y:
Thanks for the earlier replies advising me on what to do if using a Mac.

For someone in a similar situation this is what I ended up doing...

- Dusting off an old intel macbook

- Installing windows 10 via bootcamp

- Updating to the latest android drivers and re-installing for each phone connection mode
[Android Q&A, Help & Troubleshooting] dferreira:
Try Insular! It creates a work profile and you can clone the bank app to it. It runs the app on a sandboxed environment. It worked for me!
[Android Q&A, Help & Troubleshooting] biodbl:
It worked!! Thanks. I installed the Island app that @vbhai posted
[Android Q&A, Help & Troubleshooting] dferreira:
How's everyone experience with Eink Center? Been using it for the past couple days. There is one bug with is regarding not showing what the current speed is when we open the overlay inside an app. Anyone found anything else?
[Android Q&A, Help & Troubleshooting] idonotbelonghere:
Only nit picky unimportant ones so far.

E-ink Center mode can't be changed by the icons in the app, only by the double press menu (also EC icons stay on the icon you tapped last, not the menu mode you selected).

The screen mode for the LineageOS app changing screen and E-ink Center seem to be linked.

1.Open a few apps, then open EC.

2.Set EC to Clear mode then swipe up (or tap) to swap between apps. It'll be jumpy (Clear mode).

3.Set LOS app swap mode to smooth. It'll scroll smooth (not Clear mode.

4.Open EC and scroll. It's smooth).

This bug doesn't matter cos you'd never want either of these apps on Clear mode anyway.

Long press for E-ink Center doesn't activate til the button gets released (unlike, i.e. the way the power button does it).

1.1 app / functions seem very stable now! Zero crashes. Maybe long press can do something else now :)

1.0 crashed whenever I double pressed (and maybe long pressed) the e-ink button, plus some other times where I don't know what triggered it.
[Android Q&A, Help & Troubleshooting] itshenryl:
I've found if i double-tap the status bar to make it sleep, I get a much higher success rate than using the power button - close to 100%.

Edit: Apparently not 100%, maybe 60% is closer. I think I get better results than the power button, though.

I've also found that if it goes black instead of AOD, pressing the power button twice (with a non-fingerprint finger) twice, will always bring up the AOD.
[Android Q&A, Help & Troubleshooting] biodbl:
The eink center app has worked really well for me. So far, I haven't noticed any bugs...

just happened: After double clicking, the telegram icon was not available to be configured in Eink center. I went back and when I tried again, Telegram appeared
[Android Q&A, Help & Troubleshooting] BackStabbath:
Hello everyone,

I recently purchased the Hisense A9 and installed LineageOS 20 GSI on it. I'm happy to report that E-Ink Center is working great. The only instance where I encountered a crash was when I pressed the clear button multiple times while the options were already at the bottom of the screen. However, my primary concern lies with the network band compatibility in my area for the A9. I believe I came across someone attempting to "unlock" additional bands, but they haven't had much success so far. Does anyone think it will be possible to access more network bands in the future? It's the only thing stopping the phone from becoming my daily driver.
[Android Q&A, Help & Troubleshooting] bigwigs:
No, it is not possible to "unlock" additional bands as it is blocked at modem level. i.e. modem programming limits the network bands availability. This could be due to Qualcomm 's licensing as Hisense might have not paid for all bands to work. I have been trying for months, nearly bricking the device with no IMEI visibility.
[Android Q&A, Help & Troubleshooting] dferreira:
Keep at it 😁 if it was not for my persistent stubborn ass we would have not unlocked the bootloader 😉
[Android Q&A, Help & Troubleshooting] BackStabbath:
Dang, well awesome of you trying and maybe someday someone can find a way around the Modem locks and we can continue to find a way to make it work. In the mean time I guess it'll just be an E-reader for home lol. If you have anymore ideas I can try to help anyway I can. I would love to help make this phone as usable as possible.
[Android Q&A, Help & Troubleshooting] dferreira:
I've noticed that sometimes the accessibility window changed is triggered when the keyboard or the notification tray is expanded, which leads me to lose track of what is the current foreground app. I guess I'll need to add exceptions so that it works more reliably.
[Android Q&A, Help & Troubleshooting] dferreira:
This works for me... I can switch between modes of the saved apps? Unless I'm misunderstanding what you mean.

Ah that's because I'm ignoring EC preferred speed otherwise all we get is that from the overlay app 😅

Good call, I'll make it match.
[Android Q&A, Help & Troubleshooting] bigwigs:
Lol, short of learning Qualcomm programming with special code there is nothin else we can do.
[Android Q&A, Help & Troubleshooting] dferreira:
What have you tried? Maybe we can figure something together. We did before, we do again.
[Android Q&A, Help & Troubleshooting] dferreira:
[ALL QUALCOMM PHONES] [How to] ADD ANY LTE BAND USING QXDM

DISCLAIMER: I'M NOT RESPONSIBLE IF YOU BREAK YOUR PHONE OR MODEM, ONLY DO THIS IF YOU KNOW WHAT YOU'RE DOING! First you'll need: SAMSUNG USB Driver QXDM https://androidmtk.com/download-qpst-flash-tool Now follow the quick start guide HERE...

xdaforums.com

I recall you tried something around this. We have EDL access to the device, so technically we can flash anything. The question now is, do we do it via hexedit or some tool.
[Android Q&A, Help & Troubleshooting] dferreira:
https://xdaforums.com/t/guide-repair-imei-on-qualcomm-snapdragon-devices.4427589/ to restore your IMEI. It's on your phone box?
[Android Q&A, Help & Troubleshooting] bigwigs:
I tried qxdm n qfil etc too. No luck
[Android Q&A, Help & Troubleshooting] bigwigs:
Check this post

Post in thread '[Hisense a9] Root - Reward Offered (Snapdragon 662)'

https://xdaforums.com/t/hisense-a9-root-reward-offered-snapdragon-662.4495809/post-89411268
[Android Q&A, Help & Troubleshooting] idonotbelonghere:
Only the screen refresh icons for E-ink Center don't work within E-ink Center.

The icon switching works great for every other app.
[Android Q&A, Help & Troubleshooting] dferreira:
Ah I see. I can fix that! 😁
[Android Q&A, Help & Troubleshooting] dferreira:
Installed Wallpapers from Google and they have solid color white wallpaper. Been enjoying my phone much more nowadays 😃
[Android Q&A, Help & Troubleshooting] ferlanero:
I'm even using Olauncher along white wallpaper. Perfect for an eink phone :)
[Android Q&A, Help & Troubleshooting] dferreira:
Would you mind if I add Crashlytics to the app? I've been getting this occasional crash when I'm out and about and I'd like to investigate what is causing it. This would also allow me to catch any crash you may experience. Thumbs up if ok!
[Android Q&A, Help & Troubleshooting] zxczxc4:
I'd appreciate some help, I'm a bit confused!

What @dferreira has done is amazing, but will we always have to use that "unofficial" gsi build / build it ourselves?

And that means we wouldn't be able to do OTA updates, unlike using AndyYan's "official" gsi?

Or can we get TrebleDroid to accept the service that dferreria created, then when AndyYan builds his lineageos gsi it contains the eink service?

(Seems strange since AndyYan's gsi files are for everyone, and would become bloated if it included special stuff - like this eink service - for every single device)

Comparing to the gsi patcher @sperhoooo created, we can patch AndyYan's gsi, and so I think that would still support OTA updates?

Thanks