CN103150516B - A kind of android system equipment enters method and the device of temporary mode - Google Patents

A kind of android system equipment enters method and the device of temporary mode Download PDF

Info

Publication number
CN103150516B
CN103150516B CN201310065030.6A CN201310065030A CN103150516B CN 103150516 B CN103150516 B CN 103150516B CN 201310065030 A CN201310065030 A CN 201310065030A CN 103150516 B CN103150516 B CN 103150516B
Authority
CN
China
Prior art keywords
subregion
android
vold
data
temporary mode
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.)
Active
Application number
CN201310065030.6A
Other languages
Chinese (zh)
Other versions
CN103150516A (en
Inventor
关敏中
赵鸿飞
耿增强
吴安华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongke Chuang Da (Chongqing) Automotive Technology Co., Ltd.
Original Assignee
ThunderSoft Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ThunderSoft Co Ltd filed Critical ThunderSoft Co Ltd
Priority to CN201310065030.6A priority Critical patent/CN103150516B/en
Publication of CN103150516A publication Critical patent/CN103150516A/en
Application granted granted Critical
Publication of CN103150516B publication Critical patent/CN103150516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention provides method and device that a kind of android system equipment enters temporary mode, it is characterized in that comprising step: S101, in the StatusBar drop-down menu of android system, increase the button entering " temporary mode "; S102, user clicks " temporary mode " button in StatusBar, notice StatusBarService, and then notice MountService; S103, MountService notify Vold by socket; Do S104, Vold arrange system? does property, trigger init process and closes ANDROID? APPLICATION? FRAMEWORK layer is served; S105, Vold unload data and/or sdcard subregion; S106, Vold carry tmpfs subregion replaces data and sdcard subregion; Do S107, Vold arrange system? does property, trigger init process and restarts ANDROID? APPLICATION? FRAMEWORK layer is served; S108, system roll-back, enters new system environments.

Description

A kind of android system equipment enters method and the device of temporary mode
Technical field
The present invention relates to technical field of electronic communication, particularly a kind of android system equipment enters method and the device of temporary mode.
Background technology
The equipment being mounted with android system is in a large number there is in prior art; such as smart mobile phone, panel computer etc.; to the secret protection of this kind equipment by enciphered data or arrange the modes such as password obstacle and realize; the shortcoming of this mode is; do not have password just cannot use some function, in addition, in system level; outside user data is still exposed to, there is the risk being subject to unauthorized access.
Therefore, prior art is badly in need of one secret protection mode more thoroughly.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of android system equipment to enter method and the device of temporary mode, the thought of its scheme is unloaded by user data place subregion, the access to user data is removed from system level, then replace with virtual partition, allow systemic-function as usual run.
According to an aspect of the present invention, provide a kind of method that android system equipment enters temporary mode, it is characterized in that comprising step:
S101, increases the button entering " temporary mode " in the StatusBar drop-down menu of android system;
S102, user clicks " temporary mode " button in StatusBar, notice StatusBarService, and then notice MountService;
S103, MountService notify Vold by socket;
S104, Vold arrange system property, trigger init process and close the service of ANDROID APPLICATION FRAMEWORK layer;
S105, Vold unload data and/or sdcard subregion;
S106, Vold carry tmpfs subregion replaces data and sdcard subregion;
S107, Vold arrange system property, trigger init process and restart the service of ANDROID APPLICATION FRAMEWORK layer;
S108, system roll-back, enters new system environments.
Preferably, described android system equipment is mobile phone or panel computer.
According to a further aspect in the invention, additionally provide and a kind ofly realize the device that android system equipment enters temporary mode, it is characterized in that comprising:
StatusBar module, for increasing the button entering " temporary mode " in the StatusBar drop-down menu of android system, and when user clicks described button, notice StatusBarService, and then notice MountService module;
MountService module, for notifying Vold module by socket;
Vold module, for arranging system property, triggering init process and closing the service of ANDROID APPLICATION FRAMEWORK layer, unloading data and/or sdcard subregion; Carry tmpfs subregion replaces data and sdcard subregion; System property is set, triggers init process and restart the service of ANDROID APPLICATIONFRAMEWORK layer; System roll-back, enters new system environments.
Preferably, described android system equipment is mobile phone or panel computer.
Accompanying drawing explanation
Fig. 1 is the method flow schematic diagram that a kind of android system equipment of the present invention enters temporary mode;
To be that the present invention is a kind of realize the device schematic diagram that android system equipment enters temporary mode to Fig. 2;
Fig. 3 is prior art android system Organization Chart.
Embodiment
Below in conjunction with accompanying drawing, introduce method and device that android system equipment provided by the invention enters temporary mode in detail.
Before introducing the solution of the present invention in detail, for the ease of understanding, first introduce some technical terms may used in this instructions, following terminological interpretation can refer to the prior art android system Organization Chart shown in accompanying drawing 3 and understands.
* 1Tmpfs:tmpfs is a kind of file system based on internal memory, dynamically increases the space of file system according to demand, and speed is fast, because run in internal memory, so data are all lost during system reboot.(reference: http://baike.baidu.com/view/1511292.htm)
* 2Vold: full name volume daemon.Be responsible for systems mass to store, the carry of the extension storage such as mmc card, the finger daemon of unloading task.Support that these store peripheral hardware hot plug.(reference: http://wenku.baidu.com/view/cde97ff9941ea76e58fa0414.html)
* 3Init: one user level process started by kernel, kernel by starting the mode of a user class program init, completes boot process after starting.So init is first process all the time.(reference: http://baike.baidu.com/view/1489398.htm)
* 4Umount: removal hangs over the file system in Linux catalogue at present.
* 5 factory set conditions: the individual character setting of equipment or instrument is returned to the default conditions dispatched from the factory
* 6 data partition encryption function: encryption
Reference:
http://source.android.com/tech/encryption/android_crypto_implementation.html
* 7bootloader: reference: http://baike.baidu.com/view/1223454.htm
* 8Linux kernel: be used in class Unix operating system, the operating system nucleus of Linux family, is write as with C language, meets POSIX standard, and adopting gnu general public license to disengage, is free computer operating system kernel most popular at present.
Official website: http://www.kernel.org/
Wikipedia: http://zh.wikipedia.org/wiki/Linux%E5%86%85%E6%A0%B8
* 9property: attribute (property) system is concerning Android being an important function.He manages configuration and the state of system as a system service, and these all system configuration and state are all attribute (property).Attribute (property) is a pair key/value (key/value) combination, and key and value are all character string types.The function of the registration table of common sensation property system extraordinary image Windows.Application programs very many in Android and storehouse directly or indirectly depend on property system, and determine the behavior of its runtime thus.
Reference: http://www.blogjava.net/MEYE/articles/359773.html
* 10Android Application Framework: be arranged in the figure second layer, run Android system key service, manage whole Android system, for upper strata Application provides unified platform interface, be responsible for process Application and bottom Kernel between mutual.
Android system comprises following subregion usually:
●/boot linux system (read-only)
●/system android system (read-only)
●/recovery Recovery system (i.e. linux system, read-only)
● all data storage locations of/data (system operation data, user data) (read-write)
●/cache virtual-machine data (read-write)
●/sdcard MicroSD card (read-write)
The subregion that android system run duration uses has:
●/boot
●/system
●/data
●/cache
●/sdcard
Wherein/boot and/system is operating system, is Reading Sections.
/ data partitioned storage Operation system setting, application datas etc. are nearly all runs the data produced, the data produced after first time operation after the complete system of mobile phone brush are just all stored in this subregion, and erasing/data subregion is just equivalent to factory reset (* 5) state.
Usually, the start-up course of android system comprises the following steps:
1. user presses the start of power key, and bootloader (* 7) starts to guide loading linux kernel (* 8)
2.Kernel starts (loading equipemtn initialization internal memory etc.), then starts user's space first process, Init process
3.Init process, according to configuration file (init.rc) carry/data subregion, sets up various initialization catalogue and data, starts android respective services process, display start-up picture etc.
4. system respective services starts, under/data, produce respective data
5. show Home interface
6. started and waited for that user uses
Android provides mechanism to restart the function of top service fast, and this function is used for/data data partition encryption function (* 6).Can allow running on/data subregion on each service stopping, unloading/data physical disk subregion, replaces with tmpfs subregion, and then starts respective services.
Utilize this to design, general/data subregion uses tmpfs to replace, system cloud gray model from/data subregion is transferred to tmpfs, original system is arranged and user data cannot be accessed, and reaches the object of hiding private data, and system can to run on tmpfs (with run on/data subregion is the same, user's impression is less than difference), each program can be transparent run on tmpfs /data on because tmpfs /data is upper without any data, all settings and data all automatically restore to state when dispatching from the factory./ sdcard subregion in like manner also can replace with tmpfs subregion.
By original data subregion unloading (Umount*4) of android, carry tmpfs (* 1) memory file system gets on again, all data (user profile, use vestige) all cannot be accessed, but all functions (just looking like use mobile phone under the environment of initial setting) good for use.
After restarting system, system again carry real/data subregion, user can have access to again/data subregion on data, the interim data run, because on tmpfs, namely in internal memory, are restarted and can not be saved.
Fig. 1 is the method flow schematic diagram that a kind of android system equipment of the present invention enters temporary mode.
As shown in Figure 1, the method that android system equipment of the present invention enters temporary mode can such as comprise the following steps:
S101, increases the button (similar WIFI, GPS button) entering " temporary mode " in the StatusBar drop-down menu of android system;
S102, user clicks " temporary mode " button in StatusBar, notice StatusBarService, and then notice MountService;
S103, MountService notify Vold (* 2) by socket;
S104, Vold arrange system property (* 9), trigger init process and close Android Application Framework (* 10) layer service (utilizing disk encryption * 6 function);
S105, Vold unload data and/or sdcard subregion;
S106, Vold carry tmpfs subregion replaces data and sdcard subregion;
S107, Vold arrange system property, trigger init process and restart ANDROID APPLICATION FRAMEWORK layer service (utilizing disk encryption * 6 function);
S108, system roll-back, enters new system environments.
To be that the present invention is a kind of realize the device schematic diagram that android system equipment enters temporary mode to Fig. 2.As shown in Figure 2, this device can such as comprise:
StatusBar module, for increasing the button entering " temporary mode " in the StatusBar drop-down menu of android system, and when user clicks described button, notice StatusBarService, and then notice MountService module;
MountService module, for notifying Vold module by socket;
Vold module, for arranging system property, triggering init process and closing the service of ANDROID APPLICATION FRAMEWORK layer, unloading data and/or sdcard subregion; Carry tmpfs subregion replaces data and sdcard subregion; System property is set, triggers init process and restart the service of ANDROID APPLICATIONFRAMEWORK layer; System roll-back, enters new system environments.
It should be appreciated by those skilled in the art, the mode that method and apparatus of the present invention can adopt hardware, software or hardware and software to combine, is realized by various modes such as microprocessor, digital signal processor, field programmable logic cell or gate arrays.
In sum, although the present invention with preferred embodiment disclose as above, but itself and be not used to limit the present invention.General technical staff of the technical field of the invention, without departing from the spirit and scope of the present invention, can do various variation and modification.Therefore, the scope that protection scope of the present invention ought define depending on accompanying claim is as the criterion.

Claims (4)

1. android system equipment enters a method for temporary mode, it is characterized in that, comprises step:
S101, increases the button entering " temporary mode " in the StatusBar drop-down menu of android system;
S102, user clicks " temporary mode " button in StatusBar, notice StatusBarService, and then notice MountService;
S103, MountService notify Vold by socket;
S104, Vold arrange system property, trigger init process and close the service of ANDROID APPLICATION FRAMEWORK layer;
S105, Vold unload data and/or sdcard subregion;
S106, Vold carry tmpfs subregion replaces data and sdcard subregion;
S107, Vold arrange system property, trigger init process and restart the service of ANDROID APPLICATION FRAMEWORK layer;
S108, system roll-back, enters new system environments;
Described temporary mode uses virtual partition to replace the subregion at user data place, and under described temporary mode, system is normally run, and original system is arranged and user data cannot be accessed, and reaches the object of hiding private data.
2. method according to claim 1, is characterized in that described android system equipment is mobile phone or panel computer.
3. can realize the device that android system equipment enters temporary mode, it is characterized in that comprising:
StatusBar module, for increasing the button entering " temporary mode " in the StatusBar drop-down menu of android system, and when user clicks described button, notice StatusBarService, and then notice MountService module;
MountService module, for notifying Vold module by socket;
Vold module, for arranging system property, triggering init process and closing the service of ANDROID APPLICATION FRAMEWORK layer, unloading data and/or sdcard subregion; Carry tmpfs subregion replaces data and sdcard subregion; System property is set, triggers init process and restart the service of ANDROID APPLICATION FRAMEWORK layer; System roll-back, enters new system environments;
Described temporary mode uses virtual partition to replace the subregion at user data place, and under described temporary mode, system is normally run, and original system is arranged and user data cannot be accessed, and reaches the object of hiding private data.
4. device according to claim 3, is characterized in that described android system equipment is mobile phone or panel computer.
CN201310065030.6A 2013-03-01 2013-03-01 A kind of android system equipment enters method and the device of temporary mode Active CN103150516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310065030.6A CN103150516B (en) 2013-03-01 2013-03-01 A kind of android system equipment enters method and the device of temporary mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310065030.6A CN103150516B (en) 2013-03-01 2013-03-01 A kind of android system equipment enters method and the device of temporary mode

Publications (2)

Publication Number Publication Date
CN103150516A CN103150516A (en) 2013-06-12
CN103150516B true CN103150516B (en) 2015-10-28

Family

ID=48548588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310065030.6A Active CN103150516B (en) 2013-03-01 2013-03-01 A kind of android system equipment enters method and the device of temporary mode

Country Status (1)

Country Link
CN (1) CN103150516B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536841B (en) * 2014-11-26 2018-04-06 四川长虹电器股份有限公司 A kind of android system Data subregions self-repair method and system
CN105573820A (en) * 2015-12-15 2016-05-11 国云科技股份有限公司 Hot plug method for Xen virtual machine compact disc
CN109542676A (en) * 2018-10-26 2019-03-29 歌尔科技有限公司 Method, apparatus, equipment and the storage medium of factory reset
CN109543436B (en) * 2018-11-30 2022-09-16 信阳学院 Improved method for android device encryption process user experience
CN110263589A (en) * 2019-05-31 2019-09-20 重庆爱奇艺智能科技有限公司 A kind of method and apparatus for realizing private space

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331947A (en) * 2011-10-14 2012-01-25 中科创达软件科技(北京)有限公司 Restarting method for Android system
CN102664929A (en) * 2012-04-05 2012-09-12 福兴达科技实业(深圳)有限公司 Mobile terminal and method for managing mass storage device
CN102880498A (en) * 2012-09-13 2013-01-16 深圳市佳创软件有限公司 Method of virtual SD (Security Digital) card on device with android system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876906B (en) * 2010-03-31 2013-08-21 北京播思软件技术有限公司 Method and device for running Linux application in Android system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331947A (en) * 2011-10-14 2012-01-25 中科创达软件科技(北京)有限公司 Restarting method for Android system
CN102664929A (en) * 2012-04-05 2012-09-12 福兴达科技实业(深圳)有限公司 Mobile terminal and method for managing mass storage device
CN102880498A (en) * 2012-09-13 2013-01-16 深圳市佳创软件有限公司 Method of virtual SD (Security Digital) card on device with android system

Also Published As

Publication number Publication date
CN103150516A (en) 2013-06-12

Similar Documents

Publication Publication Date Title
US11256496B2 (en) Apparatus and method for managing application
US8086839B2 (en) Authentication for resume boot path
ES2717525T3 (en) Configuration of architectural mode in a computer system
CN103150516B (en) A kind of android system equipment enters method and the device of temporary mode
US10216936B2 (en) Method of preventing computer malfunction, computer program, and computer
US8751785B2 (en) Memory tagging and preservation during a hot upgrade
KR101920980B1 (en) Access isolation for multi-operating system devices
US9507941B2 (en) Method of verifying integrity of electronic device, storage medium, and electronic device
CN103827809B (en) For the system and method for virtual partition monitoring
CN109964227B (en) Method and terminal for updating SELinux security policy
KR102428461B1 (en) Selective encryption method and apparatus thereof
US10095527B2 (en) Method for managing device and electronic device supporting the same
US9525705B2 (en) System and method for managing tokens authorizing on-device operations
KR20160146937A (en) Firmware interface with durable memory storage
JP2017509085A (en) User selectable operating system
KR102586628B1 (en) Electronic Device AND Memory Management Method Thereof
WO2014190884A1 (en) Method and apparatus for protecting terminal by using power-on password
US10516699B2 (en) Electronic device and method for suggesting response manual in occurrence of denial
CN109690496B (en) Memory monitor
WO2023123850A1 (en) Method and apparatus for implementing firmware root of trust, device, and readable storage medium
US9792977B2 (en) Volatile memory erasure by manipulating reference voltage of the memory
US20120151126A1 (en) Flash drive with multiple connectors
US10482237B2 (en) Method for processing security of application and electronic device supporting the same
CN105069381A (en) Intelligent terminal based partition protection method and system
CN111989677B (en) NOP ski defense

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190823

Address after: 401120, Chongqing, Yubei District, Xiantao street, No. 19 East Valley Road

Patentee after: Zhongke Chuang Da (Chongqing) Automotive Technology Co., Ltd.

Address before: 100191 Beijing Haidian District Lung Cheung Road No. 1 Tai Xiang 4 storey commercial building

Patentee before: Thunder Software Technology Co., Ltd.