本文的 Gist 地址: https://gist.github.com/coeusite/86f6318c13c5bc15aef13345f1bb3ed4
按照这个流程,最终的系统应该是 bootloader 未锁的原版系统,只有 carrier_policy 是非原装的。有 fastboot 刷 TWRP 很容易,但是不知道为什么,我刷不上 SuperSU。因为我不需要 Root,所以不再折腾了。
解锁教程: http://bbs.gfan.com/android-8404948-1-1.html
platform-tools 地址: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
简述:开发者模式中开启 OEM 解锁后,重启手机进入 bootloader 模式,在电脑端运行 fastboot oem unlock
原厂镜像(v7.1.1)地址: https://dl.google.com/dl/android/aosp/sailfish-nof27b-factory-5a8a6e11.zip
简述:
修改版镜像文件链接: https://pan.baidu.com/s/1nvvELIh 密码: 6bvk
原厂镜像(v8.1)地址: https://dl.google.com/dl/android/aosp/sailfish-opm1.171019.016-factory-8a6591cc.zip
简述:
fastboot -w update image-sailfish-nof27b_root.zip
image-sailfish-opm1.171019.016.zip
中解压出modem.img
fastboot flash radio radio-sailfish-8996-130091-1710201747.img
fastboot flash modem modem.img
carrier_policy.xml 链接: https://pan.baidu.com/s/1nvvELIh 密码: 6bvk
简述:
adb shell
su
setprop sys.usb.config diag,adb
简述:
adb shell
& su
dd if=/dev/block/platform/soc/624000.ufshc/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/platform/soc/624000.ufshc/by-name/modemst2 of=/sdcard/modemst2.img
Flash-nomodem-nowipe.zip: http://bbs.gfan.com/android-9165559-1-1.html
简述:
@ECHO OFF
:: Copyright 2012 The Android Open Source Project
::
:: Licensed under the Apache License, Version 2.0 (the "License");
:: you may not use this file except in compliance with the License.
:: You may obtain a copy of the License at
::
:: http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and
:: limitations under the License.
:: remove modem.img, userdata.img and blink requirement check
for %%a in (image*.zip) do 7z d %%a userdata.img
for %%a in (image*.zip) do 7z d %%a modem.img
for %%a in (image*.zip) do 7z u %%a android-info.txt
adb reboot bootloader
rename flash-all.bat flash-all.bat.save
PATH=%PATH%;"%SYSTEMROOT%\System32"
fastboot flash bootloader bootloader-sailfish-8996-012001-1711291800.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
::fastboot flash radio radio-sailfish-8996-130091-1710201747.img
::fastboot reboot-bootloader
::ping -n 5 127.0.0.1 >nul
fastboot update image-sailfish-opm1.171019.016.zip
echo Press any key to exit...
pause >nul
exit
其实就是刷入原厂的 bootloader 和 image,只不过删除了 image 中的 modem.img 和 userdata.img 。 因为这个流程使用了最新的基带,理论上不需要修改 android-info.txt 。
fastboot flash modemst1 modemst1.img
fastboot flash modemst2 modemst2.img
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.