test

2018年3月10日 星期六

2018-03-09 MATE9 ROOT、失敗訊息紀要 2018-03-10更新成功紀錄

2018-03-10 更新
原來XDA上已經有人幫忙整理出來啦~

原本還有打算要降刷的,沒想到可以穩穩地在Oreo上面使用magisk,外加通過safetynet的測試,GOOD~

小記:我沒有刷入修正包就可以通過Safetynet了
使用的韌體為目前mate9最新的8.0.0.362(C636)國際版ROM上使用成功

TWRP 3.2.1 with fixlinks by Blackball : https://goo.gl/roo2v8


2018-10-02 update
https://goo.gl/6FavGk

//
Updated :
***No need to Format Data(Wipe) with MAGISK 15.4 or 16.0.


THINGS NEED :
"Minimal ADB and Fastboot"
"Unlock Code"
"MAGISK"
"TWRP"
"PC"
"HW.zip & Public Data.zip (if you wipe/format)-usually u don't need this
"Huawei Prop Fix" (if safetynet test fail)
"Ramdisk.img" (if supersu installed)


FIRST STEP :
- Download and Install "Minimal ADB and Fastboot" and install it on your computer.
- Download Magisk, TWRP, and all the files that you need - Link Provided Below
- Enable 'USB debugging' in phone settings
- Make sure that Hisuite is installed (which will ensure that USB drivers are installed)

*If you choose Format Data => yes (wipe) in TWRP :
- Download HW.zip and Public_data.zip for your firmware from http://pro-teammt.ru/firmware-database/
- Search for your firmware, eg: MHA-L29C432B365.
- Click on the "filelist" next to your firmware, copy and paste the full links in new tabs to download "update_full_MHA-L29_hw_eu.zip" and "update_data_full_public.zip".
- hw_eu/sea.zip will be different depending on your region/cust. 

*** BACKUP all your data (internal storage) as UNLOCKING bootloader will WIPE all your DATA !!!


A) UNLOCKING BOOTLOADER :
- Visit this page :
http://emui.huawei.com/en/
- Then click on Download. And then click on "Unlock bootloader"
OR https://emui.huawei.com/en/plugin/unlock/detail
(direct you to login/sign up pages)
- Fill the required details on the form.
- Copy paste the code and save it in any text file.

Make sure,
- USB Debugging has been enabled on the phone 
- Phone has been verified to connect to the computer and permanently accepted the RSA id and connected in debug mode.
- "Enable OEM Unlock" has been enabled in the developer options.

Now,
- Power off the phone, then hold volume-down and insert usb cable to enter fastboot mode.
- Enter the following commands : 
fastboot oem unlock xxxxx (xxxxx your unlock code)
fastboot reboot
Congrats, now your bootloader is unlocked ! 

B) COPYING :
- Copy the twrp.img file to the "Minimal ADB and Fastboot" directory
- Copy the Magisk, Huawei Prop Fix & all necessary files to SD Card (not internal storage)

C) FLASHING :
- Power off the phone, then hold volume-down and insert usb cable to enter fastboot mode / bootloader mode.
- Enter the following commands :
fastboot flash recovery_ramdisk TWRP_3.2.1-0_OREO_fixlinks.img (flash 1 only 3.0.3 / 3.2.1)
fastboot reboot
** If you have SuperSU installed, flash ramdisk.img :
(fastboot flash ramdisk ramdisk.img)

** Note: if you have SuperSU installed, you must restore stock ramdisk.img. 
Download your firmwares update.zip from 
http://pro-teammt.ru/firmware-database/ 
Search for your firmware, example used below : MHA-L29C432B365.
Then extract update.app from update.zip. 
Download and Open Huawei Update Extractor, go to settings tab and disable both checksum. 
Open update.app in Huawei update extractor and extract ramdisk.img.


- Power off the phone, hold volume-up and power button to enter TWRP.
- Entering TWRP, select "Keep Read Only" (Everytime enter TWRP select this.)
- Wipe => Format Data => Yes/No (Choose NO, if you don't know)
* If Format Data=> Yes, 
- Flash Public Data.zip
- Flash Hw.zip.
* If Format Data=> No, continue flashing Magisk.

- Install => Select 'Magisk-v16.0(1600).zip' file
- Reboot => System => Do Not Install.
You're Rooted with Magisk 16.0 ! 



Minimal ADB and Fastboot :
https://forum.xda-developers.com/sho....php?t=2317790

Magisk 16.0 : 
https://mega.nz/#!ncEwXKQS!hmgQlzPQ9...xHOTyE6xaU-7Gc

TWRP 3.0.3 with fixlinks by Mankindtw: 
https://mega.nz/#!AWpymRbC!ncVMIZL17...qj_BKfsMEAajhw

TWRP 3.2.1 with fixlinks by Blackball : 
https://mega.nz/#!4DYngAxL!OJEgQ4a4c...HSDXNktAJ_PnKQ

Huawei Prop Fix by mankindtw : 
https://drive.google.com/open?id=1Ru...W0LTMR6Ip5xIcM



OFFICIAL ANNOUNCEMENT : 
https://forum.xda-developers.com/hon...0-pro-t3749280
(patching ramdisk in Manager is not necessary as we have TWRP, and if you already have Magisk installed, Direct Install will work)


Credits : 
This is their works : mankindtw, ante0 
( I'm just helping them  )
Magisk : topjohnwu
TWRP : mankindtw, Blackball
Unlocking Bootloader Guide : Saurabhg9
Minimal ADB and Fastboot : Shimp208
Huawei Firmwares Finder: Team MT

Guideance by : @ante0

Sent from my Huawei Mate 9 using XDA Labs
//

//
Also, an FYI, Pretoriano80 made a TWRP with decryption support: https://forum.xda-developers.com/mat...2-1-0-t3783353
//






以下為2018-03-09所做的爬文努力,失敗,僅做紀錄用
---

先解鎖:
阿達引用雷殘 https://www.kocpc.com.tw/?p=182065

俄國人的華為韌體庫
http://pro-teammt.ru/?p=52



M01區塊
神串,亦有在XDA中PO文
https://goo.gl/UeAk87

如何還原原廠 recovery,便於OTA
https://goo.gl/86736B
https://goo.gl/iXygxB

刷回原廠recovery的語法https://goo.gl/Y71QTW
adb devices
fastboot devices
fastboot flash recovery 檔案路徑
注意最後是用fastboot唷~不是Adb了,不然會一直失敗


半磚頭自救,三鍵強刷,我還沒成功過
https://goo.gl/63aPG6

Mate9 Oreo討論
https://goo.gl/v7pPQu


花粉俱樂部
回鎖,其實就是重新卡刷即可,強刷也可以
https://goo.gl/UHWTaC
https://goo.gl/tNhAJN

Mate8回鎖參考,不太一樣
https://goo.gl/LmrgEA


XDA區塊
Mate9的客製化TWRP 3.1.1.0(非官方),應該說官方竟然沒有釋出!
https://goo.gl/KdwpfR

MATE9 + Oero+Magisk = 被騙了 根本沒得用,可惡
https://wp.me/p5jCmt-5v7

遇到的機車問題
an app is obscuring a permission request(隨語系而改變敘述方式))
解決方式https://goo.gl/8MZfN8
"Regarding your permission issue on your phone, the problem may be caused by an app called "File manager" (or "Gestionnaire de fichiers" in french). Either you can uninstall it, or if you want to keep it, go in "Settings -> Applications -> Settings -> Draw over other apps" and set the value to "No" for "File manager"."
真的有夠蝦

XDA Mate9 + Oreo+TWRP
https://goo.gl/638Ywp
這只是暫時可用的magisk,但依舊無法完美隱藏ROOT
這篇文章很重要,討論了很多Oreo與過往不同的資料結構
也包含了還原的方法

另一個XDA Mate9 + Oreo+TWRP,比較新,沒試做過
https://goo.gl/L2pqFa

最後,身心俱疲
打算用Hisuite還原至前一個版本...好累啊>"<

補充:
為了Android Pay,還是先回鎖了...

回鎖指令(adb下):
fastboot oem relock 設備名稱