当前位置:网站首页>hboot and recovery, boot.img, system.img
hboot and recovery, boot.img, system.img
2022-07-31 22:11:00 【Pea-Cola__】
hboot
The role of HBOOT
The mobile phone is booted by hboot. Here is a brief description of the process. After hboot starts, it will check the status of the security lock:
If it is found to be S-ON after inspection, it means that the security lock is open, then hboot will write-protect the system and recovery partitions while completing the boot.
If it is found to be S-OFF after checking, it means that the security lock is turned off, then hboot will open the write protection of the system and recovery partitions while completing the boot.
What does this modified hboot do here?
When the mobile phone is started through hboot, when hboot checks the state of the security lock, no matter what the check result is, the modified hboot will think that the security lock is closed, that is, let hboot deceive itself that the security lock is inS-OFF state.In fact, the safety lock at this time is still S-ON, but it is displayed as S-OFF.
This also finds a reasonable explanation for the following situation:
Friends whose machine status is ENG S-OFF flashed the official package, then ENG changed back to SHIP, and S-OFF changed back to S-ON.But friends whose machine status is SHIP S-OFF will do the same operation without losing S-OFF.
Because the official package is a complete flashing package, the hboot will be overwritten during the update process. Then, when the modified hboot is replaced with the official original hboot, our machine will return to the original one.SHIP status.At this time, because ENG S-OFF is an illusion, S-OFF changes back to S-ON, but because SHIP S-OFF really turns off the safety lock, S-OFF remains unchanged..
hboot is equivalent to the computer's bios
recovery
Recovery is the Android phone backup function, which refers to a mode that can modify the data or system inside the Android phone (similar to windows PE or DOS).In this mode, the existing system can be backed up or upgraded, and the factory settings can also be restored here.
If you flash the third-party Recovery, you will get more functions, and you can flash the third-party rom, but not the official one.
boot.img
boot.img and system.img are the partition image files that are often used when flashing the machine
boot.img is a file that must be loaded to start the Android system.Simply put, boot.img contains two parts, kernel and ramdisk.
Kernel Operating System Kernel The operating system kernel refers to the core part of most Linux operating systems.It consists of those parts of the operating system that manage memory, files, peripherals, and system resources.The operating system kernel typically runs processes and provides inter-process communication.
A virtual memory disk is a technology used by software to simulate a portion of memory (RAM) as a hard disk.Compared with direct hard disk file access, this technology can greatly improve the speed of file access on it.But the volatile nature of RAM also means that this part of the data will be lost when the power is turned off.In general, however, the data transferred to the RAM disk is a copy of a file that is permanently stored on the hard disk or elsewhere.With proper configuration, the virtual disk can be re-created when the system is restarted.
boot.img will guide the system to start, if the wrong boot.img is flashed during the flashing process, the system will not be able to start normally
system.img
system.img is an image file that stores system files in the Android system. The file format is yaff2 or emmc. When flashing, expand it and flash it into the system partition of the phone. system.imgdirectory structure:
app directory: store general apk files.bin directory: stores some Linux tools, but most of them are links to toolbox.etc directory: Store system configuration files.fonts directory: store the font files of the system.framework directory: store all jar packages and resource file packages of the system platform.lib directory: The shared library of the system is stored.media directory: Store multimedia resources of the system, mainly ringtones.priv-app directory: The newly added directory from android4.4 to store the core apk files of the system.tts directory: store the language synthesis files of the system.usr directory: store various keyboard layouts, time zone files.vendor directory: store configuration files, firmware, and dynamic libraries of some third-party vendors.xbin directory: store system management tools, this folder is equivalent to sbin in the standard Linux file system.build.prop file: The definition file of system properties.
边栏推荐
- pytorch lstm时间序列预测问题踩坑「建议收藏」
- Several methods of mysql backup table
- Basic Grammar Introduction of Carbon Tutorial (Tutorial)
- Redis综述篇:与面试官彻夜长谈Redis缓存、持久化、淘汰机制、哨兵、集群底层原理!...
- 有一说一,外包公司到底值不值得去?
- How to get useragent
- [QNX Hypervisor 2.2 User Manual]9.14 set
- 「SDOI2016」征途 题解
- Flex layout in detail
- renderjs usage in uni-app
猜你喜欢
ECCV 2022 Huake & ETH propose OSFormer, the first one-stage Transformer framework for camouflaging instance segmentation!The code is open source!...
Qualcomm cDSP simple programming example (to query Qualcomm cDSP usage, signature), RK3588 npu usage query
二叉树非递归遍历
focus on!Haitai Fangyuan joins the "Personal Information Protection Self-discipline Convention"
ReentrantLock原理(未完待续)
iNeuOS industrial Internet operating system, equipment operation and maintenance business and "low-code" form development tools
The principle of ReentrantLock (to be continued)
Unity-LineRenderer显示一条线
Golang - from entry to abandonment
Unity-通过预制件和克隆方法动态实现各个UGUI下控件的创建和显示
随机推荐
[Open class preview]: Research and application of super-resolution technology in the field of video image quality enhancement
Realization of character makeup
iNeuOS industrial Internet operating system, equipment operation and maintenance business and "low-code" form development tools
Financial profitability and solvency indicators
Flink_CDC construction and simple use
"The core concept of" image classification and target detection in the positive and negative samples and understanding architecture
spark reports an error OutOfMemory "recommended collection"
【论文精读】iNeRF
sqlite3简单操作
全网一触即发,自媒体人的内容分发全能助手——融媒宝
高通cDSP简单编程例子(实现查询高通cDSP使用率、签名),RK3588 npu使用率查询
一款国外开发的高质量WordPress下载站模板主题
角色妆容的实现
PCB叠层设计
高通cDSP简单编程例子(实现查询高通cDSP使用率、签名),RK3588 npu使用率查询
A few permanent free network transmission, convenient and simple (Intranet through tutorials)
有一说一,外包公司到底值不值得去?
Audio alignment using cross-correlation
Summary of the classic drawing method of histogram
-xms -xmx(information value)