• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Question Anyone try any GSI ROMs on the G Power 2021?

Search This thread

thebestofall007

Senior Member
May 29, 2017
53
9
I would like to know how to install magisk with this rom, as it is a pain to do with the stock root method. I tried the "securize" option to remove root, but that resulted in the phone not booting past the motorola logo.
 

thebestofall007

Senior Member
May 29, 2017
53
9
Unfortunately you'd have to do it the same way because we don't have a functional TWRP. Patch boot and flash it.

I was able to patch the boot, but the app complains that the magisk version is unsupported and then pretends that it's not installed, as well as not letting me access the modules. It does the same with the direct install method, too. I need magisk to install AdAway.
 

thebestofall007

Senior Member
May 29, 2017
53
9
OK mine is saying;

"Resizing 'system_a' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed"

Lol.

I got the same error. I had to run these commands to delete and resize the system partition to fit the image:
Code:
fastboot delete-logical-partition system_a
fastboot delete-logical-partition system_b
fastboot create-logical-partition system_a 100000
fastboot create-logical-partition system_b 100000
 
  • Like
Reactions: triggerlord

triggerlord

Senior Member
Dec 15, 2015
575
134
Moto G Power (2021)
I got the same error. I had to run these commands to delete and resize the system partition to fit the image:
Code:
fastboot delete-logical-partition system_a
fastboot delete-logical-partition system_b
fastboot create-logical-partition system_a 100000
fastboot create-logical-partition system_b 100000
Yep that did it. Anyone know if there's an option or command to set the notch offset? I know you can do it but I don't know how.
 

thebestofall007

Senior Member
May 29, 2017
53
9
I found a lineage OS GSI that is phh-treble based here and it works well with this phone. I am trying it out as I type. I was able to fastboot flash a magisk boot image on it no problem to root it so I could run AdAway.

The main problem with this ROM so far is that it does not include Gapps out of the box. How do I get Gapps on this one? I used the TWRP from the XDA thread here, to try out several flavors of Gapps (opengapps, nikgapps, bitgapps, etc.), but the flash fails due to the system partition being read-only or not having enough space on it. Furthermore, this particular TWRP doesn't offer to allow modifications to the system partition.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Hey thanks, so before I proceed what are the steps to fastbooting that GSI rom you recommended, thanks!
    1. update your adb/fastboot with the google link I showed.
    2. enable usb debugging in System>Developer Options>USB Debugging.
    3. connect your phone to your computer with USB cable. when prompt comes up on phone, allow the debugging.
    4. issue command
    Code:
    adb reboot recovery
    to reboot phone to recovery.
    5. when the dead android robot shows, hold down power and press vol up to get to menu. select enter fastboot (third option down).
    6. when in fastboot mode, enter the commands to delete and recreate the system partition.
    Code:
    fastboot delete-logical-partition system_a
    fastboot delete-logical-partition system_b
    fastboot create-logical-partition system_a 100000
    fastboot create-logical-partition system_b 100000
    7. flash the image with this command:
    Code:
    fastboot flash system <name of image>
    8. clear userdata with
    Code:
    fastboot erase userdata
    9. enter command
    Code:
    fastboot reboot
    to reboot the phone.
    1
    Try downloading it again and then running the checksum again to make sure the file doesn't get corrupted. I've had network problems mess my files up before.

    Thank you thank you thank you so much! After hours of trying and failing I have finally got LineageOS gsi working on my phone :D Thanks again for your help and patience. I appreciate it!

    Solution. Go to extractions settings and tick mark "keep broken parts" allowing the full checksum to come out as matched. Everything seems to be good right now. :)
    1
    Thank you thank you thank you so much! After hours of trying and failing I have finally got LineageOS gsi working on my phone :D Thanks again for your help and patience. I appreciate it!

    Solution. Go to extractions settings and tick mark "keep broken parts" allowing the full checksum to come out as matched. Everything seems to be good right now. :)
    Good to see you got it working! You're welcome.
    1
    Sorry I've been gone for a while. Seems like MMS/SMS and headphone jack detection is broken. Everything else is working.
    Same goes for the LineageOS GSI I'm using that is also based on PHH's work.

    I got a question: Would you know how to determine if this device tree would work for this phone?

    https://github.com/MrNerd/MotoGPower_2020_DT

    I know it says 2020 on it, but I looked through some of it and it points to Borneo. Mr. Nerd told me he used a python script to generate this tree.

    Update: I just got word that motorola is releasing the device tree and kernel tree:

    https://github.com/MotorolaMobilityLLC/kernel-msm/issues/374




    I'm trying to pitch together the necessary source code (kernel and device tree files) to get the ball rolling on a proper custom ROM (NOT a GSI) for this phone (especially LineageOS).
  • 2
    I'm looking at an android 11 based GSI rom right now. The main problem is that I can't get TWRP to work properly.
    Just saying, you don't need TWRP to flash GSIs.
    2
    Hey thanks, so before I proceed what are the steps to fastbooting that GSI rom you recommended, thanks!
    1. update your adb/fastboot with the google link I showed.
    2. enable usb debugging in System>Developer Options>USB Debugging.
    3. connect your phone to your computer with USB cable. when prompt comes up on phone, allow the debugging.
    4. issue command
    Code:
    adb reboot recovery
    to reboot phone to recovery.
    5. when the dead android robot shows, hold down power and press vol up to get to menu. select enter fastboot (third option down).
    6. when in fastboot mode, enter the commands to delete and recreate the system partition.
    Code:
    fastboot delete-logical-partition system_a
    fastboot delete-logical-partition system_b
    fastboot create-logical-partition system_a 100000
    fastboot create-logical-partition system_b 100000
    7. flash the image with this command:
    Code:
    fastboot flash system <name of image>
    8. clear userdata with
    Code:
    fastboot erase userdata
    9. enter command
    Code:
    fastboot reboot
    to reboot the phone.
    2
    I unlocked the bootloader but I didn't erase user data.
    Ah if that doesn't work try "system_a" instead. Anyway you always have to erase the data partition or it could cause problems.
    2
    GOOD NEWS! I FINALLY GOT IT TO BOOT THE GSI.


    I had to initially update my ADB/fastboot drivers on my linux mint system (the one I'm flashing with) because the one that comes from the repositories is older than dinosaurs and doesn't recognize the --force option:

    Code:
    wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
    unzip \platform-tools-latest-linux.zip
    sudo cp platform-tools/adb /usr/bin/adb
    sudo cp platform-tools/fastboot /usr/bin/fastboot


    Next I had to wipe my userdata like triggerlord said, as that did cause me problems the first time. So I wiped userdata with

    Code:
    fastboot erase userdata

    I then flashed with the force argument. Here is the output:

    sudo fastboot --force flash system system-roar-arm64-ab-vanilla.img
    Resizing 'system_a' OKAY [ 0.008s]
    Sending sparse 'system_a' 1/4 (458752 KB) OKAY [ 20.873s]
    Writing 'system_a' OKAY [ 2.666s]
    Sending sparse 'system_a' 2/4 (458752 KB) OKAY [ 20.548s]
    Writing 'system_a' OKAY [ 2.665s]
    Sending sparse 'system_a' 3/4 (458752 KB) OKAY [ 20.779s]
    Writing 'system_a' OKAY [ 2.581s]
    Sending sparse 'system_a' 4/4 (161956 KB) OKAY [ 7.270s]
    Writing 'system_a' OKAY [ 1.246s]
    Finished. Total time: 78.651s


    I wouldn't recommend using the force argument.. That might change the logical partition to a physical one and the LSA might fail to flash the stock ROM. Worst case that might brick it.
    yes, I agree with you. I was able to use LMSA to restore my phone thank goodness and it didn't hurt it.

    TWRP can natively flash GSIs. You just have to change the image type from flashable zip to img.
    For some reason, I wasn't able to flash the image with TWRP, as the flash didn't finish, and I got no error message either, strangely, and the image wouldn't boot.

    The main problem with this vanilla image is that the mobile/cell network doesn't work and has wifi-only networking. It was fun trying it out, though! Does anyone know one that does work with cell network?
    1
    If you do try one I'd recommend trying the latest build of PHH's AOSP. You'll want to use one of these images.