CN108875355A - A kind of control method and device of access authority - Google Patents

A kind of control method and device of access authority Download PDF

Info

Publication number
CN108875355A
CN108875355A CN201810596479.8A CN201810596479A CN108875355A CN 108875355 A CN108875355 A CN 108875355A CN 201810596479 A CN201810596479 A CN 201810596479A CN 108875355 A CN108875355 A CN 108875355A
Authority
CN
China
Prior art keywords
page
active user
system setting
subpage frame
class name
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
CN201810596479.8A
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.)
Beijing Jingdong Financial Technology Holding Co Ltd
Original Assignee
Beijing Jingdong Financial Technology Holding 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 Beijing Jingdong Financial Technology Holding Co Ltd filed Critical Beijing Jingdong Financial Technology Holding Co Ltd
Priority to CN201810596479.8A priority Critical patent/CN108875355A/en
Publication of CN108875355A publication Critical patent/CN108875355A/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/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Abstract

The invention discloses a kind of control method of access authority and devices, are related to field of computer technology.One specific embodiment of this method includes:Monitor the active user's page shown on prototype screen;When listening to active user's page is that the page is arranged in system, judge whether active user's page is preset system setting subpage frame;If so, the control of active user's page is kept to open;If it is not, then automatically exiting from active user's page.The embodiment, which is able to solve, surveys the technical issues of other users can not share prototype when platform carries out prototype access in cloud.

Description

A kind of control method and device of access authority
Technical field
The present invention relates to field of computer technology more particularly to the control methods and device of a kind of access authority.
Background technique
Currently, especially during compatibility test, needing to survey in numerous types in the test job of mobile terminal Examination.Cloud surveys the access of platform prototype and has well solved the problems such as test machine in test job is shared, numerous types cover.It can be real Existing a batch test machine is utilized for multiple tester's timesharing, is improved machine utilization rate and is reduced machine buying expenses.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
Existing cloud surveys platform and lacks permission limitation function, such as when being accessed using remote real machine, closes into the setting page USB debugging mode in make and break originator permission, will lead to prototype and cloud surveys the connection disconnection of platform, can not continuous access prototype; For another example, certain user setting screen-lock password, does not remove after exiting use, causes next user can not normal use.
Similar this behavior, which can all cause to survey when platform carries out prototype access in cloud, to go wrong, and then leads to other users Prototype can not be shared.
Summary of the invention
In view of this, the embodiment of the present invention provides the control method and device of a kind of access authority, it is flat to solve to survey in cloud The technical issues of other users can not share prototype when platform carries out prototype access.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of controlling party of access authority is provided Method, including:
Monitor the active user's page shown on prototype screen;
When listening to active user's page is that the page is arranged in system, judge whether active user's page is pre- If system be arranged subpage frame;If so, the control of active user's page is kept to open;If it is not, then automatically exiting from described Active user's page.
Optionally, the active user's page shown on prototype screen is monitored, including:
GetPackageName () method that AccessibilityService class provides is serviced by miscellaneous function, is obtained The packet name of the active user's page shown on prototype screen.
Optionally, when listening to active user's page is that the page is arranged in system, whether judge active user's page For preset system, subpage frame is set, including:
When the packet name of the entitled system setting page of the packet for listening to active user's page, the active user is judged The class name of the page whether be preset system setting subpage frame class name.
Optionally, judge active user's page class name whether be preset system setting subpage frame class name, packet It includes:
The type of the prototype and the class name of preset system setting subpage frame corresponding with the type are obtained, judges institute State active user's page class name whether be the preset system setting subpage frame class name.
Optionally, active user's page is automatically exited from, including:
The side performGlobalAction () provided using miscellaneous function service AccessibilityService class Method, analog subscriber clicks return key or home key, to automatically exit from active user's page.
In addition, other side according to an embodiment of the present invention, provides a kind of control device of access authority, including:
Module is monitored, for monitoring the active user's page shown on prototype screen;
Control module, for judging the current use when listening to active user's page is that the page is arranged in system Whether the family page is preset system setting subpage frame;If so, the control of active user's page is kept to open;If it is not, Then automatically exit from active user's page.
Optionally, the monitoring module is used for:
GetPackageName () method that AccessibilityService class provides is serviced by miscellaneous function, is obtained The packet name of the active user's page shown on prototype screen.
Optionally, when listening to active user's page is that the page is arranged in system, whether judge active user's page For preset system, subpage frame is set, including:
When the packet name of the entitled system setting page of the packet for listening to active user's page, the active user is judged The class name of the page whether be preset system setting subpage frame class name.
Optionally, judge active user's page class name whether be preset system setting subpage frame class name, packet It includes:
The type of the prototype and the class name of preset system setting subpage frame corresponding with the type are obtained, judges institute State active user's page class name whether be the preset system setting subpage frame class name.
Optionally, active user's page is automatically exited from, including:
The side performGlobalAction () provided using miscellaneous function service AccessibilityService class Method, analog subscriber clicks return key or home key, to automatically exit from active user's page.
Other side according to an embodiment of the present invention additionally provides a kind of electronic equipment, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes method described in any of the above-described embodiment.
Other side according to an embodiment of the present invention additionally provides a kind of computer-readable medium, is stored thereon with meter Calculation machine program, realizes method described in any of the above-described embodiment when described program is executed by processor.
One embodiment in foregoing invention has the following advantages that or beneficial effect:Because listening to active user using working as When the page is that the page is arranged in system, judge whether active user's page is preset system setting subpage frame, to control to it The technological means that part is opened or automatically exited from can not be total to so overcoming and surveying other users when platform carries out prototype access in cloud The technical issues of enjoying prototype.On the one hand, the embodiment of the present invention is clicked or is passed through manually in user by monitoring active user's page When the modes such as third party application enter the system setting page, the page is automatically exited from, reaches limitation user and system is arranged Movement is made an amendment, avoids influencing the shared purpose of test machine, effectively improves the stability that cloud surveys the access of platform remote real machine, Reduce maintenance cost.On the other hand, the embodiment of the present invention avoids to property the open setting permission of part system setting subpage frame It can test and impact.Therefore, the embodiment of the present invention can guarantee that prototype carries out test operation under non-root authority, additionally it is possible to User is avoided to obtain root authority bring insecurity.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow of the control method of access authority according to an embodiment of the invention;
Fig. 2 is the signal of the main flow of the control method of an access authority that can refer to embodiment according to the present invention Figure;
Fig. 3 is another signal that can refer to the main flow of the control method of the access authority of embodiment according to the present invention Figure;
Fig. 4 is the schematic diagram of the main modular of the control device of access authority according to an embodiment of the present invention;
Fig. 5 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 6 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Due to removing the set content of user, such as setting password generic operation, change developer's permission generic operation, modification net Network state generic operation etc. needs root authority (one kind of system permission, be also root authority), implements more complex.Therefore, existing Have technology generally by the way of forbidding setting, i.e., after identification enters the system setting page, need to the function of the page into Row shielding.Commonly limitation mode includes:It is set as to click, pop-up, the translucent mask layer of setting etc., these sides is set Interaction is more friendly for a user for formula, but it is more to occupy resource.The present inventor is comprehensive to be realized difficulty, provides to machine The considerations of source occupancy etc., creatively in such a way that monitoring users enter after the page is arranged in system and automatically exit from the page The access authority of the system setting page is limited.
Therefore, method provided in an embodiment of the present invention may be limited to cloud and survey and influences to be mostly used in the prototype access process of platform The illegal operation of test machine is shared at family, i.e., limits the access authority of the system setting page, improper operation is avoided to cause Other users can not share test machine, to solve the technical issues of other users can not share prototype.
Fig. 1 is the schematic diagram of the main flow of the control method of access authority according to an embodiment of the invention.As One embodiment of the present of invention, as shown in Figure 1, the control method of the access authority may include:
Step 101, the active user's page shown on prototype screen is monitored.
In order to realize the present invention, the identification for solving the problems, such as the system setting page is first had to, i.e. monitoring users enter system and set Set the behavior of the page.Therefore, in this step, the active user's page shown on prototype screen is monitored in real time, is worked as with judgement Whether preceding User Page is the system setting page.
In one embodiment of the invention, described monitor can in the step of active user's page shown on prototype screen To include:GetPackageName () method that AccessibilityService class provides is serviced by miscellaneous function, is obtained The packet name of the active user's page shown on prototype screen.In this embodiment, the present invention utilizes Android SDK (software Development kit, Software Development Kit) in miscellaneous function service AccessibilityService class provide GetPackageName () method, the relevant information of the available active user's page shown on prototype screen, such as class Packet name etc. where name and class.
Miscellaneous function service AccessibilityService class is a kind of service that Android system provides, and is inherited Service class, miscellaneous function service AccessibilityService class provide the user interface of enhancing, it is intended to help disability Personage or the people that temporarily can not may be sufficiently interacted with equipment.
Step 102, when listening to active user's page is that the page is arranged in system, judge active user's page It whether is preset system setting subpage frame;If so, the control of active user's page is kept to open;If it is not, then automatic Exit active user's page.
In this step, when listening to active user's page is that the page is arranged in system, illustrating that user enters is Then the system setting page further judges whether active user's page is preset system setting subpage frame, if it is, The control of active user's page is kept to open, if it is not, then active user's page is automatically exited from, to set to system The access authority for setting the page is limited.
It should be noted that if preset system setting subpage frame, illustrate not to system be arranged the page under this be System setting subpage frame access permission limitation, user can enter the system setting subpage frame operate.If do not set System setting subpage frame is set, then illustrates the permission limitation that accesses to all systems setting subpage frame under the system setting page, Limit all system setting correlation functions.
In some embodiments of the invention, when listening to active user's page is that the page is arranged in system, described in judgement Whether active user's page is preset system setting subpage frame, including:When the packet for listening to active user's page is entitled When the packet name of the page is arranged in system, judge active user's page class name whether be preset system setting subpage frame class Name.
The embodiment of the present invention inherits miscellaneous function by exploitation service and services AccessibilityService class, and printing is worked as The packet name information of preceding User Page.By running the service on different mobile phones, comparison is obtained involved by system setting The packet name that the pages such as password, modification network state, change developer's permission are arranged is " com.android.settings ", because This can customized service inherit miscellaneous function and service AccessibilityService class, monitor the packet of active user's page Name, if when the packet for listening to active user's page entitled " com.android.settings ", that is, illustrating that user enters is The system setting page, that is, listening to active user's page is that the page is arranged in system.
When listening to active user's page is that the page is arranged in system, active user's page is further judged Class name whether be preset system setting subpage frame class name, such as network settings page etc..Therefore, page is arranged for system Some normal settings (such as network settings) in face, can be determined whether by further judging the class name of the setting page These pages are excluded except rollback operation.In this embodiment, when user enters preset system setting subpage frame, have Permission is configured the control of the page, for example switches the network etc. of connection.
But if having opened the permission of the network settings page, had a problem that after access cloud surveys platform:Test machine is not It is used only for remote real machine access, is also used for performance test.If user turns off WIFI switch, when will lead to the test of performance special project Traffic statistics inaccuracy.In an embodiment of the present invention, if it is determined that active user's page is preset system setting The page then keeps the control of active user's page to open.In particular it is required that carrying out network status monitoring, prototype system is received The broadcast of system automatically opens the WIFI switch of the network settings page when receiving the information that WIFI switch is in close state.
Customization due to each producer to Android system, system be arranged subpage frame class name it is different, need combine pair Different type of machines makes a decision.Specifically:Obtain the type and preset system setting subpage corresponding with the type of the prototype The class name in face, judge active user's page class name whether be the preset system setting subpage frame class name.
It is after the page is arranged in system listening to active user's page, the class name of active user's page is not pre- If system setting subpage frame class name, then need to automatically exit from the page.Due to miscellaneous function service The information of AccessibilityService class not only available active user's page can be executed with analog subscriber and click behaviour Make.Therefore, the embodiment of the present invention, which utilizes, utilizes miscellaneous function service AccessibilityService class offer PerformGlobalAction () method, analog subscriber clicks return key or home key, to automatically exit from the current use The family page.
In order to avoid user accidentally deletes or deliberately deletes service provided in an embodiment of the present invention, limitation function is caused to lose Effect.By modifying configuration file in a program, the icon of the service is set as not appearing on desktop.Therefore stopping service needing To enter system to be arranged, but the function of the service limits and enters the setting page, ensure that the stability and safety of the service. The method can the installation and debugging on different mobile phones, can also be backward compatible to Android4.1 version.
According to various embodiments recited above, it can be seen that the present invention is by using when listening to active user's page When the page is arranged in system, judge whether active user's page is preset system setting subpage frame, to carry out control unlatching to it Or the technological means automatically exited from, prototype can not be shared to solve and survey other users when platform carries out prototype access in cloud The problem of.That is, the prior art does not carry out permission limitation to the system setting page, cause other users that can not share prototype The problem of.And the present invention is to judge active user's page when listening to active user's page is that the page is arranged in system Whether face is preset system setting subpage frame;If so, the control of active user's page is kept to open;If it is not, then certainly It is dynamic to exit active user's page.On the one hand, the embodiment of the present invention is clicked by monitoring active user's page in user manually Or when entering system by modes such as third party applications the page being set, the page is automatically exited from, reaches limitation user to being Movement is made an amendment in system setting, avoids influencing the shared purpose of test machine, is effectively improved cloud and is surveyed the access of platform remote real machine Stability reduces maintenance cost.On the other hand, the embodiment of the present invention is open to part system setting subpage frame is arranged permission, It avoids impacting performance test.Therefore, the embodiment of the present invention can guarantee that prototype carries out test behaviour under non-root authority Make, additionally it is possible to user be avoided to obtain root authority bring insecurity.
Fig. 2 is the signal of the main flow of the control method of an access authority that can refer to embodiment according to the present invention Figure, the control method of the access authority may include:
Step 201, the packet name of the active user's page shown on prototype screen is obtained;
Step 202, judge active user's page packet name whether be system setting the page packet name;If so, executing step Rapid 203;If it is not, then terminating;
Step 203, active user's page is automatically exited from.
In this embodiment, by monitoring active user's page, third party application is clicked or passed through manually in user Etc. modes enter system setting the page when, automatically exit from the page, reach limitation user to system setting make an amendment movement, avoid The shared purpose of test machine is influenced, the stability that cloud surveys the access of platform remote real machine is effectively improved, reduces maintenance cost.
In addition, can refer to the specific implementation content of the control method of access authority in embodiment at the present invention one, upper It has been described in detail in the control method of access authority described in face, therefore has no longer illustrated in this duplicate contents.
Fig. 3 is another signal that can refer to the main flow of the control method of the access authority of embodiment according to the present invention Figure, the control method of the access authority may include:
Step 301, class name, the packet name of the active user's page shown on prototype screen are obtained;
Step 302, judge active user's page packet name whether be system setting the page packet name;If so, executing step Rapid 303;If it is not, then terminating;
Step 303, the type of prototype and the class name of the network settings page corresponding with the type are obtained;
Step 304, judge active user's page class name whether be the corresponding network settings page of the type class name;If It is then to terminate;If it is not, thening follow the steps 305;
Step 305, active user's page is automatically exited from.
In this embodiment, the present invention is only illustratively by taking the network settings page as an example, and those skilled in the art can Subpage frame is set as the open permission page to preset other systems as needed.As it can be seen that the embodiment of the present invention is to part The open setting permission of system setting subpage frame, avoids impacting performance test.
In addition, can refer to the specific implementation content of the control method of access authority in embodiment at the present invention one, upper It has been described in detail in the control method of access authority described in face, therefore has no longer illustrated in this duplicate contents.
Fig. 4 is the schematic diagram of the main modular of the control device of access authority according to an embodiment of the present invention, such as Fig. 4 institute Show, the control device 400 of the access authority includes monitoring module 401 and control module 402.Wherein, the monitoring module 401 Monitor the active user's page shown on prototype screen;The control module 402 ought listen to active user's page When the page is arranged in system, judge whether active user's page is preset system setting subpage frame;If so, described in keeping The control of active user's page is opened;If it is not, then automatically exiting from active user's page.
Optionally, described to monitor what module 401 was provided by miscellaneous function service AccessibilityService class GetPackageName () method obtains the packet name of the active user's page shown on prototype screen.
Optionally, when listening to active user's page is that the page is arranged in system, whether judge active user's page For preset system, subpage frame is set, including:
When the packet name of the entitled system setting page of the packet for listening to active user's page, the active user is judged The class name of the page whether be preset system setting subpage frame class name.
Optionally, judge active user's page class name whether be preset system setting subpage frame class name, packet It includes:
The type of the prototype and the class name of preset system setting subpage frame corresponding with the type are obtained, judges institute State active user's page class name whether be the preset system setting subpage frame class name.
Optionally, active user's page is automatically exited from, including:
The side performGlobalAction () provided using miscellaneous function service AccessibilityService class Method, analog subscriber clicks return key or home key, to automatically exit from active user's page.
According to various embodiments recited above, it can be seen that the present invention is by using when listening to active user's page When the page is arranged in system, judge whether active user's page is preset system setting subpage frame, to carry out control unlatching to it Or the technological means automatically exited from, prototype can not be shared to solve and survey other users when platform carries out prototype access in cloud The problem of.That is, the prior art does not carry out permission limitation to the system setting page, cause other users that can not share prototype The problem of.And the present invention is to judge active user's page when listening to active user's page is that the page is arranged in system Whether face is preset system setting subpage frame;If so, the control of active user's page is kept to open;If it is not, then certainly It is dynamic to exit active user's page.On the one hand, the embodiment of the present invention is clicked by monitoring active user's page in user manually Or when entering system by modes such as third party applications the page being set, the page is automatically exited from, reaches limitation user to being Movement is made an amendment in system setting, avoids influencing the shared purpose of test machine, is effectively improved cloud and is surveyed the access of platform remote real machine Stability reduces maintenance cost.On the other hand, the embodiment of the present invention is open to part system setting subpage frame is arranged permission, It avoids impacting performance test.Therefore, the embodiment of the present invention can guarantee that prototype carries out test behaviour under non-root authority Make, additionally it is possible to user be avoided to obtain root authority bring insecurity.
It should be noted that the specific implementation content of the control device in access authority of the present invention, described above It has been described in detail in the control method of access authority, therefore has no longer illustrated in this duplicate contents.
Fig. 5 is shown can be using the control method of the access authority of the embodiment of the present invention or the control device of access authority Exemplary system architecture 500.
As shown in figure 5, system architecture 500 may include terminal device 501,502,503, network 504 and server 505. Network 504 between terminal device 501,502,503 and server 505 to provide the medium of communication link.Network 504 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 501,502,503 and be interacted by network 504 with server 505, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 501,502,503 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 501,502,503 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 505 can be to provide the server of various services, such as utilize terminal device 501,502,503 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath --- merely illustrative) feed back to terminal device.
It should be noted that the control method of access authority provided by the embodiment of the present invention is generally on server 505 It executes, correspondingly, the control device of the access authority is generally located in server 505.
It should be understood that the number of terminal device, network and server in Fig. 5 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 6 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component:Importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 609, and/or from can Medium 611 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 601, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as:A kind of processor packet It includes and monitors module and control module, wherein the title of these modules does not constitute the limit to the module itself under certain conditions It is fixed.
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes:Monitor the active user's page shown on prototype screen;It is to be when listening to active user's page When the system setting page, judge whether active user's page is preset system setting subpage frame;If so, working as described in keeping The control of preceding User Page is opened;If it is not, then automatically exiting from active user's page.
Technical solution according to an embodiment of the present invention listens to active user's page because using and working as the system setting page When, judge whether active user's page is preset system setting subpage frame, to carry out control unlatching to it or automatically exit from Technological means, so overcome cloud survey platform carry out prototype access when other users can not share prototype the technical issues of. On the one hand, the state of the page is arranged by monitoring system for the embodiment of the present invention, clicks or pass through third-party application manually in user When the modes such as program enter the system setting page, the page is automatically exited from, reaches limitation user and movement is made an amendment to system setting, It avoids influencing the shared purpose of test machine, effectively improves the stability that cloud surveys the access of platform remote real machine, reduce maintenance Cost.On the other hand, the embodiment of the present invention avoids causing performance test to the open setting permission of part system setting subpage frame It influences.Therefore, the embodiment of the present invention can guarantee that prototype carries out test operation under non-root authority, additionally it is possible to user be avoided to obtain Take root authority bring insecurity.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (12)

1. a kind of control method of access authority, which is characterized in that including:
Monitor the active user's page shown on prototype screen;
When listening to active user's page is that the page is arranged in system, judge whether active user's page is preset Subpage frame is arranged in system;If so, the control of active user's page is kept to open;If it is not, then automatically exiting from described current User Page.
2. the method according to claim 1, wherein monitor active user's page for showing on prototype screen, Including:
GetPackageName () method that AccessibilityService class provides is serviced by miscellaneous function, is obtained true The packet name of the active user's page shown on machine screen.
3. according to the method described in claim 2, it is characterized in that, being that the page is arranged in system when listening to active user's page When, judge whether active user's page is preset system setting subpage frame, including:
When the packet name of the entitled system setting page of the packet for listening to active user's page, active user's page is judged Class name whether be preset system setting subpage frame class name.
4. according to the method described in claim 3, it is characterized in that, whether the class name for judging active user's page is default System setting subpage frame class name, including:
The type of the prototype and the class name of preset system setting subpage frame corresponding with the type are obtained, is worked as described in judgement The class name of preceding User Page whether be the preset system setting subpage frame class name.
5. the method according to claim 1, wherein automatically exit from active user's page, including:
The performGlobalAction () method provided using miscellaneous function service AccessibilityService class, mould Quasi- user clicks return key or home key, to automatically exit from active user's page.
6. a kind of control device of access authority, which is characterized in that including:
Module is monitored, for monitoring the active user's page shown on prototype screen;
Control module, for judging active user's page when listening to active user's page is that the page is arranged in system Whether face is preset system setting subpage frame;If so, the control of active user's page is kept to open;If it is not, then certainly It is dynamic to exit active user's page.
7. device according to claim 6, which is characterized in that the monitoring module is used for:
GetPackageName () method that AccessibilityService class provides is serviced by miscellaneous function, is obtained true The packet name of the active user's page shown on machine screen.
8. device according to claim 7, which is characterized in that the page is arranged for system when listening to active user's page When, judge whether active user's page is preset system setting subpage frame, including:
When the packet name of the entitled system setting page of the packet for listening to active user's page, active user's page is judged Class name whether be preset system setting subpage frame class name.
9. device according to claim 8, which is characterized in that whether the class name for judging active user's page is default System setting subpage frame class name, including:
The type of the prototype and the class name of preset system setting subpage frame corresponding with the type are obtained, is worked as described in judgement The class name of preceding User Page whether be the preset system setting subpage frame class name.
10. device according to claim 6, which is characterized in that active user's page is automatically exited from, including:
The performGlobalAction () method provided using miscellaneous function service AccessibilityService class, mould Quasi- user clicks return key or home key, to automatically exit from active user's page.
11. a kind of electronic equipment, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
CN201810596479.8A 2018-06-11 2018-06-11 A kind of control method and device of access authority Pending CN108875355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810596479.8A CN108875355A (en) 2018-06-11 2018-06-11 A kind of control method and device of access authority

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810596479.8A CN108875355A (en) 2018-06-11 2018-06-11 A kind of control method and device of access authority

Publications (1)

Publication Number Publication Date
CN108875355A true CN108875355A (en) 2018-11-23

Family

ID=64337647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810596479.8A Pending CN108875355A (en) 2018-06-11 2018-06-11 A kind of control method and device of access authority

Country Status (1)

Country Link
CN (1) CN108875355A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109829291A (en) * 2019-01-28 2019-05-31 广州云测信息技术有限公司 A kind of authentication method into Android set interface
CN111581095A (en) * 2020-05-08 2020-08-25 广州大学 Self-starting USB debugging method and device based on barrier-free service and storage medium
CN114463730A (en) * 2021-07-15 2022-05-10 荣耀终端有限公司 Page identification method and terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130212660A1 (en) * 2012-02-13 2013-08-15 Xceedid Corporation Credential manangement system
CN105744065A (en) * 2016-02-03 2016-07-06 小天才科技有限公司 Network connection control method and network connection control system of terminal
CN105791596A (en) * 2016-05-05 2016-07-20 绿网天下(福建)网络科技股份有限公司 Method for preventing uninstalling of APP
CN106453375A (en) * 2016-11-04 2017-02-22 北京用友政务软件有限公司 Smart terminal finding method and device
CN107357580A (en) * 2017-07-05 2017-11-17 竞技世界(北京)网络技术有限公司 A kind of method that guiding terminal user opens the miscellaneous function authority of application
CN107862204A (en) * 2017-07-26 2018-03-30 平安普惠企业管理有限公司 Method for page jump, mobile terminal and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130212660A1 (en) * 2012-02-13 2013-08-15 Xceedid Corporation Credential manangement system
CN105744065A (en) * 2016-02-03 2016-07-06 小天才科技有限公司 Network connection control method and network connection control system of terminal
CN105791596A (en) * 2016-05-05 2016-07-20 绿网天下(福建)网络科技股份有限公司 Method for preventing uninstalling of APP
CN106453375A (en) * 2016-11-04 2017-02-22 北京用友政务软件有限公司 Smart terminal finding method and device
CN107357580A (en) * 2017-07-05 2017-11-17 竞技世界(北京)网络技术有限公司 A kind of method that guiding terminal user opens the miscellaneous function authority of application
CN107862204A (en) * 2017-07-26 2018-03-30 平安普惠企业管理有限公司 Method for page jump, mobile terminal and readable storage medium storing program for executing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109829291A (en) * 2019-01-28 2019-05-31 广州云测信息技术有限公司 A kind of authentication method into Android set interface
CN109829291B (en) * 2019-01-28 2020-09-11 广州云测信息技术有限公司 Authentication method for entering Android setting interface
CN111581095A (en) * 2020-05-08 2020-08-25 广州大学 Self-starting USB debugging method and device based on barrier-free service and storage medium
CN114463730A (en) * 2021-07-15 2022-05-10 荣耀终端有限公司 Page identification method and terminal equipment
CN114463730B (en) * 2021-07-15 2023-07-14 荣耀终端有限公司 Page identification method and terminal equipment

Similar Documents

Publication Publication Date Title
CN110337075A (en) A kind of short message sending method, device and electronic equipment based on APP type of service
CN109995801A (en) A kind of method for message transmission and device
CN108875355A (en) A kind of control method and device of access authority
CN108829311A (en) A kind of method and apparatus based on Widget display data
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN110471848A (en) A kind of method and apparatus of dynamic returned packet
CN109547261A (en) Service line switching method, device, electronic equipment and storage medium
CN110019437A (en) A kind of method and system exporting data
CN104426960B (en) A kind of trial method and device of payment applications
CN110874307A (en) Event buried point collecting and reporting method and device
CN109814957A (en) A kind of label addition method and device for IOS system
CN110389873A (en) A kind of method and apparatus of determining server resource service condition
CN109684027A (en) The method and apparatus of dynamically track Java Virtual Machine operation
CN108763881A (en) Method and apparatus for controlling user right
CN110515741A (en) A kind of degradation processing method and device based on local task queue
CN109587197A (en) It is associated with the methods, devices and systems of reported data
CN109002389A (en) The method and apparatus of page automatic test
CN109976919A (en) A kind of transmission method and device of message request
CN110071952A (en) The control method and device of service call amount
CN111951040A (en) Information sending method and device, electronic equipment and storage medium
CN110275701A (en) Data processing method, device, medium and calculating equipment
CN108959636A (en) Data processing method, device, system, computer-readable medium
CN109683942A (en) Script management method, device, medium and electronic equipment
CN109714357A (en) Method and apparatus for distributing resource
CN108933823A (en) User's touching reaches method and apparatus

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant after: Jingdong Digital Technology Holding Co., Ltd.

Address before: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant before: Beijing Jingdong Financial Technology Holding Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123