yashsingh1/xdaforums huggingface dataset:
[Device Reviews and Information] matiptp:
Hi guys, I did it :)

Here are some small updates and notes to the instruction thanks to [MENTION=223650]UnCLe[/MENTION]abubuear: How to Install Treble AOSP Android 9 on Chuwi Hi9 Air Hope it'll help others newbies like myself :o

There is still a problem - my SIM cards seems not working. Any ideas why?

1. Backup data / Android backup

2. SP Flash Stock Rom 20181122 (All data will be lost)

2a: (Download Tab, Choose Scatter-loading File from unzipped directory Update_20181122, Firmware upgrade, Download - takes a long time

2b: You can see if it is still running in C:\ProgramData\SP_FT_Logs\SP_FT_Dump_XX-XX-XXXX-XX-XX-XX by pressing ctrl+r - increasing file sizes indicates that it is still working, in my case download started after I've run fastboot reboot)

2c: Boot tablet (takes a long time be patient)

3. Set up as new / Skip / Enable Developer Options.

4. Enable OEM Unlocking.

5. Enable USB debugging.

6. Factory data reset.

7. Reboots.

8. Wait for Erasing. Reboots.

9. Power button long press during Chuwi logo.

10. Power button + Vol up select fastboot

11. fastboot oem unlock / vol up

12. fastboot erase system.

13. Linux: fastboot -u flash system system-arm64-aonly-vanilla-nosu.img

13a: Windows: fastboot flash system system-arm64-aonly-vanilla-nosu.img

14. Fastboot reboot (or power off and on). Wait for boot up. Reboots. Wait for boot up. Power off.

15. Sp flash twrp (Choose Scatter-loading File from unzipped twrp directory, and Option: download only)

16. Power button + vol up / recovery.

17. Cancel button.

18. Swipe to allow modifications.

19. Wipe / swipe to factory reset.

20. Back, back button, Mount / Micro SD card

20. back button, to Install / Select Storage SD Card / Install Magisk and Opengapps ( I used ARM64/9/Pico)

21. Reboot (Do not install)

22. Tablet reboots three times. (be patient)

23. Wait for tablet to detect / choose your language.

24. Start / Select SIM / Connect to wi-fi.

25. Copy Apps and Data / Next / a backup from the cloud.

26. Login / Agree

27. Choose a backup to restore.

28. choose what to restore / restore.

29. Google services / more x 2 / Accept.

30. Protect your phone / Secure start-up.

31. Wait for 'finishing touches'.

Regs

MatiP
[Device Reviews and Information] santosst:
Thanks for the updated tutorial, MatiP! :D

Unfortunately I do not use SIM card on the tablet, so I have no way of testing if it works correctly with GSI ROMs. :(

Something I know is that, on some devices, the dual SIM function does not work, sometimes only slot 1 or 2 does.

Try to change the slot, maybe it can solve if you use only one SIM card.

Also check if the IMEI data and the chip are correctly available in the "About the phone" section. If not, see if this post and the ones before it help you with that.
[Device Reviews and Information] oumura:
i happened to have a china tablet that has the same build number with this model O00623, its running on android 10.1, can i ask if i can flash this rom? it has the same Mt6797 and gpu but better rams etc, any help is greatly appreciated! Im looking to flash A9/A10 roms so that i can use gapps, opengapps does not work on A10.1 hence i need to result to flashing these roms

Update:

I bricked my device, tried flashing this rom and the tablet can boot but the screen is always flickering. Black background, flickering random colors
[Device Reviews and Information] russy23:
Hi guys..just a quckie..does this tablet suffer from thermal throttling..if so is there a fix..cheers
[Device Reviews and Information] santosst:
Oh, it is not good :( Does your tablet manufacturer provide the stock ROM? Maybe you can update it using the SP flash tool and try to update only the recovery partition with TWRP. Perhaps you can install Open Gapps through it or flash a GSI ROM that allows it to be installed.

I don't use this tablet with high-demanding apps, so I think I'll not be very useful, but I never felt the performance worse even with the increase in its temperature... Anyway, could you better describe your problem?
[Device Reviews and Information] santosst:
Hey guys, some updates:

1- I've made a device overlay for Hi9 Air, based on the framework-res.apk in stock ROM, to be used on GSI builds. The battery life increased very much compared to the situation in the absence of a device overlay.

If someone wants to test it on Pie or Q GSis, put the attached file in folder /system/product/overlay (or /system/overlay if product folder doesn't exist). The overlay file also can be downloaded here.

2- BOFH2k cited in this post that using the patched boot.img from Gearlabs ROM would allow installing GSI ROMs through TWRP without unlocking the bootloader. Well, I did some tests and concluded that the key point here is disabling of the dm-verity: since the Magisk installer does this, it worked well, but any solution that disables dm-verity is enough. Now I'm using force-encrypt disable (all credits to Zackptg5), here is the direct link to download, or see this site to download latest version.

3- A good news, R booted successfully in Hi9 Air! :victory: But some points need to be presented:

- Encryption seems to cause problems in our device. It has been necessary to use the force encrypt disable.

- All the ROAR released versions until now (v300i) doesn't boot without adding an entry to libstdc++.so in the file /system/system_ext/apex/com.android.vndk.v26/etc/vndksp.libraries.26.txt. Fortunately, phh added it to the build script, so the next ROAR versions should boot flawlessly. Furthermore, all the R GSIs based on the phh's work already included this correction and boots normally; I've tested CAOS v300i and LineageOS 18 :D

- I'm not able to easily activate the device overlay on R GSIs, so I'd like to push it to the phh's source (I think, in this way, the overlay should activate normally during the first boot). If someone could test it, even on Pie/Q GSIs, it would be great to check for bugs before pushing it.
[Device Reviews and Information] amg314:
Can't download attached files using Fennec: 404 Bad gateway((
[Device Reviews and Information] santosst:
Thanks for notifying! The uploaded files here in XDA really were unavailable (and seems it's still) :(

I uploaded the overlay to Google drive and added the official links for the disable tool.
[Device Reviews and Information] amg314:
I could not find /system/overlay folder in my 0604 ROM.

I have /vendor/overlay/framework-res__auto_generated_rro.apk (size 1.5M) instead.

Did you mean to create /system/ overlay and put your treble-overlay-chuwi-hi9air.apk in this new folder?
[Device Reviews and Information] santosst:
I don't think I was as clear as I should be... This overlay should only be used on GSI, not stock ROM.

In general, GSI images load exactly the file /vendor/overlay/framework-res__auto_generated_rro.apk in the absence of a specific device overlay. In general, it works, but our framework-res__auto_generated_rro.apk doesn't have many useful definitions of arrays, bools, integers, strings, and the consequence is a higher battery usage (I don't know why but that's it lol).

For stock ROM, I think the battery life is better because of the use of a very complete /system/framework/framework-res.apk file together with /vendor/overlay/framework-res__auto_generated_rro.apk. Because of this, I used both files as a base to create an overlay file to be used in GSI.

And to be clear, the /system/product/overlay folder is present in Android 10 GSis, and I think /system/overlay is the correct folder for Pie ones.
[Device Reviews and Information] amg314:
Thank you for clarifying of the treble-overlay installing procedure.

Did you use the following instruction while adapting phh GSI to our Chuwi Hi9 Air?

[GUIDE] How to make GSIs overlay file for your phone

https://xdaforums.com/project-trebl.../guide-how-to-make-gsis-overlay-file-t3878974

Your adaptation inspires hope for the future of our tablet.

Have you tried installing Magisk on GSI?

https://github.com/Magisk-Phh/Releases

Another question about installing custom gapps like microg.
[Device Reviews and Information] santosst:
First, thank you very much! I'm happy to share with our group the results that are being achieved. :D

I followed this other tutorial: https://github.com/phhusson/treble_experimentations/wiki/How-to-create-an-overlay%3F

By the way, it seems to be the same tutorial :laugh: It only has some instructions to push the overlay to phh's git (which I have no affinity to do, and if someone can help me, it will be great lol).

About Magisk, I tried it on Q GSIs and works well.

In Android 11 I didn't try yet, maybe I'll do it this weekend. But I know that a lot of users are reporting issues, so I don't expect to easily get working Magisk. The only two things I know are: 1- Magisk could need a sbin folder in system partition, which is not present by default in Android R; and 2- only versions later than 21.1 should work.

ExpressLuke is compiling phh-magisk with newer Magisk source code, see this site: https://github.com/ExpressLuke/phh-magisk-builder/releases.

MicroG is another thing I didn't try yet, but some GSIs have been released with full MicroG support, like FLOSS variant of phh's AOSP and LeOS. Since ROAR floss variant is really big, it would take some effort to reduce the image size to fit the tablet's system partition (like excluding libs for other vendor versions).
[Device Reviews and Information] amg314:
Found an interesting camera app for our tablet: HedgeCam v2.11a

HedgeCam

Download HedgeCam for free. Advanced camera for Android. None

sourceforge.net

https://sourceforge.net/projects/hedgecam/files/2.11a/HedgeCam_2.11a_global.apk/download

To use all features switch Camera API 2 On in Settings.

Spoiler content hidden.

The info under the spoiler shows that the developers of our tablet have saved on:

Manual ISO, saving in RAW format, manual WB, etc((
[Device Reviews and Information] santosst:
I just installed it, but when I activated the Camera API 2, the image became darker and the front camera is upside down. I'm testing on stock ROM 20181122, but despite the problem, this information is really interesting since this problem (darker image and upside-down front camera) is a known issue for our tablet in GSI images.

Do you have this issue? What ROM and vendor version are you using?
[Device Reviews and Information] Draken89:
HI all, i need Help for this device, i've try to install twrp with adb/fastboot to flash HAVOCOS adroid 10 (i did'nt do the root yet), all regular with the download of the twrp.img but when i'll do fastboot reboot the device are in orange state and bootloop. I can't enter in recovery mode with power /volume up and the adb/fastboot don't find the device ( maybe because in bootloop) what can i do to restore? someone can help me? thank you all !
[Device Reviews and Information] rimsilva:
Hi friends,

Can someone share what the best GSI ROM available at the moment? I would like to upgrade GearLabs.
[Device Reviews and Information] thecoolkid:
How did you make Luke's magisk work? For me it flashes fine, logcat says deamon is running, but the app says N/D (not installed) 🤔
[Device Reviews and Information] santosst:
Try to use SP Flash Tool to flash the stock ROM, here is the link for version 20181122, or use another one that is in the first post of this thread. In this post is also a tutorial from Chuwi about how to install MTK drivers and flash the ROM.

Now I'm using LOS-Q and I'm very satisfied with it. The battery life seems to be better in LOS-based GSIs than in AOSP-based ones (although it's still worse than in stock).

To be honest, as I'm not using root, I didn't get to test it, I just shared the link... 😅

But tomorrow I will test and give feedback on that.
[Device Reviews and Information] santosst:
Hey, I was able to install Luke's Magisk on LOS-Q. I used the latest version, based on Magisk 21.1. The only unusual thing I had to do was use the Canary version of Magisk manager, downloaded here.
[Device Reviews and Information] Draken89:
Thank you, finally i did it and now work, another question, what is at the moment the best rom for update my chuwi hi9 air?
[Device Reviews and Information] santosst:
Nice!

I would recommend any LineageOS-based GSI, they have better battery life than the AOSP ones.

Give a try to AndyYan's LOS 17.1 or use other ones based on his work, like Eremitein's LOS-Q Mod, crDroid or Bliss (I've tested successfully all but crDroid). Diust's Resurrection Remix is also LOS-based, but I was not able to boot it. And don't forget to use this tutorial if you didn't try to install a GSI yet 😁
[Device Reviews and Information] santosst:
I want to share with you the battery performance I had with some recently released Android 10 based GSIs. I didn't make any changes to the default settings or use energy-saving mode, just added the overlay, installed FlameGapps, and removed the root for Lineage OS.

1- Lineage OS (~112h of standby time)

2- Havoc OS (~130h of standby time)
[Device Reviews and Information] rimsilva:
Nice.

Can you share your experience with BT and wifi stability?

Do you use Zoom (or other videoconference app)? I've installed the stock mod build 0623 (rooted) and often the tablet feezes and has to be rebooted.
[Device Reviews and Information] santosst:
The wifi connection is on the same level as the stock ROM, sometimes it even looks a little better, although I never had a good wifi signal on this tablet.

I only tested Bluetooth to connect my headset, it works well using the Mediatek workaround in Treble settings.

The videoconferencing application I used the most was Google Meet, and it worked well for quite a while, but for a while now the camera has been upside down. I already installed Zoom once, only for testing, but I never got to use it in a meeting.
[Device Reviews and Information] amg314:
Please comment installing GSI method using SP Flash Tool https://xdaforums.com/t/chuwi-hi9-pro-unlock-root-twrp-etc.3843539/page-38#post-84505333

The method do not need some steps in your tutorial, like 'Enable developer options', fastboot, etc.

You need to install clean stock ROM (excluding recovery), then flash GSI system.img in SPFT, then boot to TWRP do Factory Rest and flash your's TestModHi9Air-signed.zip, gapps and Magisk.
[Device Reviews and Information] santosst:
Great suggestion, I'll add to the post! The idea of flashing the new system.img from SP Flash Tool is very good. :)
[Device Reviews and Information] thecoolkid:
CHUWI Hi9 Air - Modern Boots 👞

Spoiler content hidden.

Step into the future

I'm happy to present Modern Boots 👞, fresh & original MTK boot screens with crisp and delicious vector graphics, fully redesigned by me.

Redone from the scratch to look modern and more like something you can find on newer devices.

Graphics used by Chuwi were stock Mediatek images blown up and resized to fit our hi-res 2.5K screen. They were blurry and didn't look very good.

Modern Boots 👞 feature latest Android logo and sexy 100% vector shapes with beautiful material design colors.

Spoiler content hidden.

Spoiler content hidden.

Installation instructions

To enjoy Modern Boots 👞 either flash logo.bin in SP Flash Tool or install CHUWI-ModernBoots-Flashable.zip in TWRP Recovery.

Spoiler content hidden.
[Device Reviews and Information] santosst:
What beautiful work!! I'll try it soon in my Hi9Air (but I'll need to enable offline charging on GSI before 😅)
[Device Reviews and Information] thecoolkid:
Thanks! :) How do you enable offline charging in GSI?
[Device Reviews and Information] santosst:
I'm not able to search here on the forum, but I was going to try a 4pda link that someone indicated here some time ago. It involved adjustments to the boot and vendor partitions. I never got to test it, so I don't know if it would work, but I hope so lol
[Device Reviews and Information] thecoolkid:
If you could find that link it would be great 👍
[Device Reviews and Information] amg314:
Chuwi logo (by Ygrek64 of 4pda)

1. png picture

2. boot logo (unzip and flash using SP Flash Tool)

3. boot logo (unzip logo.img and flash as logo thru TWRP
[Device Reviews and Information] santosst:
Finally, I found the link: https://4pda.ru/forum/index.php?showtopic=942949&st=180#entry84458536. This procedure is not for our tablet, but the entries in init.rc were really similar to ours. Sadly, it doesn't work, at least on Android 10 GSIs. I tested on the latest Lineage OS 17.1 by Andy Yan :(

On the other hand, I installed Modern Boots and it is really beautiful! Initially, I tried to install it using TWRP but I was not successful, but using the SP flash tool it installed perfectly! I even flashed the stock image of the system to enjoy the charging animation lol

I'm sorry, I was actually looking for the link I shared above that claimed a solution for offline charging on GSIs... However, thanks for sharing!

By the way, do you know anything about the offline charging issue?
[Device Reviews and Information] thecoolkid:
Thanks for the link, I'll look into it. First I want to attempt repartitioning so I can get larger system partition for newer GSI's. Fingers crossed 🤞

Thanks for feedback, I haven't tried TWRP flashing, this zip was just automatically generated by the boot logo tool I was using.

Since you flashed stock... have you seen the easter egg I put in? Hint hint... ✌️😁

I wonder if it's possible to make it show on GSI's too 🤔
[Device Reviews and Information] santosst:
Wow, yes, good luck! I hope you are successful, share the results with us! 🙏

I don't know if you're using Linux, but I've made a shell script to remove vndk libraries other than the selected one (in our case, vndk-26) in Android 11 GSIs, it helps to reduce the system image by a few hundred megabytes. It works well in Linux Mint 20 😁

Yes, I saw it!!! Very good ✌️👏

It would be nice to have that in GSIs as well, a warmer welcome in these newer systems... However, it's also an add-on for stock users :)
[Device Reviews and Information] Gumka1977:
Hi.

What do you recommend today? What system? I still have oreo 8.0. I would like to change to a better os. :)
[Device Reviews and Information] santosst:
For now, I'm using Lineage OS 17.1 by Andy Yan. It's the most recent Android 10 GSI, almost without bugs. The only con is that basic integrity fails in the SafetyNet test, at least for me.

Android 11 GSIs based on AOSP have problems with deep sleep, and the ones based on Lineage OS 18.1 have issues with the front camera, it doesn't work. Otherwise, I would be using any of them.

I'll probably send logs to Phh and Andy tomorrow, and hopefully, these problems can be solved.

Only one thing, the front camera is upside down for me in both Android 10 and 11 GSIs, and it seems to be related to HAL3 cam2api, but I'm not sure
[Device Reviews and Information] amg314:
Please tell me how you flashed LineageOS 17.1 - using TWRP, fastboot or SPFT?
[Device Reviews and Information] santosst:
Hi amg314! I flashed it using TWRP.

I'm with locked bootloader and flashed dm-verity disabler in TWRP too.
[Device Reviews and Information] santosst:
Hey guys, some updates from my Android 11 tests:

1- I managed to make the Hi9 Air pass the SafetyNet test on GSIs with Android 11 in a very simple way and without Magisk (but you need to use properties of pixel 5). In the eremitein's GSIs (CAOS, LiR, and crDRom, I believe that in the next version of Bless there will also be this option) there is an option "Spoof Pixel 5 props", it was enough to enable it, restart the tablet and clear the data from the Google Play Store to have the "certified device" badge with access to Netflix and other apps that require it.

I only point out that I have the bootloader locked to be able to pass the basic integrity test, so the GSI installation method needs to be through TWRP or SP Flash Tool.

2- As I commented earlier, the AOSP-based GSIs (like phh's ROAR and eremitein's CAOS), and also the new LOS 18.1 version by andyyan, don't enable deep sleep; however, I didn't notice a high battery drain in idle during my tests in CAOS. I'll use this GSI for some more days and hopefully, the battery drain in Idle won't be so high.

2- I used CAOS v303 this week and really noticed a worse battery life in idle, comparing to Android 10 GSIs, due to the absence of deep sleep. However, it seems that the on-screen battery drain here is better than the older GSIs. As a result, I reached about 6h30min of screen usage in ~71h of up-time. It's not so good as this performance but it's usable, at least for me.

3- Is someone using one of the latest GSIs, whether based on Android 10 or 11, and noticed that sounds are also coming out from the speaker when a wired earphone is connected? I don't know if it's a software bug or a hardware fault lol
[Device Reviews and Information] serlex:
Hello! everyone. I'm new to the Hi 9 air and I'm a bit confused with the custom roms out there.

I'm going to install a custom ROM (I'm running stock android 8). What are the best options available nowadays?

By "best" I mean most compatible, least bugs and good performance.

For instance, I've found phhusson's AOSP 11 but I'm not if it works? I also foudn guides for his AOSP 10 build (which maybe works better?)

and this poll I've read many people having Gealabs custom ROM but I don't find it on the internet.

sorry for my n00b questions
[Device Reviews and Information] santosst:
First of all, welcome! :)

Gearlabs is a ROM based on our stock system in Aug/2018 version. It has some improvements and is also pre-rooted with Magisk. You can check this post to download it. This other post has the link for the Gearlabs post and other ROMs/tutorials.

About GSIs, yeah, phhusson's AOSP is the best in terms of performance and compatibility; you can install v222 (just follow the tutorial to install Android 10 GSIs) or any v3xx (based on Android 11, you can follow the tutorial for Android 9 but you'll need to flash an encryption disabler zip to be able to boot).

But in fact, a lot of GSIs will boot and work well, like andyyan's LOS 17.1 and 18.1, eremitein's CAOS, LOSQ/LiR, Bless and CrDRom, braia's Nitrogen, and so on. The better, if you can, is trying the most GSIs you can to feel what's the best for you!

Also check out the most recent posts, in which we have been talking a little about these new GSIs, and feel free to ask and share your experiences with us :D
[Device Reviews and Information] santosst:
Guys, I took some logs to analyze why offline charging doesn't work. I shared in the treble support group and phh said that, apparently, there is a problem with apex and linkerconfig because these services do not start under charging mode.

I have no idea how to solve this, so if anyone knows, share your thoughts with us :D
[Device Reviews and Information] amg314:
Offline Charging fix for Treble on MTK by Hadenix Mod Edit: Link removed
[Device Reviews and Information] santosst:
Sadly this fix didn't work... I tried to extract and copy manually, putting the correct permissions, but the tablet continues to go to fastboot mode when plugged in :(
[Device Reviews and Information] Tinimark:
Hi,

I have two of these devices on factory firmware and they both become unresponsive after a few days of uptime requiring hard reset to reboot. I'm hoping this can be fixed with a newer firmware.

In your link to that guide it states Please make sure you have the stock firmware installed August 2018. Mine has July 2018 on it and It can't find any updates.

Any advice on how to proceed highly appreciated. :)
[Device Reviews and Information] amg314:
Look at 'Downloads' tab in Opening Post:

Update_20181122.zip

drive.google.com