[Android General] daitalos:
*[Requirements: Your device MUST be Project Treble compatible (M20 supports Treble Project,A only x64)

Your device MUST have an unlockable bootloader

Your device LAUNCHED with Android 8.0 +(was made Project Treble compatible by the manufacturer)

Your device is free of any heavy modifications such as the Xposed Framework, SuperSU, or Magisk(You can re-install after)]

__First than all,we need the right drivers on pc... Turn OFF any antivirus...

1) disable Driver Signature enforcement on Windows 10- https://www.howtogeek.com/167723/ho...8.1-so-that-you-can-install-unsigned-drivers/

2)MTK_USB_All : https://mega.nz/#!JvY2SB5K!h8l34d1n3QxRxaLZ36pZMMCP4gE56vcCN6Etg6VGF8I

*Universal MTK CPU Drivers: https://mega.nz/#!R6xnzYJb!R9POyi7nBAxA7dpXlqCLw7aXvtFWbNFNyGzdwOTET2o (7z)

3)Windows10 VCOM drivers : https://mega.nz/#!9z5lWQpb!YheGLaes0mFACq8pwjWVjZV-JEMTuXDu-LB8MrQ2cAo

_[how to use VCOM drivers: https://xdaforums.com/elephone-m2/help/windows-10-mtk-vcom-usb-drivers-32-64-t3267033 ]

4) Google USB Drivers: https://mega.nz/#!1uYDACob!RszDuYFxGUIrPjayhExK2KgzmnsBUQjSZDK2sRZSxF4

*[for fastboot you will need: https://xdaforums.com/showthread.php?t=2588979

_minimal adb & fastboot : https://xdaforums.com/showthread.php?t=2317790

_How to Use ADB or Fastboot From Any Directory: https://www.xda-developers.com/adb-fastboot-any-directory-windows-linux/ ]

*Οptionally: [Or you can use this great tool for all..This is for xiaomi but can Install all MTK+VCOM drivers + driver signature disable etc..Just,follow the instructions]

https://mega.nz/file/5rphEShJ#-VGvFPM0hZICZC28VQ6zqwHXLA9EEfv_8thiTXla1dY

*Source: https://xiaomi-miui.gr/community/index.php/Thread/23910-Αυτοματοποιημένη-εγκατάσταση-drivers-για-κινητά-Xiaomi-σε-όλα-τα-Windows-x64-x86/?pageNo=1

_[Unlock Bootloader]_

_Now you must unlock bootloader : Turn ON "oem unlock" on the developer options - usb debugging On...

Connect your tablet to your PC via USB, and launch an ADB terminal - cmd ...

_type: "adb devices" > "adb reboot bootloader" > "fastboot devices " - Once your device is in Fastboot Mode, type into ADB terminal : "fastboot oem unlock" ..

Press the Volume Up key to confirm & your bootloader will be unlocked (this will also perform a factory reset on your device)

_Also,turn your device in fastboot mode again & type : "fastboot erase system" (all data etc, will delete)

Now, turn your device OFF...Install SPFT on pc: https://spflashtool.com/ (this only needs for twrp method)

[ * Via TWRP ]

Install this version TWRP : https://xdaforums.com/showpost.php?p=77079814&postcount=332 [*this is for chuwi hi9 air but works in M20_4G{same hardware} and flash TWRP 3.2.2-0 via SPFT....(anyone who wants can flash it and through fastboot,just follow the instructions there) BUT! don't reboot device on System ! .Just turn off your device temporarily)

__*all thanks there to @Alberto96 for TWRP 3.2.2-0 !

_*("It’s possible that dm-verity is preventing your device from booting with the GSI. In that case, please go ahead and flash Magisk and then see if it boots.

that is required for various devices sometimes) - Read here In "Troubleshooting Tips" : https://www.xda-developers.com/flash-generic-system-image-project-treble-device/

_Magisk: https://github.com/topjohnwu/Magisk

*(better leave the device encrypted...Device can be decrypted, but maybe not start in some cases ! but whoever wants can be try)

_Installation Rom via twrp_ [the recommended way is through fastboot!]

_Reboot on Recovery > From TWRP > type cancel > swipe to allow modifications > wipe > swipe to factory reset / advanced wipe > system - cache - data - dalvik / Reboot Recovery !....

_Now Install rom on pc : system.img for A-only ARM64 devices with GApps and SU : (newer releases there!)

https://github.com/phhusson/treble_...wnload/v25/system-arm64-aonly-gapps-su.img.xz

_Or: system.img for A-only ARM64 devices vanilla :

https://github.com/phhusson/treble_...ad/v25/system-arm64-aonly-vanilla-nosu.img.xz

*Source: https://xdaforums.com/project-trebl...-development/experimental-phh-treble-t3709659

_Or Aosp 9 treble phh : https://xdaforums.com/project-treble/trebleenabled-device-development/aosp-9-0-phh-treble-t3831915

Decompress it with 7z ,connect device-pc & send .img on device and flash it on "System Image" Partition ...When Installation finish,wipe ONLY cache + dalvik & reboot system...The device takes several minutes to start,needs patience(If it is enough minutes on a black screen you can use the start button)

__ 7z: https://www.7-zip.org/download.html

* For decryption:

(any one who wants to decrypt his device,can in this way:

https://mega.nz/#!snwgXQZL!2mdUdmsZMWX2XpQkMbJKn9jETsMReHpoDLhOe1rxG8g

*Source: https://www.cyanogenmods.org/downloads/disable-force-encryption-twrp-flashable-zip-treble/

_Or: https://xdaforums.com/android/software/universal-dm-verity-forceencrypt-t3817389 ): Recommended: BUT! you must read in OP there how to...

(you have to flashing one of these and magisk at the end)

_*[You can't decrypt your existing data "PERMANENTLY" If flashing only this...The Flashing "DM-Verity-ForceEncrypt" can only be done when you format data.

(Just, flash the zip in twrp before flashing Magisk-mandatory requirement or else the zip won't work)

....Format Data will format your internal Storage! This step is needed to use encryption on your internal storage]

_*[Some devices may fail due to dm-verity check. To fix, you can install Magisk to disable dm-verity / read for Universal DM-Verity from link above]

Magisk Installation:General "Info-Quide"-Magisk in Recovery etc: https://topjohnwu.github.io/Magisk/install.html#magisk-in-recovery

https://topjohnwu.github.io/Magisk/install.html

_ΗOW TO FLASH AOSP Phh Treble 8.1 or 9 VIA FASTBOOT_ [Recommended]

1) Unlock bootloader : enable "oem unlock" in developer option & usb debugging on...

_Reboot on bootloader : from cmd type : "fastboot oem unlock" > Press the Volume Up key to confirm & your bootloader will be unlocked

_Reboot on bootloader again and type : "fastboot erase system"

2) Flash gsi rom : open a command and type : "fastboot -u flash system name_of_system.img"

_Once it has completed, reboot your device either manually via power key or by entering > "fastboot reboot".

_*(with these commant : "fastboot erase system" - "fastboot -w"

everything on the device is deleted!)

__*[General Information GSI__ It's good to read: Flashing GSIs Requirements_]

https://source.android.com/setup/build/gsi

__ https://www.xda-developers.com/flash-generic-system-image-project-treble-device/

[ Ready-made files Stock Rom M20_4G (M3K1) that will help users to Restore or Root ]

_Stock Rom -Android8.0-V1.04_google_play_(M20_4G M3K1) : https://mega.nz/#!InwhkKSY!X2nLf2t1Ai7RDr6pnmYg9m01-sESMRGDrvqbndlYhog (playstore Included)

* https://naijarom.com/teclast-m20-4g-m3k1 (stock rom + tutorial)

_vendor .img : https://mega.nz/#!F2YQAY7b!-xacb26Ll2To3m4LIPy9anzzBWG5YTxOLL93HNatyqY [M20_4G M3K1- V1.04_20180814]

_boot.img : https://mega.nz/#!EywBiCxQ!Im2pGWyj6mhFl1ABtqQiTV8Qvwc_Xvax7Vhnuya_1w0

_patched_boot.img : For rooted your STOCK device in very easy way with magisk : https://mega.nz/#!5zhCyKqY!EkVDajKy-p4EpJOYfR4nE-4tGuOUVWzRMbNshHMA2kk

(M20_4G M3K1- V1.04_20180814)

_IMPORTANT: you can use "patched_boot" OR "boot.img" only for this build !

__(M20_4G M3K1- V1.04_20180814)__

__Required : unlocked bootloader !

__Latest Magisk Manager (from link above)

Simply,In stock device M20_4G M3K1 boot your Android device into fastboot mode ,connect your phone to the PC,open a command line & type : "fastboot flash boot patched_boot.img" / "fastboot reboot"

after your device boots, open magisk manager and confirm that the installation was done! :)

*[optionally]:_ device certification after boot: Install device ID app from playstore : https://play.google.com/store/apps/details?id=com.evozi.deviceid

_wipe playstore cache

_open Device ID app & copy GSF (Google service framework)

_ Go to : https://www.google.com/android/uncertified/ > paste GSF ....Reboot your device

__READ & THIS for more Info about playstore certificate & how to fix: https://www.xda-developers.com/how-to-fix-device-not-certified-by-google-error/

*[maybe the device cannot pass safetynet,regardless of whether it is hidden in magisk and whether it is certified or not,one doesn't exclude the other]

Info - SafetyPatcher module : https://xdaforums.com/apps/magisk/module-safetypatcher-t3809879

MagiskHide troubleshooting quide: https://www.didgeridoohan.com/magisk/HomePage

[ __* M20 4G(M3K7) - M20 4G(M3K7)_Android 8.0_V1.01_SZ.rar Stock Rom (Global firmware v1.01 with Google Play)

AFH : https://androidfilehost.com/?fid=6006931924117939713

__* Teclast M20 4G (M3K7) TWRP 3.3.1.7z : AFH : https://androidfilehost.com/?fid=6006931924117938571

__* Firmware for Chinese Area v1.01 (without Google Play) AFH : https://androidfilehost.com/?fid=6006931924117939717 ]

[_Info for android9 Phh-Treble : https://xdaforums.com/project-treble/trebleenabled-device-development/aosp-9-0-phh-treble-t3831915

_Info for android10 Quack Phh-Treble : https://xdaforums.com/project-trebl...aosp-10-0-quack-phh-treble-t3992559?nocache=1

_ Very Ιmportant: Before installation "GSI phhusson 9 or 10",read carefully for "Bugs/Issues" in GitHub & "treble_experimentations_issues" thread,with users feedback,Logs & informations for our devices & generally for MTK devices with same hardware ,cpu/gpu etc here : https://github.com/phhusson/treble_experimentations/issues?page=1&q=is:issue+is:open

**I want to thank ! :

@ georgekaggelaris for xiaomi driver tool _ xdi 1.0.3

@ Alberto96 for TWRP 3.2.2-0

@ phhusson for great work in AOSP 8.1 & 9 treble rom

@ topjohnwu for magisk

@ skeleton1911 for VCOM drivers tutorial

@ Snoop05 for 15 seconds adb Installer

AND OF COURSE TO ALL USERS :)

_ please be kind with everyone _

**_IMPORTANT : If someone user does not know how to restore his device in factory condition,better to stay away!! All this contain great risk for the device!

I have no responsibility for what each one does on his device ! Please use with extreme caution!

sry for english

:good:¨

_Screenshots : https://postimg.cc/gallery/176fg6i4e/

https://postimg.cc/gallery/3dnir72ke/

_Screenshots Teclast M20_4G treble AOSP 9 Phh : https://postimg.cc/gallery/dxx0ck3i/

_ https://postimg.cc/gallery/e1yplflq/

(For M3K4 model and AOSP 9.0 you can see post #22 : https://xdaforums.com/showpost.php?p=80068658&postcount=22 )