当前位置:网站首页>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.边栏推荐
- [QNX Hypervisor 2.2 User Manual]9.14 set
- Book of the Month (202207): The Definitive Guide to Swift Programming
- renderjs usage in uni-app
- A shortcut to search for specific character content in idea
- 顺序表的实现
- 高通cDSP简单编程例子(实现查询高通cDSP使用率、签名),RK3588 npu使用率查询
- Memblaze released the first enterprise-grade SSD based on long-lasting particles. What is the new value behind it?
- Write a database document management tool based on WPF repeating the wheel (1)
- BOW/DOM (top)
- spark reports an error OutOfMemory "recommended collection"
猜你喜欢

Unity - LineRenderer show a line

AI automatic code writing plugin Copilot (co-pilot)

Go mode tidy reports an error go warning “all” matched no packages

20. Support vector machine - knowledge of mathematical principles

Memblaze发布首款基于长存颗粒的企业级SSD,背后有何新价值?

Audio alignment using cross-correlation

The principle of ReentrantLock (to be continued)

flowable workflow all business concepts

A shortcut to search for specific character content in idea

C程序设计-方法与实践(清华大学出版社)习题解析
随机推荐
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"
grep command written test questions
Istio introduction
【Yugong Series】July 2022 Go Teaching Course 025-Recursive Function
"The core concept of" image classification and target detection in the positive and negative samples and understanding architecture
请问我的这段sql中sql语法哪里出了错
Structure of the actual combat battalion module eight operations
Qualcomm cDSP simple programming example (to query Qualcomm cDSP usage, signature), RK3588 npu usage query
MATLAB program design and application 2.4 Common internal functions of MATLAB
How to get useragent
Mobile web development 02
Verilog implements a divide-by-9 with a duty cycle of 5/18
linux view redis version command (linux view mysql version number)
The principle of ReentrantLock (to be continued)
统计UTF-8字符串中的字符函数
uni-app中的renderjs使用
flowable workflow all business concepts
架构实战营模块 8 作业
STM32 full series development firmware installation guide under Arduino framework