CN106648779A - Intelligent terminal floating window permission setting method - Google Patents
Intelligent terminal floating window permission setting method Download PDFInfo
- Publication number
- CN106648779A CN106648779A CN201611218449.0A CN201611218449A CN106648779A CN 106648779 A CN106648779 A CN 106648779A CN 201611218449 A CN201611218449 A CN 201611218449A CN 106648779 A CN106648779 A CN 106648779A
- Authority
- CN
- China
- Prior art keywords
- authority
- version
- suspended window
- interface
- window
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 163
- 238000007667 floating Methods 0.000 title abstract description 8
- 230000009191 jumping Effects 0.000 claims abstract description 5
- 230000008569 process Effects 0.000 claims description 42
- 238000001514 detection method Methods 0.000 claims description 34
- 230000002159 abnormal effect Effects 0.000 claims description 18
- 230000000694 effects Effects 0.000 claims description 18
- 239000000725 suspension Substances 0.000 claims description 12
- 230000009471 action Effects 0.000 claims description 11
- 238000012360 testing method Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 7
- 238000005516 engineering process Methods 0.000 claims description 7
- 238000010276 construction Methods 0.000 claims description 4
- 230000007246 mechanism Effects 0.000 claims description 3
- 239000011230 binding agent Substances 0.000 claims description 2
- 235000013399 edible fruits Nutrition 0.000 claims description 2
- 230000003068 static effect Effects 0.000 claims description 2
- 230000009897 systematic effect Effects 0.000 claims description 2
- 238000012790 confirmation Methods 0.000 claims 1
- 210000000582 semen Anatomy 0.000 description 17
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 210000000988 bone and bone Anatomy 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 229940104697 arixtra Drugs 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- KANJSNBRCNMZMV-ABRZTLGGSA-N fondaparinux Chemical group O[C@@H]1[C@@H](NS(O)(=O)=O)[C@@H](OC)O[C@H](COS(O)(=O)=O)[C@H]1O[C@H]1[C@H](OS(O)(=O)=O)[C@@H](O)[C@H](O[C@@H]2[C@@H]([C@@H](OS(O)(=O)=O)[C@H](O[C@H]3[C@@H]([C@@H](O)[C@H](O[C@@H]4[C@@H]([C@@H](O)[C@H](O)[C@@H](COS(O)(=O)=O)O4)NS(O)(=O)=O)[C@H](O3)C(O)=O)O)[C@@H](COS(O)(=O)=O)O2)NS(O)(=O)=O)[C@H](C(O)=O)O1 KANJSNBRCNMZMV-ABRZTLGGSA-N 0.000 description 1
- 210000004247 hand Anatomy 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000007474 system interaction Effects 0.000 description 1
- 239000002699 waste material Substances 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
- 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/44505—Configuring for program initiating, e.g. using registry, configuration files
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)
- Stored Programmes (AREA)
Abstract
The invention provides an intelligent terminal floating window permission setting method. The method includes the following steps: obtaining information which comes with an intelligent terminal system, and determining whether the intelligent terminal system is a specific type or not; if yes, determining whether the intelligent terminal system has permission to use a floating window or not; if the intelligent terminal system has no permission to use the floating window, automatically jumping to a permission obtaining interface when a program runs, and then popping up a translucent full-screen guide frame on the permission open interface so as to guide users to obtain the floating window application permission.
Description
Technical field
The invention belongs to intelligent terminal's application, is related to a kind of method to set up method of intelligent terminal's suspended window authority.
Background technology
In prior art, can be integrated by virtual return key, home keys, Menu key, the fast setting of various systemic-functions
On the suspended window of intelligent terminal, by the advantage being suspended on all windows, conveniently operating body is provided the user
Test, while the virtual key function of realizing by suspended window, substitutes the use of the system button of mobile phone, save cell phone system button
The number of times being pressed, extends the service life of system button or even mobile phone.
By suspension windows, quick contact person interface can be provided the user, user just can recall conventional by one hand
Associated person information;Conventional list of application can also be provided so that user can quickly jump to the application of needs;May be used also
To provide many system setting functions, such as pocket lamp, Bluetooth switch, wifi, mobile network adjusts volume, adjusts screen
Brightness etc..
Because part Android intelligent terminal type is integrated with rights management software, acquiescence is not given using using suspension
Window authority so that after installing suspended window application, clicking on cannot eject suspended window when running, or even the situation of program crashing occurs,
So as to cannot normally use suspended window application.
At present known on the market, acquiescence does not include China to the download intelligent terminal system of suspended window authority of third party
For the EMUI systems software system of exploitation (manufacturer of Huawei) mobile phone, Semen setariae MIUI systems (operating system of Semen setariae manufacturer exploitation)
Mobile phone, Meizu series mobile phone etc., if installing the application with suspended window on these intelligent terminal, will report when application starts
Wrong or collapse, so as to lead to not the normal function using application.For vast intelligent terminal user, due to not possessing correlation
Professional knowledge, often exists and wishes unlatching but do not know the puzzlement how to open.Therefore urgently a kind of intelligent terminal's suspended window is weighed
Limit method to set up so that user can open the authority of suspended window, and unlatching suspended window authority can't cause mobile phone safe side
The problem in face, is also not result in that mobile phone is slack-off or interim card.
The content of the invention
To overcome above-mentioned the deficiencies in the prior art, the invention provides a kind of intelligent terminal's suspended window authority setting method,
It is characterized in that:The information that intelligent terminal system is carried is obtained, judges whether it is specific type;If it is, judging it
Whether have using the authority of suspended window, if not using the authority of suspended window, power is automatic jumped to when program is run
Limit opens interface, then opens in authority and eject on interface a translucent full frame lead-frame, and guiding user opens this application
Suspended window access right.
A preferred implementation of the invention, divides classification by specific model system version in advance, when using outstanding
When the authority of floating window does not have access right, then the classification of type that can be according to before and version jumps to corresponding authority and opens
Interface.
A preferred implementation of the invention, the ejection one on authority unlatching interface is translucent full frame
Lead-frame, guides the suspended window access right that user opens this application to further include:According to different in translucent window
The concrete condition of type gives different informations.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, below with presently preferred embodiments of the present invention and coordinate accompanying drawing describe in detail as after.
Description of the drawings
Fig. 1 shows the method flow redirected according to the guiding application program of the specific embodiment invented
Figure;
Fig. 2 shows the suspended window button schematic diagram according to a specific embodiment of the invention;
Fig. 3 to show and open interface schematic diagram according to the authority of one specific embodiment of the present invention;
Fig. 4 shows the suspended window priority assignation schematic diagram according to a specific embodiment of the invention;
Fig. 5 shows the method flow that suspended window authority is opened according to the guiding user of one specific embodiment of the present invention
Figure;
Fig. 6 shows the specific model and the overhaul flow chart of version according to a specific embodiment of the invention;
Fig. 7 shows the overhaul flow chart whether opened according to the suspended window of a specific embodiment of the invention.
Specific embodiment
Further to illustrate the present invention to reach technological means and effect that predetermined goal of the invention is taken, below in conjunction with
Accompanying drawing and preferred embodiment, to according to its specific embodiment party of a kind of intelligent terminal's suspended window authority setting method proposed by the present invention
Formula, feature and its effect, describe in detail as after.In the following description, what different " embodiment " or " embodiment " referred to differs
Surely it is same embodiment.Additionally, the special characteristic, structure or feature in one or more embodiments can be by any suitable form group
Close.
Abbreviation and Key Term are defined
Suspended window:After triggering is opened, the virtual window occurred in the middle of screen, it can be very big, full of whole screen
Curtain;Can also very little, be shown as the button of a circle or arbitrary shape, it can arbitrarily drag or occur on screen
Optional position, and can be suspended on most application interface.
Android:Chinese is ARIXTRA, is the operating system of a kind of freedom based on Linux and open source code, main
It is used for mobile device, such as smart mobile phone and panel computer, by Google companies and open mobile phone alliance leader and exploitation.
Handler:Handler is a message distribution object in Android.And message distribution, depend on message and follow
Ring, that is, Looper.In a thread, Looper obstruction threads, the composition that waits for the arrival of news circulation has message, is assigned to
Corresponding Handler, allows its further distribution processor.
Intent:The meaning of " purpose, plan ".Provide Intent mechanism in Android to assist the interaction between applying
With communication, Intent is responsible for that the action of once-through operation in application, action are related to data, additional data and are described, Android
Then according to the description of this Intent, it is responsible for finding corresponding component, Intent is passed to the component for calling, and completes component
Call.Intent cannot be only used between application program, it can also be used between the Activity/Service inside application program
Interaction.Therefore, Intent plays a part of here a media mediation, special to provide the related letter that component is called mutually
Breath, realizes the decoupling between caller and callee.
Context:Can be understood as " context ":It is through whole application.It also will be understood that into " running environment ".It is carried
The information supplied required for an application operation, resource, system service etc..Again it will be understood that into " scene ", user operation and
System interaction this process is exactly a scene, such as the switching between Activity, and startup of service etc. all be can't do without
Context。
Activity:It is one of big components of Android tetra-, is exactly figuratively a container, can inside places each
Control (button, text, check box etc.) is planted, the interface of software is formed, Activity is visible, if being not added with any control
If part, then the blank forms in just as Windows.
As shown in Figure 1, there is provided a kind of at current application program interface, reception is jumped to separately from current application program interface
The jump request at the specified interface of one application program, and according to the jump request, by the current application program changing interface
To the specified interface of the Another Application program;Whether the specified interface for determining the Another Application program show on foreground,
If it is determined that the specified interface of the Another Application program notifies operating system self-defining in advance after foreground shows, then
Toast is covered on the specified interface of the Another Application program;The finger of the Another Application program is covered in the Toast
After on demarcation face, guiding animation is played in the Toast to guide user operation.According to this specific embodiment, keep away
User is exempted from when current interface wants to operate another interface, current interface has been closed, from desktop or other menu positions
Another application program for needing operation is selected, such a complicated, the time-consuming operation in interface for needing to arrange then is found
Journey.But because the duration that the Toast in android system is played is limited, often within several seconds, therefore cannot be in this time
There is provided in section and provide the user enough information.In addition, guiding by the way of animation, more system money will be expended
Source, increases the risk of program error.
Prior art mainly has four shortcomings, one be the Another Application program to be started be often that some are more specific
Permission configuration interface, only opening program after this authority switch could continue down to run, and such rights management journey
Sequence also can be constantly updated, and possess different versions, and for different versions, the interface path for jumping to is likely to be different,
Be not given for how different system versions is processed;And the form of expression is also possible to not on different intelligent terminal
Together, call method also has difference, when these different conditions occur, how to be processed and is not pointed out;Two is to jump to separately
The premise of one application does not indicate that program is under what circumstances, what to need what is redirected all do not indicate under the conditions of.Than
Such as, when being that program is run on all devices, or when on specific equipment.If using having had been provided with required bar
Part, if also need to redirect;Three is the mode of Toast used in guiding, and the exhibition information time can be caused inadequate, because
The Toast actual times shown only at most less than 4 seconds;Four is to guide user to compare consuming system money using the mode of animation
Source, and program complexity can be increased, increase the risk of program error.
The purpose of the present invention be exactly be solve these problems, using new departure after, can be carried according to terminal first
System information determines " specific model " or " special type " that " specific model " or " special type " refers to specific brand
And machine models, the machine models acquiescence of these brands do not download suspended window authority to third party.Specific model can be prior
Arrange, it is possible to be periodically or non-periodically updated;Different authorities are determined according to the different software version of same model
Management software version, according to different rights management software versions, and then the path that the switch interface that defines the competence is located, thus
Can be using different jump strategies;Secondly, can get whether application program has the authority for using suspended window on this type,
If without authority, needs guide unlatching, if it has, the normal function of application without rebooting, can directly be performed;Most
Afterwards, we are determining using running in specific model, and inquire about using suspended window authority is not got, and will jump to power
Limit opens interface, and ejects a full frame translucent Activity window thereon, and the text of guided bone is shown in the middle of this window
Word, indicates the step of how next step is operated, and guiding user carries out switch open.User needs the step of participating in simply to close
Current lead-frame is closed, then into authority interface is opened, corresponding application switch is opened, very convenient and province
Power.
The invention provides a kind of intelligent terminal's suspended window authority setting method, a kind of on android intelligent terminal, profit
The information carried with terminal system, judges whether it is specific type, if it is, then judging whether it has using suspension
The authority of window, if it is not, authority is automatic jumped to when program is run opens interface, then thereon ejection one is semi-transparent
Bright full frame lead-frame, guides user to open the suspended window access right of this application.
Fig. 2 schematically illustrates the suspended window button in black surround, and it can just regard a little suspension windows as, pass through
This " little suspended window " is clicked on, a bigger suspended window can be opened, can be realized by this suspended window a series of virtual
Button, so as to save the use of system button, the service life of extending cell phone.But this suspended window is shown, then need
Using just can be with suspended window access right, and the terminal preset of specific model rights management software, for suspended window power
Limit acquiescence is all to close, if when using applying, this authority is not opened in advance, then can not use suspension window function,
Program various abnormal situations such as reactionless after collapse just occurring or clicking on.And normally using for application, we
Need to be adapted to these types, need which type counted in advance, and those system versions of these types are all
Rights management software is prefixed, whether the version of each rights management software identical etc..Such as Semen setariae mobile phone, generally all can collect
Into the MIUI systems of oneself research and development, this system can constantly be updated, and such as this version of MIUI6, it needs to jump to
Authority opens interface path and the title at interface is just different from other versions, and its corresponding authority opens interface is for bag name
Com.miui.securitycenter (" security centre " application package name of Semen setariae), class is entitled
One interface of com.miui.permcenter.permissions.AppPermissionsEditorActi vity, and be less than
Whether the version of MIUI6, can further discriminate between the system version rank of Android more than or equal to 9 again, that is, be
The system of Android 2.3 and the above, for such system, it is necessary to jump to bag entitled
The system details of android.settings.APPLICATION_DETAILS_SETTINGS arrange interface;And for less than 2.3
System, then need to jump to, wrap entitled com.android.settings, class is entitled
The application details interface of com.android.settings.InstalledAppDetails, so different types, and not
It is diverse that authority corresponding to same system opens interface, needs according to circumstances to be divided and sorted out.Then basis
The characteristics such as type, version pull out general character, further according to the unlatching that general character goes to guide user to carry out authority.
A specific embodiment of the invention, divides classification, on these types by specific model system version
When startup is applied, will detect whether current application is provided with using the authority of suspended window first, if without access right, can
According to the classification of type before and version, jump to corresponding authority and open interface, then eject one again on this interface
Individual full frame translucent window, gives the step of further operating in window, Step Information can be according to different types
Concrete condition gives different informations.Preferred implementation of the invention, can arrange shorthand way and be pointed out
Or detail is pointed out.
Fig. 3 schematically illustrates a kind of authority and opens interface, there is a translucent full frame guiding interface thereon.Carry
How awake user carries out next step operation, and the prompt text of guiding is -- please find and activate " display suspended window " option.When me
Click on " I is aware of " in figure, or click on after the return key of system, will show that authority below opens interface, then
" display suspended window " is found in this interface, as shown in figure 4, selecting " display suspended window " menu, " permission " is then clicked on, so
Using being just provided with using suspended window authority.
A specific embodiment of the invention, program starts, and detection is not used if specific model
The authority of suspended window, automatic jumps to type corresponding authority and opens interface, then ejects a full frame translucent lead-frame, draws
Lead the suspended window access right that user opens this application;When program starts, usually enter in the first startup interface of program
Row is processed, and we can be in the onCreate method (Activity at this interface (being the window interface of the type of an Activity)
First method run during display) in operated.Detect whether current type belongs to specific model and version first, be
The no authority with using suspended window, if belonging to specific model and version, and does not have suspended window authority, then use
StartActivity method calls go out the authority unlatching interface of this specific model of correspondence.Such as, with Semen setariae mobile phone, MIUI7 systems
As a example by carry out illustratively method.Semen setariae mobile phone, the type of MIUI7 systems, its suspended window priority assignation is to be " safety by one
The application of " center " is managed.If recalling this using corresponding rights management interface, needs know the bag of " security centre "
Name, and the class name at rights management interface, the action values for also starting this application interface (start the one of Android components
Plant working value), finally the bag name information of this application being passed to into system as adnexa value can just pass through startActivity methods
Interface is called out.
Concrete grammar is to create an Intent first, and uses miui.intent.action.APP_PERM_
EDITOR (string value of a startup interface) is carried out as action values (starting a kind of working value of Android components)
Create.Then using Intent setClassName methods by bag name com.miui.securitycenter (security centre should
Bag name), class name com.miui.permcenter.permissions.AppPermissionsEditorActi vity (peaces
The class name at an interface in full center, this interface is used for managing suspended window authority) arrange to the new Intent for creating, then
Using the putExtra methods of Intent by " extra_pkgname " as first parameter, current application bag name (can pass through
GetPackageName () method is obtained) Intent is passed to as second parameter, finally using startActivity side
Method starts this Intent, it is possible to call out at this rights management interface of security centre.After interface is recalled, by opening
The newly-built Handler objects in arena face postpone the message for sending a N millisecond, such as this message is called TYPE_
FLOATWINDOW_MIUI_V6 (an integer constant), after N milliseconds, if receiving this message, reuses
StartActivity methods create a full frame translucent Activity interface, the rights management before covering and being displayed in
Open on interface.The word of some guided bones, such as Semen setariae MIUI7 handss are set in its obvious position when guiding interface is created
Machine will show --- please find and activate " display suspended window " option, this guidance information.User is clicking " I is aware of "
Or pressed after the return key of system, enter into authority and open interface, " display suspended window " menu is found, then click on " permission "
Afterwards, application will have using the authority of suspended window.Then application will be performed down automatically, enter into normal function operation circle
Face, and suspended window or button are shown (if using need to show immediately).
The version letter of a specific embodiment of the invention, the brand name provided according to system and its own system
Breath, sorts out type, judges which kind of specific model current type belongs to.First by Build.BRAND, (system is predefined
Character string type constant, for representing the brand of system) constant to be judging it is to be processed whether current type belongs to us
Specific model, such as whether be Semen setariae, Huawei, the brand mobile phone such as Meizu.The type of these brands is mostly prefixed management suspended window
Software, and acquiescence be close authority.Such as this constant of the Build.BRAND of Semen setariae, we are by judging whether it wraps
Information containing " Xiaomi " printed words, it is possible to determine whether it is Semen setariae mobile phone.Then java runtime environments are utilized, is called
Runtime.getRuntime () .exec () method starts an adb shell and instructs getprop, and passes to its MIUI
The attribute ro.miui.ui.version.name of system, by the output stream return value for reading this shell instruction, it is possible to
Obtain the corresponding version numbers of MIUI.If the corresponding version numbers of MIUI 7 are " V7 ".So there is model information, and be aware of
Correspondence system version, it is possible to for different types, different versions carry out respective handling.
A specific embodiment of the invention, according to different android system versions, using different modes
To carry out judging application either with or without the authority using suspended window.
Judge whether the version number of current system is more than according to system integer constant Build.VERSION.SDK_INT first
Equal to 19, i.e., it is whether the version (19 represent Android4.4.2 systems) of Android4.4.2 and the above, has here at two
Reason branch:
First, if the system of below Android4.4.2;First, package manager is obtained by current Context
PackageManager, then calls its getApplicationInfo method, obtains the information of current application, then judges it
Whether the result that flags attributes carry out logical AND with 0x8000 is equal to 0x8000, i.e. the 17th of flags marks is 1,
If 1, illustrate that it has using the authority of suspended window, otherwise just do not have;
Second, if the system of Android4.4.2 and the above;First by the getSystemService of Context
Method, transmission appops parameters obtain AppOpsManager application program service condition manager objects, then anti-by java
Method checkOp of range sequence service condition manager object, judges whether its return value is that (system is pre- for MODE_ALLOWED
The integer constant put, is worth 0), if equal, to illustrate that application is provided with using the authority of suspended window, otherwise without this authority.
For achieving the above object, the invention provides it is detailed according to specific model and version ejecting different classes of power
Limit administration interface, and full frame translucent lead-frame, guide user to open the boot flow of suspended window authority, such as example Fig. 5,
The step of it is realized is as follows:
S501:Application program launching:Start application program, application is the application program with suspension window function.
S502:Into the startup interface of program:Application with suspension window function generally requires program once starting display
Suspended window, so needing the judgement that authority will be carried out when first interface of application is started.If started certainly after application
Suspended window need not immediately be started, it is also possible to will determine that authority and boot flow to be put into when needs and recall.
S503:Creating a Handler object is used to process message:Boot flow needs to carry out Message Processing, so in advance
A Handler object is first defined, using new Handler () modes a Handler object is created.
S504:The start to process boot flow in the onCreate () method of startup interface:Startup interface is one
The window interface of Activity types, onCreate () method is first method to be called when interface generates, so needing
Boot flow is put in the method perform it is most suitable.
S505:Into specific model and version detection flow process:Enter in specific model and version detection flow process and judge to work as
Whether front type meets the condition of needs particular procedure.
S506:Judge whether current type and version need particular procedure:By specific model and version detection flow process
Return value, it is determined that whether current type and version need to proceed guiding, or directly skips boot flow.If it is determined that knot
Fruit is no, then perform S5507;If it is judged that being yes, then S5508 is performed;
S507:It is not belonging to specific model and version:If through detecting that current type is not belonging to specific model and version, that
Just skip boot flow, the normal Booting sequence of program performing.Continue executing with S507;
S508:Into suspended window whether open detection flow process:Suspended window whether open detection flow process is entered into, detection is current
Suspended window authority whether open.
S509:Judge whether suspended window authority opens:According to the return value of authority testing process, current suspended window power is judged
Whether limit opens, if had been switched on, boot flow is skipped, if do not opened, into boot flow.If it is determined that
It is then to perform S5010;If the judgment is No, then S5011 is performed;
S5010:Suspended window authority has been switched on:If authority testing process returns true, suspended window authority has been illustrated
Open, that just skips boot flow, the normal Booting sequence of program performing.Continue executing with S5021;
S5011:Classified according to specific model and version, using different start-up parameters boot flow is started:It is outstanding
Floating window authority is not opened, and belongs to the type and version for needing particular procedure, and that is just classified according to type and version, no
Generic situation uses different guiding handling processes.
S5012:Suitable Intent is constructed by different classification informations, using the startActivity methods of Context
First start rights management window:Different classification informations refers to need the class name and bag name at the rights management interface for jumping to
Difference, and the authority unlatching interface having will also transmit current bag name information, or with other different parameters, redirect in a word
Interface it is different need the Intent of construction just different, finally start authority pipe using the startActivity methods of Context
Reason window.Such as with Semen setariae mobile phone, illustratively method is carried out as a example by MIUI7 systems.Semen setariae mobile phone, the type of MIUI7 systems, it
Suspended window priority assignation is to make the application of " security centre " be managed by one.If recalling this using corresponding authority pipe
Reason interface, needs know the bag name of " security centre ", and the class name at rights management interface, also start this application interface
Action values a kind of working value of Android components (start), the bag name information of this application finally passed to be as adnexa value
System just can be called out at interface by startActivity methods.Concrete grammar is to create an Intent first, and
And using miui.intent.action.APP_PERM_EDITOR (string value of a startup interface) as action values
A kind of working value of Android components (start) is being created.Then will be wrapped using the setClassName methods of Intent
Name com.miui.securitycenter (the bag name of security centre's application), class name
Com.miui.permcenter.permissions.AppPermissionsEditorActi vity (in security centre
The class name at interface, this interface is used for managing suspended window authority) arrange to the new Intent for creating, then using Intent's
By " extra_pkgname " as first parameter, current application bag name (can pass through putExtra methods
GetPackageName () method is obtained) Intent is passed to as second parameter, finally using startActivity side
Method starts this Intent, it is possible to call out at this rights management interface of security centre.
S5013:Judge that start-up course has generation without exception:Start power in the startActivity methods using Context
Need to call the try--catch mechanism of java to be monitored to implementation status during limit management window, if exception throws, just
The process for carrying out abnormal conditions, otherwise program is needed to be possible to collapse case occur.If it is determined that there is abnormal generation, then perform
S5014;If without abnormal generation, performing S5015;
S5014:One safer Intent of construction, it is ensured that startActivity methods can redirect over after performing:
If throw exception, illustrate to need to jump to that Activity windows are not present or authority is problematic, or parametric configuration is not
Right, such case is very possible generation, now needs the exception to capturing to process.It is popular by construction one
, it is ensured that past Intent objects can be redirected, then starts this window using startActivity methods.Such as, it is general
Logical setting interface, most type has this interface substantially.Continue executing with S5015;
S5015:Call the Handler objects for creating, and postpone N milliseconds and send disappearing for this type and version
Breath:The Handler objects for creating before are called, one is sent using its sendEmptyMessageDelayed method and is directed to this
The message of type and version, this message is for the good adapted message of this type and version definition, just for this type and version
Deal with.The purpose for postponing the transmission of N milliseconds is to ensure that the stream for calling startActivity methods startup rights management interface before
Journey is able to carry out finishing, and rights management interface is called out.
S5016:Handler is received after message, creates a full frame translucent Activity window as guiding window,
And post messages to this window:Handler not only transmits the message to message queue, completion message distribution, while it can be by
Message is taken out from message queue, is processed.Handler is taken out after message from message queue, according to type of message, creates one
Individual full frame translucent Activity windows, and be displayed on rights management window, as shown in figure 3, while by message in the lump
This window is passed to, this window is used as guiding window.
S5017:Then call finish () method to be currently up window to terminate, the result for waiting authority to open:Start
After guiding window, call the finish () method of itself to be currently up window and terminate, the result for waiting authority to open.
S5018:The parameter that guiding window comes according to transmission, it is determined that the guiding content of display, and in this interface display one
ACK button:When guiding window shows, guiding content can be shown according to the message that transmission comes, different message correspondence differences
Display content, content is mainly the detailed step of next step operation, and next step is simple to operate, and step is just simplified very much;If under
The complexity of single stepping, then step will relatively in detail.This guiding interface can also show an ACK button, and user clicks on
After can close this guiding interface.
S5019:User clicks ACK button or system return key, and escape leading interface enters into authority below
Interface is opened, user is operated, and exits this interface:If user checked guiding interface, he can be true by clicking on
Recognize the return key of button or system to close current guiding interface, then into authority below interface is opened.Finally
User carries out next step operation, opens menu, starts suspended window button authority or exits.
S5020:Judge whether user opens suspended window authority:Whether interpretation user opens suspended window authority, if
Open and then enter normal Booting sequence;If be not turned on, after user's restarting application, needs restart to detect and draw
Leading user carries out unlatching authority.If it is judged that being no, then S501 is returned;If it is judged that being yes, then S5022 is performed;
S5021:The normal Booting sequence of program performing:Using really opening after suspended window authority, could perform and normally open
Dynamic flow process.
S5022:Using entering holding state:If using getting authority, and performing normal Booting sequence, will
Into holding state, now user can use suspension window function.
Specific model and version are more than belonging to, and guide user to open the process of authority when not obtaining suspended window authority
Flow process, Fig. 6 shows the testing process of specific model and version, and detailed step is as follows,
S601:Into specific model and version detection flow process:Into specific model and version detection flow process, need to type
Judged with the information such as the version belonging to type.Such situation illustrates that the machine of this type is mounted with suspended window authority pipe
The software of reason, and acquiescence is to close authority, needs to carry out particular procedure to it.
S602:Obtain the brand message of type:The character string constant Build.BRAND for being carried by system first is carrying out
Judge, this constant represents the brand message of type.This value such as Semen setariae mobile phone includes the character string of " Xiaomi " printed words,
If there is this character string, current type is just represented as Semen setariae mobile phone.
S603:Judge whether this brand is the type for needing particular procedure:By the character string constant for obtaining
Build.BRAND is judging to currently belong to which kind of specific type, in this way Semen setariae, or Huawei, or Meizu, or Samsung
Deng.If the judgment is No, then S606 is performed;If the judgment is No, then S604 is performed;
S604:Whether the version information for judging current type is the version for needing particular procedure:By performing one
The shell instructions of getprop orders, and pass to a property value title of its current system, such as the property value name of Semen setariae
Referred to as ro.miui.ui.version.name, will obtain the version number of correspondence system, and according to this version number this can be just distinguished
The different editions of type, e.g., the corresponding value of MIUI6 series of Semen setariae is V6, and the corresponding value of MIUI7 series can for V7, V6 and V7
To be processed as a type.If the judgment is No, then S606 is performed;If the judgment is Yes, then S605 is performed;
S605:Terminate to judge, it is determined that being currently specific model and version, need particular procedure, return true:If current
Type belongs to certain in specific model, and specific model needs version to be processed, return true.Continue executing with 607;
S606:Particular procedure is currently not required to, detection is jumped out, false is returned:Through detection be currently not belonging to specific model and
Version, is not required to particular procedure, jumps out detection, returns false.Continue executing with S607;
S607:Terminate specific model and version detection flow process:Terminate specific model and version detection flow process, return value is passed
Pass boot flow.
Fig. 7 shows the testing process whether opened according to the suspended window of the specific embodiment of the invention, and concrete steps are such as
Under,
S701:Into suspended window whether open detection flow process:Into suspended window whether open detection flow process, need to current
Application detected, judge whether it has got the suspended window right to use.
S702:Obtain version number's integer value Build.VERSION.SDK_INT of current system:The version of system is obtained first
This number integer value -- Build.VERSION.SDK_INT, this is the constant value of an integer, represents the version number of system.
S703:Judge Build.VERSION.SDK_INT whether more than or equal to 19:Judge Build.VERSION.SDK_
The system version whether INT represents current more than or equal to 19,19 is Android4.4.2, that is, judge that whether current system version is
The system of more than Android4.4.2.If it is judged that being yes, then S709 is performed;If NO, then S704 is performed;
S704:The package manager of system is obtained according to the getPackageManager () method of current Context
PackageManager objects:If Build.VERSION.SDK_INT is less than 19, illustrate to be currently below Android4.4.2
System.So the package manager of system is got according to the getPackageManager () method of current Context
PackageManager objects.
S705:By the bag name of current application program, the getApplicationInfo of PackageManager objects is called
() method, obtains the detail information ApplicationInfo of current application program:After obtaining PackageManager objects, adjust
With its getApplicationInfo () method, and current bag name is worked as first parameter of method after execution
The detail information ApplicationInfo of front application program.
S706:Attribute flags and 0x8000 in ApplicationInfo carries out logical AND operation:Return
The variable of ApplicationInfo types is a class object, includes the details of current application, such as bag name, and class name is main
The information such as topic, the lebel of display, are the integer values of 32 wherein there is a flags attribute.It each is all represented
Current Activity windows have different characteristics, wherein the 27th, indicate suspended window authority if 1;For 0, then it represents that
Without authority, thus need (1 is moved to the left the value after 27, i.e., 1 with 0x8000<<27) logical AND operation is carried out, is checked and is returned
Whether value is 0x8000.
S707:Judge whether above procedure has abnormal generation:Above step S704-S706 process is likely to exception occur
Situation, needs to be packed using try--catch, if once throw exception, directly returns false, and exit.If
It is abnormal to occur, then S7013 is performed, if without abnormal generation, performing S708;
S708:Whether judged result is equal to 0x8000:If above procedure does not have abnormal conditions to occur, attribute is judged
Flags and 0x8000 carries out the result of logical AND, if equal to 0x8000, illustrates that the 27th is 1, and expression has permission, otherwise for
Lack of competence.If it is judged that being no, then S7013 is performed;If it is judged that being yes, then S7014 is performed;
S709:System is obtained according to the getSystemService () method and parameter " appops " of current Context
Application program service condition manager AppOpsManager objects:If greater than equal to 19, illustrating to be currently
The system of Android4.4.2 and the above.Need to be sentenced using the determination methods different from below Android4.4.2 systems
It is disconnected." appops " character string is passed to first the getSystemService () method of Context, systematic difference is obtained
Program service condition manager AppOpsManager objects.Continue executing with S7010;
S7010:The checkOp methods in AppOpsManager objects are obtained using reflection technology, and it is current to pass to it
Using uid and bag name, call execution the method:Then obtained in AppOpsManager objects using reflection technology
CheckOp methods, and the uid (ID of current application) and bag name of its current application are passed to, uid can pass through Binder
Static class method the getCallingUid () side of (a kind of particular type of Android, for realizing the communication of distinct program)
Method is obtained, and bag name can be obtained by the getPackageName () method of Context.After performing checkOp methods, will
To an integer return value, return value indicates whether to have permission.Continue executing with S7011;
S7011:Judge whether above procedure has abnormal generation:Above step S7010 process is likely to abnormal feelings occur
Condition, needs to be packed using try--catch, if once throw exception, directly returns false, and exit.If it is determined that
There is abnormal generation, then perform S7013;If it is determined that generation without exception, then perform S7012;
S7012:Judge whether the result for performing is equal to MODE_ALLOWED (0):Judge the implementing result of checkOp methods
Whether MODE_ALLOWED is equal to, this value is the predefined integer constant of system, represents that integer value is 0.If equal to
This value represents that current application is provided with suspended window authority, does not otherwise have.If it is judged that being yes, then S7014 is performed;
S7013:False is returned, current application lack of competence is represented:If there is no the suspended window right to use through detection application
Limit, then return false.Continue executing with S7015;
S7014:True is returned, represents that current application has permission:If there is suspended window access right through detection application,
Then return true.Continue executing with S7015
S7015:Exit suspended window whether open detection flow process:Suspended window whether open detection flow process is exited, and will detection
Return value pass to boot flow.
By figure 5 above, the specific embodiment shown in 6,7 is realized in specific model, is started and is had suspended window work(
Whether it is specific model and version, and whether there is the testing results such as suspended window access right by interpretation during the application of energy,
The method that automatically guiding user carries out suspended window authority unlatching, so as to apply the energy in specific model with suspension window function
Enough trouble-free operations provide a set of solution.
For for there is the application of suspension window function, if the intelligent terminal's default installation being located limit application use it is outstanding
During the software of floating window authority, application cannot be used normally, otherwise be reported an error, otherwise be exactly to collapse or without response.Only exist
Impart using after suspended window access right, it could normally run.
First, determine which type is prefixed suspended window rights management software, and give tacit consent to and do not give application permission
Preset software, it is ensured that apply and collapse is occurred without on these types or without response;Secondly, automatically guiding user opens suspended window power
Limit, by programme-control, user only needs to click on acknowledgement key and switch whole process, is not required to the excessive selection page of user then
Redirect, improve the convenience of user operation;Again, lead-frame has the detailed step how to open, user-friendly, increases
The transparency that authority is opened, it is user-friendly;Then, opening suspended window authority will not bring the problem of secure context,
The resources such as the internal memory and electricity of system will not be consumed;Finally, this function is solved to apply and cannot run in these specific models
Problem, user limits the authority of suspended window without oneself searching that software, carries out so as to avoid oneself going to waste time and energy
Reset, solve the practical problem of user, improve the user experience that user applies to this.
A specific embodiment of the invention, detection intelligent terminal brand also has other implementation methods, except
Distinguish outer using Build.BRAND (constant of the predefined character string type of system, for representing the brand of system), may be used also
With using Build.MODEL (the predefined character string type constant of system, for representing certain product of system brand, generally
Brand name can be carried) carrying out finer differentiation, naturally it is also possible to the brand message of terminal is confirmed by it.
A specific embodiment of the invention, full frame translucent guiding page window uses Activity component realities
Existing, it is also possible to realized using the mode of Dialog dialog boxes, or realized by the way of self-defined View.
By the application present invention on android intelligent terminal, the type of suspended window access right is limited for some,
When program is run, automatic jump to authority and open interface, then eject a full frame translucent lead-frame, guiding user opens
Open the suspended window access right of this application;Distinguishing the different editions of specific model needs the authority for jumping to unlatching interface to be possible to
Difference, the different editions for distinguishing specific model are processed accordingly respectively;And realize on android intelligent terminal, sentence
Whether disconnected application is provided with using the authority of suspended window.
The above, is only presently preferred embodiments of the present invention, and any pro forma restriction is not made to the present invention, though
So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention, any to be familiar with this professional technology people
Member, in the range of without departing from technical solution of the present invention, when making a little change or modification using the technology contents of the disclosure above
For the Equivalent embodiments of equivalent variations, as long as being the content without departing from technical solution of the present invention, the technical spirit of the foundation present invention
Any simple modification, equivalent variations and the modification made to above example, still falls within the range of technical solution of the present invention.
Claims (10)
1. a kind of intelligent terminal's suspended window authority setting method, it is characterised in that:
The information that intelligent terminal system is carried is obtained, judges whether it is specific type;
If it is, judge whether it has the authority for using suspended window, if not using the authority of suspended window, in program
Authority is automatic jumped to during operation and opens interface, then opened in authority and eject on interface a translucent full frame lead-frame,
Guiding user opens the suspended window access right of this application.
2. intelligent terminal's suspended window authority setting method according to claim 1, it is characterised in that:
In advance specific model system version is divided into classification, when there is no access right using the authority of suspended window, then can basis
The classification of type and version before, jumps to corresponding authority and opens interface.
3. intelligent terminal's suspended window authority setting method according to claim 1 and 2, it is characterised in that:
Described unlatching in authority eject on interface a translucent full frame lead-frame, guides user to open the suspended window of this application
Access right is further included:
Different informations are given in translucent window according to the concrete condition of different types.
4. according to the arbitrary described intelligent terminal's suspended window authority setting method of claim 2-3, it is characterised in that:
The classification of type and version before the basis, jumps to corresponding authority unlatching interface and specifically includes:
Establishment Intent is carried out as action values using miui.intent.action.APP_PERM_EDITOR, it is described
Action values are a kind of working value for starting Android components;
Security centre's application of entitled com.miui.securitycenter will be wrapped using the setClassName methods of Intent
Bag name, the peace of the entitled com.miui.permcenter.permissions.AppPermissionsEditorActi vity of class
The class name at one interface at full center is arranged to the new Intent for creating, for managing suspended window authority, then using Intent
PutExtra methods by " extra_pkgname " as first parameter, current application bag name is transmitted as second parameter
To Intent;
Start this Intent using startActivity methods, this rights management interface of security centre is called out;
After interface is recalled, postpone to send the message of a N millisecond, wherein N by the newly-built Handler objects of startup interface
For positive integer;
After N milliseconds, if receiving this message, startActivity methods establishment one is reused full frame translucent
Activity interfaces, the rights management before covering and being displayed in is opened on interface;When guiding interface is created, guiding is set
The word of property;After confirmation, enter into authority and open interface, complete authority and open setting.
5. according to the arbitrary described intelligent terminal's suspended window authority setting method of claim 2-4, it is characterised in that:
The brand name provided according to system and the version information of its own system, sort out type, judge current type category
It is specific as follows in which kind of specific model:
Using the predefined constant for representing the brand character string type of system of system, Build.BRAND constants are judging
Whether current type belongs to our specific models to be processed;
Using java runtime environments, Runtime.getRuntime () .exec () method is called to start an adb shell
Instruction getprop, and the attribute ro.miui.ui.version.name of its MIUI system is passed to, by reading this
The output stream return value of shell instructions, obtains corresponding version number.
6. according to the arbitrary described intelligent terminal's suspended window authority setting method of claim 2-5, it is characterised in that:
According to different android system versions, carry out judging application either with or without using suspended window using different modes
Authority is further included:
Whether the version number of current system is judged more than or equal to 19 according to system integer constant Build.VERSION.SDK_INT,
It is whether the version of Android4.4.2 and the above:
If the system of below Android4.4.2;First, package manager is obtained by current Context
PackageManager, then calls its getApplicationInfo method, obtains the information of current application, then judges it
Whether the result that flags attributes carry out logical AND with 0x8000 is equal to 0x8000, i.e. the 17th of flags marks is 1,
If 1, illustrate that it has using the authority of suspended window, otherwise just do not have;
If the system of Android4.4.2 and the above;First by the getSystemService methods of Context, transmission
Appops parameters obtain AppOpsManager application program service condition manager objects, are then made by java reflectors
With method checkOp of situation manager object, judge that whether its return value is the integer constant MODE_ of system intialization
ALLOWED, if equal, illustrates that application is provided with using the authority of suspended window, otherwise without this authority.
7. according to the arbitrary described intelligent terminal's suspended window authority setting method of claim 2-6, it is characterised in that:The basis
The classification of type and version before, jumps to corresponding authority unlatching interface and further includes:
S501:Start the application program with suspension window function;
S502:Into the startup interface of program;
S503:Creating a Handler object is used to process message, wherein creating one using new Handler () modes
Handler objects;
S504:The start to process boot flow in the onCreate () method of startup interface;
S505:Enter in specific model and version detection flow process and judge whether current type meets the bar of needs particular procedure
Part;
S506:Judge whether current type and version need particular procedure:By the return of specific model and version detection flow process
Value, it is determined that whether current type and version need to proceed guiding;If it is judged that being no, then S5507 is performed;If sentenced
Disconnected result is yes, then perform S5508;
S507:If through detecting that current type is not belonging to specific model and version, that just skips boot flow, and program performing is just
Normal Booting sequence;Continue executing with S507;
S508:Suspended window whether open detection flow process is entered into, detects whether current suspended window authority opens;
S509:According to the return value of authority testing process, judge whether current suspended window authority opens, if had been switched on;
If the judgment is Yes, then S5010 is performed;If the judgment is No, then S5011 is performed;
S5010:Suspended window authority has been switched on:If authority testing process returns true, illustrate that suspended window authority has been switched on,
That just skips boot flow, continues executing with S5021;
S5011:Classified according to specific model and version, using different start-up parameters boot flow is started;
S5012:Suitable Intent is constructed by different classification informations, is first opened using the startActivity methods of Context
Dynamic rights management window;Different classification informations refers to need the class name and bag name at the rights management interface for jumping to not
Together, and the authority that has is opened interface and also to transmit current bag name information, or with other different parameters, use
The startActivity methods of Context start rights management window;
S5013:Judge that start-up course has generation without exception:Start authority pipe in the startActivity methods using Context
Need to call the try--catch mechanism of java to be monitored to implementation status during reason window;If it is determined that have abnormal generation,
Then perform S5014;If without abnormal generation, performing S5015;
S5014:Construction Intent so that startActivity methods can redirect over after performing;Continue executing with S5015;
S5015:The Handler objects for creating are called, and postpones N milliseconds and send one for this type and the message of version:
The Handler objects for creating before are called, one is sent using its sendEmptyMessageDelayed method and is directed to this type
And the message of version, this message is for the good adapted message of this type and version definition, at this type and version work
Reason;Wherein N is positive integer.
S5016:Handler is received after message, creates a full frame translucent Activity window as guiding window, and will
Message transmission gives this window;
S5017:Then call finish () method to be currently up window to terminate, the result for waiting authority to open;
S5018:The parameter that guiding window comes according to transmission, it is determined that the guiding content for showing, and confirm in this interface display one
Button;This guiding interface can be closed after click.
S5019:ACK button or system return key, escape leading interface are clicked on, authority is entered into and is opened interface;
S5020:Judge whether to open suspended window authority:If it is judged that being no, then S501 is returned;If it is judged that being
It is then to perform S5022;
S5021:The normal Booting sequence of program performing;
S5022:Using holding state is entered, suspension window function can be used.
8. according to the arbitrary described intelligent terminal's suspended window authority setting method of claim 2-7, it is characterised in that:Specific model
And the testing process of version is further included:
S601:Into specific model and version detection flow process, the information such as the version belonging to type and type are judged;
S602:Obtaining the brand message of type, the constant is represented the character string constant Build.BRAND carried by system
The brand message of type;
S603:Judge whether this brand is the type for needing particular procedure;If the judgment is No, then S606 is performed;If it is determined that
It is no, then performs S604;
S604:Whether the version information for judging current type is the version for needing particular procedure;By performing a getprop life
The shell instructions of order, and pass to a property value title of its current system;If the judgment is No, then S606 is performed;Such as
Fruit is judged as YES, then perform S605;
S605:Terminate to judge, it is determined that being currently specific model and version, need particular procedure, return true:If current type
Certain belonged in specific model, and specific model needs version to be processed, returns true;Continue executing with 607;
S606:Particular procedure is currently not required to, detection is jumped out, false is returned:Continue executing with S607;
S607:Terminate specific model and version detection flow process, return value is passed to into boot flow.
9. according to the arbitrary described intelligent terminal's suspended window authority setting method of claim 2-8, it is characterised in that:Suspended window is
The testing process of no unlatching is further included:
S701:Into suspended window whether open detection flow process, current application is detected, judge whether it has got
The suspended window right to use;
S702:Obtain version number's integer value Build.VERSION.SDK_INT of current system;
S703:Judge Build.VERSION.SDK_INT whether more than or equal to 19:Judge that Build.VERSION.SDK_INT is
It is no to be more than or equal to 19;If it is judged that being yes, then S709 is performed;If NO, then S704 is performed;
S704:The package manager of system is obtained according to the getPackageManager () method of current Context
PackageManager objects;If Build.VERSION.SDK_INT is less than 19, according to current Context's
GetPackageManager () method gets the package manager PackageManager objects of system;
S705:By the bag name of current application program, the getApplicationInfo () sides of PackageManager objects are called
Method, obtains the detail information ApplicationInfo of current application program;
S706:Attribute flags and 0x8000 in ApplicationInfo carries out logical AND operation:Return
The variable of ApplicationInfo types is a class object, includes the details of current application, is including but not limited to wrapped
Name, class name, theme, flags attributes, the lebel information of display;Detection flags attributes carry out logical AND operation with 0x8000;
S707:Judge whether above procedure has abnormal generation;If abnormal generation, then S7013 is performed, if sent out without abnormal
It is raw, then perform S708;
S708:Whether judged result is equal to 0x8000;If it is judged that being no, then S7013 is performed;If it is judged that being
It is then to perform S7014;
S709:Answering for system is obtained according to the getSystemService () method and parameter " appops " of current Context
With program service condition manager AppOpsManager objects:If greater than equal to 19, " appops " character string is passed to
The getSystemService () method of Context, obtains systematic difference program service condition manager
AppOpsManager objects;Continue executing with S7010;
S7010:The checkOp methods in AppOpsManager objects are obtained using reflection technology, and passes to its current application
Uid and bag name, call execution the method:Then the checkOp side in AppOpsManager objects is obtained using reflection technology
Method, and pass to the ID uid and bag name of its current application;The static class method that wherein uid passes through Binder
GetCallingUid () method is obtained, and bag name can be obtained by the getPackageName () method of Context;Perform
After checkOp methods, an integer return value will be obtained, return value indicates whether to have permission;Continue executing with S7011;
S7011:Judge whether above procedure has abnormal generation;If it is determined that there is abnormal generation, then S7013 is performed;If it is determined that
Generation without exception, then perform S7012;
S7012:Judge whether the result for performing is equal to MODE_ALLOWED (0);If equal to this value represents that current application has
Suspended window authority, does not otherwise have;If it is judged that being yes, then S7014 is performed;
S7013:False is returned, current application lack of competence is represented:If there is no suspended window access right through detection application,
Return false;Continue executing with S7015;
S7014:True is returned, represents that current application has permission:If there is suspended window access right through detection application, return
Return true;Continue executing with S7015
S7015:Exit suspended window and whether open detection flow process and the return value of detection is passed to into boot flow.
10. according to the arbitrary described intelligent terminal's suspended window authority setting method of claim 1-9, it is characterised in that:
Intelligent terminal's brand is detected using Build.MODEL;And/or
Full frame translucent guiding page window is realized using Dialog dialog boxes or by the way of self-defined View.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611218449.0A CN106648779B (en) | 2016-12-26 | 2016-12-26 | A kind of intelligent terminal suspended window authority setting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611218449.0A CN106648779B (en) | 2016-12-26 | 2016-12-26 | A kind of intelligent terminal suspended window authority setting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106648779A true CN106648779A (en) | 2017-05-10 |
CN106648779B CN106648779B (en) | 2018-05-11 |
Family
ID=58827280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611218449.0A Active CN106648779B (en) | 2016-12-26 | 2016-12-26 | A kind of intelligent terminal suspended window authority setting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648779B (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107728888A (en) * | 2017-10-26 | 2018-02-23 | 竞技世界(北京)网络技术有限公司 | A kind of android terminal virtual key implementation method |
CN108804938A (en) * | 2018-06-14 | 2018-11-13 | 北京金山安全软件有限公司 | Authority detection method and device, electronic equipment and readable storage medium |
CN109144620A (en) * | 2017-06-15 | 2019-01-04 | 武汉斗鱼网络科技有限公司 | A kind of jump method and device of suspended window permission configuration interface |
CN109491753A (en) * | 2018-11-29 | 2019-03-19 | 北京达佳互联信息技术有限公司 | Suspension windows display methods, device and storage medium |
CN109543407A (en) * | 2018-10-19 | 2019-03-29 | 北京奇虎科技有限公司 | A kind of hold-up interception method and device that Activity is kidnapped |
CN109656667A (en) * | 2018-12-25 | 2019-04-19 | 北京微播视界科技有限公司 | Implementation method, device, equipment and the medium of suspended window in a kind of client |
CN109697355A (en) * | 2018-12-27 | 2019-04-30 | 北京金山安全软件有限公司 | Permission application method, device and equipment |
CN110109663A (en) * | 2019-03-28 | 2019-08-09 | 武汉斗鱼鱼乐网络科技有限公司 | It is a kind of that full frame method and relevant apparatus are set |
CN110243386A (en) * | 2019-07-15 | 2019-09-17 | 腾讯科技(深圳)有限公司 | Navigation information display methods, device, terminal and storage medium |
CN110262832A (en) * | 2019-06-20 | 2019-09-20 | 北京金山安全软件有限公司 | Application program permission judgment method and device and electronic equipment |
CN111580899A (en) * | 2020-03-31 | 2020-08-25 | 深圳市麦谷科技有限公司 | Message popup window system based on hierarchical structure and electronic equipment |
CN111984340A (en) * | 2020-08-20 | 2020-11-24 | 北京像素软件科技股份有限公司 | Application program starting method and device, readable storage medium and electronic equipment |
CN112162870A (en) * | 2020-09-25 | 2021-01-01 | 深圳传音控股股份有限公司 | File processing operation method, mobile terminal and storage medium |
CN113476841A (en) * | 2021-06-30 | 2021-10-08 | 杭州闪电玩网络科技有限公司 | Game interface display method and system and electronic equipment |
CN113849253A (en) * | 2021-08-26 | 2021-12-28 | 宇龙计算机通信科技(深圳)有限公司 | Message display method, terminal and computer storage medium |
CN114064170A (en) * | 2021-10-18 | 2022-02-18 | 维沃移动通信有限公司 | Floating window display method and device, electronic equipment and readable storage medium |
CN111984340B (en) * | 2020-08-20 | 2024-05-14 | 北京像素软件科技股份有限公司 | Application program starting method and device, readable storage medium and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105808245A (en) * | 2016-03-01 | 2016-07-27 | 上海卓易科技股份有限公司 | Floating window control method and system |
CN106096425A (en) * | 2016-06-06 | 2016-11-09 | 北京金山安全软件有限公司 | System permission starting method, device and equipment |
-
2016
- 2016-12-26 CN CN201611218449.0A patent/CN106648779B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105808245A (en) * | 2016-03-01 | 2016-07-27 | 上海卓易科技股份有限公司 | Floating window control method and system |
CN106096425A (en) * | 2016-06-06 | 2016-11-09 | 北京金山安全软件有限公司 | System permission starting method, device and equipment |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144620A (en) * | 2017-06-15 | 2019-01-04 | 武汉斗鱼网络科技有限公司 | A kind of jump method and device of suspended window permission configuration interface |
CN109144620B (en) * | 2017-06-15 | 2021-10-15 | 武汉斗鱼网络科技有限公司 | Skipping method and device for suspension window permission setting interface |
CN107728888A (en) * | 2017-10-26 | 2018-02-23 | 竞技世界(北京)网络技术有限公司 | A kind of android terminal virtual key implementation method |
CN108804938A (en) * | 2018-06-14 | 2018-11-13 | 北京金山安全软件有限公司 | Authority detection method and device, electronic equipment and readable storage medium |
CN109543407A (en) * | 2018-10-19 | 2019-03-29 | 北京奇虎科技有限公司 | A kind of hold-up interception method and device that Activity is kidnapped |
CN109543407B (en) * | 2018-10-19 | 2024-04-05 | 三六零科技集团有限公司 | Activity hijacking interception method and device |
CN109491753A (en) * | 2018-11-29 | 2019-03-19 | 北京达佳互联信息技术有限公司 | Suspension windows display methods, device and storage medium |
CN109656667A (en) * | 2018-12-25 | 2019-04-19 | 北京微播视界科技有限公司 | Implementation method, device, equipment and the medium of suspended window in a kind of client |
CN109697355A (en) * | 2018-12-27 | 2019-04-30 | 北京金山安全软件有限公司 | Permission application method, device and equipment |
CN110109663A (en) * | 2019-03-28 | 2019-08-09 | 武汉斗鱼鱼乐网络科技有限公司 | It is a kind of that full frame method and relevant apparatus are set |
CN110109663B (en) * | 2019-03-28 | 2024-03-29 | 武汉斗鱼鱼乐网络科技有限公司 | Method for setting full screen and related device |
CN110262832A (en) * | 2019-06-20 | 2019-09-20 | 北京金山安全软件有限公司 | Application program permission judgment method and device and electronic equipment |
CN110243386A (en) * | 2019-07-15 | 2019-09-17 | 腾讯科技(深圳)有限公司 | Navigation information display methods, device, terminal and storage medium |
CN110243386B (en) * | 2019-07-15 | 2023-11-24 | 腾讯科技(深圳)有限公司 | Navigation information display method, device, terminal and storage medium |
CN111580899A (en) * | 2020-03-31 | 2020-08-25 | 深圳市麦谷科技有限公司 | Message popup window system based on hierarchical structure and electronic equipment |
CN111580899B (en) * | 2020-03-31 | 2024-04-30 | 深圳市麦谷科技有限公司 | Layered structure-based message popup window system and electronic equipment |
CN111984340A (en) * | 2020-08-20 | 2020-11-24 | 北京像素软件科技股份有限公司 | Application program starting method and device, readable storage medium and electronic equipment |
CN111984340B (en) * | 2020-08-20 | 2024-05-14 | 北京像素软件科技股份有限公司 | Application program starting method and device, readable storage medium and electronic equipment |
CN112162870A (en) * | 2020-09-25 | 2021-01-01 | 深圳传音控股股份有限公司 | File processing operation method, mobile terminal and storage medium |
CN113476841A (en) * | 2021-06-30 | 2021-10-08 | 杭州闪电玩网络科技有限公司 | Game interface display method and system and electronic equipment |
CN113849253A (en) * | 2021-08-26 | 2021-12-28 | 宇龙计算机通信科技(深圳)有限公司 | Message display method, terminal and computer storage medium |
CN114064170A (en) * | 2021-10-18 | 2022-02-18 | 维沃移动通信有限公司 | Floating window display method and device, electronic equipment and readable storage medium |
CN114629989B (en) * | 2022-03-23 | 2024-05-17 | 深圳麦风科技有限公司 | Android application management and control method and device, intelligent terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106648779B (en) | 2018-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106648779B (en) | A kind of intelligent terminal suspended window authority setting method | |
CN107357580B (en) | Method for guiding terminal user to open auxiliary function permission of application | |
EP2775416B1 (en) | Apparatus and method for configuring password and for releasing lock | |
US7870540B2 (en) | Dynamic object validation | |
CN103106024B (en) | Text entry method in touch screen terminal and device thereof | |
CN104035683B (en) | A kind of communicating terminal split screen multi-task interaction method | |
US20170324859A1 (en) | Information processing method, terminal, and computer-readable storage medium | |
CN106096425A (en) | System permission starting method, device and equipment | |
CN104199691B (en) | A kind of method and terminal of the start self-starting APK based on Android platform | |
CN102929924A (en) | Method and device for generating word selecting searching result based on browsing content | |
CN106371752A (en) | Virtual press key realization method and device of Android system intelligent terminal | |
CN103136018A (en) | Setting method and setting system of basic input/ output system (BIOS) | |
US10691390B2 (en) | Method and device for video rendering | |
CN108304234B (en) | Page display method and device | |
JP2008508597A (en) | Help utility application program | |
CN102945243A (en) | Contact information identification method based on browsing contents | |
CN112131036A (en) | Overload protection method, device, equipment and computer readable storage medium | |
CN103812990A (en) | Terminal device and control method thereof | |
CN108255402A (en) | Check the method, terminal and computer readable storage medium of footmark content of announcement | |
CN103945070A (en) | Emergency call method and emergency call device based on voice recognition | |
CN107908679B (en) | Script statement conversion method and device and computer readable storage medium | |
CN107220377B (en) | Search method, electronic device, and computer storage medium | |
CN107592414A (en) | A kind of message back method, message method and system | |
CN105630320A (en) | Screen unlocking method and screen unlocking apparatus for terminal | |
CN105718109B (en) | A kind of the weight processing method and mobile terminal of touching display screen |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |