CN104035842A - Method for deleting and recovering built-in application program - Google Patents

Method for deleting and recovering built-in application program Download PDF

Info

Publication number
CN104035842A
CN104035842A CN201410304473.0A CN201410304473A CN104035842A CN 104035842 A CN104035842 A CN 104035842A CN 201410304473 A CN201410304473 A CN 201410304473A CN 104035842 A CN104035842 A CN 104035842A
Authority
CN
China
Prior art keywords
built
application program
deleted
recover
user
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
Application number
CN201410304473.0A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410304473.0A priority Critical patent/CN104035842A/en
Publication of CN104035842A publication Critical patent/CN104035842A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method for deleting and recovering a built-in application program. The method comprises the steps that built-in application programs are stored under a default storage path of the built-in application programs, and the permission of the built-in application programs is set to be that a root user can read and write the built-in application programs and other users can only read the built-in application programs, a deletable and recoverable built-in application program list is set under the default storage path of the built-in application programs ; when a user selects to delete one built-in application program, if the built-in application program exists in the deletable and recoverable built-in application program list, the permission of the built-in application program to be deleted is changed through the initialization process to be that the root user can read and write the built-in application program, and other users cannot read or write the built-in application program, and data generated by the built-in application program to be deleted are deleted; when the user selects to recover the detected built-in application program, factory settings are recovered, and the detected built-in application program is recovered. By the adoption of the method for deleting and recovering the built-in application program, on the basis that no extra storage space is occupied, the functions of deleting and recovering the built-in application program are achieved, and user experience is improved.

Description

A kind of method of deleting and recovering built-in application program
Technical field
The present invention relates to a kind of method of deleting and recovering built-in application program, relate in particular to a kind of deletion based on rights management and recover the method for built-in application program.
Background technology
Increase as the intelligent mobile terminal industry of representative presents blowout formula taking smart mobile phone, panel computer, electronic reader etc.Wherein, intelligent mobile mobile phone is won the first especially, and popularity rate rises rapidly.At present mobile terminal manufacturer or operator can built-in a lot of application programs in product, mobile terminal product has carried multiple utility program in dispatching from the factory in default system, be much wherein that some are almost used less than but relatively consume the application program flowing, how delete the application program that these carry? a lot of Android (Android) mobile phones often cannot directly be deleted built-in application program.When user deletes these built-in application programs, generally can point out " this is system applies, cannot unload ", system applies user does not generally have authority to unload these built-in application programs.
Prior art provides the method for unloading built-in application program, increase a hiding storage space, deletable built-in application program is deposited in the inside, when system starts for the first time, by the application program here, copy user area to, these built-in application programs be just equivalent to user oneself install program the same, can be deleted.But this method need to increase extra partition holding or storage directory, waste storage space.
Summary of the invention
The invention provides a kind of method of deleting and recovering built-in application program, on the basis that does not take additional storage space, having realized deleting of built-in application program can restore funcitons, has improved user's experience.
In order to achieve the above object, the invention provides a kind of method of deleting and recovering built-in application program, linux kernel is stored in built-in application program under the default storage path of built-in application program, and the authority that built-in application program is set is that root user is read-write, other user-readables, linux kernel arranges one and can delete, can recover built-in application program listing file under the default storage path of built-in application program;
In the time that user selects to delete a built-in application program, Android installation kit management service checks whether this built-in application program is present in and can delete, can recover in built-in application program listing file, if existed, linux kernel sends the order of amendment authority to initialize process, it is read-write that the authority of built-in application program to be deleted under default storage path is revised as root user by initialize process, other users are not read-write, and Android installation kit management service is deleted the data that this built-in application program to be deleted generates;
In the time of built-in application program that user selects to recover to have deleted, carry out factory reset operation, recover deleted built-in application program.
Described delete, can recover to record in built-in application program listing file all titles of deleting, can recover built-in application program.
In the time that user selects to delete a built-in application program, can delete, can recover in built-in application program listing file if built-in application program is not present in, this built-in application program unsuppressible-suppression.
Android installation kit management service is deleted after the data of this built-in application program to be deleted generation, also notifies desktop management program to delete the desktop icons of this built-in application program.
Described execution factory reset operation, the step of recovering deleted built-in application program comprises following steps:
Step 1, user carry out after factory reset operation, and system enters factory reset pattern, and factory reset program starts;
It is read-write that the authority of the built-in application program under default storage path is revised as root user by step 2, factory reset program, other user-readables;
Step 3, restart system, Android installation kit management service reads the application program in Android system with original authority, has recovered deleted built-in application program.
The present invention also provides a kind of method of deleting built-in application program, comprises following steps:
Step 1, linux kernel are stored in built-in application program under the default storage path of built-in application program, and the authority that built-in application program is set is that root user is read-write, other user-readables;
Step 2, linux kernel arrange one and can delete, can recover built-in application program listing file under the default storage path of built-in application program;
Step 3, in the time that user selects to delete a built-in application program, Android installation kit management service checks whether this built-in application program is present in and can delete, can recover in built-in application program listing file, if existed, carry out step 4;
Step 4, linux kernel send the order of amendment authority to initialize process;
Step 5, initialize process receive after amendment authority order, the authority of built-in application program to be deleted under default storage path is revised as to root user read-write, and other users are not read-write;
Step 6, Android installation kit management service are deleted the data that this built-in application program to be deleted generates.
Described delete, can recover to record in built-in application program listing file all titles of deleting, can recover built-in application program.
In described step 3, can delete, can recover in built-in application program listing file if built-in application program is not present in, this built-in application program unsuppressible-suppression.
In described step 6, Android installation kit management service is deleted after the data of this built-in application program to be deleted generation, also notifies desktop management program to delete the desktop icons of this built-in application program.
The present invention also provides a kind of method of recovering built-in application program, comprises following steps:
Step 1, user carry out after factory reset operation, and system enters factory reset pattern, and factory reset program starts;
Step 2, factory reset program load the default storage path of built-in application program;
It is read-write that the authority of the built-in application program under default storage path is revised as root user by step 3, factory reset program, other user-readables;
The default storage path of step 4, factory reset program unloading built-in application program;
Step 5, restart system, Android installation kit management service reads the application program in Android system with original authority, has recovered deleted built-in application program.
The present invention has realized deleting of built-in application program on the basis that does not take additional storage space can restore funcitons, has improved user's experience.
Brief description of the drawings
Fig. 1 is the process flow diagram of the method for deletion built-in application program provided by the invention.
Fig. 2 is the process flow diagram of the method for recovery built-in application program provided by the invention.
Embodiment
Following according to Fig. 1 and Fig. 2, illustrate preferred embodiment of the present invention.
Android (android) system is the mobile terminal operating system based on linux kernel, has an initialization (init) process after system starts, and this process has root authority.In mobile terminal based on Android (android) operating system, the default storage path of built-in application program (apk) is /system/app, the system default authority of built-in application program (apk) is that root user is read-write, other user-readables, for example, built-in application program file :-rw-r--r-root root 729777 2014-03-08 11:35 Test.apk, be that root user is read-write to the operating right of this built-in application program file, and other users are read-only to the operating right of this file.Android (android) installation kit management service (Package Manager Service) is a System Privileges process, there is no root authority.
As shown in Figure 1, the invention provides a kind of method of deleting built-in application program, comprise following steps:
Step 1, linux kernel are stored in built-in application program (apk) under the default storage path of built-in application program (apk), and the authority that built-in application program (apk) is set is that root user is read-write, other user-readables;
In the present embodiment, described default storage path is /system/app/ catalogue that authority is defaulted as 644, belongs to root user;
Step 2, linux kernel arrange one under the default storage path of built-in application program (apk) can delete, can recover built-in application program (apk) listing file;
In this listing file, record all titles of deleting, can recover built-in application program (apk);
That in this listing file, records deletes, can recover built-in application program (apk) and can set voluntarily, can delete, can recover built-in application program (apk) can comprise except system application (the requisite application program of system operation, as SystemUI.apk, framework.apk etc.) outside all application programs, as third party application (QQ, micro-letter, Taobao etc.);
Step 3, in the time that user selects to delete a built-in application program (apk), Android (android) installation kit management service (Package Manager Service) first checks whether this built-in application program (apk) is present in and can delete, can recover in built-in application program (apk) listing file, if existed, carry out step 4, if there is no, point out user, this built-in application program (apk) is system applies, unsuppressible-suppression;
Step 4, linux kernel send the order of amendment authority to initialization (init) process by linux system standard communication interface socket;
Described initialization (init) process has root authority;
Step 5, initialization (init) process receive after amendment authority order, the authority of built-in application program (apk) to be deleted under default storage path is revised as to root user read-write, and other users are not read-write;
In the present embodiment, under amendment default storage path/system/app/ catalogue, the authority of corresponding built-in application program (apk) is 600:-rw-------root root 729777 2014-03-08 11:35 Test.apk;
Step 6, Android (android) installation kit management service (Package Manager Service) are deleted the data that this built-in application program (apk) to be deleted generates;
Android (android) installation kit management service (Package Manager Service) notice desktop management program (Launcher) is deleted the desktop icons of this built-in application program (apk).
As shown in Figure 2, the present invention also provides a kind of method of recovering built-in application program, comprises following steps:
Step 1, user carry out after factory reset operation, and system enters factory reset pattern, and factory reset program (recovery) starts;
Step 2, factory reset program (recovery) load the default storage path of built-in application program (apk);
In the present embodiment, described default storage path is /system/app/ catalogue;
The authority of the built-in application program (apk) under default storage path is revised as system default authority by step 3, factory reset program (recovery), that is, root user is read-write, other user-readables;
In the present embodiment, the authority of built-in application program (apk) reverts to system default authority 644:-rw-r--r--root root 729777 2014-03-08 11:35 Test.apk;
The default storage path of step 4, factory reset program (recovery) unloading built-in application program (apk);
Step 5, restart system, Android (android) installation kit management service (Package Manager Service) reads the application program in Android (android) system with original authority, has recovered deleted built-in application program (apk).
Although content of the present invention has been done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.Read after foregoing those skilled in the art, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.

Claims (10)

1. a method of deleting and recover built-in application program, is characterized in that,
Linux kernel is stored in built-in application program under the default storage path of built-in application program, and the authority that built-in application program is set is that root user is read-write, other user-readables, linux kernel arranges one and can delete, can recover built-in application program listing file under the default storage path of built-in application program;
In the time that user selects to delete a built-in application program, Android installation kit management service checks whether this built-in application program is present in and can delete, can recover in built-in application program listing file, if existed, linux kernel sends the order of amendment authority to initialize process, it is read-write that the authority of built-in application program to be deleted under default storage path is revised as root user by initialize process, other users are not read-write, and Android installation kit management service is deleted the data that this built-in application program to be deleted generates;
In the time of built-in application program that user selects to recover to have deleted, carry out factory reset operation, recover deleted built-in application program.
2. deletion as claimed in claim 1 and recover the method for built-in application program, is characterized in that, described deletes, can recover to record in built-in application program listing file all titles of deleting, can recover built-in application program.
3. the method for deletion as claimed in claim 2 and recovery built-in application program, it is characterized in that, in the time that user selects to delete a built-in application program, can delete, can recover in built-in application program listing file if built-in application program is not present in, this built-in application program unsuppressible-suppression.
4. the method for deletion as claimed in claim 3 and recovery built-in application program, it is characterized in that, Android installation kit management service is deleted after the data of this built-in application program to be deleted generation, also notifies desktop management program to delete the desktop icons of this built-in application program.
5. deletion as claimed in claim 4 and recover the method for built-in application program, is characterized in that, described execution factory reset operation, and the step of recovering deleted built-in application program comprises following steps:
Step 1, user carry out after factory reset operation, and system enters factory reset pattern, and factory reset program starts;
It is read-write that the authority of the built-in application program under default storage path is revised as root user by step 2, factory reset program, other user-readables;
Step 3, restart system, Android installation kit management service reads the application program in Android system with original authority, has recovered deleted built-in application program.
6. a method of deleting built-in application program, is characterized in that, comprises following steps:
Step 1, linux kernel are stored in built-in application program under the default storage path of built-in application program, and the authority that built-in application program is set is that root user is read-write, other user-readables;
Step 2, linux kernel arrange one and can delete, can recover built-in application program listing file under the default storage path of built-in application program;
Step 3, in the time that user selects to delete a built-in application program, Android installation kit management service checks whether this built-in application program is present in and can delete, can recover in built-in application program listing file, if existed, carry out step 4;
Step 4, linux kernel send the order of amendment authority to initialize process;
Step 5, initialize process receive after amendment authority order, the authority of built-in application program to be deleted under default storage path is revised as to root user read-write, and other users are not read-write;
Step 6, Android installation kit management service are deleted the data that this built-in application program to be deleted generates.
7. the method for deletion built-in application program as claimed in claim 6, is characterized in that, described deletes, can recover to record in built-in application program listing file all titles of deleting, can recover built-in application program.
8. the method for deletion built-in application program as claimed in claim 7, is characterized in that, in described step 3, can delete, can recover in built-in application program listing file if built-in application program is not present in, this built-in application program unsuppressible-suppression.
9. the method for deletion built-in application program as claimed in claim 8, it is characterized in that, in described step 6, Android installation kit management service is deleted after the data of this built-in application program to be deleted generation, also notifies desktop management program to delete the desktop icons of this built-in application program.
10. a method of recovering built-in application program, is characterized in that, comprises following steps:
Step 1, user carry out after factory reset operation, and system enters factory reset pattern, and factory reset program starts;
Step 2, factory reset program load the default storage path of built-in application program;
It is read-write that the authority of the built-in application program under default storage path is revised as root user by step 3, factory reset program, other user-readables;
The default storage path of step 4, factory reset program unloading built-in application program;
Step 5, restart system, Android installation kit management service reads the application program in Android system with original authority, has recovered deleted built-in application program.
CN201410304473.0A 2014-06-30 2014-06-30 Method for deleting and recovering built-in application program Pending CN104035842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410304473.0A CN104035842A (en) 2014-06-30 2014-06-30 Method for deleting and recovering built-in application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410304473.0A CN104035842A (en) 2014-06-30 2014-06-30 Method for deleting and recovering built-in application program

Publications (1)

Publication Number Publication Date
CN104035842A true CN104035842A (en) 2014-09-10

Family

ID=51466616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410304473.0A Pending CN104035842A (en) 2014-06-30 2014-06-30 Method for deleting and recovering built-in application program

Country Status (1)

Country Link
CN (1) CN104035842A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346206A (en) * 2014-10-30 2015-02-11 北京奇虎科技有限公司 Method and system for recovering installation of unloaded software
CN105446787A (en) * 2015-12-30 2016-03-30 广东欧珀移动通信有限公司 Application deleting method and apparatus
CN105468423A (en) * 2015-12-30 2016-04-06 广东欧珀移动通信有限公司 Application deleting method and application deleting device
CN105760171A (en) * 2016-02-26 2016-07-13 努比亚技术有限公司 Information processing equipment and method
CN105868625A (en) * 2016-06-22 2016-08-17 北京金山安全软件有限公司 Method and device for intercepting restart deletion of file
CN108804258A (en) * 2018-06-07 2018-11-13 Oppo(重庆)智能科技有限公司 Data reconstruction method, device, mobile terminal and storage medium
CN112542165A (en) * 2019-09-23 2021-03-23 Tcl集团股份有限公司 Voice control method of application program and intelligent terminal
CN112988672A (en) * 2020-12-04 2021-06-18 苏州浪潮智能科技有限公司 User data protection method and device
CN114143394A (en) * 2021-08-13 2022-03-04 希姆通信息技术(上海)有限公司 Application pre-installing and unloading method capable of unloading and recovering installation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609304A (en) * 2012-02-08 2012-07-25 广东欧珀移动通信有限公司 Management method for internal third-party applications of Android mobile phone
EP2631795A1 (en) * 2012-02-24 2013-08-28 Pantech Co., Ltd Terminal and method for assigning permission to application
CN103309699A (en) * 2012-03-16 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and application program installation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609304A (en) * 2012-02-08 2012-07-25 广东欧珀移动通信有限公司 Management method for internal third-party applications of Android mobile phone
EP2631795A1 (en) * 2012-02-24 2013-08-28 Pantech Co., Ltd Terminal and method for assigning permission to application
CN103309699A (en) * 2012-03-16 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and application program installation method

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346206B (en) * 2014-10-30 2018-06-01 北京奇虎科技有限公司 A kind of method and system of unloaded software rejuvenation installation
CN104346206A (en) * 2014-10-30 2015-02-11 北京奇虎科技有限公司 Method and system for recovering installation of unloaded software
CN105468423B (en) * 2015-12-30 2018-12-11 广东欧珀移动通信有限公司 Device is deleted using delet method and application
CN105468423A (en) * 2015-12-30 2016-04-06 广东欧珀移动通信有限公司 Application deleting method and application deleting device
CN105446787B (en) * 2015-12-30 2018-07-27 广东欧珀移动通信有限公司 A kind of delet method and device of application program
CN105446787A (en) * 2015-12-30 2016-03-30 广东欧珀移动通信有限公司 Application deleting method and apparatus
CN105760171A (en) * 2016-02-26 2016-07-13 努比亚技术有限公司 Information processing equipment and method
CN105868625A (en) * 2016-06-22 2016-08-17 北京金山安全软件有限公司 Method and device for intercepting restart deletion of file
CN105868625B (en) * 2016-06-22 2018-10-12 北京金山安全软件有限公司 Method and device for intercepting restart deletion of file
CN108804258A (en) * 2018-06-07 2018-11-13 Oppo(重庆)智能科技有限公司 Data reconstruction method, device, mobile terminal and storage medium
CN108804258B (en) * 2018-06-07 2021-02-02 Oppo(重庆)智能科技有限公司 Data recovery method and device, mobile terminal and storage medium
CN112542165A (en) * 2019-09-23 2021-03-23 Tcl集团股份有限公司 Voice control method of application program and intelligent terminal
CN112988672A (en) * 2020-12-04 2021-06-18 苏州浪潮智能科技有限公司 User data protection method and device
CN112988672B (en) * 2020-12-04 2023-01-06 苏州浪潮智能科技有限公司 User data protection method and device
CN114143394A (en) * 2021-08-13 2022-03-04 希姆通信息技术(上海)有限公司 Application pre-installing and unloading method capable of unloading and recovering installation

Similar Documents

Publication Publication Date Title
CN104035842A (en) Method for deleting and recovering built-in application program
WO2015062389A1 (en) Method and apparatus for uninstalling system application on terminal device
CN102360298B (en) Software upgrading method of terminal equipment
CN104699423B (en) The method and apparatus that drive is bound in linux system
CN105867947A (en) Data processing method and device after upgrades of preset applications
CN105740425A (en) File storage method and apparatus
CN103577567A (en) Method for uninstalling application and deleting garbage file in Android system
CN104536792A (en) Method and device for eliminating application program residual files
CN105637521B (en) Data processing method and intelligent terminal
CN103049708B (en) A kind of audit collocation method of database and system
CN105320578A (en) Method and apparatus for backing up and recovering APP
CN109408465B (en) File attribution information recording method, device, storage medium and terminal
CN107943501A (en) Embedded device upgrade method, device, computer equipment and storage medium
CN106406944A (en) Control method and system for forbidding self-starting of application
WO2016130349A1 (en) Systems and methods for adaptive cloning of mobile devices
WO2018233668A1 (en) Android system-based abnormality recovery method and apparatus, smart device and storage medium
CN108763951A (en) A kind of guard method of data and device
CN104317623A (en) Management method of preset application programs of mobile terminal and mobile terminal
CN103389905A (en) Plug-in loading method and plug-in loading system
Almehmadi et al. Impact of android phone rooting on user data integrity in mobile forensics
CN106484779B (en) File operation method and device
CN106502732B (en) Application closing method and device and intelligent terminal
CN104915266B (en) A kind of application program guard method and device
CN104765631A (en) Restoration method and device for application program of mobile terminal
CN104169938A (en) Permission management method and permission management device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140910

WD01 Invention patent application deemed withdrawn after publication