CN107679373B - Method for acquiring authorized information, device and electronic equipment - Google Patents
Method for acquiring authorized information, device and electronic equipment Download PDFInfo
- Publication number
- CN107679373B CN107679373B CN201710928685.XA CN201710928685A CN107679373B CN 107679373 B CN107679373 B CN 107679373B CN 201710928685 A CN201710928685 A CN 201710928685A CN 107679373 B CN107679373 B CN 107679373B
- Authority
- CN
- China
- Prior art keywords
- application program
- authorization
- feedback data
- description information
- starting
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000013475 authorization Methods 0.000 claims abstract description 110
- 230000006870 function Effects 0.000 claims description 25
- 230000008569 process Effects 0.000 claims description 23
- 230000004044 response Effects 0.000 claims description 11
- 238000004891 communication Methods 0.000 abstract description 8
- 230000001737 promoting effect Effects 0.000 abstract description 2
- 230000000875 corresponding effect Effects 0.000 description 24
- 230000009471 action Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 9
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 210000003127 knee Anatomy 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
-
- 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/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/52—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Stored Programmes (AREA)
Abstract
A kind of method for acquiring authorized information, device and electronic equipment provided by the invention.The described method includes: the first application program is according to description information, call pre-set first agreement in electronic equipment, the starting page predetermined in the second application program of implicit opening, when the second application program obtains authorization code before the second closing application program, authorization feedback data is generated according to authorization code;After second closing application program, feedback data will be authorized to feed back to the first application program by second protocol, so that the first application program obtains the authorization message of the second application program.After cleverly applying the first agreement the second application program of starting, allows the second application program that feedback data is sent to the function of the first application program, thereby reduce the coupled relation between application program.The effective efficiency for promoting inter-application communication.Meanwhile first agreement belong to the agreement of system level, safety is higher.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of method for acquiring authorized information, device and electronics
Equipment.
Background technique
It realizes and is interacted between different application, it is the first step that usually authorization, which logs in,.And authorization login is substantially
It is communicated between two application programs.The method communicated between two application programs is usually by using Android
Interface language defines the mode of (Android Interface Definition Language, AIDL) to realize.
But carry out the method for interprocess communication by way of AIDL there are many defects, when AIDL changes
When, two application programs are required to change and upgrade aidl file simultaneously.It will lead between two stand-alone utilities
Coupled relation it is very close.Do not upgrade aidl file once a side occur and having upgraded another party to will lead to communication failure etc. abnormal
Situation.
Summary of the invention
It is above-mentioned to improve the purpose of the present invention is to provide a kind of method for acquiring authorized information, device and electronic equipment
Problem.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
The embodiment of the invention provides a kind of method for acquiring authorized information, it is applied to electronic equipment, in the electronic equipment
Store multiple application programs, which comprises it is corresponding that the first application response user's operation obtains the second application program
Description information;First application program calls pre-set first association in the electronic equipment according to the description information
It discusses, the starting page predetermined in the second application program described in implicit opening, wherein first agreement is for realizing starting
Program process corresponding with the description information will simultaneously feedback data to after allowing the program process to close described
First application program, wherein the feedback data is the data of generation after the second application program launching page starting;When
When second application program obtains authorization code before second closing application program, is generated and authorized according to the authorization code
Feedback data, wherein the feedback data includes authorization feedback data;After second closing application program, by pre-seting
Second protocol the authorization feedback data is fed back into first application program so that first application program obtains the
The authorization message of two application programs, wherein second protocol for realizing after second closing application program by the feedback coefficient
Allow to receive the application program of the feedback data according to being transferred to.
The embodiment of the invention also provides a kind of authorization message acquisition device, are applied to electronic equipment, the electronic equipment
The interior multiple application programs of storage, described device includes: the first acquisition module, starting module, generation module and feedback module.Its
In, first obtains module, obtains the corresponding description information of the second application program for the first application response user's operation;It opens
Dynamic model block calls pre-set first in the electronic equipment for first application program according to the description information
Agreement, the starting page predetermined in the second application program described in implicit opening, wherein first agreement is for realizing opening
It moves program process corresponding with the description information and institute will be feedbacked data to after allowing the program process to close
State the first application program, wherein the feedback data is the data of generation after the second application program launching page starting;
Generation module is used for when second application program obtains authorization code before second closing application program, according to institute
It states authorization code and generates authorization feedback data, wherein the feedback data includes authorization feedback data;Feedback module, for described
After second closing application program, the authorization feedback data is fed back to described first using journey by the second protocol pre-seted
Sequence, so that first application program obtains the authorization message of the second application program, wherein second protocol is for realizing described the
The feedback data is transferred to the application program for allowing to receive the feedback data after two closing application programs.
The embodiment of the invention also provides a kind of electronic equipment, the electronic equipment includes: memory;Processor;And
Authorization message acquisition device, the authorization message acquisition device are stored in the memory and including one or more by described
The software function mould group that processor executes comprising: first obtains module, obtains for the first application response user's operation
The corresponding description information of second application program;Starting module is called for first application program according to the description information
Pre-set first agreement in the electronic equipment, starting page predetermined in the second application program described in implicit opening
Face, wherein first agreement is answered for realizing described in starting program process corresponding with the description information and permission
First application program will be feedbacked data to after being closed with program process, wherein the feedback data is second application
Program starts the data generated after page starting;Generation module, for when second application program is in second application
When obtaining authorization code before stop, authorization feedback data is generated according to the authorization code, wherein the feedback data includes
Authorize feedback data;Feedback module, for being awarded by the second protocol pre-seted by described after second closing application program
Power feedback data feeds back to first application program, so that first application program obtains the authorization letter of the second application program
Breath, wherein second protocol for realizing the feedback data is transferred to after second closing application program allow receive institute
State the application program of feedback data.
Compared with prior art, a kind of method for acquiring authorized information, device and electronic equipment provided by the invention.Described
One application program in a manner of implicitly starting by opening the second application program according to description information and the first agreement.Cleverly
After applying the first agreement the second application program of starting, allow the second application program that feedback data is sent to the first application program
Function replacement carry out data communication using AIDL service in the prior art, the coupling thereby reduced between application program is closed
System.The effective efficiency for promoting inter-application communication.Meanwhile first agreement belong to the agreement of system level, safety is higher,
It is more reliable.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the block diagram of electronic equipment provided in an embodiment of the present invention.
Fig. 2 shows a part of the step flow chart of the method for acquiring authorized information of present pre-ferred embodiments offer.
Fig. 3 shows another portion of the step flow chart of the method for acquiring authorized information of present pre-ferred embodiments offer
Point.
Fig. 4 shows the schematic diagram of the authorization message acquisition device of present pre-ferred embodiments offer.
Icon: 100- electronic equipment;101- memory;102- storage control;103- processor;200- authorization message obtains
Take device;201- first obtains module;202- starting module;203- generation module;204- feedback module;205- parsing module;
206- second obtains module;207- adding module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Fig. 1 is please referred to, Fig. 1 shows the block diagram of electronic equipment 100 provided in an embodiment of the present invention.Electronic equipment
100 may be, but not limited to, smart phone, tablet computer, pocket computer on knee, vehicle-mounted computer, personal digital assistant
(personal digital assistant, PDA), wearable mobile terminal etc..The electronic equipment 100 is equipped with iOS
System comprising authorization message acquisition device 200, memory 101, storage control 102 and processor 103.
The memory 101, storage control 102 and each element of processor 103 are directly or indirectly electrical between each other
Connection, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or letter between each other
Number line, which is realized, to be electrically connected.The authorization message acquisition device 200 includes at least one can be with software or firmware (firmware)
Form be stored in the memory 101 or be solidificated in the operating system (operating of the electronic equipment 100
System, OS) in software function module or the application program that is installed in electronic equipment 100.The processor 103 is for holding
The executable module stored in line storage 101, for example, the authorization message acquisition device 200 software function module that includes or
Computer program.
Wherein, memory 101 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 101 is for storing program, and the processor 103 executes described program, this hair after receiving and executing instruction
Method performed by the server for the flow definition that bright any embodiment discloses can be applied in processor 103, or by
Device 103 is managed to realize.
Processor 103 can be a kind of IC chip, have signal handling capacity.Above-mentioned processor 103 can be with
It is general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network
Processor, NP), speech processor and video processor etc.;Can also be digital signal processor, specific integrated circuit,
Field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be
Microprocessor or the processor 103 are also possible to any conventional processor 103 etc..
First embodiment
Referring to FIG. 2, the flow chart of the method for acquiring authorized information provided Fig. 2 shows present pre-ferred embodiments.It awards
Weigh information acquisition method the following steps are included:
Step S201 is obtained and is used as the corresponding description information of each application program.
In the present embodiment, the description information is corresponding with application program, to facilitate corresponding application program to pass through description
Information searching arrives.Description information can be the information that the function of application program is described, for example, retrieval is answered as browsing
With the description information of program;It is also possible to application package name.In the present embodiment, using each application package name as corresponding
The description information of application program, the packet name of each application program are unique in electronic equipment 100.
The description information is added into the description file of the corresponding application program by step S202.
In the present embodiment, in each application program the surface of a wound one for start authorize the starting page.Start the page
Including describing file.Description information is added into corresponding description file.It should be noted that description file is a setting
File is substantially an XML file.
As one embodiment, can then be existed by adding a filter intent-filter in description file
Filter method action is added in the filter.Action event can be < action android:name="
Com.xxx.xxx.getuserinfo " >, com.xxx.xxx.getuserinfo here is description information.When with the application
The corresponding Activity of the corresponding filter method action of program occurs, i.e., when the corresponding action thing of application program occurs in system
When part, so that it may be started to the starting page of the application program.
As shown in figure 3, method for acquiring authorized information provided in this embodiment is further comprising the steps of:
Step S101, the first application response user's operation obtain the corresponding description information of the second application program.
In the present embodiment, multiple application programs are mounted in electronic equipment 100, in the first application program operational process
In, response user's operation obtains the description information of the second application program.For example, response user's operation obtains the second application program
Packet name.
Step S102, first application program are called and are set in advance in the electronic equipment 100 according to the description information
The first agreement set, the starting page predetermined in the second application program described in implicit opening.
In the present embodiment, first agreement is for realizing starting program process corresponding with the description information
And first application program will be feedbacked data to after allowing the program process to close, wherein the feedback data is
The data generated after the second application program launching page starting.Optionally, first agreement may include using
StartActivityforResult function.In startActivityforResult function, beaten in a manner of implicitly starting
Open the starting page of corresponding second application program of the description information.
As one embodiment, when the first application program is run, by the Intent class building method obtain
The example of Intent object, then by calling the side addAction (" com.xxx.xxx.getuserinfo ") in intent
Method give the intention object add an action event, then by call intent.addAction ("
Android.intent.action.VIEW "), addition is intended to the action description of object, and in the present embodiment, action description is to take
It must authorize.By above-mentioned two step, the starting page for opening that action is android.intent.getuserinfo is realized.
Then the page is on by calling startActivityforResult (intent) method in the first application program.It needs
It is noted that startActivityforResult function is typically only capable to be applied in same application between each process
Starting, in the present embodiment, cleverly using the method combination startActivityforResult function implicitly started, gram
The limitation used that startActivityforResult function is only limitted in same application has been taken, simultaneously as
StartActivityforResult function can make start page close after allow feedback data so that realize not by
AIDL is still able to achieve data interaction between different application.And startActivityforResult function belong to it is system-level
Other function, and AIDL is only to service, therefore, startActivityforResult function is compared to security performance for AIDL
It is higher.
Step S103, when second application program obtains authorization code before second closing application program, root
Authorization feedback data is generated according to the authorization code, wherein the feedback data includes authorization feedback data.
In the present embodiment, the clicking operation for user being responded in the starting page of the second application program obtains authorization code.
For example, user clicks the authorization button in the starting page of the second application program, the click for responding user generates authorization code.Institute
Before the starting page close for stating the second application program, authorization feedback data is generated according to the authorization code of acquisition.Optionally, work as institute
When stating the second application program and getting the authorization code in the given time, successfully feedback coefficient is authorized according to authorization code generation
According to;When second application program does not get the authorization code in the given time, is generated and authorized according to the authorization code
Failure feedback data.
Step S104, when second application program gets not authorization message before second closing application program
When, generate authorization failure feedback data.
In the present embodiment, after generating authorization failure feedback data and second closing application program, by pre-seting
Second protocol the authorization failure feedback data is fed back into first application program.It should be noted that not authorizing letter
Breath can be the information that user clicks refusal authorization in the starting page of the second application program and generates.
Step S105, after second closing application program, by the second protocol that pre-sets by the authorization feedback coefficient
According to first application program is fed back to, so that first application program obtains the authorization message of the second application program.
In the present embodiment, second protocol is for realizing transmitting the feedback data after second closing application program
To the application program for allowing to receive the feedback data.Optionally, second protocol may include real using setResult method
It is existing.
As an implementation, setResult (RESULT_OK, intent) method is called to carry out feedback data
It returns.Wherein RESULT_OK is an integer for indicating that result obtains successfully, when the feedback data is successfully anti-including authorizing
Data are presented, then RESULT_OK is normal value;When feedback data includes authorization failure feedback data, then RESULT_OK is abnormal.
Intent indicates an intention object, and encapsulation needs the authorization code returned in the intention object.One is contained in the Intent
A bundl e object, bundle object is for storing authorization code.Specifically, wherein authorization code is by calling in bun dler
PutString (AUTH_CODE, code) mode stored, wherein what AUTH_C ODE was indicated is the key of authorization code
Title, what code was indicated is the value of authorization code.It is when the page returns after being arranged in this way by setR esult method
System can return to the intent message in the first application program, to just complete the biography of the message between different application
It is defeated.
Step S106, when first application program judges the authorization feedback data received to authorize successfully feedback data
When, to it is described authorize successfully feedback data parse, to obtain the authorization code.
As an implementation, the second application program can be formerly examined to pass over by setResult method
In information, whether RESULT_OK is abnormal.When the RESULT_OK exception, this authorization failure, the first application program are determined
The authorization of the second application program has not been obtained.When the RESULT_OK is normal, the first application program is to the intent passed over
Object is parsed, with the content of authorized access code.Specific resolving is by calling the getBundle in intent first
Then first getting bundle object is calling getString (AUTH_CODE) method in bundler object to award to get
The content of weighted code is come, and the acquisition of authorization code information is thus completed.
Second embodiment
Referring to FIG. 4, Fig. 4 is the schematic diagram for the authorization message acquisition device 200 that present pre-ferred embodiments provide.Authorization
Information acquisition device 200 includes the first acquisition module 201, starting module 202, generation module 203, feedback module 204, parsing mould
Block 205, second obtains module 206 and adding module 207.
First obtains module 201, obtains that the second application program is corresponding retouches for the first application response user's operation
State information.
In embodiments of the present invention, step S101 can be executed by the first acquisition module 201.
Starting module 202 calls the electronic equipment 100 for first application program according to the description information
Interior pre-set first agreement, the starting page predetermined in the second application program described in implicit opening, wherein described
One agreement is for realizing starting program process corresponding with the description information and the program process is allowed to close
After will feedback data to first application program, after the feedback data is the second application program launching page starting
The data of generation.
In embodiments of the present invention, step S102 can be executed by starting module 202.
Generation module 203, for obtaining authorization before second closing application program when second application program
When code, authorization feedback data is generated according to the authorization code, wherein the feedback data includes authorization feedback data.And it also uses
In when second application program gets not authorization message before second closing application program, authorization failure is generated
Feedback data.
In embodiments of the present invention, step S103 and step S104 can be executed by generation module 203.
Feedback module 204, for after second closing application program, by the second protocol that pre-sets by the authorization
Feedback data feeds back to first application program, so that first application program obtains the authorization letter of the second application program
Breath, wherein second protocol for realizing the feedback data is transferred to after second closing application program allow receive institute
State the application program of feedback data.
In embodiments of the present invention, step S105 can be executed by feedback module 204.
Parsing module 205, for judging the authorization feedback data received when first application program to authorize successfully
When feedback data, to it is described authorize successfully feedback data parse, to obtain the authorization code.
In embodiments of the present invention, step S106 can be executed by parsing module 205.
Second obtains module 206, for obtaining the corresponding description information of each application program, wherein described
Description information includes application package name.
In embodiments of the present invention, step S201 can be executed by the second acquisition module 206.
Adding module 207, for the description information to be added into the description file of the corresponding application program.
In embodiments of the present invention, step S202 can be executed by adding module 207.
In conclusion a kind of method for acquiring authorized information, device and electronic equipment provided by the invention, set applied to electronics
It is standby, the multiple application programs of storage in the electronic equipment, which comprises the first application response user's operation obtains the
The corresponding description information of two application programs;First application program is called in the electronic equipment according to the description information
Pre-set first agreement, the starting page predetermined in the second application program described in implicit opening, wherein described first
After agreement is for realizing starting program process corresponding with the description information and the program process being allowed to close
First application program will be feedbacked data to, wherein the feedback data is the second application program launching page starting
The data generated later;When second application program obtains authorization code before second closing application program, according to
The authorization code generates authorization feedback data, wherein the feedback data includes authorization feedback data;Second application program
After closing, the authorization feedback data is fed back to by first application program by the second protocol pre-seted, so that described
First application program obtains the authorization message of the second application program, wherein second protocol is for realizing second application program
The feedback data is transferred to the application program for allowing to receive the feedback data after closing.Cleverly apply the first agreement
After starting the second application program, the function replacement for allowing the second application program that feedback data is sent to first application program is existing
Have in technology and carry out data communication using AIDL service, thereby reduces the coupled relation between application program.It is effective to be promoted
The efficiency of inter-application communication.Meanwhile first agreement belong to the agreement of system level, safety is higher, more reliable.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of method for acquiring authorized information, which is characterized in that be applied to electronic equipment, store multiple answer in the electronic equipment
With program, which comprises
First application response user's operation obtains the corresponding description information of the second application program;
First application program calls pre-set first agreement in the electronic equipment according to the description information, hidden
Formula opens the starting page predetermined in second application program, wherein first agreement is for realizing starting and institute
Feedback data fed back to after stating the corresponding program process of description information and the program process being allowed to close described
First application program, the feedback data are starting page starting generations later predetermined in second application program
Data;
It is raw according to the authorization code when second application program obtains authorization code before second closing application program
At authorization feedback data, wherein the feedback data includes authorization feedback data;
After second closing application program, the authorization feedback data is fed back to described by the second protocol pre-seted
One application program, so that first application program obtains the authorization message of the second application program, wherein second protocol is for real
The feedback data is transferred to the application program for allowing to receive the feedback data after existing second closing application program.
2. the method as described in claim 1, which is characterized in that the starting page includes description file, and the method is also wrapped
It includes:
Obtain the corresponding description information of each application program, wherein the description information includes application package name;
The description information is added into the description file of the corresponding application program.
3. the method as described in claim 1, which is characterized in that when second application program is closed in second application program
When obtaining authorization code before closing, generating the step of authorizing feedback data according to the authorization code includes:
When second application program gets the authorization code in the given time, according to the authorization code generate authorization at
Function feedback data;
When second application program does not get the authorization code in the given time, is generated and authorized according to the authorization code
Failure feedback data.
4. method as claimed in claim 3, which is characterized in that the method also includes:
When second application program gets not authorization message before second closing application program, generates authorization and lose
Lose feedback data;
After second closing application program, the authorization failure feedback data is fed back to by institute by the second protocol pre-seted
State the first application program.
5. method as claimed in claim 4, which is characterized in that the method also includes:
When first application program judges the authorization feedback data received to authorize successfully feedback data, to the authorization
Success feedback data is parsed, to obtain the authorization code.
6. the method according to claim 1 to 5, which is characterized in that first agreement includes using
StartActivityforResult function.
7. the method according to claim 1 to 5, which is characterized in that the second protocol includes using setResult
Method.
8. a kind of authorization message acquisition device, which is characterized in that be applied to electronic equipment, store multiple answer in the electronic equipment
With program, described device includes:
First obtains module, obtains the corresponding description information of the second application program for the first application response user's operation;
Starting module is called and is preset in the electronic equipment for first application program according to the description information
The first agreement, the starting page predetermined in the second application program described in implicit opening, wherein first agreement is used for
It realizes feedback coefficient after starting program process corresponding with the description information and the program process being allowed to close
According to feeding back to first application program, the feedback data is that the starting page predetermined opens in second application program
The data generated after dynamic;
Generation module is used for the root when second application program obtains authorization code before second closing application program
Authorization feedback data is generated according to the authorization code, wherein the feedback data includes authorization feedback data;
Feedback module, for after second closing application program, by the second protocol that pre-sets by the authorization feedback coefficient
According to first application program is fed back to, so that first application program obtains the authorization message of the second application program, wherein
Second protocol allows to receive the feedback coefficient for realizing being transferred to the feedback data after second closing application program
According to application program.
9. device as claimed in claim 8, which is characterized in that the starting page includes description file, and described device is also wrapped
It includes:
Second obtains module, for obtaining the corresponding description information of each application program, wherein the description information
Including application package name;
Adding module, for the description information to be added into the description file of the corresponding application program.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Memory;
Processor;And
Authorization message acquisition device, the authorization message acquisition device be stored in the memory and including one or more by
The software function mould group that the processor executes comprising:
First obtains module, obtains the corresponding description information of the second application program for the first application response user's operation;
Starting module is called and is preset in the electronic equipment for first application program according to the description information
The first agreement, the starting page predetermined in the second application program described in implicit opening, wherein first agreement is used for
It realizes feedback coefficient after starting program process corresponding with the description information and the program process being allowed to close
According to feeding back to first application program, wherein the feedback data is starting predetermined in second application program
The data generated after page starting;
Generation module is used for the root when second application program obtains authorization code before second closing application program
Authorization feedback data is generated according to the authorization code, wherein the feedback data includes authorization feedback data;
Feedback module, for after second closing application program, by the second protocol that pre-sets by the authorization feedback coefficient
According to first application program is fed back to, so that first application program obtains the authorization message of the second application program, wherein
Second protocol allows to receive the feedback coefficient for realizing being transferred to the feedback data after second closing application program
According to application program.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710928685.XA CN107679373B (en) | 2017-10-09 | 2017-10-09 | Method for acquiring authorized information, device and electronic equipment |
PCT/CN2018/081384 WO2019071927A1 (en) | 2017-10-09 | 2018-03-30 | Authorization information obtaining method and apparatus, electronic device, and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710928685.XA CN107679373B (en) | 2017-10-09 | 2017-10-09 | Method for acquiring authorized information, device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107679373A CN107679373A (en) | 2018-02-09 |
CN107679373B true CN107679373B (en) | 2019-09-10 |
Family
ID=61137933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710928685.XA Active CN107679373B (en) | 2017-10-09 | 2017-10-09 | Method for acquiring authorized information, device and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107679373B (en) |
WO (1) | WO2019071927A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107679373B (en) * | 2017-10-09 | 2019-09-10 | 武汉斗鱼网络科技有限公司 | Method for acquiring authorized information, device and electronic equipment |
CN110069919B (en) * | 2019-04-25 | 2021-08-24 | 上海连尚网络科技有限公司 | Information acquisition method and device |
CN115080928A (en) * | 2022-06-30 | 2022-09-20 | 北京亚控科技发展有限公司 | Application authorization management method and related equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014014793A1 (en) * | 2012-07-17 | 2014-01-23 | CallSign, Inc. | Anti-cloning system and method |
CN104102537A (en) * | 2013-04-07 | 2014-10-15 | 华为技术有限公司 | Application calling method and user terminal |
CN104462980A (en) * | 2014-12-30 | 2015-03-25 | 北京奇虎科技有限公司 | Authority management method, device and system of application programs and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107679373B (en) * | 2017-10-09 | 2019-09-10 | 武汉斗鱼网络科技有限公司 | Method for acquiring authorized information, device and electronic equipment |
-
2017
- 2017-10-09 CN CN201710928685.XA patent/CN107679373B/en active Active
-
2018
- 2018-03-30 WO PCT/CN2018/081384 patent/WO2019071927A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014014793A1 (en) * | 2012-07-17 | 2014-01-23 | CallSign, Inc. | Anti-cloning system and method |
CN104102537A (en) * | 2013-04-07 | 2014-10-15 | 华为技术有限公司 | Application calling method and user terminal |
CN104462980A (en) * | 2014-12-30 | 2015-03-25 | 北京奇虎科技有限公司 | Authority management method, device and system of application programs and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
WO2019071927A1 (en) | 2019-04-18 |
CN107679373A (en) | 2018-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107679373B (en) | Method for acquiring authorized information, device and electronic equipment | |
CN109286724B (en) | Data interaction method and device based on short message | |
CN109960944A (en) | A kind of data desensitization method, server, terminal and computer readable storage medium | |
CN105490839B (en) | A kind of alarm method and device of website data safety | |
CN111343168B (en) | Identity authentication method and device, computer equipment and readable storage medium | |
US11501000B2 (en) | Auto-injection of security protocols | |
CN109271261B (en) | Event unified processing method, device and storage medium | |
CN104346560A (en) | Security authentication method and security authentication device | |
CN103023684A (en) | Method, device and system for network information management | |
CN104424098B (en) | A kind of application testing method and device | |
US10587599B2 (en) | Method of sending data from a secure token to a distant server | |
US20100222022A1 (en) | Communication method, communication system and access method to service provider base | |
EP3038394A1 (en) | Method of restoring a secure element to a factory state | |
CN102547661B (en) | Method and device for establishing communication between Android system and telecommunications smart card | |
CN105519069B (en) | Data processing system, center fixture and program | |
DE102022128501A1 (en) | Electronic backup and overriding computer system with compression and decompression of backup measurement signals during data transfer | |
DE102022129480A1 (en) | Electronic security with encrypted and compressed data communication and its application and further training | |
CN113873450B (en) | Short message configuration method, device, computer equipment and storage medium | |
CN109858993A (en) | A kind of car insurance order generation method, server and system | |
CN116136772A (en) | Buried point data acquisition method and device | |
CN109150893B (en) | Service request forwarding method and related device | |
EP2624176A1 (en) | Menu assembly method, menu assembly system and terminal | |
CN108012255B (en) | Mobile terminal number binding method and device | |
CN115640151B (en) | Service calling method, device and storage medium | |
CN104468514B (en) | Information processing method, electronic equipment and server |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231123 Address after: Room 606-609, Compound Office Complex Building, No. 757, Dongfeng East Road, Yuexiu District, Guangzhou, Guangdong Province, 510699 Patentee after: China Southern Power Grid Internet Service Co.,Ltd. Address before: 11 / F, building B1, software industry phase 4.1, No.1, Software Park East Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province, 430000 Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |