20190223[Guide][UNOFFICIAL LineageOS 16.0 Pie][Enable F2FS /Data] - Xiaomi Mi Pad 4 Plus Guides, News, & Discussion

DEV: @parfrost97 w3bsit3-dns.com
Download ROM: https://mega.nz/#!i7Qz1QTI!xdz4jf62kDb0sUyk_nM0SGi9TQ_0N-R7G2hVGXf-PHU Update once a month!
23-02-19
- February security patch
- Kernel 4.4.175
- Update of the Lineage database
- Removed Gcam
- Many other changes
!!!! Important someone found problem with Mac Address.
Unlocked Bootloader
Backup persist partition
(There are some project that changes your WIFI MAC Address. if it happened you will lost it forever.)
It shows wifi but after entering pwd it shows only saved. Can't connect at all.
Download TWRP--- https://mega.nz/#!qcA2BQIJ!xiBnnC0B4Z7fqpARbIY2ARdDY4hJLZgsriJsWaCCzNQ
-Boot TWRP
-connect your PC with USB
-your computer -Open CMD
cmd>adb devices (if not founded your device then (TWRP--->Mount----> (toggle)Disable MTP
cmd>adb shell
cmd>cd /dev/block/platform/soc/c0c4000.sdhci/by-name/
cmd>ls -l /dev/block/platform/soc/c0c4000.sdhci/by-name/
cmd>dd if=/dev/block/platform/soc/c0c4000.sdhci/by-name/persist of=/sdcard/persist.img
(keep your persist.img in the safe place)
--------------------------
How to restore it if you have a problem.
(load your persist.img into sdcard.)
cmd>dd if=/sdcard/persist.img of=/dev/block/mmcblk0p48
---------------------
Download Official Mokee TWRP
https://drive.google.com/file/d/1eNjbSsE3igYsvB4QIHjPGOcgV6RKZrnI/view
Download Mokee Nightly
https://download.mokeedev.com/?device=clover&type=
1.Flash Xiaomi Lastest Firmware (option)
https://github.com/XiaomiFirmwareUpdater/firmware_xiaomi_clover
2.Flash Mokee 9.0 Nightly
3.Reboot
4.After -forceencrypt process reboot to TWRP
5.Change data partition to F2FS + wipe (Dalvik +data+Cache+System)+ Flash LOS
Note [*]TWRP (change /data partition from EXT4 to F2FS)
-Wipe--->Advanced Wipe--->select Data Partition---->Repair or change File System--->Change File System--->select F2FS
6.Reboot
7.Setup OS
8.Flash Gapps or Flash NanoDroid Suit.(For microG)
-Anyone please test mobile network.

Thanx and kudos. Hope March update of LOS 16 will be released .....

How did you build your ROM? Could you provide your steps?
I built LOS 16.0 on my own, but fingerprint doesn't work and the DPI is too low.
Thanks,
meiser

I already have LOS16 from https://forum.xda-developers.com/mi-pad-4-plus/how-to/guide-mi-pad-4-plus-lineageos-15-1-t3893264, I imagine this is a newer version.
Looks like I have to flash official image, then flash Mokee on top of it before LOS? Strange. Also looks like there's a newer TWRP from the link?

Flashing mokee first will make the fingerprint function work?

Related

Unofficial TWRP for sagit [F2FS+EXT4][Unofficial]

Unofficial TWRP and OrangeFox builds.
TWRP : https://github.com/xiaomi-msm8998/twrp_device_xiaomi_sagit/releases/
OrangeFox - deprecated : https://sourceforge.net/projects/ep...overy/OrangeFox-Unofficial-sagit.img/download
This is TWRP-3.3.1 unofficially updated with lots of new improvements!
What's here but not in the official one?
Compiled with Pie blobs and in pie environment
Updated kernel, based on CAF's latest pie tag and compiled with latest Clang 9.0.3 by Google
Additional debug support - This TWRP won't overwrite /sys/fs/pstore
F2FS support
Cleaned unused HALs from manifests
System as Root variant available
How to install this TWRP?
Boot into fastboot mode by pressing volume down + power when the device is turned off
Connect your device to your computer
Download the TWRP build
Open a shell at the download folder
Rename the downloaded file to twrp.img
Type
Code:
fastboot flash recovery twrp.img
To leave the fastboot mode type
Code:
fastboot reboot
What is F2FS?
F2FS (Flash-Friendly File System) is a flash file system initially developed by Samsung Electronics for the Linux kernel.
The motive for F2FS was to build a file system that, from the start, takes into account the characteristics of NAND flash memory-based storage devices (such as solid-state disks, eMMC, and SD cards), which are widely used in computer systems ranging from mobile devices to servers
Click to expand...
Click to collapse
- Wikipedia
How to use F2FS for /data and /cache?
Reboot into this TWRP
Select wipe > format data then type yes and reboot into recovery again
Then select wipe > advanced wipe select cache then select repair or change file system and select F2FS
Do the same step with Data
Install a supported ROM and GApps
Reboot into the ROM
Thank you for your great work . keep it up
Thanks,I'm following the topic
Sorry for my ignorance....but can somebody tell me the difference between these two?
Shiw Liang said:
Sorry for my ignorance....but can somebody tell me the difference between these two?
Click to expand...
Click to collapse
Between orange fox and twrp? Orange fox is a fork of twrp with some special features and a redesign.
Shiw Liang said:
Sorry for my ignorance....but can somebody tell me the difference between these two?
Click to expand...
Click to collapse
Have a look here - https://orangefox.tech/
DarthJabba9 said:
Have a look here - https://orangefox.tech/
Click to expand...
Click to collapse
happy to see you here, Will sagit devices have an official version? We are looking forward
fr0bs said:
happy to see you here, Will sagit devices have an official version? We are looking forward
Click to expand...
Click to collapse
In due course
New TWRP test build is available!
TWRP was updated to version 3.3.0 and is usable with f2fs.
Download : https://drive.google.com/file/d/1UwT5UBz_8PVugEhWLYlcwKM3VAi25jkI/view
This build is possible due to Ultraschorsch 's support by providing a Google Cloud trial ?
Good evening!
A new build of TWRP is published here: https://github.com/xiaomi-msm8998/twrp_device_xiaomi_sagit/releases/tag/3.3.0
Decryption problem
NeoArian said:
Good evening!
A new build of TWRP is published here: https://github.com/xiaomi-msm8998/twrp_device_xiaomi_sagit/releases/tag/3.3.0
Click to expand...
Click to collapse
I have tryed your latest update with AEX 6.5 and I can't decrypt data. What am I wrong?
perspicio said:
I have tryed your latest update with AEX 6.5 and I can't decrypt data. What am I wrong?
Click to expand...
Click to collapse
There is a problem with decrypting devices formatted with may ASB, I see about it. You could go f2fs or setup rom on April build and upgrade to new one for now.
Edit:// should be fixed here: https://github.com/xiaomi-msm8998/twrp_device_xiaomi_sagit/releases/tag/3.3.1
I am currently on LineageOS 15 (8.1), and using TWRP 3.2.3. Everything works OK.
But if I try to boot into latest 3.3.1 (both with SAR and without) it doesn't request pattern for decrypting data, and I can't figure out how to force it to.
Without decrypt it shows /sdcard and /data/data as garbage...
Hi @NeoArian, it seems that at least your latest TWRP-sar version has issues with mounting external usb storages: at least my sandisk 64GB key that I always used to save nandroids to is not detected, thus I have to rely on internal memory to save nandroids, fw, and user data.
Using TWRP version 3.2.3-sagit-shev.img I have no issues (but unfortunately no support for your lineageos unofficial builds if I'm not mistaken).
Am I doing something wrong? Do you have any suggestions?
Cavaler said:
I am currently on LineageOS 15 (8.1), and using TWRP 3.2.3. Everything works OK.
But if I try to boot into latest 3.3.1 (both with SAR and without) it doesn't request pattern for decrypting data, and I can't figure out how to force it to.
Without decrypt it shows /sdcard and /data/data as garbage...
Click to expand...
Click to collapse
I thought it was some codes in twrp that cause the problem.
If I use 3.3.1.0 everything works fine. but it won't decrypt my data even I had no pattern for lock screen with 3.3.1.2.
( all mentioned above are official builds )
This version TWRP have arch bug.
This version TWRP can not install the right latest OpenGapps. It will back error 64 and ask user install arm version gapps not the arm64 version.
The details can visit here https://github.com/TeamWin/Team-Win-Recovery-Project/issues/1070
Can you fix it in your version?
https://github.com/TeamWin/Team-Win-Recovery-Project/issues/1070#issuecomment-463335444
New twrp update available: https://github.com/xiaomi-msm8998/twrp_device_xiaomi_sagit/releases/tag/3.3.1-20191204
AmaoBilibili said:
This version TWRP can not install the right latest OpenGapps. It will back error 64 and ask user install arm version gapps not the arm64 version.
The details can visit here https://github.com/TeamWin/Team-Win-Recovery-Project/issues/1070
Can you fix it in your version?
https://github.com/TeamWin/Team-Win-Recovery-Project/issues/1070#issuecomment-463335444
Click to expand...
Click to collapse
I assume that's a problem with OpenGapps installer.
Hi, I'm running twrp 3.3.1-20191204 with your Lineage 17 very happily thanks!
For the last couple of lineage installs though (2019-12-24 and 2020-01-08) I'm getting a failure in twrp when running a backup, on data partition specifically:
createTarFork() process ended with ERROR: 255
recovery.log is far more helpful:
Code:
# tail -n 50 /tmp/recovery.log
I:addFile '/data/anr/anr_2020-01-10-11-49-31-592' including root: 1
==> set selinux context: u:object_r:anr_data_file:s0
I:addFile '/data/per_boot' including root: 1
==> set selinux context: u:object_r:system_data_file:s0
failed to lookup tar policy for '/data/per_boot' - '0eb5afb598811574'
I:Error adding file '/data/per_boot' to '/data/media/0/TWRP/BACKUPS/161a6490/2020-01-10--16-29-03_lineage_sagit-userdebug_10_QQ1B200105004_en/data.ext4.win008'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
There's an (empty) folder '/data/per_boot' which seems to be breaking the backup process. I'm not sure if it's lineage itself or one of my apps creating this dir, but if I manually delete it the backup works... then it gets recreated next boot.
A somewhat minor issue, in case it's either easy enough to fix and/or other's run into the same problem!
I assume this twrp version use for flashing gsi. Am I correct?

[Guide] Mi Pad 4 Plus with F2FS File System [Official HAVOC-OS 2.1 from @rcstar6696]

Download Link:https://sourceforge.net/projects/havoc-os/files
New Update ROM Havoc 2.2
--------------------------------------------
Supported MI PAD 4 plus
DT2W
DT2C (status bar & Smart Nav)
exFAT
Call with Volte
USB Connection with Developer mode "usb configuration"
Magnetic cover
!!!! Important Please see the picture that someone found problem with Mac Address.
Unlocked Bootloader
Backup persist partition
(There are some project that changes your WIFI MAC Address. if it happened you will lost it forever.)
It shows wifi but after entering pwd it shows only saved. Can't connect at all.
Download TWRP--- https://mega.nz/#!qcA2BQIJ!xiBnnC0B4Z7fqpARbIY2ARdDY4hJLZgsriJsWaCCzNQ
-Boot TWRP
-connect your PC with USB
-your computer -Open CMD
cmd>adb shell
cmd>cd /dev/block/platform/soc/c0c4000.sdhci/by-name/
cmd>ls -l /dev/block/platform/soc/c0c4000.sdhci/by-name/
cmd>dd if=/dev/block/platform/soc/c0c4000.sdhci/by-name/persist of=/sdcard/persist.img
(keep your persist.img in the safe place)
--------------------------
How to restore it if you have a problem.
(load your persist.img into sdcard.)
cmd>dd if=/sdcard/persist.img of=/dev/block/mmcblk0p48
https://forum.xda-developers.com/mi-a1/how-to/easiest-quickest-to-fix-wifi-custom-t3779040
--------------------------------------------
Step Ex4 File System + microG (No GApps)
--------------------------------------------
1.Flash Lastest Firmware (option)
https://github.com/XiaomiFirmwareUp...jKlFtxZa6wKy4bTGrLy5ptJJvfZy0d14c5fQlHypsZyLQ
2.Flash ROM
3.Boot System. (Setup Android)
4.Flash Magisk (required for NanoDroid Setup =Magisk mode)
5.Reboot System
Note !!!!! If you want expert features please Flash NanoDroid-Setup wizard First
6.Flash NanoDroid-microG Sub Module
https://downloads.nanolx.org/NanoDroid/Stable/NanoDroid-microG-20.6.20190126.zip
7.Flash NanoDroid-patcher Sub Module (Cause Havoc Feature---->Allow signature spoofing broken.)
https://androidfilehost.com/?w=search&s=NanoDroid-patcher-20.3.20181208
8.Reboot System
9.Configure MicroG Setting
-Install , Configured and Register Fake Play Store
-Reboot
10.Install f-droid and add nanodroid repo
F-Droid APK ---- https://f-droid.org/en/
(Add 3 new repos below)
https://www.nanolx.org/fdroid/repo
https://fdroid.bromite.org/fdroid/repo
https://microg.org/fdroid/repo
11.Open F-Droid Program & install MozillaNlpBackend UnifiedNlp location provider
12.Setting up microG setting for MozillaNlpBackend
(microG setting --->UnifiedNlp Setting---->Configure location backends---->Tic box (Mozilla Location Service)
13.Open Gps Location (Battery saving or High Accuracy mode)
14.Check Self-Check from microg setting program again .you will pass all checking status.
Note ---!!!! NanoDroid update will use you run manual from F-Droid Program. If you want Auto-update recommends install F-Droid Privileged extension magisk's module.
https://forum.xda-developers.com/apps/magisk/module-f-droid-privileged-extension-t3587068
---------------------------------------------
Next step ---- convert file system to F2FS and compare to EX4
!!!!!waiting for New TWRP (F2FS File System)
https://forum.xda-developers.com/mi-pad-4/development/rom-havoc-os-v2-0-t3881690
!!!!!waiting for OTA Update
:good::good::good::good::good:
=======================
Open F-Droid Search & Install
-Lawnchair Launcher
-VLC Media player
-Firefox Klar browser

Update-20190330 [GUIDE][9.x UnOfficial crDroid 5.1][When enable /data (F2FS)]

New update https://yadi.sk/d/fiKccSDJuD3rYw every two weeks
Now Latest version: 03/30/19
Allow Signature spoofing ====Broken in this version.
supports f2fs [ Encrypt if formatted /data to F2FS] (Thanks @crazyhotel)
New BootAnimation https://mega.nz/#!kDgh3KhS!O0HGieNqCbKfD_rnAXKIG423lBV1UUAQVdEsYVRM85k Align center Boot Logo For NoGapps version.
---replaced /system/media/bootanimation.zip
Attach pics ==compared with F2FS /data partition
!!!! Important someone found problem with Mac Address.
Unlocked Bootloader
Backup persist partition
(There are some project that changes your WIFI MAC Address. if it happened you will lost it forever.)
It shows wifi but after entering pwd it shows only saved. Can't connect at all.
Download TWRP--- https://mega.nz/#!qcA2BQIJ!xiBnnC0B4Z7fqpARbIY2ARdDY4hJLZgsriJsWaCCzNQ
-Boot TWRP
-connect your PC with USB
-your computer -Open CMD
cmd>adb shell
cmd>cd /dev/block/platform/soc/c0c4000.sdhci/by-name/
cmd>ls -l /dev/block/platform/soc/c0c4000.sdhci/by-name/
cmd>dd if=/dev/block/platform/soc/c0c4000.sdhci/by-name/persist of=/sdcard/persist.img
(keep your persist.img in the safe place)
--------------------------
How to restore it if you have a problem.
(load your persist.img into sdcard.)
cmd>dd if=/sdcard/persist.img of=/dev/block/mmcblk0p48
---------------------
Step [For Google apps User]
Format /data patition to F2FS
Please read my tutorial here
https://forum.xda-developers.com/mi-pad-4-plus/how-to/how-to-increase-read-write-speed-tip-t3900725
Flash lastest Xiaomi Firmware (Clover)
https://github.com/XiaomiFirmwareUp...jKlFtxZa6wKy4bTGrLy5ptJJvfZy0d14c5fQlHypsZyLQ
Flash ROM
Flash Gapps (pico or nano)
Reboot
---------------------------------
Step (microG user only)
Flash lastest Xiaomi Firmware (Clover)
https://github.com/XiaomiFirmwareUp...jKlFtxZa6wKy4bTGrLy5ptJJvfZy0d14c5fQlHypsZyLQ
Flash ROM
Boot System
-Logo from bootanimation = not in center of desktop
-DT2W = ok
-DT2C --Launcher(Desktop)--->Settings--->Guestures--->Double tap gesture=Screen off
-Fingerprint = ok
-Allow Signature spoofing = not ok
Flash Magisk
Add Magisk's modules (with Magisk manager)
-Patch services.jar by Smali patcher v0.4 (add Allow Signature spoofing)
https://mega.nz/#!QCZHhKaY!gY5is-50cWwcWHDjhud4K8EfexDUGGkLptT4obu18VE
Flash NanoDroid microG Sub module
https://downloads.nanolx.org/NanoDroid/Stable/NanoDroid-microG-20.6.20190126.zip
***Auto installed by NanoDroid script
++Nominatim geocoder backend
++Deja Vu Location backend
++NanoDroid microG GmsCore
+++with Maps API v1
+++with Play Store
---without Fake Store
---without Google Sync Adapters
---without swipe libraries
---without /system application override
Setup microG Setting
Login Play Store ( reboot required) ---version mod by NanoDroid
cont.
--------------------------------
tom.android said:
Download ROM: https://yadi.sk/d/fiKccSDJuD3rYw Recommend ---> NoGapps_crDroidAndroid-9.0-20190212-clover-v5.1.zip
!!!! Important someone found problem with Mac Address.
Unlocked Bootloader
Flash lastest Xiaomi Firmware (Clover)
https://github.com/XiaomiFirmwareUp...jKlFtxZa6wKy4bTGrLy5ptJJvfZy0d14c5fQlHypsZyLQ
Boot System
-Logo from bootanimation = not in center of desktop
-DT2W = ok
-DT2C --Launcher(Desktop)--->Settings--->Guestures--->Double tap gesture=Screen off
-Fingerprint = ok
-Allow Signature spoofing = not ok
Add Magisk's modules (with Magisk manager)
-Patch services.jar by Smali patcher v0.4 (add Allow Signature spoofing)
https://mega.nz/#!QCZHhKaY!gY5is-50cWwcWHDjhud4K8EfexDUGGkLptT4obu18VE
Setup microG Setting
Login Play Store ( reboot required) ---version mod by NanoDroid
cont.
--------------------------------
Click to expand...
Click to collapse
20190212 supports f2fs,because it use the same kernel and device tree of havoc os
Please tell me Is the problem of changed mac address occuring with gsi roms or it is also there with normal flashable zip roms
Can it be repaired by flashing fastboot rom with mi flash tool?

[guide] steps to flash gsi on redmi note 7

[GUIDE] STEPS TO FLASH GSI ON REDMI NOTE 7 [lavender]​
Many of us tried Flashing GSI on our Redmi Note 7 but failed due to various reasons even though it is absolutely bugless for Redmi Note 7 .
Here are the steps which i will mention below that will let us use the full potential of GSI.
Requirements :
Bootloader Unlocked
TWRP Installed
Ofcourse a working device
Installation Method :
First of all we need the flash the latest chinese beta rom.It gets updated everyweek. Since I have the cn rn7 i prefer to update the vendor partition everyweek for fixes and latest updates.But you can try on your stable rom too (I can't gurantee if things will work out on stable rom or not) .So, first of all be on china beta rom.
Go to fastboot mode and connect your pc to your device .You need to have installed xiaomi drivers to make this work properly. Once you are in fastboot ,open a terminal/cmd and type : fastboot -w ( this will erase your existing system partition and data and internal storage too , so make sure to have a backup if you have something essential on ur device)
Now considering that we have already downloaded a gsi i.e a phh GSI ..now for this case we are gonna assume its aosp as an example.. while in the fastboot mode type : fastboot flash system system.img ( here system.img(it can be of different name too) is the gsi img which you download from phh thread).
Remember : once the flash is completerd reboot to TWRP and not to system.
Once you are in twrp , flash magisk ( flash magisk latest canary as it has support for system as root devices) then press on wipe button of twrp,,,then advanced wipe..then tick mark on system and you will see repair or change file system option.Click on it..Click on repair and resize file system.
Now go to mount settings and mount system partition. Now you can flash gapps if you want .
After flashing gapps finally reboot to system
Voila! After in about 5 mins you will be booted to GSI rom
Post Installation Method :
You will have almost everything working after booting into gsi except you will run into brightness bug which you can fix by the following way
Connect your device with pc and enable mass storage
open a cmd/terminal on ur pc
type the following codes : adb shell
su ( in this case you will have to give permission from your device ; grant it)
setprop persist.sys.qcom-brightness 4095
Congragulations Now you have installed a gsi perfectly on your device
In this way you can flash almost all the gsi available on phh thread Hope this clarifies all of our problems.
Hit Thanks if I helped you somehow with this
shouldn't you be flashing disable_encrypt zip too?
repair or change file system option.Click on it..Click on repair and resize file system. I don''t get this one. There are a few options inside
PROdelision said:
shouldn't you be flashing disable_encrypt zip too?
Click to expand...
Click to collapse
No, its not required.
chiplovez9x said:
repair or change file system option.Click on it..Click on repair and resize file system. I don''t get this one. There are a few options inside
Click to expand...
Click to collapse
Make sure you have allowed modifications on system partition and also you dont have system as read only.
Does fingerprint working on GSI?
what is gsi?
I don't know much but gsi means u can flash almost all roms (which have images). And most of ROMs do have gsi images.. So u can install any rom on your phone. I don't know the steps to do so.. ?
bryanngapopala said:
what is gsi?
Click to expand...
Click to collapse
Simple speaking it's a image with clear android from google
Has anyone tested RR PIE GSI on RN7? Does it work?
Is it possible to boot Android O GSI? :silly:
letsmakecakes said:
No, its not required.
Click to expand...
Click to collapse
here's everything i did:
on miui beta.....already encrypted.
did fastboot -w
flashed latest RR gsi via fastboot
booted to twrp, flashed magisk(v19), repair and resize
reboot
asks for decryption password
where exactly am i going wrong?
able to boot if im using decrypt zip but lockscreen doesnt work.
Is the. Method the same for the global version with global rom?
letsmakecakes said:
[GUIDE] STEPS TO FLASH GSI ON REDMI NOTE 7 [lavender]​
Many of us tried Flashing GSI on our Redmi Note 7 but failed due to various reasons even though it is absolutely bugless for Redmi Note 7 .
Here are the steps which i will mention below that will let us use the full potential of GSI.
Requirements :
Bootloader Unlocked
TWRP Installed
Ofcourse a working device
Installation Method :
First of all we need the flash the latest chinese beta rom.It gets updated everyweek. Since I have the cn rn7 i prefer to update the vendor partition everyweek for fixes and latest updates.But you can try on your stable rom too (I can't gurantee if things will work out on stable rom or not) .So, first of all be on china beta rom.
Go to fastboot mode and connect your pc to your device .You need to have installed xiaomi drivers to make this work properly. Once you are in fastboot ,open a terminal/cmd and type : fastboot -w ( this will erase your existing system partition and data and internal storage too , so make sure to have a backup if you have something essential on ur device)
Now considering that we have already downloaded a gsi i.e a phh GSI ..now for this case we are gonna assume its aosp as an example.. while in the fastboot mode type : fastboot flash system system.img ( here system.img(it can be of different name too) is the gsi img which you download from phh thread).
Remember : once the flash is completerd reboot to TWRP and not to system.
Once you are in twrp , flash magisk ( flash magisk latest canary as it has support for system as root devices) then press on wipe button of twrp,,,then advanced wipe..then tick mark on system and you will see repair or change file system option.Click on it..Click on repair and resize file system.
Now go to mount settings and mount system partition. Now you can flash gapps if you want .
After flashing gapps finally reboot to system
Voila! After in about 5 mins you will be booted to GSI rom
Post Installation Method :
You will have almost everything working after booting into gsi except you will run into brightness bug which you can fix by the following way
Connect your device with pc and enable mass storage
open a cmd/terminal on ur pc
type the following codes : adb shell
su ( in this case you will have to give permission from your device ; grant it)
setprop persist.sys.qcom-brightness 4095
Congragulations Now you have installed a gsi perfectly on your device
In this way you can flash almost all the gsi available on phh thread Hope this clarifies all of our problems.
Hit Thanks if I helped you somehow with this
Click to expand...
Click to collapse
Which GSI should be needed to take? A-only or A/B ?
PROdelision said:
here's everything i did:
on miui beta.....already encrypted.
did fastboot -w
flashed latest RR gsi via fastboot
booted to twrp, flashed magisk(v19), repair and resize
reboot
asks for decryption password
where exactly am i going wrong?
able to boot if im using decrypt zip but lockscreen doesnt work.
Click to expand...
Click to collapse
I have no experience with GSI images, but I know in general that PIE breaks the encryption, if you roll back the security patch level. I don't know it this happened in your case, but I have lost couple of times my encrypted storage when I have tried to restore a backup of rom with older android patch level. After that, the bootup encryption pin is no longer accepted, neither by android nor by twrp, so the only option is to format data to remove encryption and start from scratch.
Were your miui beta and rr gsi of the same android security patch level?
Getting WRONG PIN error after setting up pin ???
letsmakecakes said:
[GUIDE] STEPS TO FLASH GSI ON REDMI NOTE 7 [lavender]
Many of us tried Flashing GSI on our Redmi Note 7 but failed due to various reasons even though it is absolutely bugless for Redmi Note 7 .
Here are the steps which i will mention below that will let us use the full potential of GSI.
Requirements :
Bootloader Unlocked
TWRP Installed
Ofcourse a working device
Installation Method :
First of all we need the flash the latest chinese beta rom.It gets updated everyweek. Since I have the cn rn7 i prefer to update the vendor partition everyweek for fixes and latest updates.But you can try on your stable rom too (I can't gurantee if things will work out on stable rom or not) .So, first of all be on china beta rom.
Go to fastboot mode and connect your pc to your device .You need to have installed xiaomi drivers to make this work properly. Once you are in fastboot ,open a terminal/cmd and type : fastboot -w ( this will erase your existing system partition and data and internal storage too , so make sure to have a backup if you have something essential on ur device)
Now considering that we have already downloaded a gsi i.e a phh GSI ..now for this case we are gonna assume its aosp as an example.. while in the fastboot mode type : fastboot flash system system.img ( here system.img(it can be of different name too) is the gsi img which you download from phh thread).
Remember : once the flash is completerd reboot to TWRP and not to system.
Once you are in twrp , flash magisk ( flash magisk latest canary as it has support for system as root devices) then press on wipe button of twrp,,,then advanced wipe..then tick mark on system and you will see repair or change file system option.Click on it..Click on repair and resize file system.
Now go to mount settings and mount system partition. Now you can flash gapps if you want .
After flashing gapps finally reboot to system
Voila! After in about 5 mins you will be booted to GSI rom
Post Installation Method :
You will have almost everything working after booting into gsi except you will run into brightness bug which you can fix by the following way
Connect your device with pc and enable mass storage
open a cmd/terminal on ur pc
type the following codes : adb shell
su ( in this case you will have to give permission from your device ; grant it)
setprop persist.sys.qcom-brightness 4095
Congragulations Now you have installed a gsi perfectly on your device
In this way you can flash almost all the gsi available on phh thread Hope this clarifies all of our problems.
Hit Thanks if I helped you somehow with this
Click to expand...
Click to collapse
Hi!
Did you not disable dm-verity and force-encryption?
Another question, the dev MIUI roms contain both the system and vendor partitions, right? How do you install only the vendor partitions from them? Or do you just flash MIUI and then reflash the custom ROM system? In that case, won't that affect dm-verity and encryption on the data partition?
Flashing correctly a GSI like in this guide; with vendor ecc ecc, will gcam work? Actually i'm on stock MIUI 10 and obv all working fine with a perfect version. My doubt is it.
Forever Alone said:
Getting WRONG PIN error after setting up pin ???
Click to expand...
Click to collapse
Did you not erase your /data partition through TWRP?
---------- Post added at 03:06 AM ---------- Previous post was at 02:46 AM ----------
Forever Alone said:
Getting WRONG PIN error after setting up pin ???
Click to expand...
Click to collapse
Did you not erase your /data partition through TWRP?
any recommended gsi rom with no bug?
booladi said:
Did you not erase your /data partition through TWRP?
---------- Post added at 03:06 AM ---------- Previous post was at 02:46 AM ----------
Did you not erase your /data partition through TWRP?
Click to expand...
Click to collapse
I did wipe userdata but not internal storage. heard its because i have unencrpyed data partition?

Easy install Treble Android 9 Pie [Generic System Image (GSI)]

Update 1 error " FBI message warning (lol) about the firmware and error 7"
---->Back to firmware v9.5.30
download it and install first
https://osdn.net/projects/xiaomifir...clover_miui_MIPAD4_9.5.30_4d4a04e318_8.1.zip/
--------------------------------------------------------------------------------------------
Update-2 -!!!! Cause Mokee TWRP not support (new GSI with Phh- :v114 ) decryption then You can't encrypt.
Use this step for new GSI with phh v114
1. Mokee TWRP v.3.3.1 --->TWRP-20190528-3.3.1.0-clover.img
https://share.weiyun.com/5VfERAy or https://mega.nz/#!QPgiDI6J!Urr3Drlwe...lp6UmBEb1v16pQ
2. Before firstboot from flashing must install Disable DM Verity ForceEncrypt
( https://zackptg5.com/downloads/Disable_Dm-Verity_ForceEncrypt_05.21.2019.zip)
Note After Mokee 9 Pie is updated to June 10th, the latest TWRP (TWRP-20190528-3.3.1.0-clover.img) cannot decrypt the data partition.
-----------------------------------------------------------------------------------------
Update-3
New installation.
0.Make F2FS Data Partition (Option)
1.Flash Firmware https://xiaomifirmwareupdater.com/#stable
2.Flash Vendor (mokee pie) https://mega.nz/#!JG4WxI7I!O4vr5eEcVXJUjbZ_jZBUE9Q9nDZ9tavRrT9JXDpql1Q
3.Flash System
4.Flash Disable DM Verity ( if you don't want encryption)
5.Reboot
-----------------------------------------------------------------------------------------
========================================================
Pre...
1. Download Latest Mokee TWRP 3.2.3_4 (not Twrp 3.3.1)
https://pan.baidu.com/s/1HgjIWw2WPd...rentPath=/sharelink3674761570-399175935519286
TWRP-20190117-3.2.3.0-4-clover.img
2. Download Base 9.x Treble supported ROM ( Mokee 9 nightly )
https://download.mokeedev.com/?device=clover
MK90.0-clover-2019-xx-xx-xxxx-NIGHTLY.zip
3. Download Android 9 Pie GSI ( system image file ) ----will make useful list later (after my finished testing)
General list here --- https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
How...
Base ROM supported ../Fingerprint /Forced Encryption / F2FS / Permissive mode SELinux
1. Clean Flash ROM (MK90.0-clover-2019-xx-xx-xxxx-NIGHTLY.zip)
do
1a [ Wipe--->Format Data ] + [ wipe---->Advanced wipe---->Dalvik/Data/Cache/System/Vendor ]
if not success please reboot into TWRP and try again.
1b reboot twrp
1c Flash Mokee ROM
Reboot system for setting up---->Note you can test any kernel supported in this step.
---------------Finished installation Treble Base ROM
2. Boot Recovery
2a wipe---->Advanced wipe---->Dalvik/Data/Cache/System/
2b change data partition to F2FS (if you want)----Option
2c install System.img GSI (ARM64_a only)
Reboot system
++ Gapps with Error 70
Solution-
1.Wipe---Advanced wipe----select (system menu) option-----Repair or change file system----Resize File System
2.Flash gapps again
++ Encrypted login
Setting---Fingerprint----setup (pattern /Password)
Note will effected with both Android and Twrp Login
-Remove Android Screen lock ----Twrp Login remove too
-Add Android Screen lock (Pattern/Password) ----Twrp Login add too
+++Magisk 19.3
-Recommended module
Viper4Android FX Legacy 4.3
Universal GMS Doze
SafetyPatch v3
...more
Picture my device " Unofficial Havoc 9x.GSI " quick charging
[9.0.0_r45/v115] download : https://androidfilehost.com/?a=show&w=files&flid=286761
Resurrection Remix v7.0 [GSI]
https://get.resurrectionremix.com/?dir=gsi
ARM64_A_20191205.img
Arrow OS (9x.GSI)
https://sourceforge.net/projects/arrow-os/files/arrow-9.x/GSI/
2019-04-18 extract file first ---- system_arm64_a.zip
Unofficial Omnirom (9x.GSI)
(05-06-2019 UPDATE)
https://forum.xda-developers.com/pr...abled-device-development/9-0-omnirom-t3901305
official Havoc 9x.GSI
https://forum.xda-developers.com/pr...bled-device-development/gsi-havoc-os-t3930030
##### Havoc-OS v2.7 Official Build #####
GSI Update 08-07-2019
Download ARM64-AONLY: https://bit.ly/2Xz2agy
Don't want F2FS data partition.
1.Flash Firmware
https://xiaomifirmwareupdater.com/#stable
2.Flash Vendor (mokee pie)
https://mega.nz/#!JG4WxI7I!O4vr5eEcVXJUjbZ_jZBUE9Q9nDZ9tavRrT9JXDpql1Q
3.Flash System
4.Flash Custom Boot Image (option)
5.Flash Magisk
6.Reboot
-forced encryption ( TWRP-20190117-3.2.3.0-4-clover.img support /data encrypt)
-No err from File App
-Setup your fingerprint
7.Flash Gapps
Pixel Dust PIE
https://forum.xda-developers.com/pr...evice-development/9-0-pixel-dust-pie-t3862484
system-arm64-aonly-20190326.img
Unofficial bootlegger 9x.GSI
https://forum.xda-developers.com/pr...d-device-development/9-0-bootleggers-t3919828
https://androidfilehost.com/?w=files&flid=292505
bootleggers-20190507-arm64-aonly-system.7z
unofficial LineageOS 16.0 GSI
https://sourceforge.net/projects/andyyan-gsi/files/
https://forum.xda-developers.com/pr...i-lineageos-16-0-gsi-arm64-ab-how-to-t3908029
!!!! Mokee TWRP not support (Phh- :v114 ) decryption.
[AOSP 9.0] Phh-Treble
Update
AOSP 9.0 v115
https://github.com/phhusson/treble_experimentations/releases/tag/v115
!!!! Mokee TWRP not support (Phh- :v114 ) decryption. (Important)
==================================================
New Descendant 3.0 GSI
https://forum.xda-developers.com/pr...om-rom-ver-t3840578/post79678283#post79678283
update
Phh-device tree version v115
https://github.com/Descendant/InOps...DotOne/Descendant_ThreeDotOne_arm64_aonly.zip
-----------------
My review
1.Base rom : MK90.0-clover-201906070721-NIGHTLY
2.Kernel: EAS_clover_kernel_V6.1
-------------------
Can't set wallpaper
...more
AOSPExtended Official GSI 9 Pie
https://sourceforge.net/projects/aospextended-rom/files/treble_gsi/pie_arm64_aonly/
update
AospExtended-v6.6-arm64_aonly-20190705-0000-OFFICIAL.zip
unofficial PixelExperienceP GSI
https://github.com/EnesSastim/Downloads/releases/
LiquidRemix
https://forum.xda-developers.com/pr...d-device-development/9-0-liquidremix-t3889160
ARM64-A-ONLY-NO GAPPS [2019-4-17 ]
https://drive.google.com/open?id=11e2RAumtcTZUyX8JBJLKgIn8H214Nmci

Categories

Resources