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

[8.1.0] [Oreo] [Treble] [GSI] [Unofficial] [AICP-Mordiford]

Search This thread

clussel

New member
Jan 15, 2017
2
0
Hello.
I tried flashing AICP-Mordiford GSI to Xiaomi Mi A2 Lite(daisy) in this procedure.

  1. Downgrade to Oreo 8.1.0
  2. Unlock Bootloader
  3. Flashing TWRP
  4. Flashing AICP-Mordiford GSI with fastboot
  5. Flashing Xiaomi stock rom's userdata.img with fastboot
  6. Flashing Magisk,OpenGApps with TWRP

After reboot, I succeed install AICP-Mordiford but only 4GB out of 32GB of internal storage was recognized.

How can I use all the internal storage?
 

Technical

Senior Member
Jun 2, 2008
3,462
1,210
Hello.
I tried flashing AICP-Mordiford GSI to Xiaomi Mi A2 Lite(daisy) in this procedure.

  1. Downgrade to Oreo 8.1.0
  2. Unlock Bootloader
  3. Flashing TWRP
  4. Flashing AICP-Mordiford GSI with fastboot
  5. Flashing Xiaomi stock rom's userdata.img with fastboot
  6. Flashing Magisk,OpenGApps with TWRP

After reboot, I succeed install AICP-Mordiford but only 4GB out of 32GB of internal storage was recognized.

How can I use all the internal storage?
I'm really not sure, but, maybe, TWRP has the option to correct the partition size (if this is what happening).
The option in on Wipe menu, Advanced Wipe, FS if I'm not wrong.
 

clussel

New member
Jan 15, 2017
2
0
"Format Data" is your solution.
And why did you follow step 5? :eek:


For best results, try to boot into a clean system (after #4).

I'm really not sure, but, maybe, TWRP has the option to correct the partition size (if this is what happening).
The option in on Wipe menu, Advanced Wipe, FS if I'm not wrong.

Thanks for advice.

I tried various methods and succeeded in the following way.

  1. Downgrade to Oreo 8.1.0
  2. Unlock Bootloader
  3. Edit fstab.qcom to disable encrypt(/forceencrypt/encryptable/g)
  4. Format data twitce with TWRP
  5. Flashing AICP-Mordiford GSI with fastboot
  6. Flashing Magisk,OpenGApps with TWRP

After reboot, I can use all the internal storage!!!

However my Xiaomi Mi A2 Lite cannot connect to mobile network.
I tried flashing stock images but cannot connect to mobile network.

  • Can read IMEI
  • Can read SIM
  • Cannot select networks

My smartphones is broken. :angel:
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    Unofficial AICP-Mordiford

    Your warranty is now void. We are not responsible for bricked devices, dead SD cards, thermonuclear war or you get fired because the alarm app failed. Please do some research if you have any concerns about features included in this ROM before flashing it! YOU are choosing to make these modifications, and if you point the finger at us for messing up your device, we will laugh at you. Hard & a lot.

    Credits:

    In the beginning, we would like to thank: AICP-mordiford for Project Treble. Then the teams of LineageOS, OmniRom, DU, SlimRoms, Resurrection Remix and AICP.
    Special mention to @LorD ClockaN, @zipsnet, @eyosen, @semdoc, @Drgravy, @Hashbang173, @SpiritCroc, @wartomato, @eboye, @maxwen.

    Download link: AICP-mordiford for Project Treble
    It is strongly recommended to fully wipe your device before flashing and please avoid restoring system apps and system data with Titanium Backup as this can cause stability issues that are very hard to debug.
    If you believe you know what you're doing - then fine, go ahead, but please don't complain if you experience any strange behavior.

    Issues:

    So called "Technicolor" bug when moving into or out dark mode, or when using Substratum themes, when icons and the screen got weird colors effects and stripes. Generally, you could boot into recovery and wipe Dalvik/Cache.
    Sometimes, you need two cycles of booting and wiping Dalvik. This is a bug that is currently affecting almost all Treble ROMs.

    Additional links:
    Open GApps (Platform ARM64, Android 8.1)
    Magisk
    AICP-mordiford Wiki
    Phh-Treble Wiki


    Supported Devices: all Project Treble enabled devices should work. Some are listed here.

    Please, do not post bugs/issues at the official AICP Communities because this is unofficial build.

    ROM OS Version: 8.1.0 Oreo
    Kernel: Lineage 4.4.147
    Mordiford source

    Donations: AndroPlus
    7
    For Mi Pad 4 /4 Plus, I recommend to use non-GSI AICP-Mordiford
    https://wiki.maud.io/aicp/oreo
    https://cloud.akane.blue/nextcloud/s/PbGugWPefp9fFNZ?path=/clover
    Xiaomi's implementation of LED is weird and coudln't fix with GSI.
    I donated Mi Pad 4 to original developer of AICP-Mordiford, so there will be continuous update.
    4
    @Technical
    1. Please add notice not to post bugs/issues at official community because this is unofficial build.

    2. The source of Mordiford is here, so please add this link too.
    https://github.com/mordiford

    3. Treble GSI doesn't contain kernel.
    4
    Mi Pad 4

    I have L.R Team TWRP, v3.2.3-0930 recovery.

    As @AndroPlus suggested, I have flashed latest China beta MIUI from HERE. Flash zip from TWRP. Reboot into TWRP after. No need to boot MIUI at all.
    Flash latest AICP img. Reboot TWRP. Flash Magisk.
    Wipe cache, data, internal, dalvik/art
    Reboot System.

    All is good again, DTTW option back in Display settings and auto brightness working without any build.prop additional modification.

    Only thing, I stil have to add ro.sf.lcd_density=320 for proper dpi.
    3
    @AndroPlus

    Regarding dpi settings, can you please add ro.sf.lcd_density=320 during build up because I have found this line as default inside build.prop of miui rom.

    Regarding screen flickering, persist.sys.qcom-brightness=4095 is not present inside build.prop on miui rom but it seems it is working as a workaround for Mi Pad 4 until better fix.

    Actually AICP rom already contains them, but somehow it's not working with latest MIUI's vendor.
    It's working on old version, so I will look into it at the weekend.
    https://github.com/AndroPlus-org/device_phh_treble/blob/android-8.1/rw-system.sh#L124
    https://github.com/AndroPlus-org/device_phh_treble/blob/android-8.1/change-device-type.sh#L40