CN112346788A - Partition safety method for Android smart television system - Google Patents
Partition safety method for Android smart television system Download PDFInfo
- Publication number
- CN112346788A CN112346788A CN202011231331.8A CN202011231331A CN112346788A CN 112346788 A CN112346788 A CN 112346788A CN 202011231331 A CN202011231331 A CN 202011231331A CN 112346788 A CN112346788 A CN 112346788A
- Authority
- CN
- China
- Prior art keywords
- partition
- repair
- jumping
- read
- mark
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1438—Restarting or rejuvenating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses an unauthorized vulnerability detection method based on a classification model of a lifting tree, and belongs to the technical field of Android system partitioning and data security. The detection method comprises the following steps: classifying and storing based on data read-write attributes, and adding read-only attribute partitions; based on a partition state detection service in an init process after the system is started, whether a readable and writable partition with an abnormal mounting state exists or not is quickly detected; and realizing safe repair on the partition in a recovery mode, and ensuring that the subsequent mount of the partition is in a read-write state.
Description
Technical Field
The invention relates to the technical field of Android system partition and data security, in particular to a partition security method for an Android smart television system.
Background
The Android system is based on a Linux kernel, and has a set of complete security mechanism from a kernel layer to an application layer, for example, a system/vendor system partition is mounted as a read-only attribute when being started, so that illegal tampering of data on the partition is prevented to a certain extent; and the mounting of other partitions is a readable and writable attribute, so that the operation and the use of service application are more convenient. In engineering practice, it is found that when a readable and writable partition is subjected to abnormal power failure while data writing is performed, the partition is easily abnormal, and becomes a read-only state during mounting. If the data is written in the abnormal state of the partition, the application or other processes are abnormally operated, and if the application or other processes are abnormally operated, the system cannot be normally started and used.
Disclosure of Invention
The invention aims to provide a partition safety method for an Android smart television system. And effective detection and automatic repair processing are implemented for abnormal states of the possibly existing partitions caused by power failure in the write operation. On one hand, the probability of abnormal partition state is reduced, on the other hand, effective detection and automatic repair are implemented aiming at the abnormal partition state, and normal starting and running of the system are guaranteed under double control.
In order to achieve the purpose, the invention adopts the following technical scheme:
a partition safety method for an Android smart television system comprises the following steps:
s1: powering on the equipment, and starting boot;
s2: reading a misc partition mark;
s3: if the misc partition mark is set, entering a recovery mode and jumping to S4;
otherwise, entering an Android start init process, and jumping to S8;
s4: analyzing the command and identifying a partition to be repaired;
s5: performing partition repair processing based on e2 fsck;
s6: after the repair is finished, clearing the miscc partition;
s7: restarting the system and jumping to S1;
s8: calling a partition mounting state detection service;
s9: if the partition is detected to be in a non-rw state, setting a repair mark;
s10: if the repair mark exists, setting repair partition information, writing the repair partition information into the misc partition, restarting the system, and jumping to S1; if there is no partition repair flag, then exit the service, jump to S11;
s11: and the system is started safely.
Compared with the prior art, the invention has the beneficial effects that:
according to the partition safety method for the Android smart television system, data are protected from being rewritten from the aspect that partition mounting is the read-only attribute, starting quick detection and automatic repair are implemented aiming at the abnormal state that the mounting attribute is the readable and writable partition, and normal operation of the Android system is guaranteed.
The original readable and writable attribute partition is adjusted to be the read-only attribute, so that the partition safety is protected; when the partition with the readable and writable attributes is abnormal, the partition is quickly detected and automatically repaired, so that normal starting of the system is guaranteed, and user experience is also considered.
Drawings
Fig. 1 is a flowchart of a partition security method for an Android smart television system.
Detailed Description
The present invention will be further described with reference to the following examples, which are intended to illustrate only some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, other embodiments used by those skilled in the art without any creative effort belong to the protection scope of the present invention.
Example 1:
as shown in fig. 1, a method for partition security of an Android smart television system includes the following steps:
s1: powering on the equipment, and starting boot;
s2: reading a misc partition mark;
s3: if the misc partition mark is set, entering a recovery mode and jumping to S4;
otherwise, entering an Android start init process, and jumping to S8;
s4: analyzing the command and identifying a partition to be repaired;
s5: performing partition repair processing based on e2 fsck;
s6: after the repair is finished, clearing the miscc partition;
s7: restarting the system and jumping to S1;
s8: calling a partition mounting state detection service;
s9: if the partition is detected to be in a non-rw state, setting a repair mark;
s10: if the repair mark exists, setting repair partition information, writing the repair partition information into the misc partition, restarting the system, and jumping to S1; if there is no partition repair flag, then exit the service, jump to S11;
s11: and the system is started safely.
The Android intelligent television system safety is an important field, and different safety measures are applied from a kernel layer to an upper layer. The patent provides a method for guaranteeing data safety to the maximum extent by increasing a read-only attribute mounting partition mode aiming at a partition mounting attribute of an Android smart television system, and realizes a method for safely repairing a partition in a recovery mode based on detection of an abnormal state of a readable and writable partition during mounting.
According to the method, the read-only attribute data are stored in the manufacturer customized partition (such as perm partition), and the data needing to be written are stored in the data partition in a unified mode. And detecting abnormal read-only states of the readable and writable partitions such as data based on native services when the system is started, and entering a recovery mode to repair the partitions once the readable and writable partitions are found to be read-only.
And classifying and storing the data based on the data reading and writing attributes, and adding read-only attribute partitions.
On the basis that the partitions of the system/vendor are mounted as the ro-read-only attributes, the file directory of the original writable data in the perm partition is moved to the data partition, and only read-only files are reserved on the partition. Therefore, the perm partition which is originally of the read-write attribute is updated to be the read-only attribute, and the perm partition is mounted to be the read-only attribute when the system is started under the normal condition.
Based on a partition state detection service in an init process after the system is started, whether the readable and writable partition with the abnormal mounting state exists or not is quickly detected.
Native service is added in a system start init process, the detection of the mounting state of a readable and writable partition (such as userdata) is realized, and a plurality of readable and writable mounting partitions can be detected. If the mount of a certain partition is found to be a non-readable-writable (rw) attribute, the symbol of the partition is recorded. After partition detection is finished, the partition symbol and the equipment path which need to be repaired are written into the misc partition as a partition repair instruction together with a partition repair command, a mark for the misc partition to enter a recovery mode is set, and the system is restarted immediately after the operation is finished. And if the readable and writable partition to be detected is in a normal state, ending the partition detection service and continuing the subsequent system starting processing.
And detecting the misc partition mark in a boot stage after the system is restarted, and entering a recovery mode according to the indication. In the recovery mode, firstly, commands and parameter analysis are carried out on the boot structure unit to obtain an operation instruction of partition repair. And then realizing the repair processing of the readable and writable partition to be repaired based on the e2fsck command. And after all abnormal partitions are repaired, clearing the marks and parameters of the miscc partitions, and finally restarting the system.
When the system is restarted again, the readable and writable partition is repaired correctly, after the mounting is finished, the partition can be operated normally by reading and writing, and the system can be started and operated normally.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (1)
1. A partition safety method for an Android smart television system is characterized by comprising the following steps:
s1: powering on the equipment, and starting boot;
s2: reading a misc partition mark;
s3: if the misc partition mark is set, entering a recovery mode and jumping to S4;
otherwise, entering an Android start init process, and jumping to S8;
s4: analyzing the command and identifying a partition to be repaired;
s5: performing partition repair processing based on e2 fsck;
s6: after the repair is finished, clearing the miscc partition;
s7: restarting the system and jumping to S1;
s8: calling a partition mounting state detection service;
s9: if the partition is detected to be in a non-rw state, setting a repair mark;
s10: if the repair mark exists, setting repair partition information, writing the repair partition information into the misc partition, restarting the system, and jumping to S1; if there is no partition repair flag, then exit the service, jump to S11;
s11: and the system is started safely.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011231331.8A CN112346788A (en) | 2020-11-06 | 2020-11-06 | Partition safety method for Android smart television system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011231331.8A CN112346788A (en) | 2020-11-06 | 2020-11-06 | Partition safety method for Android smart television system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112346788A true CN112346788A (en) | 2021-02-09 |
Family
ID=74429461
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011231331.8A Pending CN112346788A (en) | 2020-11-06 | 2020-11-06 | Partition safety method for Android smart television system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112346788A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116700740A (en) * | 2022-09-29 | 2023-09-05 | 荣耀终端有限公司 | Software repairing method and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104536841A (en) * | 2014-11-26 | 2015-04-22 | 四川长虹电器股份有限公司 | Self-repairing method and self-repairing system for Data subarea of Android system |
CN104899059A (en) * | 2015-05-20 | 2015-09-09 | 小米科技有限责任公司 | Method and apparatus for upgrading operating system |
CN105208590A (en) * | 2015-08-17 | 2015-12-30 | 广东欧珀移动通信有限公司 | Mobile terminal operation system card slack abnormity detection recovery method and mobile terminal |
CN105389228A (en) * | 2015-11-03 | 2016-03-09 | 广东欧珀移动通信有限公司 | Data partition repairing method and system |
CN107818026A (en) * | 2016-09-14 | 2018-03-20 | 中兴通讯股份有限公司 | A kind of method and apparatus of cache partitions reconstruct |
CN109982145A (en) * | 2017-12-28 | 2019-07-05 | 深圳Tcl新技术有限公司 | A kind of intelligent television system, smart television and its control method |
-
2020
- 2020-11-06 CN CN202011231331.8A patent/CN112346788A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104536841A (en) * | 2014-11-26 | 2015-04-22 | 四川长虹电器股份有限公司 | Self-repairing method and self-repairing system for Data subarea of Android system |
CN104899059A (en) * | 2015-05-20 | 2015-09-09 | 小米科技有限责任公司 | Method and apparatus for upgrading operating system |
CN105208590A (en) * | 2015-08-17 | 2015-12-30 | 广东欧珀移动通信有限公司 | Mobile terminal operation system card slack abnormity detection recovery method and mobile terminal |
CN105389228A (en) * | 2015-11-03 | 2016-03-09 | 广东欧珀移动通信有限公司 | Data partition repairing method and system |
CN107818026A (en) * | 2016-09-14 | 2018-03-20 | 中兴通讯股份有限公司 | A kind of method and apparatus of cache partitions reconstruct |
CN109982145A (en) * | 2017-12-28 | 2019-07-05 | 深圳Tcl新技术有限公司 | A kind of intelligent television system, smart television and its control method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116700740A (en) * | 2022-09-29 | 2023-09-05 | 荣耀终端有限公司 | Software repairing method and related device |
CN116700740B (en) * | 2022-09-29 | 2024-06-04 | 荣耀终端有限公司 | Software repairing method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11249677B2 (en) | Method and apparatus for erasing or writing flash data | |
CN105637521A (en) | Data processing method and intelligent terminal | |
CN111914250B (en) | Linux system script program running verification and management and control method | |
CN104536841B (en) | A kind of android system Data subregions self-repair method and system | |
CN104166575A (en) | Method and device for determining processing result of starting item | |
CN112346788A (en) | Partition safety method for Android smart television system | |
CN106156626A (en) | A kind of method and apparatus of security of system upgrading | |
CN106529281A (en) | Executable file processing method and device | |
CN109117162A (en) | A kind of multisystem upgrade method based on Hypervisor | |
CN108170456A (en) | The firmware upgrade method and device of electronic equipment | |
CN112270945A (en) | Method, device, storage medium and terminal for recording power failure during erasing | |
CN106372538A (en) | Firmware protection method based on SoC (System on Chip) | |
CN112579179A (en) | Partition mounting method of embedded system | |
CN111813748B (en) | File system mounting method and device, electronic equipment and storage medium | |
CN104751082B (en) | Operating system and data security control method and device | |
CN111783162B (en) | Data protection implementation method and device and computer equipment | |
CN110378106B (en) | Root detection method, intelligent terminal and storage medium | |
CN114546420A (en) | Software remote installation protection uninstalling method | |
CN114546717A (en) | Method and device for starting android intelligent terminal, intelligent terminal and storage medium | |
CN112908390A (en) | Data storage method and device, electronic equipment and storage medium | |
CN112363749A (en) | Safe starting and upgrading method of MIPS architecture system | |
CN111145789A (en) | Magnetic head matching method and system for Seagate hard disk | |
CN110795733A (en) | Method and device for managing files in host | |
CN111367717B (en) | Electronic equipment recovery method, device and system | |
CN115080966B (en) | Dynamic white list driving method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210209 |