test

2018年11月13日 星期二

2018-11-15 紅米 NOTE 5 解鎖、anti-rollback、magisk root

關鍵字:FAILED (remote: Anti-rollback check failed)

MIUI9時期,無論怎樣OAT更新,更新完要刷入TWRP都一切安好

但是升級至MIUI10之後開始anti rollback

甚至在MIUI 10.0.2.0 之後開始連fastboot刷入recovery都鎖,要透過解鎖fastboot才可以

fastboot解鎖方式

原理就是先輸入一個假的檔案騙過系統,才能繼續刷入非官方的recovery(如twrp);需要注意的是,每次更新完後都要進行fastboot解鎖

關鍵指令:"fastboot flash antirbpass dummy.img"
刷完之後繼續安裝twrp即可



手機解鎖、root完之後還是可以透過OTA更新,但是通常要OTA兩次:

第1次是安裝增量更新包(檔案小很多),通常會更新失敗;失敗後會重新開機,並且告更新失敗,改下載完整包下載

第2次是下載並安裝完整更新包,更新完會unroot,要先解鎖fastboot後才能刷入twrp,twrp刷入後才能繼續安裝magisk

原則上,之前安裝的magisk套件在更新後都還在,只是magisk被刪掉而已,所以重新刷入magisk.zip後就回來了,不用再一一安裝這些套件
----

附註
之前有做了自動安裝TWRP的一鍵安裝檔,在此下載

安裝完TWRP之後,會重新開機進入TWRP
即可進行magisk17.1.zip的刷入,刷完之後回到系統安裝magisk的app即可完成root

2018年10月2日 星期二

2018-10-02 HW Mate9 8.0.0.362(C636)→8.0.0.375(C636)&刷入magisk 17.1

文末有2019/01/09  更新magisk 17.1→18使用情形

10/19補充:因為有同好留言詢問,所以針對文內過於簡略之處做了些補充修正

先說,這次的OTA刷包[8.0.0.375(C636)]是full版本的,所以一定要確認手機內的系統和原廠一樣,並未進行更動才能進行更新,不然會OTA失敗

進行OTA升級前,要先還原成原廠的recovery_ramdisk,不然會一直OTA失敗,因為之前已在636時為了刷magisk,已更動到原廠的recovery區域

首先要先找到原廠的recovery_ramdisk做還原,之前在xda上找到了mate9 Oreo的原廠recovery 映像檔的抽取方式 ,就按部就班的進行抽取,還算簡單

抽出來後,裡面包含了vendor、vbmeta、ramdisk,還有Erecovery的部分,但我們只需要RECOVERY_RAMDISK.img這個映像檔


(說明:之前刷magisk的時候只有更動到ramdisk的部分,所以下面要做的是將原廠rom裡面提取出的RECOVERY_RAMDISK.img做還原)

成功抽取後,開始刷入,進行還原

刷入方式:
1. 手機進入bootloader模式
2.連接電腦,進入adb模式下,輸入指令

先確認連接正常:
指令:fastboot device

確認連接無誤後,開始刷入recovery_ramdisk
(因為當初只有更動到recovery_ramdisk,所以只需要還原這個映像檔)
輸入指令:fastboot flash recovery_ramdisk 檔案名稱(這邊的檔案名稱是RECOVERY_RAMDISK.IMG)


確認成功刷入

然後重新開機
fastboot reboot


進入系統更新選單中下載OTA檔案,下載完進行更新即可

看圖:完成更新啦~~~

更新後的重點:人臉辨識解鎖


以為更新完就沒事了嗎?
android手機要好用就是要搭配magisk root

所以接下來要做的事情:
1.從bootloader刷入twrp recovery取代原廠recovery
指令:fastboot flash recovery_ramdisk 檔案名稱.img

2.再從twrp刷入magisk 17.1
這個就不用贅述了,老司機都知道怎麼做

回到系統中,盡情使用magisk的外掛

爽~

--
2019/1/8 更新
有同好詢問是否magisk 18可以正常運作及獲取root權限?
今晚手癢更新了,17.1→18一切正常使用無誤
連PTT上在討論的hami wallet都可以正常使用沒問題!



2018年10月1日 星期一

2018-10-01 HW Mate9 解除FRP lock

本想為了可以成功繞過hami pay來升級mate9的magisk到magisk 17.2 beta

結果進了bootloader後發現機子成功解鎖,卻沒有辦法刷入更新的TWRP或是更新magisk裡的mod

爬文後才知道原來是FRP lock所致,其實只要還可以成功進入系統,基本上都還不用大費周章花錢去處理(除非是偷來的手機不知道google的帳號密碼,或是忘記了)

只要到開發者模式裡面,開啟"啟用OEM解鎖"功能,並輸入google密碼後重新開機即可

這時候進入bootloader就會看到FRP unlock啦~

兩個狀態都是unlock的情況下,可以對手機為所欲為了~




但...我最終還是只有更新magisk至17.1以及更新裡面的mod而已

目前還沒有勇氣更新系統或是直接使用beta版的magisk...真的太厚工了

等到手機很不順,或是真的更新後有什麼殺手級的功能出現我再考慮吧


對了,爬自己的文章發現,原來0310後來沒有記錄到是怎麼處理好解鎖手機和安裝magisk的,真是殘念

現在只好補上好用的twrp for mate9刷包好了

只能說華為的機子好用歸好用,但真的很難刷機,一個不小心就要回原廠報到,還是慢慢來就好,好在M01上有許多神人的討論串,加上XDA有越來越多神人對mate9後續機種的貢獻,才有這麼多資源可以用

之前0309是用這個半殘的twrp(3.2.1.0)(TWRP 3.2.1-0 Build for Oreo.)
以下為重點節錄//
Thank you. 
Any bugs? 

You can backup other partitions too. Maybe version doesn't work.
Data backup doesn't work right now (huawei encryption is hard to decrypt)
Wait for custom roms to backup data with twrp.
It's only tested with mate 9. 
//重點節錄結束

現在改用這個(3.2.1.0) (twrp_mate9_0.1.img - initial release)
以下為重點節錄//
Internal storage decryption = working
MTP and OTG connection = working
Backup&Restore = working

//重點節錄結束

但是剛剛爬文之後看到更新的(3.2.3-0),有空再來看好不好用,客官們自行斟酌

以下為重點節錄//
DECRYPTION DATA
you cant perform an backup/restore with this twrp because Decrypting data is not currently supported in EMUI * 

You can bypass this with follow this steps:

- For Emui Rom
1/ backup only your /system partiton into your SDCARD
2/ follow this steps it's the same recovery at this time
3/ reboot into recovery
4/ restore /system
5/ reboot system
6 / you have now a decrypt data with EMUI rom 

//重點節錄結束


預告一下,下一次有空的話
應該會先測試magisk17.2是否真如鄉民說的可以繞過hami pay
然後才會試著OTA更新mate9的系統(8.0.0.362(C636)→8.0.0.375(C636 full))
---
後記:
結果隔天就處理mate9的OTA了,還順帶更新了twrp的版本
請見後續文章

2018年8月30日 星期四

2018-08-28 TF101老機重生計畫

號稱華碩第一台平板的TF101已垂垂老矣

多年前 靠著XDA上的神人所製作的KAT KISSrom也撐了好一段時間

不過Android5.0.1實在不好用,升級吧

來源:XDA  KatKiss Rom MashMallow 6.0.1

間單說明下心得:

1.我並未使用supersu作為root管理工具,畢竟只是free版,功能有限,我是用過就改刷Mgisk了

2.看了01上的討論後發現,google全家統會嚴重脫辦平板速度,在幾經測試後,我放棄了,直接選擇microG搭配Vanced Youtube使用,要注意的是:這邊的microG要Vanced版本的才可以唷

3.有進行聲音的修正,不然真的太小聲,給小屁孩看影片很痛苦
Sound improvements & gps quick fix

4.因為沒有安裝google全家桶,有些app無法正常執行,目前已知的有:JPTT、Spotify、LINE,但確定鈦備份沒問題

除了沒有Google有點不方便之外,其實就看片來說,實在是台好機子,尤其有實體的HDMI Output輸出阜,在現在的平板中幾乎看不到了

最後附上一張目前已安裝的app(有些不能用的還沒刪除)

2018-03-22 如何在LMT中控制螢幕旋轉開關

隨著全面屏的襲來,越來越多廠商發展出自己的全面屏手勢

而筆者本身在多年前就在XDA找到了一個好用的邊緣快捷APP - LMT

此APP為免費使用,並有XDA高手在維護,目前已更新至2.8版本

真要說有什麼限制,大概就是每個版本安裝後都會有使用日期的限制吧?

不過我通常在到期前就會上XDA自行更新至下個版本了...

詳細的LMT懶得介紹了,LMT中最常用的是Pie模式,其他的手勢功能都忽略不使用

這個APP一直以來最大的缺點就是無法控制螢幕旋轉,爬了XDA的留言後發現很多人也有一樣的困擾

終於,最近被我找到設定的方法了

透過新增script的方式,加入這兩段code,也就是說螢幕旋轉的開與關要透過兩個不同的pie按鈕來控制,但已經比什麼都沒法操控好太多了

關閉螢幕旋轉
settings put system accelerometer_rotation 0

開啟螢幕旋轉
settings put system accelerometer_rotation 1


以下附圖供參考  :)

真是開心~繼續爽用LMT

此方法會以英文留言至XDA LMT討論串中

後記--
目前經確認可成功控制螢幕旋轉的機型:
TF101、RM NOTE4X、RM NOTE5、MATE9

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 設備名稱