CN106951774A - A kind of anti-method for killing anti-uninstall of Android applications - Google Patents

A kind of anti-method for killing anti-uninstall of Android applications Download PDF

Info

Publication number
CN106951774A
CN106951774A CN201710123573.7A CN201710123573A CN106951774A CN 106951774 A CN106951774 A CN 106951774A CN 201710123573 A CN201710123573 A CN 201710123573A CN 106951774 A CN106951774 A CN 106951774A
Authority
CN
China
Prior art keywords
accessibilityservice
android applications
uninstall
information
killing
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
CN201710123573.7A
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.)
GREEN NET WORLD (FUJIAN) NETWORK TECHNOLOGY Co Ltd
Original Assignee
GREEN NET WORLD (FUJIAN) NETWORK 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 GREEN NET WORLD (FUJIAN) NETWORK TECHNOLOGY Co Ltd filed Critical GREEN NET WORLD (FUJIAN) NETWORK TECHNOLOGY Co Ltd
Priority to CN201710123573.7A priority Critical patent/CN106951774A/en
Publication of CN106951774A publication Critical patent/CN106951774A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow

Abstract

The invention discloses a kind of anti-method for killing anti-uninstall of Android applications of the invention, including:When Android applications are installed, AccessibilityService is serviced to system application miscellaneous function, terminal operation interface information to be monitored is set in the application information of the AccessibilityService;When Android applications start, judge whether miscellaneous function service AccessibilityService opens, if do not opened, open miscellaneous function service AccessibilityService;If had turned on, judgement has the right to check whether open using service condition function, if do not opened, and unlatching has the right to check using service condition function;If had turned on, judge whether to set self-defined launcher, if be not provided with, self-defined launcher desktops are set by miscellaneous function service AccessibilityService automatically and shown;If set, customized launcher desktops are shown.The present invention realizes and management and control software is carried out to prevent killing anti-uninstall by applying for miscellaneous function service AccessibilityService and setting self-defined launcher desktops.

Description

A kind of anti-method for killing anti-uninstall of Android applications
Technical field
The present invention relates to Android terminal security technology area, more particularly to a kind of Android applications are anti-to kill anti-uninstall Method.
Background technology
The need for increasingly prosperity and communication exchange with the communication technology, Android terminal particularly mobile phone turns into people The essential instrument of daily life, increasing student also provided mobile phone.Mobile Internet is fast-developing, wirelessly should Increased substantially with the degree of correlation with mobile phone, various application software are gradually integrated on mobile phone.Because current wireless network is used Convenient, people easily indulge in network.Particularly student, due to itself management and control ability or parent's negligence of management, easily indulges In false network and online game, play, chat on line, browsing webpage if school session is played, school will be influenceed normal Teaching, while also influenceing school grade;Free time online is too many, can also influence other outdoor activities, or even influence Sleep, while eyes are caused with very major injury.For these reasons, many companies put forth effort to study mobile phone management and control software, Ke Yiguan Control surf time section and prevent that the surf time is long, and prevent to browse porn site etc., this kind of software generally requires to exist in real time Running background can be only achieved management and control effect.But, low memory often occurs in increasing for the application software installed with mobile phone It is slow with mobile phone operation, the systems soft ware of mobile phone or automatic the entering on backstage by long-play of 360 grade third party softwares Journey is killed, and causes management and control to be failed;Some students are directly unloaded management and control software using instrument to escape management and control, and parent is not as Find in time, child will be caused to be in free internet access state for a long time.
The content of the invention
It is an object of the invention to overcome the deficiencies in the prior art, propose that one kind overcomes above mentioned problem or at least in part The anti-method for killing anti-uninstall of a kind of Android applications solved the above problems, by applying for miscellaneous function service AccessibilityService and the self-defined launcher desktops of setting, realize and management and control software are carried out to prevent killing anti-uninstall.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of anti-method for killing anti-uninstall of Android applications, including:
When Android applications are installed, AccessibilityService is serviced to system application miscellaneous function, described Terminal operation interface information to be monitored is set in AccessibilityService application information;
When Android applications start, judge whether miscellaneous function service AccessibilityService opens, if not Open, open miscellaneous function service AccessibilityService;If had turned on, judgement, which has the right to check, applies service condition Whether function opens, if do not opened, and unlatching has the right to check using service condition function;If had turned on, judge whether to set Self-defined launcher, if be not provided with, services AccessibilityService by miscellaneous function and sets self-defined automatically Launcher desktops are simultaneously shown;If set, customized launcher desktops are shown.
The terminal operation interface information to be monitored includes the display content of information display window.
The display content of described information display window includes the text message and/or figure shown in described information display window Piece information.
When Android applications listen to the text message and/or pictorial information shown in described information display window When changing, the Android is applied to miscellaneous function service AccessibilityService and is sent triggering information.
The miscellaneous function service AccessibilityService is received after the triggering information, and the terminal is grasped Make interface and click on cancellation operation, close the terminal operation interface.
Unlatching has the right also to include before checking application service condition function, judges whether present terminal includes having the right to check application Service condition function.
Unlatching, which has the right to check, applies after service condition function, passes through UsageStatsManager and obtains stack top application.
As can be seen from the above technical solutions, the present invention has advantages below:It is real that Android applications both contain itself Existing management and control function, further comprises the function of being serviced to system application miscellaneous function, the letter of application serviced in the miscellaneous function Terminal operation interface information to be monitored is set in breath;When Android applications start, corresponding auxiliary work(can be further checked It can service and whether open, check whether " have the right to check and apply service condition " switch is opened, and show customized launcher Desktop or display service the customized launcher desktops set automatically by miscellaneous function, make Android application programs one Directly run in the way of foreground task, realizing prevents by other software killing;In addition, being unloaded by force when Android is applied When, if there is setting interface information, miscellaneous function service then can be cancelled automatically clicking, prevent that Android applications are unloaded;It is logical Crossing the above method can realize that Android applications are prevented killing anti-uninstall, and Android applications is constantly in effective status, reach pipe Control effect.
Described above is only the general introduction of technical solution of the present invention, in order to more clearly understand the technology hand of the present invention Section, be practiced so as to the content according to specification, and in order to allow the present invention above and other objects, features and advantages It can become apparent, be exemplified below the embodiment of the present invention.
According to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will be brighter The above-mentioned and other purpose of the present invention, advantages and features.
Brief description of the drawings
Fig. 1 prevents killing the method flow diagram of anti-uninstall for the Android applications of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
It should be noted that the executive agent of the method for present embodiment is intelligent mobile phone terminal or PAD, executive agent Operating system needs Android 5.0 and the version of the above, the anti-method flow diagram such as Fig. 1 for killing anti-uninstall of Android of the invention It is shown.
Specifically, to realize the anti-function of killing anti-uninstall of Android applications, comprise the following steps:
When Android applications are installed, AccessibilityService is serviced to system application miscellaneous function, described Terminal operation interface information to be monitored is set in AccessibilityService application information.
Specifically, in Android application installation processes, when Android is complete using the management and control function mounting itself to be realized Cheng Hou, can point out to need application miscellaneous function service AccessibilityService, if it is confirmed that to apply, according to prompting one Operation can apply for success step by step, and set in the application information of the AccessibilityService terminal to be monitored Operation interface information, after installation, then realizes and applies successfully, when follow-up Android applications start, by a series of automatic Anti-uninstall can be achieved in configuration.After the completion of Android applies the management and control function mounting itself to be realized, not Shen can also be selected It please apply for that miscellaneous function services AccessibilityService, but so be unable to reach and prevent killing anti-uninstall.
When Android applications start, program can judge whether miscellaneous function service AccessibilityService holds Open, if do not opened, open miscellaneous function service AccessibilityService;If had turned on, judgement has the right to check Whether open, do not opened using service condition function if having the right to check, unlatching has the right to check application using service condition function Service condition function;If had turned on, judge whether to set self-defined launcher, if be not provided with, taken by miscellaneous function Business AccessibilityService sets self-defined launcher desktops and shown automatically;If set, show self-defined Launcher desktops.
Further, the terminal operation interface information to be monitored may include the display content of information display window, institute Text message and/or pictorial information that the display content of information display window includes showing in described information display window are stated, when Android application listens to the text message shown in described information display window and/or when pictorial information changes, The Android is applied to miscellaneous function service AccessibilityService and is sent triggering information, when the auxiliary Function services AccessibilityService is received after the triggering information, and the terminal operation interface is clicked on and cancels behaviour Make, close the terminal operation interface, the page that will be unloaded is canceled, and realizes anti-uninstall.
Further, after Android applications start, show that customized launcher desktops or display pass through miscellaneous function The customized launcher desktops set automatically are serviced, Android application programs is run always in the way of foreground task, Realizing prevents by other software killing.
Further, open and have the right to check using before service condition function also including, judge whether present terminal includes Power is checked using service condition function.Some Android 5.0 and the above version rom, " have the right to check and apply service condition " Module reduced, therefore, unlatching has the right to check using before service condition function also including, and judges whether present terminal includes Have the right to check using service condition function.
Specifically, judging whether that " have the right to check and apply service condition " module can be with the following method:
@SuppressLint("NewApi")
private boolean hasModule(){
PackageManager packageManager=getApplicationContext () .getPackageManager();
Intent intent=new Intent (Settings.ACTION_USAGE_ACCESS_SETTINGS);
List<ResolveInfo>List=packageManager.queryIntentActivities (intent,
PackageManager.MATCH_DEFAULT_ONLY);
return list.size()>0;
}
Judge " have the right to check and apply service condition " whether function opens can be with the following method:
@SuppressLint("NewApi")
private boolean hasEnable(){
Long ts=System.currentTimeMillis ();
UsageStatsManager
UsageStatsManager=(UsageStatsManager) getApplicationContext () .getSystemService("usages tats");
List<UsageStats>QueryUsageStats=
usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_BEST,0, ts);
If (queryUsageStats==null | | queryUsageStats.isEmpty ())
return false;
}
return true;
}
Open " have the right to check and apply service condition " function and following method can be used
Intent intent=new Intent (Settings.ACTION_USAGE_ACCESS_SETTINGS);
startActivity(intent);
Further, open and have the right to check using after service condition function, stack can be obtained by UsageStatsManager Top application.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modifications, equivalent substitutions and improvements made etc. should be included within the scope of the present invention.

Claims (7)

1. a kind of anti-method for killing anti-uninstall of Android applications, it is characterised in that including:
When Android applications are installed, AccessibilityService is serviced to system application miscellaneous function, described Terminal operation interface information to be monitored is set in AccessibilityService application information;
When Android applications start, judge whether miscellaneous function service AccessibilityService opens, if do not opened Open, open miscellaneous function service AccessibilityService;If had turned on, judgement has the right to check using service condition work( Whether can open, if do not opened, unlatching has the right to check using service condition function;If had turned on, judge whether to set certainly Launcher is defined, if be not provided with, AccessibilityService is serviced by miscellaneous function and sets self-defined automatically Launcher desktops are simultaneously shown;If set, customized launcher desktops are shown.
2. the anti-method for killing anti-uninstall of Android applications according to claim 1, it is characterised in that described to be monitored Terminal operation interface information includes the display content of information display window.
3. the anti-method for killing anti-uninstall of Android applications according to claim 2, it is characterised in that described information is shown The display content of window includes the text message and/or pictorial information shown in described information display window.
4. the anti-method for killing anti-uninstall of Android applications according to Claims 2 or 3, it is characterised in that when described Android applications listen to the text message shown in described information display window and/or when pictorial information changes, described Android is applied to miscellaneous function service AccessibilityService and is sent triggering information.
5. the anti-method for killing anti-uninstall of Android applications according to claim 4, it is characterised in that the miscellaneous function Service AccessibilityService is received after the triggering information, and the terminal operation interface is clicked on and cancels operation, Close the terminal operation interface.
6. the anti-method for killing anti-uninstall of Android applications according to claim 1, it is characterised in that unlatching has the right to check Using also including before service condition function, judge whether present terminal includes having the right to check using service condition function.
7. the anti-method for killing anti-uninstall of Android applications according to claim 6, it is characterised in that unlatching has the right to check After service condition function, stack top application is obtained by UsageStatsManager.
CN201710123573.7A 2017-03-03 2017-03-03 A kind of anti-method for killing anti-uninstall of Android applications Pending CN106951774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710123573.7A CN106951774A (en) 2017-03-03 2017-03-03 A kind of anti-method for killing anti-uninstall of Android applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710123573.7A CN106951774A (en) 2017-03-03 2017-03-03 A kind of anti-method for killing anti-uninstall of Android applications

Publications (1)

Publication Number Publication Date
CN106951774A true CN106951774A (en) 2017-07-14

Family

ID=59468164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710123573.7A Pending CN106951774A (en) 2017-03-03 2017-03-03 A kind of anti-method for killing anti-uninstall of Android applications

Country Status (1)

Country Link
CN (1) CN106951774A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483576A (en) * 2017-08-12 2017-12-15 厦门多米诺数据科技有限公司 A kind of system and method that remote control is carried out to Android APP
CN111143830A (en) * 2018-11-06 2020-05-12 中移(杭州)信息技术有限公司 Method and device for limiting application use, terminal equipment and storage medium
CN111221592A (en) * 2019-12-27 2020-06-02 杭州安恒信息技术股份有限公司 Mobile application security platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984576A (en) * 2014-05-29 2014-08-13 北京网秦天下科技有限公司 Method and terminal for preventing application from being uninstalled
CN104142793A (en) * 2014-07-26 2014-11-12 珠海市君天电子科技有限公司 Method and device for simulating click on terminal control
CN105791596A (en) * 2016-05-05 2016-07-20 绿网天下(福建)网络科技股份有限公司 Method for preventing uninstalling of APP
CN105827438A (en) * 2016-03-11 2016-08-03 广东亿迅科技有限公司 Method for setting APN automatically

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984576A (en) * 2014-05-29 2014-08-13 北京网秦天下科技有限公司 Method and terminal for preventing application from being uninstalled
CN104142793A (en) * 2014-07-26 2014-11-12 珠海市君天电子科技有限公司 Method and device for simulating click on terminal control
CN105827438A (en) * 2016-03-11 2016-08-03 广东亿迅科技有限公司 Method for setting APN automatically
CN105791596A (en) * 2016-05-05 2016-07-20 绿网天下(福建)网络科技股份有限公司 Method for preventing uninstalling of APP

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ECLIPSE_XU: "AccessibilityService从入门到出轨", 《HTTPS://BLOG.CSDN.NET/ECLIPSEXYS/ARTICLE/DETAILS/53560013》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483576A (en) * 2017-08-12 2017-12-15 厦门多米诺数据科技有限公司 A kind of system and method that remote control is carried out to Android APP
CN107483576B (en) * 2017-08-12 2020-09-18 厦门多米诺数据科技有限公司 System and method for remotely controlling Android APP
CN111143830A (en) * 2018-11-06 2020-05-12 中移(杭州)信息技术有限公司 Method and device for limiting application use, terminal equipment and storage medium
CN111221592A (en) * 2019-12-27 2020-06-02 杭州安恒信息技术股份有限公司 Mobile application security platform

Similar Documents

Publication Publication Date Title
US8145708B2 (en) On-line virtual robot (bot) security agent
CN105574403B (en) A kind of application control method and terminal
CN106951774A (en) A kind of anti-method for killing anti-uninstall of Android applications
Markelj et al. Safe use of mobile devices arises from knowing the threats
Sobell et al. Guided self-change model of treatment for substance use disorders
CN107864271A (en) A kind of information loading method and device
CN105144188A (en) Apparatus and method for notifying of security information in electronic device and computer-readable recording medium for the same
CN106790523A (en) A kind of information push method and server
CN104519560B (en) Intercept the method and mobile terminal of mobile terminal request
CN109743722A (en) It is connected to the network treating method and apparatus
CN107659457A (en) Method, wireless router and the system of online control are realized based on wireless router
CN107085554A (en) A kind of method and apparatus for adding control mark
CN105262890B (en) The information update control system and method for portable electronic device application program
CN103561071A (en) Method, device and system for prompting whether portable positioning device arrives on time or not
CN105847594A (en) System and method for quickly sending file
CN106603467A (en) Network application management method, device and terminal
CN106941671A (en) Communication event processing method and mobile terminal based on double card dual system
CN110536389A (en) A kind of method, apparatus and terminal device reducing terminal device power consumption
CN106060280A (en) Method and device for data service management and terminal
CN110532765B (en) Application program control method, terminal and computer-readable storage medium
CN105100125A (en) Sleep control method, sleep control device and sleep control system for virtual desktop
CN113055485A (en) Remote control method and system, electronic device and storage medium
Shillair et al. Supporting a cybersecurity mindset: getting internet users into the cat and mouse game
KR20150069745A (en) Application blocking system for mobile smart phone and application blocking method
CN106888456A (en) A kind of WIFI proxy authentications 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170714

WD01 Invention patent application deemed withdrawn after publication