硬件糾結(jié)&入坑PH-1
在年初真香了Pixel3后不慎把外屏摔裂...本來想換個(gè)屏幕將就將就的,后來發(fā)現(xiàn)淘寶上的屏幕總成比我當(dāng)時(shí)買整機(jī)的價(jià)格還貴东揣。眼俊。揽咕。遂心疼,貧窮使我不停地找替代品套菜。由于只想體驗(yàn)原生安卓亲善,講究血統(tǒng),選擇范圍也有限逗柴,整個(gè)糾結(jié)過程還是在硬件上:
- 先還是Pixel系列蛹头,發(fā)現(xiàn)Pixel2的屏占比太小了用不慣,2XL又普遍存在燒屏戏溺,而且鄙人手指短又喜歡單手操作渣蜗,2XL、3XL的大屏實(shí)在是駕馭不來旷祸,Pixel3是唯一選擇耕拷,但又淘不到合適的Pixel 3了,花600塊錢換個(gè)屏幕又實(shí)屬心疼托享;
(此處待添加圖片) - 然后又瞄上了一加骚烧,一加只看中了OnePlus 5T,雖然是跟Pixel2XL/3XL一樣不易于單手操控闰围,但它的外觀銜接赃绊、邊倒角做工、手感感覺比較好羡榴,而且可玩性較高碧查;OnePlus6往上的都實(shí)在是太丑了,不知道是我沒跟上這幾年安卓的大屏審美還是啥炕矮,實(shí)在get不到么夫;但5T淘了半天也沒淘到理想的機(jī)子,心大心細(xì)肤视,看上了的又半天沒到就被拍走档痪,難過。
(此處待添加圖片) - 最后想起了MATA邢滑,這個(gè)由安卓之父Andy Rubin打造的產(chǎn)品腐螟,論起血統(tǒng)那算是比Pixel還Android,最純粹的安卓機(jī)沒有之一困后。遂找了一下乐纸,驚喜的發(fā)現(xiàn)這個(gè)方方正正的Essential-PH1竟然有一塊5.7寸高達(dá)503dpi的高素質(zhì)屏幕(Pixel3是5.5寸的440dpi,已經(jīng)感覺完爆很多機(jī)子了)摇予,還有驍龍835的4+128(Pixel3是845+4+128)汽绢,窄邊框的設(shè)計(jì)和Titanium Body完全是另一種高級(jí)感,區(qū)別于Pixel3的Geek風(fēng)侧戴;而且沒有和運(yùn)營(yíng)商綁定宁昭,全球全頻段跌宛,根本不用糾結(jié)美版歐版日版,太絕了积仗。遂上某魚一看疆拘,399順豐包郵,果斷殺入寂曹。
(此處待添加圖片)
到手后發(fā)現(xiàn)... 用慣了Pixel3(148g)哎迄,這機(jī)子是真的重(185g),而且太寬了隆圆,沒有Pixel3修長(zhǎng)的美感(2:1)漱挚;但屏幕素質(zhì)是真的好,完全沒有顆粒感匾灶,肉眼可見的比Pixel3好棱烂,用著太賞心悅目了,動(dòng)力滿滿阶女,開始折騰颊糜!
軟件折騰&注入靈魂
接著就是一些刷機(jī)的筆記了,記錄得有點(diǎn)零散:
首先是官方手冊(cè)參考:https://mata.readthedocs.io/_/downloads/en/latest/pdf/
非常有用秃踩,里邊把能遇到的坑基本上都覆蓋了衬鱼。
參考資料匯總
自從上回的Moto X 2014以來,已經(jīng)有6年沒有刷過機(jī)了憔杨,折騰后才知道從安卓7.0開始大部分都采用AB分區(qū)了鸟赫,不是傳統(tǒng)的那bootloader\recovery\boot\system四件套+對(duì)userdata和cache的雙清了,最大的改變還是recovery系統(tǒng)(TWRP)的刷入消别,從專門的recovery分區(qū)轉(zhuǎn)變到了boot分區(qū)抛蚤。
(此處附AB分區(qū)的圖)
-AB分區(qū)詳細(xì)介紹及圖片來源:https://blog.csdn.net/guyongqiangx/article:/details/71334889
-知乎關(guān)于 Root MATA的參考帖子:https://zhuanlan.zhihu.com/p/58507641
-TeamWin官方的TWRP for MATA的參考鏈接:https://twrp.me/essential/essentialph1.html
知識(shí)儲(chǔ)備
MATA的原生是一種特殊的AB分區(qū)結(jié)構(gòu),如TWRP官網(wǎng)ph1頁面中所描述:
The Essential Phone uses the newer AB partition scheme first introduced on the Pixel 1. As such there is no recovery partition. Instead, the recovery is part of the boot image. Unlike the Pixel devices, Essential has disabled fastboot boot so there is no way to temporarily boot TWRP to perform an installation.
官方手冊(cè)的描述:
The two boot partitions on this device, named boot_a and boot_b respectively, are not your “traditional” boot partitions. Both of these partitions contain a kernel and ramdisk like you are probably used to. The difference is that the ramdisk is now your recovery. This device uses a “system-as-root” layout, with which the system partition now contains what would have been the ramdisk.
The A/B partitioning scheme can be quite confusing to users. There are actually two copies of many of the partitions
MATA的刷機(jī)機(jī)制寻狂,比較以下三種刷Recovery的方式可能會(huì)更容易理解一點(diǎn):
- Legacy分區(qū)的recovery刷入:Moto X 2014的TeamWin刷機(jī)指令
adb reboot bootloader
fastboot flash recovery twrp.img
fastboot reboot
- 正常AB分區(qū)采用的刷入Recovery的形式:OnePlus 6等機(jī)型
1.在twrp.me下載img包與zip包
2.將img包放入adb根目錄岁经,手機(jī)fastboot模式下,電腦adb操作:
fastboot boot twrp.img
3.進(jìn)入臨時(shí)的twrp蛇券,將zip文件拷進(jìn)手機(jī)中缀壤,卡刷,完成
可見纠亚,跟Legacy不同的是塘慕,在沒有了專門的recovery分區(qū)后不能直接flash twrp.img了,而是將其作為臨時(shí)鏡像boot蒂胞,將Rec操作系統(tǒng)(twrp.zip包)通過卡刷的形式刷入
- MATA的AB分區(qū)刷入形式:記得最好下載官方的驅(qū)動(dòng)图呢,或者M(jìn)inimal的驅(qū)動(dòng)
1.twrp.me上下載img包和zip包
2.把img包放入驅(qū)動(dòng)文件夾下的根目錄,手機(jī)fastboot模式下,輸入如下命令:
fastboot getvar current-slot #獲得當(dāng)前分區(qū)蛤织,假設(shè)為A
fastboot flash boot_b twrp.img #將recovery刷入opposite分區(qū)
fastboot --set-active=b #將opposite分區(qū)狀態(tài)設(shè)為active
3.在Opposite分區(qū)下進(jìn)入刷入的Rec拥娄,然后通過卡刷的形式刷入包
可見,和正常AB分區(qū)不同瞳筏,MATA的AB分區(qū)沒辦法通過fastboot boot命令啟動(dòng)鏡像進(jìn)行卡刷,只能將其作為boot.img刷入opposite分區(qū)牡昆,再卡刷
疑問姚炕,為什么不能直接fastboot flash boot_a twrp.img?
MATA 刷入Recovery、Magisk丢烘、三方ROM步驟
- 備份柱宦,并Remove掉密碼、PIN播瞳、指紋等(很重要)
- 開啟USB調(diào)試與OEM解鎖掸刊,老樣子,版本號(hào)點(diǎn)擊7次
- 驅(qū)動(dòng)下載:Minimal和官方的Essential Driver驅(qū)動(dòng)赢乓,直接Google即可
- 進(jìn)入Fastboot忧侧,解Bootloader
手動(dòng)進(jìn)入:關(guān)機(jī)+Vol Down
線刷進(jìn)入:手機(jī)開機(jī)狀態(tài)連電腦,在驅(qū)動(dòng)的文件夾下打開cmd(管理員模式)牌芋,輸入:
adb devices #如果出現(xiàn)<waiting for device>則需要換驅(qū)動(dòng)
adb reboot bootloader #進(jìn)入bootloader界面
fastboot devices
fastboot flashing unlock 解鎖蚓炬,并在手機(jī)上點(diǎn)Yes
- 線刷TWRP Recovery
- 文件準(zhǔn)備:twrp.me上下載img包和zip包
- 線刷臨時(shí)的Rec(類比boot臨時(shí)的Rec,只不過沒有MATA不支持fastboot boot命令)
fastboot getvar current-slot #獲得當(dāng)前分區(qū)躺屁,假設(shè)為A
fastboot flash boot_b twrp.img #將recovery刷入opposite分區(qū)
fastboot --set-active=b #將opposite分區(qū)狀態(tài)設(shè)為active- 進(jìn)入Opposite(B)分區(qū)下刷入的Rec(可能會(huì)斷觸)肯夏,然后通過卡刷zip包的形式為A分區(qū)刷入Rec
- 斷觸處理
看帖子和外網(wǎng)論壇都說,由于安全固件的版本號(hào)對(duì)不上犀暑,在Opposite分區(qū)的Rec中屏幕會(huì)斷觸驯击,官方也提到了這個(gè)問題,采用adb sideload方法即可:
Some day you may end up with a firmware that doesn’t play well with twrp. Either no touch screen, or no data decryption. One quick way to flash a zip in this situation is to put the device in sideload mode via an adb command:
adb shell twrp sideload
then flash your zip using adb sideload:
adb sideload myawesomezip.zip
- 卡刷Magisk
卡刷magisk后耐亏,需同步下載Magisk APP才能獲取Root
- 卡刷各種固件&系統(tǒng)
本人刷的Evo X徊都,不知為何,有種手握高達(dá)的感覺
目前還存在android.phone keeps stopping 的提示框閃爍問題苹熏,還沒找到對(duì)應(yīng)資料碟贾,不知道插卡了會(huì)不會(huì)好一點(diǎn)
MATA 底包刷入及OTA
由于Essential已經(jīng)倒閉了,所有底包都在SourceForge上:
https://sourceforge.net/projects/essential-static/
MATA的底包線刷也不是隨便一個(gè)fastboot flash system xxx.img能搞定的了轨域,在SourceForge上下載好的zip包里面自帶flashall.bat袱耽,在手機(jī)fastboot模式下電腦雙擊這個(gè)文件運(yùn)行就好了,但點(diǎn)開一看... 才發(fā)現(xiàn)原來需要這么多的功夫干发,剛開始還想線刷EvoX朱巨,簡(jiǎn)直是太天真了:
fastboot flash nvdef_a nvdef.img
fastboot flash nvdef_b nvdef.img
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash system_a system.img
fastboot flash system_b system.img
fastboot flash bluetooth_a bluetooth.img
fastboot flash bluetooth_b bluetooth.img
fastboot flash xbl_a xbl.img
fastboot flash xbl_b xbl.img
fastboot flash abl_a abl.img
fastboot flash abl_b abl.img
fastboot flash dsp_a dsp.img
fastboot flash dsp_b dsp.img
fastboot flash modem_a modem.img
fastboot flash modem_b modem.img
fastboot flash vendor_a vendor.img
fastboot flash vendor_b vendor.img
fastboot flash keymaster_a keymaster.mbn
fastboot flash keymaster_b keymaster.mbn
fastboot flash cmnlib_a cmnlib.mbn
fastboot flash cmnlib_b cmnlib.mbn
fastboot flash cmnlib64_a cmnlib64.mbn
fastboot flash cmnlib64_b cmnlib64.mbn
fastboot flash tz_a tz.mbn
fastboot flash tz_b tz.mbn
fastboot flash hyp_a hyp.mbn
fastboot flash hyp_b hyp.mbn
fastboot flash rpm_a rpm.mbn
fastboot flash rpm_b rpm.mbn
fastboot format userdata
fastboot reboot
還有一些小坑
到手的時(shí)候我的MATA系統(tǒng)版本是7.1.1,然后直接進(jìn)行刷Recovery和卡刷EvoX(10.5.4)系統(tǒng)的操作(有意思的是枉长,臨時(shí)的Rec并沒有斷觸)冀续,但進(jìn)入系統(tǒng)后就斷觸了琼讽,點(diǎn)不動(dòng)。所以建議還是先升級(jí)對(duì)應(yīng)的底包洪唐,把上述的那些fastboot flash都刷一遍钻蹬,再刷三方ROM會(huì)好一點(diǎn)
如果在原system/ROM中設(shè)置了密碼,進(jìn)入TWRP時(shí)必須Decrypt密碼凭需,斷觸的話基本就很麻煩问欠,不輸入密碼就沒辦法adb sideload了;此外粒蜈,還不能設(shè)置指紋顺献,設(shè)置指紋后會(huì)導(dǎo)致decrypt亂碼,會(huì)提示密碼錯(cuò)誤枯怖,twrp也不能讀取MATA的文件系統(tǒng)了注整。因此,建議刷機(jī)的時(shí)候度硝,把密碼Remove掉肿轨,少走很多彎路。