General GSI CUSTOM ROMS FOR XIAOMI REDMI NOTE 9T (CANNONG)

Search This thread

dsclee1

Member
Oct 16, 2015
30
22
Fixed the Bluetooth Audio by copying over the audio policy XML files from the stock rom.

Magisk module attached.

Still have an issue with wired headphones, but it could be a hardware fault (my phone was in for repair, and not sure they internally connected it).

EDIT: Sorry, ignore the Magisk module. What actually fixed my issue was changing a couple of settings in: PHH Treble Settings > Misc features
I switched "Bluetooth workarounds" to Mediatek, "Force Disable A2DP Offload" to on, and rebooted.
 

Attachments

  • Note9Taudio.zip
    22.9 KB · Views: 124
Last edited:
  • Like
Reactions: mikefnz

dsclee1

Member
Oct 16, 2015
30
22
I'm still having issues with in-call volume adjustment though. There's no way to change the volume.
 

chmick

Member
Jul 9, 2017
27
14
Redmi Note 9t
Does Bluetooth Audio work on any GSI?

I've installed PHH's AOSP GSI. The headphones connect fine, but audio continues to come out of the phone rather than the headphones.

EDIT:
Does any external audio work on any GSI? I plugged in headphones, and they don't work either.

EDIT 2:
Bluetooth Calls work, just not audio. I seem to be unable to adjust call volume though.
Interesttin. Trying to install AOSP 11 from here : https://github.com/phhusson/treble_experimentations/releases/tag/v309

I got into trouble. It sasy my device isn't play protect certified

Can you tell me which version of AOSP (a link to it) and if you did any particular action ?
 

dsclee1

Member
Oct 16, 2015
30
22

chmick

Member
Jul 9, 2017
27
14
Redmi Note 9t
Hey there bud, sorry I missed your post.
1. Download a GSI rom arm64 ab
2. Uncompress it using 7z as long as the image XZ
3. Rename your uncompress image system.
4. Assuming you already have Orange Fox installed. BOOT TO RECOVERY and format data-----YES.
5. Ince in OrangeFox go to reboot and hit FASTBOOT(this particular fastboot from orange fox is basically like being FASTBOOT'D).
6. In your computer open CMD and type fastboot devices, just to make sure your phone is being recognized.
7. Type FASTBOOT FLASH SYSTEM SYSTEM.IMG(the system.img is the image you uncompressed if you renamed it of course).
8. Let it finish and reboot, if it doesn't boot try another GSI, as some of them I couldn't get them to boot.
Try it, to me anything is better than stock.
Good luck bud.
thanks for you time:
I integrated your reply to my doc ;https://forum.xda-developers.com/t/...rand-new-redmi-note-9-t-for-the-noob.4296447/

Could you have a look and comment ??
 

chmick

Member
Jul 9, 2017
27
14
Redmi Note 9t
Hey there bud, sorry I missed your post.
1. Download a GSI rom arm64 ab
2. Uncompress it using 7z as long as the image XZ
3. Rename your uncompress image system.
4. Assuming you already have Orange Fox installed. BOOT TO RECOVERY and format data-----YES.
5. Ince in OrangeFox go to reboot and hit FASTBOOT(this particular fastboot from orange fox is basically like being FASTBOOT'D).
6. In your computer open CMD and type fastboot devices, just to make sure your phone is being recognized.
7. Type FASTBOOT FLASH SYSTEM SYSTEM.IMG(the system.img is the image you uncompressed if you renamed it of course).
8. Let it finish and reboot, if it doesn't boot try another GSI, as some of them I couldn't get them to boot.
Try it, to me anything is better than stock.
Good luck bud.
thanks for the reply.
I integrated your reply to the post :

would you mind to read and comment
 
  • Like
Reactions: dsclee1

Unlock_Free

New member
Oct 20, 2021
2
0
I just want to share my experience with GSI ROMS (Generic System Image), this is for the people like me that is not familiar with this images.
First of all, CANNONG uses ARM64 A/B IMAGES, if you try to install any other you're going to end up in a bootloop, search how to install GSI images while we wait for developers to start with this specific cell phone. Here are some screenshots, it's stable and rooted.View attachment 5313797View attachment 5313801View attachment 5313799View attachment 5313797
Bro link need
 

chaoscreater

Senior Member
@sax61 unfortunately you can't write over the "Super" partition. The Super partition contains Vendor, System, and Product combined, so what's happened is you've wiped out the Vendor and Product partitions and replaced them with just a System partition.

You won't be able to use OrangeFox for this as you need stock recovery to boot to fastbootd to flash the System partition, and I don't think the current version of OrangeFox can do it?

What you need to do is:
1. Reflash the stock Recovery and Super partition (there's some other posts on the forum on where to download it).
2. Boot to fastboot using Vol - and Power. Send the fastboot command: fastboot reboot fastboot. Which will reboot into fastbootd.
3. From fastbootd you can now do fastboot flash system your_gsi.img
4. You can reflash OrangeFox now if you like.

Why can't we just flash the system.img from recovery?

Also, how do we dirty flash GSIs? Say if there's a new update and we flash it using fastboot. Doesn't that overwrite the existing system partition?
 

dsclee1

Member
Oct 16, 2015
30
22
Why can't we just flash the system.img from recovery?

Also, how do we dirty flash GSIs? Say if there's a new update and we flash it using fastboot. Doesn't that overwrite the existing system partition?
If System is available in the version of recovery you're using go right ahead! The issue from memory was that the System partition hadn't been correctly mapped.

If you write over System with fastboot as a dirty flash for an update (for the same Android version) it should run fine. You're not damaging any of your saved files on the Userdata partition, and the encryption scheme should be the same.
 

chaoscreater

Senior Member
If System is available in the version of recovery you're using go right ahead! The issue from memory was that the System partition hadn't been correctly mapped.

If you write over System with fastboot as a dirty flash for an update (for the same Android version) it should run fine. You're not damaging any of your saved files on the Userdata partition, and the encryption scheme should be the same.
Thanks for that. Only reason I asked this is because I saw the installation guide in OctaviOS' telegram and it mentions to use fastboot for Android 10 or above, but custom recovery for Android 9 or lower, which I don't quite understand why...

1636929834706.png




UPDATE:

I can't get the phone to boot after flashing Bliss Rom to system image (it flashed successfully). Initially on bootup, it showed something about dm-verity being corrupted. I Googled it and it talks about vbmeta, so I flashed the modified vbmeta img and that error disappeared. But then phone just keeps showing the Redmi logo and then boot into recovery.

I can boot into LineageOS just fine, but not Bliss. I don't quite understand how the OP was able to use Bliss (according to his screenshots in the first post).


More importantly, how do we wipe the System partition, as this isn't available as a Wipe option in either TWRP or OrangeFox? I basically went from flashing the system.img for Bliss ROM, to flashing system.img for LineageOS. I would have preferred to wipe the System partition first before going from one GSI to another, but I can't figure out how to do that.

Can someone please confirm if "fastboot flash system system.img" actually overwrites the entire System partition, or does it do a dirty flash? If it overwrites the entire System partition and we don't need to do a wipe, that's fine. But if there's a new GSI update for the same ROM, how do we dirty flash?

If on the other hand it does a dirty flash, then that's not good if you're jumping from one ROM to another ROM. We should do a proper wipe of System first. How can we do this, if there isn't a wipe System option in recovery?
 
Last edited:

chaoscreater

Senior Member
I'm still having issues with in-call volume adjustment though. There's no way to change the volume.
Have you figured out a solution or you're still having issues?

Found the solution here:

I'm currently using OctaviOS and it supports signature spoofing, which is useful if you wanna use microG.
 
Last edited:

chaoscreater

Senior Member
Another issue with the GSI is that it can't recognize my memory card. It keeps asking to format and doesn't recognize it. Memory card is fine with other phones and it's a high-end Samsung 128GB memory card.....if I format as Phone storage, it's fine. If I format as Portable storage, it doesn't work.
 

dsclee1

Member
Oct 16, 2015
30
22
Can someone please confirm if "fastboot flash system system.img" actually overwrites the entire System partition, or does it do a dirty flash? If it overwrites the entire System partition and we don't need to do a wipe, that's fine. But if there's a new GSI update for the same ROM, how do we dirty flash?

Yes, fastboot flash wipes the partition clean. If you want to be extra sure you can "fastboot erase system" before fastboot flash, but as far as I'm aware fastboot flash effectively does the erase as part of the flash.

Only reason I asked this is because I saw the installation guide in OctaviOS' telegram and it mentions to use fastboot for Android 10 or above, but custom recovery for Android 9 or lower, which I don't quite understand why...

I don't understand either! I imagine that they couldn't get Android 10 to flash in their version of recovery, which is why they say to use fastboot. But the fastboot method would also work for Android 9.
 

dsclee1

Member
Oct 16, 2015
30
22
Another issue with the GSI is that it can't recognize my memory card. It keeps asking to format and doesn't recognize it. Memory card is fine with other phones and it's a high-end Samsung 128GB memory card.....if I format as Phone storage, it's fine. If I format as Portable storage, it doesn't work.

I'd try @gyoshin's idea. On a PC format the card as FAT32. You might need to use a tool to flash to FAT32, as I've found in Windows it's sometimes unavailable as an option, as they're trying to push people to NTFS or exFAT. If you need a tool I'd recommend Rufus (https://github.com/pbatard/rufus).
 

chaoscreater

Senior Member
Yes, fastboot flash wipes the partition clean. If you want to be extra sure you can "fastboot erase system" before fastboot flash, but as far as I'm aware fastboot flash effectively does the erase as part of the flash.



I don't understand either! I imagine that they couldn't get Android 10 to flash in their version of recovery, which is why they say to use fastboot. But the fastboot method would also work for Android 9.

But then how do we dirty flash a GSI update? If fastboot is going to overwrite the System partition, then that's not a dirty flash, it's a wipe? Don't we lose whatever is stored in that System partition?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    @sax61 unfortunately you can't write over the "Super" partition. The Super partition contains Vendor, System, and Product combined, so what's happened is you've wiped out the Vendor and Product partitions and replaced them with just a System partition.

    You won't be able to use OrangeFox for this as you need stock recovery to boot to fastbootd to flash the System partition, and I don't think the current version of OrangeFox can do it?

    What you need to do is:
    1. Reflash the stock Recovery and Super partition (there's some other posts on the forum on where to download it).
    2. Boot to fastboot using Vol - and Power. Send the fastboot command: fastboot reboot fastboot. Which will reboot into fastbootd.
    3. From fastbootd you can now do fastboot flash system your_gsi.img
    4. You can reflash OrangeFox now if you like.
    1
    I just want to share my experience with GSI ROMS (Generic System Image), this is for the people like me that is not familiar with this images.
    First of all, CANNONG uses ARM64 A/B IMAGES, if you try to install any other you're going to end up in a bootloop, search how to install GSI images while we wait for developers to start with this specific cell phone. Here are some screenshots, it's stable and rooted.
    Screenshot_20210519-081712544~2.jpg
    Screenshot_20210519-081753649.jpg
    Screenshot_20210519-081830935.jpg
    Screenshot_20210519-081712544~2.jpg
    1
    Hey there bud. Here:
    Thank you for your kindness
    1
    StatiXOS are already making custom roms for this device: https://github.com/StatiXOS/android_device_xiaomi_cannon
    1
    Hi, I'm asking you for help installing a GSI ROM.
    I unlocked the phone, installed OrangeFox from where I installed the ROM image (the .img file) on the "super" partition. After reboot the phone is without OS. Someone would be able to show me the procedure to follow. Thank you.
    Hey there bud, sorry I missed your post.
    1. Download a GSI rom arm64 ab
    2. Uncompress it using 7z as long as the image XZ
    3. Rename your uncompress image system.
    4. Assuming you already have Orange Fox installed. BOOT TO RECOVERY and format data-----YES.
    5. Ince in OrangeFox go to reboot and hit FASTBOOT(this particular fastboot from orange fox is basically like being FASTBOOT'D).
    6. In your computer open CMD and type fastboot devices, just to make sure your phone is being recognized.
    7. Type FASTBOOT FLASH SYSTEM SYSTEM.IMG(the system.img is the image you uncompressed if you renamed it of course).
    8. Let it finish and reboot, if it doesn't boot try another GSI, as some of them I couldn't get them to boot.
    Try it, to me anything is better than stock.
    Good luck bud.