CN106909809A - Set up the method and device of equipment manager - Google Patents
Set up the method and device of equipment manager Download PDFInfo
- Publication number
- CN106909809A CN106909809A CN201510982024.6A CN201510982024A CN106909809A CN 106909809 A CN106909809 A CN 106909809A CN 201510982024 A CN201510982024 A CN 201510982024A CN 106909809 A CN106909809 A CN 106909809A
- Authority
- CN
- China
- Prior art keywords
- application
- equipment manager
- request
- deviceadminreceiver
- configuration file
- 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
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000004913 activation Effects 0.000 claims abstract description 17
- 238000012544 monitoring process Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 7
- 230000003213 activating effect Effects 0.000 claims description 3
- 238000003860 storage Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000010200 validation analysis Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/101—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM] by binding digital rights to specific entities
-
- 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/44594—Unloading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Telephone Function (AREA)
Abstract
This application discloses a kind of method and device for setting up equipment manager.The method for setting up equipment manager includes:Receive the request that equipment manager is set up for application;The request is responded, the application is inherited DeviceAdminReceiver methods;The DeviceAdminReceiver methods are stated in configuration file;According to the configuration file, the equipment manager of the application is activated, the equipment manager is used to prevent the application to be unloaded after activation.Using the embodiment of the present application, it is possible to achieve reduce application and maliciously unloaded.
Description
Technical field
The application is related to field of computer technology, more particularly to a kind of method and dress for setting up equipment manager
Put.
Background technology
With continuing to develop for computer technology, mobile device (such as mobile phone, Pad) is in people's daily life
In status become more and more important.
Generally, user can select to download peace of the fail-safe software to ensure data in mobile device and mobile device
Entirely.For example, people would generally download safety applications in mobile phone, it is ensured that the safety of the data of mobile phone EMS memory storage;
Or after mobile phone loss, the brush machine that can prevent stolen mobile phone using the safety applications is operated, so that
Mobile phone is prevented by secondary sale after brush machine.
In the prior art, as user or Malware unloading safety applications, the system of mobile device is general
The daily record on the unloading operation can be exported.The safety applications would generally monitoring system daily record output, when obtaining
When taking the daily record on unloading operation, the unloading that can intercept user or Malware by pop-up is grasped
Make, so reach the purpose for preventing from maliciously being unloaded.But this method is easy to be cracked, such as work as hand
After machine is connected with computer, can by some mobile phones assistant directly will using unloading;In addition, many systems
Daily record output is inaccurate, such as when application is maliciously unloaded, system does not export the day on unloading operation
Will, is so easy for missing intercepting the chance that application is maliciously unloaded.
In sum, there are in the prior art using the problem being easily unloaded.
The content of the invention
The purpose of the embodiment of the present application is to provide a kind of method and device for setting up equipment manager, is used to solve
Using the problem being easily unloaded present in prior art.
In order to solve the above technical problems, the method and device for setting up equipment manager that the embodiment of the present application is provided
It is realized in:
A kind of method for setting up equipment manager, including:
Receive the request that equipment manager is set up for application;
The request is responded, the application is inherited DeviceAdminReceiver methods;
The DeviceAdminReceiver methods are stated in configuration file;
According to the configuration file, the equipment manager of the application, the equipment manager after activation are activated
For preventing the application to be unloaded.
Preferably, after stating the DeviceAdminReceiver methods in the configuration file, also include:
Authority information is write in the statement.
Preferably, the authority information includes request monitoring screen unblock number of times, request lock-screen, request
At least one of setting rule to identifying code.
Preferably, after the equipment manager for activating the application, also include:
Output prompting releases the dialog box of the equipment manager belonging to the application.
A kind of device for setting up equipment manager, including:
Receiving unit, the request of equipment manager is set up for receiving for application;
Processing unit, for responding the request, makes the application inherit DeviceAdminReceiver side
Method;
Statement unit, for stating the DeviceAdminReceiver methods in configuration file;
Activation unit, for according to the configuration file, the equipment manager of the application being activated, after activation
The equipment manager is used to prevent the application to be unloaded.
Preferably, after the statement unit, also include:
Writing unit, for writing authority information in the statement.
Preferably, the authority information includes request monitoring screen unblock number of times, request lock-screen, request
At least one of setting rule to identifying code.
Preferably, after the activation unit, also include:
Output unit, the dialog box of the equipment manager belonging to the application is released for exporting prompting.
The technical scheme provided from each embodiment of above the application, is inherited by application
DeviceAdminReceiver methods simultaneously state the DeviceAdminReceiver side in configuration file
Method;The equipment manager of the application is activated according to configuration file;Equipment manager after activation is monitored and unloaded
Lock-screen when carrying application, so as to prevent to unload the operation of the application.Realization is prevented from applying and is unloaded.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes of the application
Point, the schematic description and description of the application is used to explain the application, does not constitute to the application not
Work as restriction.In the accompanying drawings:
Fig. 1 is the method flow diagram for setting up equipment manager of offer in the embodiment of the application one;
Fig. 2 is the method flow diagram for setting up equipment manager of offer in the embodiment of the application one;
Fig. 3 is the method flow diagram for setting up equipment manager of offer in the embodiment of the application one;
Fig. 4 is the module diagram of the device for setting up equipment manager of offer in the embodiment of the application one.
Specific embodiment
It is specifically real below in conjunction with the application to make the purpose, technical scheme and advantage of the application clearer
Apply example and corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, it is described
Embodiment is only some embodiments of the present application, rather than whole embodiments.Based on the implementation in the application
Example, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
The method flow diagram for setting up equipment manager that Fig. 1 is provided for one embodiment of application.Build as described in Figure 1
The method of vertical equipment manager, specifically includes following steps:
S110:Receive the request that equipment manager is set up for application.
User can set up the button of equipment manager by clicking on the interface that mobile device shows, so that raw
Into the request that equipment manager is set up for application.Mobile device can be received sets up equipment control for application
The request of device.
As a example by by mobile phone bodyguard, this is applied, user can the (setting-safety-equipment control in following path
Device) for this application of mobile phone bodyguard, the button of equipment manager is set up in click;So as to generate for mobile phone
Bodyguard sets up the request of equipment manager.
S120:The request is responded, the application is inherited DeviceAdminReceiver methods.
It is described to answer when setting up the equipment manager belonging to application below by taking the mobile device of Android system as an example
With need inherit DeviceAdminReceiver methods.The DeviceAdminReceiver methods are one
Special radio receiver (BroadcastReceiver) is planted, for notifying in many ways same when other people are broadcasted by hair
During one message, radio receiver can receive the information of the broadcast.DeviceAdminReceiver methods
It is a kind of radio receiver of the system specific customization for inheriting BroadcastReceiver characteristics.By this
DeviceAdminReceiver methods can receive the information that usual radio receiver cannot be received, such as
Whether user mobile phone Password Input correct and user is to information such as the modifications of cell phone password.
Example code is as follows:
It should be noted that code mentioned above is only the partial code example that the present embodiment sends request,
It is to illustrate the present embodiment to understand that succinctly, therefore not to repeat here for the present embodiment whole codes.
S130:The DeviceAdminReceiver methods are stated in configuration file.
The file of the configuration file mobile device system, such as AndroidManifest.xml (Android projects
In inventory file).
Specifically, the DeviceAdminReceiver methods, including following step are stated in configuration file
Suddenly:
Mobile device is described in the statement of configuration file (AndroidManifest.xml) the inside
DeviceAdminReceiver methods, example code is as follows:
<receiver android:Name=" .app.DeviceAdminSample $ DeviceAdminSample
Receiver”
android:Label="@string/sample_device_admin "
android:Description="@string/sample_device_admin_description "
android:Permission=" android.permission.BIND_DEVICE_ADMIN ">
<meta-data android:Name=" android.app.device_admin ">
Android:Resource="@xml/device__admin_sample "/>
<intent-filter
<actionandroid:Name=" android.app.action.DEVICE__ADMIN_ENABLED "
/>
</intent-filter>
</receiver>
It should be noted that code mentioned above is only the partial code example that the present embodiment sends request,
It is to illustrate the present embodiment to understand that succinctly, therefore not to repeat here for the present embodiment whole codes.
S140:According to the configuration file, the equipment manager of the application, the equipment after activation are activated
Manager is used to prevent the application to be unloaded.
Specifically, the step of equipment manager of activation application is as follows, including:
A1:One Intent of equipment manager of statement.Example code is as follows:
Inten tintent=
new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN)
A2:The DeviceAdminReceiver stated in adding configuration file in the Intent.Code
Example is as follows:
String componentName=
new ComponentName(context,DeviceAdminReceiver.class);
intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN,component
Name)
A3:Judge system whether holding equipment manager.Example code is as follows:
ResolveInfo resolveInfo=context.getPackageManager () .resolveActivity (
intent,PackageManager.MATCH_DEFAULT_ONLY)
A4:If system holding equipment manager, when it is determined that resolveInfo is not null, then start institute
State Intent.Example code is as follows:
if(resolveInfo!=null) { context.startActivity (intent);}
It should be noted that code mentioned above is only the partial code example that the present embodiment sends request,
It is to illustrate the present embodiment to understand succinctly, therefore not to repeat here to send out whole codes for the present embodiment.
After the equipment manager belonging to application is set up, the application can not be unloaded directly.
As a example by by mobile phone bodyguard, this is applied.Generally, when user inquires about the relevant information of mobile phone bodyguard,
Except showing the version of mobile phone bodyguard and the other information of mobile phone bodyguard, such as storage of mobile phone bodyguard in mobile phone
Total amount, the data storage of mobile phone bodyguard and mobile phone bodyguard take memory space etc. in mobile phone storage, also
The button for forcing to stop and unload can be shown.When the application success establishes affiliated equipment manager
Afterwards, the above-mentioned middle button for forcing to stop and unload will be in inoperable state, such as grey display effect
Really, even if such user clicks the button of unloading, mobile phone bodyguard does not also send out and is unloaded.
By the present embodiment, will be using succession DeviceAdminReceiver methods and the sound in configuration file
The bright DeviceAdminReceiver methods;The equipment manager of the application is activated according to configuration file;
Lock-screen when equipment manager after activation monitors unloading application, so as to prevent to unload the behaviour of the application
Make.Realization is prevented from applying and is unloaded.
In one of the application specifically embodiment, after the S110 steps, can also include:
The dialog box that output request confirms;
Button according to being triggered in the dialog box determines whether to respond the instruction;
Correspondingly, the S120 steps, can include:
If it is determined that button is triggered, then the request is responded, inherit the application
DeviceAdminReceiver methods.
As a example by still this is applied by mobile phone bodyguard, set up equipment for mobile phone bodyguard on interface when user clicks on
After the button of manager, mobile phone can export the dialog box prompting user that request confirms, content in the dialog box
As for " after setting up equipment manager, mobile phone bodyguard can make your mobile phone safer!Whether build immediately
It is vertical" when user clicks ACK button, then the request is responded, mobile phone bodyguard is set up into equipment manager;
If user clicks cancel button, the request is not responding to, mobile phone bodyguard is not set up into equipment manager.
In the present embodiment, remind whether user is confirmed for application by exporting the dialog box of request confirmation
The operation of the equipment manager belonging to it is set up, so as to avoid the situation of user misoperation, improves user's
Experience.
In one of the application specifically embodiment, as shown in Figure 2 after the S130 steps, also
Can include:
S131:Authority information is write in the statement.
In the present embodiment, the authority information include request monitoring screen unblock number of times, request lock-screen,
Ask to be configured the setting rule of identifying code and other avoid lawless person from performing improper behaviour to equipment
Work causes using associative operation for maliciously being unloaded etc., and the present embodiment is not limited to this.For example,
In the present embodiment, for the authority that request monitoring screen unlocks number of times, if current screen is unlocked number of times and exceedes
Certain number of times (such as 3 times), still fail unblock, then can lock mobile device or delete institute
State the data in mobile device, it is to avoid lawless person obtains after other approach unlock the mobile device
The information such as the data in the mobile device, the property safety to user threatens.In addition, the present embodiment
In, the rule of identifying code can be set.For example, it is that numeral exists with the group rule of merger and acquisition of letter to set identifying code
In identifying code numeral and letter number (as regulation identifying code include 3 numerals and 3 letters,
Such as 367xyz).Combine and specify numeral with capitalization with uppercase for digital for example, setting identifying code again
Letter number respectively, numeral is 2 in such as setting identifying code, and capitalization is 5 (such as 23WERTY).
The number of the identifying code set in the example above and combination are merely illustrative, the checking set in practical application
Code can be the combination of any character, and can be any number, and the present embodiment is not limited to this.
In the present embodiment, it is graphical passwords that can also set identifying code rule.For example in the screen of mobile device
Display 3 be multiplied by nine of arrangements of 3 can touch points, user be able to can touch according to personal like Dengs at nine
Individual character figure is set out used as password on point.For example, user can set " L " shape pattern as figure
Password.The present embodiment of setting in to(for) identifying code rule can also be other any cipher set-up methods, such as
Finger-print cipher etc., the present embodiment is not limited to this.
Mentioned above, the present embodiment writes authority information by the statement, so that equipment
Manager can perform the operation of the authority.
In configuration file (AndroidManifest.xml) the inside correspondence DeviceAdminReceiver
" receiver " needed for the statement of method, example code is as follows:
<receiver android:Name=" .app.DeviceAdminSample $ DeviceAdminSample
Receiver”
android:Label="@string/sample_device_admin "
android:Description="@string/sample_device_admin_description "
android:Permission=" android.permission.BIND_DEVICE_ADMIN ">
<meta-data android:Name=" android.app.device_admin ">
Android:Resource="@xml/device__admin_sample "/>
<intent-filter
<actionandroid:Name=" android.app.action.DEVICE__ADMIN_ENABLED "
/>
</intent-filter>
</receiver>
"@xml/device_admin_sample " in example code mentioned above can indicate concrete power limit
Information.
Specifically, the example code of an authority information is as follows:
<device-admin
Xmlns:Android=" http://schemas.android.com/apk/res/android”>
<uses-policies>
<limit-password/>
<watch-login/>
<reset-password/>
<force-lock/>
<wipe-data/>
<expire-password/>
<encrypted-storage/>
<disable-camera/>
</uses-policies>
</device-admin>
In addition, in Java code, example code is as follows:
It should be noted that code mentioned above is only the partial code example that the present embodiment sends request,
It is to illustrate the present embodiment to understand succinctly, is not gone to live in the household of one's in-laws on getting married herein for whole codes that the present embodiment sends request
State.
In actual use, bridge order adb is debugged by Android when the malicious user for being familiar with Android technology to unload
Using when, above-described embodiment cannot be still prevented using being unloaded.And pass through the present embodiment, it is described in activation
After authority using affiliated equipment manager, if user or Malware trial unloading are applied, can
Locked with the screen in several ways to mobile device.For example directly screen is locked, is pointed out
Need input validation code to be unlocked mobile device, current screen can also be set and shown without input validation
Code can be unlocked operation to mobile device, but screen is locked on backstage, prevent from being familiar with Android skill
The malicious user of art carries out malice unloading, more efficient guarantee mobile device to mobile phone bodyguard by system command
The security of middle application.
In one of the application specifically embodiment, after the S140 steps, can also include:
S141:Output prompting releases the dialog box of the equipment manager belonging to the application.
In the present embodiment, content can artificially preset in the dialog box, be used to prompt the user on how solution
Except the equipment manager.
Still by mobile phone bodyguard this application as a example by, when the mobile phone bodyguard be successfully established equipment manager it
Afterwards, mobile phone can eject the dialog box that prompting releases the equipment manager belonging to the application, and content can be wrapped
Include and " be successfully established equipment manager, when you need unloading mobile phone bodyguard, setting-safety-equipment pipe please be arrive
The equipment manager belonging to application is released in reason device ".
By the present embodiment, the equipment manager belonging to application belonging to releasing can be prompted the user on how, it is convenient
User's unloading application, improves the experience of user.
Corresponding with above method flow, embodiments herein additionally provides a kind of device.The device can be with
Realized by software, it is also possible to realized by way of hardware or software and hardware combining.As a example by implemented in software,
As the device on logical meaning, be by the central processing unit of server (Central Process Unit,
CPU run what is formed during corresponding computer program instructions) are read into internal memory.
The module diagram of the device for setting up equipment manager that Fig. 4 is provided for the embodiment of the application one, the dress
The function of putting unit is similar with the function of each step in the above method, therefore is referred to the above method
Particular content in embodiment.The device for setting up equipment manager includes:
Receiving unit 210, the request of equipment manager is set up for receiving for application;
Processing unit 220, for responding the request, makes the application inherit DeviceAdminReceiver
Method;
Statement unit 230, for stating the DeviceAdminReceiver methods in configuration file;
Activation unit 240, for according to the configuration file, activating the equipment manager of the application, swashs
The equipment manager is used to prevent the application to be unloaded after work.
By the present embodiment, will be using succession DeviceAdminReceiver methods and the sound in configuration file
The bright DeviceAdminReceiver methods;The equipment manager of the application is activated according to configuration file;
Lock-screen when equipment manager after activation monitors unloading application, so as to prevent to unload the behaviour of the application
Make, realization is prevented from applying and is unloaded.
Preferably, after the statement unit, also include:
Writing unit, for writing authority information in the statement.
Preferably, the authority includes request monitoring screen unblock number of times, and request lock-screen, request are to testing
Demonstrate,prove at least one of setting rule of code.
It is preferred that after, can prevent the malicious user for being familiar with Android technology from carrying out malice to application by system command
Unloading, the more efficient security for ensureing to be applied in mobile device.
Preferably, after the activation unit, also include:
Output unit, the dialog box of the equipment manager belonging to the application is released for exporting prompting.
It is preferred that after, can prompt the user on how to release equipment manager by the output unit, facilitate user
Unloading application, improves the experience of user.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or knot
Close the form of the embodiment in terms of software and hardware.And, the present invention can be used and wherein wrapped at one or more
Containing computer usable program code computer-usable storage medium (including but not limited to magnetic disk storage,
CD-ROM, optical memory etc.) on implement computer program product form.
The present invention is produced with reference to method according to embodiments of the present invention, equipment (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions realize flow chart and
/ or block diagram in each flow and/or the flow in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions to all-purpose computer, special-purpose computer, insertion can be provided
The processor of formula processor or other programmable data processing devices is producing a machine so that by calculating
The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one
The device of the function of being specified in individual flow or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or the treatment of other programmable datas to set
In the standby computer-readable memory for working in a specific way so that storage is in the computer-readable memory
Instruction produce include the manufacture of command device, the command device realization in one flow of flow chart or multiple
The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by appointing
What method or technique realizes information Store.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read-only storage (ROM), electrically erasable are read-only
Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated
The information that equipment is accessed.Defined according to herein, computer-readable medium does not include temporary computer-readable matchmaker
Body (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, commodity or equipment including a series of key elements are not only wrapped
Include those key elements, but also other key elements including being not expressly set out, or also include for this process,
Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that in the process including the key element, method, commodity or set
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.And, the application can be used and wherein include calculating at one or more
Machine usable program code computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM,
Optical memory etc.) on implement computer program product form.
Embodiments herein is the foregoing is only, the application is not limited to.For this area skill
For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle
Any modification, equivalent substitution and improvements of work etc., within the scope of should be included in claims hereof.
Claims (8)
1. a kind of method for setting up equipment manager, it is characterised in that including:
Receive the request that equipment manager is set up for application;
The request is responded, the application is inherited DeviceAdminReceiver methods;
The DeviceAdminReceiver methods are stated in configuration file;
According to the configuration file, the equipment manager of the application, the equipment manager after activation are activated
For preventing the application to be unloaded.
2. the method for claim 1, it is characterised in that state described in configuration file
After DeviceAdminReceiver methods, also include:
Authority information is write in the statement.
3. method as claimed in claim 2, it is characterised in that the authority information includes that request is monitored
Unlocking screen number of times, request lock-screen, request are at least one of setting rule of identifying code.
4. the method for claim 1, it is characterised in that activating the equipment control of the application
After device, also include:
Output prompting releases the dialog box of the equipment manager belonging to the application.
5. a kind of device for setting up equipment manager, it is characterised in that including:
Receiving unit, the request of equipment manager is set up for receiving for application;
Processing unit, for responding the request, makes the application inherit DeviceAdminReceiver side
Method;
Statement unit, for stating the DeviceAdminReceiver methods in configuration file;
Activation unit, for according to the configuration file, the equipment manager of the application being activated, after activation
The equipment manager is used to prevent the application to be unloaded.
6. device as claimed in claim 5, it is characterised in that after the statement unit, also wrap
Include:
Writing unit, for writing authority information in the statement.
7. device as claimed in claim 6, it is characterised in that the authority includes request monitoring screen
Unblock number of times, request lock-screen, request are at least one of setting rule of identifying code.
8. device as claimed in claim 5, it is characterised in that after the activation unit, also wrap
Include:
Output unit, the dialog box of the equipment manager belonging to the application is released for exporting prompting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510982024.6A CN106909809A (en) | 2015-12-23 | 2015-12-23 | Set up the method and device of equipment manager |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510982024.6A CN106909809A (en) | 2015-12-23 | 2015-12-23 | Set up the method and device of equipment manager |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106909809A true CN106909809A (en) | 2017-06-30 |
Family
ID=59206212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510982024.6A Pending CN106909809A (en) | 2015-12-23 | 2015-12-23 | Set up the method and device of equipment manager |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106909809A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521548A (en) * | 2011-11-24 | 2012-06-27 | 中兴通讯股份有限公司 | Method for managing using rights of function and mobile terminal |
CN103824016A (en) * | 2013-11-28 | 2014-05-28 | 北京奇虎科技有限公司 | Application anti-uninstalling method and equipment |
CN103984576A (en) * | 2014-05-29 | 2014-08-13 | 北京网秦天下科技有限公司 | Method and terminal for preventing application from being uninstalled |
CN104091120A (en) * | 2014-06-10 | 2014-10-08 | 北京金山安全软件有限公司 | Android system malicious program processing method and device |
CN104123499A (en) * | 2014-07-18 | 2014-10-29 | 北京金山安全软件有限公司 | Method and device for recognizing software for resisting uninstallation by using Android device manager |
-
2015
- 2015-12-23 CN CN201510982024.6A patent/CN106909809A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521548A (en) * | 2011-11-24 | 2012-06-27 | 中兴通讯股份有限公司 | Method for managing using rights of function and mobile terminal |
CN103824016A (en) * | 2013-11-28 | 2014-05-28 | 北京奇虎科技有限公司 | Application anti-uninstalling method and equipment |
CN103984576A (en) * | 2014-05-29 | 2014-08-13 | 北京网秦天下科技有限公司 | Method and terminal for preventing application from being uninstalled |
CN104091120A (en) * | 2014-06-10 | 2014-10-08 | 北京金山安全软件有限公司 | Android system malicious program processing method and device |
CN104123499A (en) * | 2014-07-18 | 2014-10-29 | 北京金山安全软件有限公司 | Method and device for recognizing software for resisting uninstallation by using Android device manager |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11113412B2 (en) | System and method for monitoring and verifying software behavior | |
Chen et al. | Internet-of-things security and vulnerabilities: Taxonomy, challenges, and practice | |
CA2968248C (en) | Identity infrastructure as a service | |
CN105637800B (en) | Key Infrastructures | |
US9576147B1 (en) | Security policy application through data tagging | |
TWI683232B (en) | User identity recognition method, safety protection problem generation method and device | |
US20150281225A1 (en) | Techniques to operate a service with machine generated authentication tokens | |
CN106357672B (en) | A kind of login method and terminal | |
CN107645482A (en) | A kind of risk control method and device for business operation | |
CN110738473A (en) | Wind control method, system, device and equipment | |
CN106295385A (en) | A kind of data guard method and device | |
CN107466031A (en) | A kind of method and terminal for protecting data | |
CN110287697A (en) | Activity recognition, data processing method and device | |
CN109886662A (en) | Block chain wallet application method and system, terminal and computer readable storage medium | |
US10069825B2 (en) | Electronic device identification | |
CN106559386A (en) | A kind of authentication method and device | |
US11379568B2 (en) | Method and system for preventing unauthorized computer processing | |
CN108494749A (en) | Method, apparatus, equipment and the computer readable storage medium of IP address disabling | |
CN107341389A (en) | The method and device for preventing equipment to be multiplexed | |
Kaur et al. | PeMo: Modifying application's permissions and preventing information stealing on smartphones | |
Ulltveit‐Moe et al. | Enforcing mobile security with location‐aware role‐based access control | |
CN106909809A (en) | Set up the method and device of equipment manager | |
CN106911653A (en) | A kind of method for realizing mobile terminal remote control, device, mobile terminal and system | |
CN109508550A (en) | Privacy of user guard method and system based on SEAndroid | |
Dar et al. | Enhancing security of Android & IOS by implementing need-based security (NBS) |
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: 20170630 |