还是类原生吧
今天读书看到了很多Linux 5.0 的内核 很深奥 开源 > 不开源 啊文心一言插件 一直在读取我写的东西
去中心化
还是换回lineage OS (operation system)文心一言帮我拼出来了单词 他也就回这个了
需要备份的是什么
EFS分区,用来存取手机IMEI串号、无线网卡,MAC地址以及网络设置等重要信息,目前发现升级不明基带的ROM以及频繁刷机或者错误的双清会导致EFS信息丢失,IMEI串号被清空或置零,基带未知,无法使用移动网络等故障。
PERSIST分区,是系统的一个ext4分区,这个分区内包含DRM相关文件、传感器注册表、你的wifi、蓝牙、mac地址都在这里了,通常会导致指南针不动了,陀螺仪没反应了,相机打开要好几秒了,打电话息屏异常等等问题。
说了这么多,就是想告诉你这两个分区比较重要,因为它是动态的,每台手机不完全相似,任意一个损坏,线刷都无法挽回,Persist分区线刷包里面包含,但是一般线刷脚本里面不包括此分区刷入,不过可以通过从线刷包内提取Persist.img通过第三方REC刷入修复,而Efs分区就没这么好解决了,需要通过其他人备份QCN修改个人设备信息进行恢复,但是有一定的难度以及较为复杂。
fastboot flash recovery G:\安卓\某刷机文件\twrp-3.7.0_12-2-ginkgo.img
fastboot常用命令:
fastboot devices :列出fastboot设备
fastboot reboot :重启设备
fastboot reboot edl :重启到9008模式(骁龙)
fastboot reboot recovery :重启到Recovery模式
fastboot reboot bootloader :重启到Bootloader模式
fastboot oem lks :查看解锁状态(联发科)0解锁,1未解锁
fastboot oem device-info :查看解锁状态(骁龙)true解锁,false未解锁
fastboot getvar product :设备代号查询
fastboot flash <分区名称> <镜像文件名> :刷写对应分区
\adb-fastboot>fastboot oem device-info
(bootloader) Verity mode: true
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: true
OKAY [ 0.000s]
Finished. Total time: 0.000
解锁BL
Create a Mi account on 创建Mi帐户 Xiaomi’s websiteXiaomi网站.
Tip:提示: A Mi account is required to unlock the bootloader. Beware that one account is only allowed to unlock one unique device every 30 days. 需要Mi帐户才能解锁引导加载程序。请注意,一个帐户只能每30天解锁一个唯一的设备。
Add a phone number to your Mi account.将电话号码添加到您的Mi帐户。
Insert a SIM into your phone.将SIM卡插入手机。
Enable developer options in Settings > About Phone by repeatedly tapping MIUI Version.
在SettingsAbout Phone中重复点击MIUI Version启用开发人员选项。Link the device to your Mi account in Settings > Additional settings > Developer options > Mi Unlock status.
在SettingsAdditional settingsDeveloper optionsMi Unlock status中将设备链接到您的Mi帐户。Download the Mi Unlock app (Windows is required to run the app).
下载小米应用程序(需要Windows才能运行该应用程序)。Run the Mi Unlock app and follow the instructions provided by the app.运行小米应用程序并按照应用程序提供的说明进行操作。
Note:注意事项: The app may tell you that you have to wait up to 30 days. If it does so, please wait the quoted amount of time before continuing to the next step. 应用程序可能会告诉你,你必须等待长达30天。如果出现这种情况,请等待所报的时间,然后再继续下一步。
After device and Mi account are successfully verified, the bootloader should be unlocked.
在设备和Mi帐户成功验证后,应解锁引导加载程序。Since the device resets completely, you will need to re-enable USB debugging to continue.
由于设备完全重置,您需要重新启用USB调试才能继续。
Installing a custom recovery using 安装自定义恢复使用 fastboot
Download a custom recovery – you can download Lineage Recovery. Simply download the latest recovery file, named something like lineage-17.1-20201116-recovery-ginkgo.img.
下载自定义恢复只需下载最新的恢复文件,名称类似lineage-17.1-20201116-recovery-ginkgo.img。Connect your device to your PC via USB.通过USB将设备连接到PC。
On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:在计算机上,打开命令提示符(在Windows上)或终端(在Linux或macOS上)窗口,然后键入:
adb reboot bootloaderYou can also boot into fastboot mode via a key combination:
您也可以通过组合键靴子进入快速靴子模式:- With the device powered off, hold 设备断电后,保持 Volume Down音量减小 + Power功率. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release..按住两个按钮直到屏幕上出现“FASTBOOT”字样,然后松开。
Once the device is in fastboot mode, verify your PC finds it by typing:设备进入快速启动模式后,键入以下内容以验证您的PC是否找到该设备:
fastboot devicesTip:提示: If you see 如果你看到
no permissions fastbootwhile on Linux or macOS, try running 在Linux或macOS上,请尝试运行fastbootas root. 作为根。Flash recovery onto your device:闪存恢复到您的设备:
fastboot flash recovery <recovery_filename>.imgTip:提示: The file may not be named identically to what stands in this command, so adjust accordingly. 该文件的名称可能与此命令中的名称不同,因此需要进行相应的调整。
Tip:提示: Some devices have buggy USB support while in bootloader mode, if you see 有些设备在引导加载程序模式下有错误的USB支持,
fastboothanging with no output when using commands such as 使用以下命令时挂起但无输出,fastboot getvar ..,fastboot boot ...,fastboot flash ...you may want to try a different USB port (preferably a USB Type-A 2.0 one) or a USB hub. 您可能想尝试不同的USB端口(最好是USB Type-A 2.0端口)或USB集线器。Now reboot into recovery to verify the installation:现在重新启动恢复以验证安装:
- With the device powered off, hold 设备断电后,保持 Volume Up音量增大 + Power功率. Keep holding both buttons until the “MI” logo appears on the screen, then release..按住两个按钮直到屏幕上出现“MI”标志,然后松开。
fastboot reboot bootloader
fastboot flash recovery D:\安卓\lineage\lineage-18.1-20230101-recovery-ginkgo.img
fastboot flash recovery D:\安卓\lineage\twrp-3.7.0_12-2-ginkgo.img
fastboot reboot recovery
回到系统了
按上键重启试试
我们恢复分区不是TWRP了 用他的,那我先备份一下吧
备份什么
Dtbo 24
EFS 14MB
Boot 64
modem 289
RECOVERy 64
system 4608
vendor 1536
Date 10178
全备份了
Installing LineageOS from recovery
从恢复安装LineageOS
Download the 下载 LineageOS installation packageLineageOS安装包 that you would like to install or 您想要安装或 build构建 the package yourself. 包裹自己。
- Optionally, download additional application packages such as Google Apps (use the arm64 architecture).
可选地,下载其他应用程序包,如Google Apps(使用arm64架构)。
- Optionally, download additional application packages such as Google Apps (use the arm64 architecture).
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..按住两个按钮直到屏幕上出现“MI”标志,然后松开。
Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
现在点击恢复出厂设置,然后点击格式化数据/恢复出厂设置并继续格式化过程。这将删除加密并删除存储在内部存储器中的所有文件,以及格式化缓存分区(如果您有)。Return to the main menu.返回主菜单。
Sideload the LineageOS 侧面加载LineageOS
.zippackage: 包装:- On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.
在设备上,选择“应用更新”,然后选择“从ADB应用”以开始侧载。 - On the host machine, sideload the package using: adb sideload filename.zip
在主机上,使用以下命令侧载软件包:adb sideload filename.zip
- On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.
(Optionally): If you want to install any additional add-ons, repeat the sideload steps above for those packages in sequence.
(可选):如果您想安装任何其他附加组件,请按顺序对这些软件包重复上述副加载步骤。Note:注意: Additional add-ons aren’t signed with LineageOS’s official key, and therefore when they are sideloaded, Lineage Recovery will present a screen that says 额外的附加组件没有签署与LineageOS的官方密钥,因此,当他们被sideloaded,血统恢复将提出一个屏幕上说,
Signature verification failed, this is expected, please click ,这是预期的,请单击Continue.Note:注意: If you want Google Apps on your device, you must follow this step 如果你想在你的设备上安装Google Apps,你必须按照以下步骤操作 before之前 booting into LineageOS for the first time! 首次进入LineageOS!
Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.
一旦你成功安装了所有的东西,点击屏幕左上角的后退箭头,然后“立即重新启动系统”。
Warning:警告: Depending on which recovery you use, you may be prompted to install additional apps and services. 根据您使用的恢复方式,系统可能会提示您安装其他应用和服务。
We strongly advise you to opt out of installing these, as they may cause your device to bootloop,我们强烈建议您选择不安装这些,因为它们可能会导致您的设备bootloop,
as well as attempt to access or corrupt your data.以及试图访问或破坏您的数据。
adb sideload D:\安卓\lineage\lineage-18.1-20231209-nightly-ginkgo-signed.zip
中文是个很不好的习惯
D:\安卓\adb-fastboot>adb sideload D:\安卓\lineage\lineage-18.1-20231209-nightly-ginkgo-signed.zip serving: ‘D:\安卓\lineage\lineage-18.1-20231209-nightly-ginkgo-signed.zip’ (~5%)
可以 刷进去了
新版本re 刷旧版本 facter 有点问题没记录但是好像点
好wifi寄了
蓝牙还是坏掉的,因为我本来boot启动就有问题吗
安装系统只清理三个分区为什么读不了wifi呢?
就结束了,后面的使用呢
谷歌套件没看懂
open_gapps-arm64-11.0-aroma-20220215
LineageOs ROM Enable/Disable SuperUser
LineageOs ROM启用/禁用超级用户
NEED TO KNOW:需要知道:
ARM臂 = Is a 32bit platform for mobile devices. =是用于移动的设备的32位平台。
ARM64 = Is a New 64bit platform used in new devices (e.g. Nexus 5x Nexus 6p…..). =新设备中使用的新64位平台(例如Nexus 5x Nexus 6p…..)。
x86X86 = Is a less common mobile platform but used in some device like Zenfone.=是一个不太常见的移动的平台,但用于某些设备,如Zenfone。
Enable使 SuperUser/ROOT LineageOs超级用户/ROOT LineageOs 16
| Enable ROOT``启用 根 | Download``下载 |
|---|---|
| ARM``臂 | addonsu16-arm-signed.zip |
| ARM64 | addonsu16-arm64-signed.zip |
Disable禁用 SuperUser/ROOT LineageOs超级用户/ROOT LineageOs 16
| Disable ROOT``禁用 ROOT | Download``下载 |
|---|---|
| ARM``臂 | addonsuremove16-arm-signed.zip |
| ARM64 | addonsuremove16-arm64-signed.zip |
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 3400639399@qq.com