红米1S刷机android7.1记录

您所在的位置:网站首页 红米note1升级安卓7 红米1S刷机android7.1记录

红米1S刷机android7.1记录

2024-02-02 07:26| 来源: 网络整理| 查看: 265

红米1S刷机android7.1记录 首先,先刷recovery然后刷入lineage os小问题获取root权限安装谷歌服务框架

五一回家,在家里找到一台红米1S手机。还能开机,打算拿来随便玩玩。把手机的系统更新到最新版本,虽然已经是Miui9了,可是还是用的安卓4.4.4。啥app也装不上。

在网上搜了下,发现可以安装lineage os,用的是安卓7.1。 在百度上搜了下这个系统,都说的是联通、电信版可以刷。我这个是移动版的,不知道兼容不。 不管了,先试试。开整刷机~

首先,先刷recovery

下载twrp 。 下载adb工具。

安装教程在这 Xiaomi Redmi 1S (twrp.me)。 以下贴出原文,注意最后一点,刷完recovery需要先进一次recovery,如果直接开机,会重置回原来的recovery。进入recovery的组合键是音量up键 + 电源键

On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type:

adb reboot bootloader

You should now be in fastboot mode.

Download the correct image file and copy the file into the same folder as your platform-tools. Rename the image to twrp.img and type:

fastboot flash recovery twrp.img

fastboot reboot

Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don’t follow this step, you will have to repeat the install.

然后刷入lineage os

教程在这Xiaomi Redmi 1S (armani) - LineageOS ROMs rom的下载链接在教程里,一开始就有。我在这再贴一遍 Download last nightly build (2018-11-07) LineageOS 14.1 – [ Android 7.1.2 (Nougat) ] 同样,贴出原文

Installing LineageOS from recovery 1、Build a LineageOS installation package.

Optionally, download additional application packages such as Google Apps (use the arm architecture).

2、If you are not in recovery, reboot into recovery:

With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.

3、Now tap Wipe. 4、Now tap Format Data and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage. 5、Return to the previous menu and tap Advanced Wipe, then select the Cache and System partitions and then Swipe to Wipe. 6、Sideload the LineageOS .zip package:

On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload.On the host machine, sideload the package using: adb sideload filename.zip

7、(Optionally): If you want to install any additional add-ons, repeat the sideload steps above for those packages in sequence.

Note: If you want Google Apps on your device, you must follow this step before booting into LineageOS for the first time!

8、(Optionally): Root your device by installing LineageOS’ AddonSU, (use the arm package) or by using any other method you prefer. 9、Once you have installed everything successfully, run ‘adb reboot’.

小问题

连接wifi后一直显示wifi无网络,其实这个时候是有网的,只是检测网络时,用的是google被墙了的地址,改一下就好了。命令如下: adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204

获取root权限

lineage os 可以通过刷包开启root权限。新版本的lineage os建议使用magisk。 包下载页面。https://lineageosroms.com/extras/ 这次刷的是14.1的版本,找到相应的 su arm 下载包 得到addonsu-14.1-arm-signed.zip,复制到手机上。 手机进入recovery模式,通过install选项,安装包。 安装完,重启后,在设置-开发者选项可以找到root开关。

安装谷歌服务框架

安装open-gapps,我下载的是7.1的nano版本 和root的安装方法一样,在安装的时候提示存储空间不足,需要再弄一个配置文件。参考文章 gapps-config.txt文件,放在/sdcard路径下 内容如下:

Include # Pico+ # CalSync # Install Google Calendar Sync (if Google Calendar is being installed) DialerFramework # Install Dialer Framework (Android 6.0+) # GoogleTTS # Install Google Text-to-Speech Engine (Micro+ on 5.0-, Pico+ on 6.0+) # PackageInstallerGoogle # Install Package Installer (Android 6.0 only & Android 8.0+) # Nano+ # BatteryUsage # Install Device Health Services (Android 7.1+) # Markup # Install Markup (ARM64 + Android 9.0+) # Search # Install Google App (excluding excludes GoogleNow/PixelLauncher) # SoundPicker # Install SoundPicker # Speech # Install Offline Speech Files # Wellbeing # Install Digital Wellbeing (Android 9.0+)

只安装一个DialerFramework,占用空间小一点。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3