CN104869569A - Network permission control method and apparatus of application program - Google Patents

Network permission control method and apparatus of application program Download PDF

Info

Publication number
CN104869569A
CN104869569A CN201510146487.9A CN201510146487A CN104869569A CN 104869569 A CN104869569 A CN 104869569A CN 201510146487 A CN201510146487 A CN 201510146487A CN 104869569 A CN104869569 A CN 104869569A
Authority
CN
China
Prior art keywords
application program
network
legal power
application
bag name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510146487.9A
Other languages
Chinese (zh)
Inventor
王乐
张扬
乜聚虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510146487.9A priority Critical patent/CN104869569A/en
Publication of CN104869569A publication Critical patent/CN104869569A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Abstract

The embodiments of the disclosure disclose a network permission control method and apparatus of an application program. When an application program makes a request of network connection, a package name corresponding to the application program is obtained, and a network permission rule corresponding to the application program is obtained according to the package name of the application program; and on the basis of the network permission rule corresponding to the application program, a networking state of the application program is controlled. The package name is a unique identification mark of the application program; different application programs have different corresponding package names; and thus the various application programs can be distinguished by the package names. Because the networking states of the application programs are controlled based on the package names of the appliction programs, a phenomenon that networking states of application programs sharing the same UID can not be controlled respectively can be prevented and a phenomenon that the network permission rule can not be backed up to another intelligent terminal can also be avoided. Therefore, the networking states of the application programs can be controlled by using the package names of the application programs as the identity marks of the application programs, so that the control precision is improved.

Description

The network legal power control method of application program and device
Technical field
The disclosure relates to intelligent terminal technical field, particularly relates to a kind of network legal power control method and device of application program.
Background technology
Along with mobile network's transmission speed improves fast, user utilizes intelligent terminal mobile Internet access speed goes fast.But user, when enjoying quick and smooth network speed, if the network legal power of application programs does not limit, will cause a lot of application program to use mobile network without limit, and then expend a lot of mobile flow of user, for user causes economic loss.Therefore, the network legal power of application program controls to be realize the requisite part of network security.
In correlation technique, the network legal power of application programs controls to be all with UID (User Identification, User Identity) control as the identify label of application program, such as, network legal power control procedure and user arrange network legal power rule is all for identify label with the UID of application program.There is the situation of multiple Application sharing UID, suppose that application A and application program B share a UID, while cannot realizing forbidding application A online, the network legal power of open applications program B.In addition, due to system assignment when UID is application program installation, the UID that same application assigned arrives on different intelligent terminals is not identical, when user is by the network legal power of the application program in the data backup of application program rule, when returning on an other intelligent terminal, to the situation of network legal power confusion be there will be, cause network legal power rule to back up use.
As shown in the above, the network legal power control in correlation technique take UID as the identify label of application program, and the Control granularity of this control mode is meticulous not, causes network legal power control accuracy very low.
Summary of the invention
For overcoming Problems existing in correlation technique, present disclose provides network legal power control method and the device of application program.
In order to solve the problems of the technologies described above, disclosure embodiment discloses following technical scheme:
According to the first aspect of disclosure embodiment, a kind of network legal power control method of application program is provided, is applied in intelligent terminal, comprises:
When application requests interconnection network being detected, obtain the bag name of described application program;
The network legal power rule of described application program is obtained according to the bag name of described application program;
According to the network legal power rule of described application program, control the networking state of described application program.
In conjunction with first aspect, in the first possible implementation of first aspect, the bag name of the described application program of described acquisition, comprising:
Obtain the current process record data of described application program;
From the current process record data of described application program, extract the bag name of described application program.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, the current process record data that the described application program of described acquisition is corresponding, comprising:
Obtain the current process identification that described application program is corresponding;
By the open interface that application program scheduling center in described intelligent terminal provides, the process record data that the described current process identification of intracardiac acquisition is corresponding from described application program scheduling.
In conjunction with in the first possible implementation of first aspect, first aspect and the possible implementation of the second of first aspect any one, in the third possible implementation of first aspect, the described bag name according to described application program obtains the network legal power rule of described application program, comprising:
Obtain the network legal power regular collection that user pre-sets according to the bag name of application program;
The network legal power rule of the bag name correspondence of the application program of operation is searched from described network legal power regular collection.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described method also comprises:
Show to user with the application list wrapping identify label by name;
Obtain the network legal power rule that user is arranged the application program in described the application list.
According to the second aspect of disclosure embodiment, a kind of network legal power control method of application program is provided, is applied in intelligent terminal, comprises:
First acquisition module, for when application requests interconnection network being detected, obtains the bag name of described application program;
Second acquisition module, for obtaining the network legal power rule of described application program according to the bag name of described application program;
Control module, for the network legal power rule according to described application program, controls the networking state of described application program.
In conjunction with second aspect, in the first possible implementation of second aspect, described first acquisition module comprises:
First obtains submodule, for obtaining the current process record data of described application program;
Extract submodule, for from the current process record data of described application program, extract the bag name of described application program.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, described first obtains submodule comprises:
Process identification (PID) obtains submodule, for obtaining current process identification corresponding to described application program;
Process record data obtain submodule, for the open interface provided by application program scheduling center in described intelligent terminal, and the process record data that the described current process identification of intracardiac acquisition is corresponding from described application program scheduling.
In conjunction with in the first possible implementation of second aspect, second aspect and the possible implementation of the second of second aspect any one, in the third possible implementation of second aspect, described second acquisition module comprises:
Second obtains submodule, for obtaining the network legal power regular collection that user pre-sets according to the bag name of application program;
Inquiry submodule, for searching the network legal power rule of the bag name correspondence of the application program of operation from described network legal power regular collection.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described device also comprises:
Display module, for showing to user with the application list wrapping identify label by name;
3rd acquisition module, for obtaining the network legal power rule that user is arranged the application program in described the application list.
According to the third aspect of disclosure embodiment, a kind of terminal equipment is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
When application requests interconnection network being detected, obtain the bag name of described application program;
The network legal power rule of described application program is obtained according to the bag name of described application program;
According to the network legal power rule of described application program, control the networking state of described application program.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: when application requests interconnection network, obtains the bag name that this application program is corresponding, and obtains network legal power rule corresponding to this application program according to the bag name of this application program; Then, according to the network legal power rule of this application program, the networking state of this application program is controlled.Bag name is the unique identifier of application program, and bag name corresponding to different application is also different, can distinguish different application programs by bag name.With the networking state of the bag name controlling application program of application program, there will not be the phenomenon that the networking state of the application program of a shared UID can not control respectively, and, there will not be network legal power rule cannot backup to the phenomenon of another intelligent terminal.Therefore, be called the networking state of the identify label controlling application program of application program with the bag of application program, control accuracy is higher.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the flow chart of the network legal power control method of a kind of application program according to an exemplary embodiment;
Fig. 2 is the flow chart of a kind of step S110 according to an exemplary embodiment;
Fig. 3 is the flow chart of the network legal power control method of another kind of application program according to an exemplary embodiment;
Fig. 4 is the network legal power control device block diagram of a kind of application program according to an exemplary embodiment;
Fig. 5 is the block diagram of a kind of first acquisition module according to an exemplary embodiment;
Fig. 6 is the block diagram of a kind of first acquisition submodule according to an exemplary embodiment;
Fig. 7 is the block diagram of a kind of second acquisition module according to an exemplary embodiment;
Fig. 8 is the network legal power control device block diagram of the another kind of application program according to an exemplary embodiment;
Fig. 9 is the block diagram of a kind of device 800 according to an exemplary embodiment.
By above-mentioned accompanying drawing, illustrate the embodiment that the disclosure is clear and definite more detailed description will be had hereinafter.These accompanying drawings be not in order to limited by any mode the disclosure design scope, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the flow chart of the network legal power control method of a kind of application program according to an exemplary embodiment, and the method is applied in intelligent terminal, and as shown in Figure 1, the method can comprise the following steps:
In step s 110, when application requests interconnection network being detected, obtain the bag name of described application program.
For the intelligent terminal of Android operation system, the application program that system carries or the application program that third party provides, when accesses network (such as, mobile cellular network or WiFi network) time, all need to call the system call interfaces relevant to network to realize, such as, socket interface, connect interface, accept interface, listen interface, close interface etc.When detecting that application program accesses the system call relevant to network, determine application requests interconnection network.
Wherein, socket, for creating network request filec descriptor, identifies this network request, and all system calls relevant to network all need this filec descriptor.Listen connects for monitoring new network.Connect is used for request and sets up a network linking.Accept is used for acceptance and sets up a network linking.Close is for closing set up network linking.
The bag name of application program is the unique identifier of application program, and the different bag names corresponding to application program is also different, namely utilizes bag name can distinguish different application programs.
Such as, the bag name that google service framework is corresponding is com.google.android.gsf; Bag name corresponding to google shop is com.google.android.gms.
Corresponding process can be set up when application program is run, system is application assigned PID (Process Identification, process identification (PID)), when application program accesses network, with PID and UID obtaining this process in the program context of the process of application program, but can cannot obtain the bag name of this application program.PID is the unique identification of process, same application, when not starting in the same time, all can be assigned to different PID, therefore, need to set up the mapping relations between PID corresponding to application program and the bag name of application program, so that the bag name of the program that is applied according to PID.
In the step s 120, the network legal power rule of described application program is obtained according to the bag name of described application program.
First, the network legal power regular collection that user pre-sets according to the bag name of application program is obtained; Then, obtain the Bao Minghou of application program, from described network legal power regular collection, search the network legal power rule of the bag name correspondence of the application program of operation.
In step s 130, which, according to the network legal power rule of described application program, the networking state of described application program is controlled.
If the network legal power rule of application program prohibits the use mobile cellular network to network, then when this application program accesses network, forbid that this application program uses mobile cellular network to create network linking.
If the network legal power rule of application program prohibits the use WiFi network to network, then when application program accesses network, forbid that this application program uses WiFi to create network linking.
The network legal power control method of the application program that the present embodiment provides, when application requests interconnection network, obtains the bag name that this application program is corresponding, and obtains network legal power rule corresponding to this application program according to the bag name of this application program; Then, according to the network legal power rule of this application program, the networking state of this application program is controlled.Bag name is the unique identifier of application program, and bag name corresponding to different application is also different, can distinguish different application programs by bag name.With the networking state of the bag name controlling application program of application program, there will not be the phenomenon that the networking state of the application program of a shared UID can not control respectively, and, there will not be network legal power rule cannot backup to the phenomenon of another intelligent terminal.Therefore, be called the networking state of the identify label controlling application program of application program with the bag of application program, control accuracy is higher.
Fig. 2 is the method flow diagram of a kind of step S110 according to an exemplary embodiment, and as shown in Figure 2, step S110 can comprise the following steps:
In step S111, obtain the current process record data of described application program.
After application program is run, acquisition system is the PID of application assigned, i.e. current PID.By the open interface that application program scheduling center in described intelligent terminal provides, the process record data that the described current process identification of intracardiac acquisition is corresponding from described application program scheduling.
In Android operation system, Activity Manager Service (being called for short, AM) is application program scheduling center, and the living or death of all application programs is all subject to the control of AM.Store PID and the process record data (ProcessRecord) of application program in AM, wherein, in process record data, record the bag name of this application program.In order to obtain process record data from AM, need AM to expand open interface, the software realizing network legal power control can obtain process record data corresponding to PID by open interface.
In step S112, from the current process record data of described application program, extract the bag name of described application program.
From the current process record data that the application program obtained is corresponding, extract the bag name obtaining this application program.
Fig. 3 is the flow chart of the network legal power control method of another kind of application program according to an exemplary embodiment, can also following steps on basis embodiment illustrated in fig. 1:
In step S210, show to user with the application list wrapping identify label by name.
User can be arranged in advance to the network legal power of the application program in intelligent terminal, and such as, for the application program needing flow-rate ratio more, user can forbid that this application program uses mobile cellular network accesses network.
In exemplary embodiment of the present disclosure, using the bag name of application program as the identify label of application program, because bag name is the unique identifier of application program, different application programs all can be distinguished by bag name.
Certainly, some users infrequently used and the system application of mobile flow can not be wasted, also several set of applications can be synthesized an application rollouts to user.
In step S220, obtain the network legal power rule that user is arranged the application program in described the application list.
User, according to the application list to wrap identify label by name, arranges the network legal power of application program, obtains network legal power rule.
The network legal power control method of the application program that the present embodiment provides, is called identify label with the bag of application program and distinguishes application program, and user arranges the network legal power rule of application program.Distinguish application program to wrap identify label by name, distinguish granularity very meticulous, the network legal power rule of different application accurately can be set, there will not be the phenomenon that the network legal power of the application program of shared UID rule can not be arranged respectively.So that the follow-up bag according to application program is called the identify label of application program, according to the networking state of the network legal power rule control application program that user pre-sets, control accuracy is higher.
Fig. 4 is the network legal power control device block diagram of a kind of application program according to an exemplary embodiment, this application of installation in intelligent terminal, such as smart mobile phone.As shown in Figure 4, this device comprises the first acquisition module 110, second acquisition module 120 and control module 130.
First acquisition module 110 is configured to, and when application requests interconnection network being detected, obtains the bag name of described application program.
When detecting that application program accesses the system call relevant to network, determine application requests interconnection network.Corresponding process record data can be obtained by the PID that application program is corresponding, from process record data, extract the bag name of this application program.
In the disclosure one exemplary embodiment, as shown in Figure 5, described first acquisition module 110 comprises the first acquisition submodule 111 and extracts submodule 112.
First obtains submodule 111 is configured to, and obtains the current process record data of described application program.
In the disclosure one exemplary embodiment, as shown in Figure 6, described first acquisition submodule 111 comprises: process identification (PID) obtains submodule 1111 and process record data obtain submodule 1112.
Described process identification (PID) obtains submodule 1111 and is configured to, and obtains the current process identification that described application program is corresponding.Described process record data obtain submodule 1112 and are configured to, the open interface provided by application program scheduling center in described intelligent terminal, the process record data that the described current process identification of intracardiac acquisition is corresponding from described application program scheduling.
Described extraction submodule 112 is configured to, and from the current process record data of described application program, extracts the bag name of described application program.
Described second acquisition module 120 is configured to, and obtains the network legal power rule of described application program according to the bag name of described application program.
In the disclosure one exemplary embodiment, as shown in Figure 7, the second acquisition module 120 comprises the second acquisition submodule 121 and inquiry submodule 122.
Described second obtains submodule 121 is configured to, and obtains the network legal power regular collection that user pre-sets according to the bag name of application program.Described inquiry submodule 122 is configured to, and searches the network legal power rule of the bag name correspondence of the application program of operation from described network legal power regular collection.
Described control module 130 is configured to, and according to the network legal power rule of described application program, controls the networking state of described application program.
The network legal power control device of the application program that the present embodiment provides, when application requests interconnection network, obtains the bag name that this application program is corresponding, and obtains network legal power rule corresponding to this application program according to the bag name of this application program; Then, according to the network legal power rule of this application program, the networking state of this application program is controlled.Bag name is the unique identifier of application program, and bag name corresponding to different application is also different, can distinguish different application programs by bag name.With the networking state of the bag name controlling application program of application program, there will not be the phenomenon that the networking state of the application program of a shared UID can not control respectively, and, there will not be network legal power rule cannot backup to the phenomenon of another intelligent terminal.Therefore, be called the networking state of the identify label controlling application program of application program with the bag of application program, control accuracy is higher.
Fig. 8 is the network legal power control device block diagram of the another kind of application program according to an exemplary embodiment, and this device can also comprise on basis embodiment illustrated in fig. 4: display module 210 and the 3rd acquisition module 220.
Display module 210 is configured to, and shows to user with the application list wrapping identify label by name.
User can be arranged in advance to the network legal power of the application program in intelligent terminal, and such as, for the application program needing flow-rate ratio more, user can forbid that this application program uses mobile cellular network accesses network.Using the bag name of application program as the identify label of application program, because bag name is the unique identifier of application program, different application programs all can be distinguished by bag name.
3rd acquisition module 220 is configured to, and obtains the network legal power rule that user is arranged the application program in described the application list.
User, according to the application list to wrap identify label by name, arranges the network legal power of application program, obtains network legal power rule.
First acquisition module 110 is configured to, and when application requests interconnection network being detected, obtains the bag name of described application program.
Second acquisition module 120 is configured to, and obtains the network legal power rule of described application program according to the bag name of described application program.
Control module 130 is configured to, and according to the network legal power rule of described application program, controls the networking state of described application program.
The network legal power control device of the application program that the present embodiment provides, is called identify label with the bag of application program and distinguishes application program, and user arranges the network legal power rule of application program.Distinguish application program to wrap identify label by name, distinguish granularity very meticulous, the network legal power rule of different application accurately can be set, there will not be the phenomenon that the network legal power of the application program of shared UID rule can not be arranged respectively.So that the follow-up bag according to application program is called the identify label of application program, according to the networking state of the network legal power rule control application program that user pre-sets, control accuracy is higher.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 9 is the block diagram of the device 800 of a kind of network legal power control method for realizing application program according to an exemplary embodiment.Such as, device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
As shown in Figure 9, device 800 can comprise following one or more assembly: processing components 802, memory 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor cluster 814, and communications component 816.
The integrated operation of the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing components 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Memory 804 is configured to store various types of data to be supported in the operation of device 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 806 is device 800 provide electric power.Power supply module 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When device 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loud speaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 814 comprises one or more transducer, for providing the state estimation of various aspects for device 800.Such as, sensor cluster 814 can detect the opening/closing state of device 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right checkout gear 800 of sensor cluster 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the variations in temperature of device 800 orientation or acceleration/deceleration and device 800.Sensor cluster 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make terminal equipment can perform a kind of network legal power control method of application program, described method comprises:
When application requests interconnection network being detected, obtain the bag name of described application program;
The network legal power rule of described application program is obtained according to the bag name of described application program;
According to the network legal power rule of described application program, control the networking state of described application program.
The network legal power control method of the application program that the present embodiment provides, when application requests interconnection network, obtains the bag name that this application program is corresponding, and obtains network legal power rule corresponding to this application program according to the bag name of this application program; Then, according to the network legal power rule of this application program, the networking state of this application program is controlled.Bag name is the unique identifier of application program, and bag name corresponding to different application is also different, can distinguish different application programs by bag name.With the networking state of the bag name controlling application program of application program, there will not be the phenomenon that the networking state of the application program of a shared UID can not control respectively, and, there will not be network legal power rule cannot backup to the phenomenon of another intelligent terminal.Therefore, be called the networking state of the identify label controlling application program of application program with the bag of application program, control accuracy is higher.
In the disclosure one exemplary embodiment, the bag name of the described application program of described acquisition, comprising:
Obtain the current process record data of described application program;
From the current process record data of described application program, extract the bag name of described application program.
In the disclosure one exemplary embodiment, the current process record data that the described application program of described acquisition is corresponding, comprising:
Obtain the current process identification that described application program is corresponding;
By the open interface that application program scheduling center in described intelligent terminal provides, the process record data that the described current process identification of intracardiac acquisition is corresponding from described application program scheduling.
In the disclosure one exemplary embodiment, the described bag name according to described application program obtains the network legal power rule of described application program, comprising:
Obtain the network legal power regular collection that user pre-sets according to the bag name of application program;
The network legal power rule of the bag name correspondence of the application program of operation is searched from described network legal power regular collection.
In the disclosure one exemplary embodiment, described method also comprises:
Show to user with the application list wrapping identify label by name;
Obtain the network legal power rule that user is arranged the application program in described the application list.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (11)

1. a network legal power control method for application program, is applied in intelligent terminal, it is characterized in that, comprising:
When application requests interconnection network being detected, obtain the bag name of described application program;
The network legal power rule of described application program is obtained according to the bag name of described application program;
According to the network legal power rule of described application program, control the networking state of described application program.
2. method according to claim 1, is characterized in that, the bag name of the described application program of described acquisition, comprising:
Obtain the current process record data of described application program;
From the current process record data of described application program, extract the bag name of described application program.
3. method according to claim 2, is characterized in that, the current process record data that the described application program of described acquisition is corresponding, comprising:
Obtain the current process identification that described application program is corresponding;
By the open interface that application program scheduling center in described intelligent terminal provides, the process record data that the described current process identification of intracardiac acquisition is corresponding from described application program scheduling.
4. the method according to any one of claim 1-3, is characterized in that, the described bag name according to described application program obtains the network legal power rule of described application program, comprising:
Obtain the network legal power regular collection that user pre-sets according to the bag name of application program;
The network legal power rule of the bag name correspondence of the application program of operation is searched from described network legal power regular collection.
5. method according to claim 4, is characterized in that, described method also comprises:
Show to user with the application list wrapping identify label by name;
Obtain the network legal power rule that user is arranged the application program in described the application list.
6. a network legal power control method for application program, is applied in intelligent terminal, it is characterized in that, comprising:
First acquisition module, for when application requests interconnection network being detected, obtains the bag name of described application program;
Second acquisition module, for obtaining the network legal power rule of described application program according to the bag name of described application program;
Control module, for the network legal power rule according to described application program, controls the networking state of described application program.
7. device according to claim 6, is characterized in that, described first acquisition module comprises:
First obtains submodule, for obtaining the current process record data of described application program;
Extract submodule, for from the current process record data of described application program, extract the bag name of described application program.
8. device according to claim 7, is characterized in that, described first obtains submodule comprises:
Process identification (PID) obtains submodule, for obtaining current process identification corresponding to described application program;
Process record data obtain submodule, for the open interface provided by application program scheduling center in described intelligent terminal, and the process record data that the described current process identification of intracardiac acquisition is corresponding from described application program scheduling.
9. the device according to any one of claim 6-8, is characterized in that, described second acquisition module comprises:
Second obtains submodule, for obtaining the network legal power regular collection that user pre-sets according to the bag name of application program;
Inquiry submodule, for searching the network legal power rule of the bag name correspondence of the application program of operation from described network legal power regular collection.
10. device according to claim 9, is characterized in that, described device also comprises:
Display module, for showing to user with the application list wrapping identify label by name;
3rd acquisition module, for obtaining the network legal power rule that user is arranged the application program in described the application list.
11. 1 kinds of terminal equipments, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
When application requests interconnection network being detected, obtain the bag name of described application program;
The network legal power rule of described application program is obtained according to the bag name of described application program;
According to the network legal power rule of described application program, control the networking state of described application program.
CN201510146487.9A 2015-03-31 2015-03-31 Network permission control method and apparatus of application program Pending CN104869569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510146487.9A CN104869569A (en) 2015-03-31 2015-03-31 Network permission control method and apparatus of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510146487.9A CN104869569A (en) 2015-03-31 2015-03-31 Network permission control method and apparatus of application program

Publications (1)

Publication Number Publication Date
CN104869569A true CN104869569A (en) 2015-08-26

Family

ID=53914997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510146487.9A Pending CN104869569A (en) 2015-03-31 2015-03-31 Network permission control method and apparatus of application program

Country Status (1)

Country Link
CN (1) CN104869569A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611532A (en) * 2015-12-29 2016-05-25 小米科技有限责任公司 Network communication processing method and device
CN105682095A (en) * 2015-12-24 2016-06-15 北京奇虎科技有限公司 LAN-based wireless hotspot control method and device
CN105791560A (en) * 2016-02-26 2016-07-20 广东欧珀移动通信有限公司 Data network access control method and user terminal
CN105915504A (en) * 2016-03-29 2016-08-31 联想(北京)有限公司 Electronic device and control method thereof
CN106453907A (en) * 2016-10-19 2017-02-22 广东欧珀移动通信有限公司 Control method and device for terminal application
CN106547634A (en) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 A kind of method and device of striding course communication
CN107346253A (en) * 2016-05-06 2017-11-14 中兴通讯股份有限公司 Using synchronous method and device
CN107548058A (en) * 2017-07-28 2018-01-05 深圳和而泰智能控制股份有限公司 Equipment cut-in method and intelligent terminal
CN107688740A (en) * 2017-08-14 2018-02-13 北京小米移动软件有限公司 Networking control method and device
CN108011860A (en) * 2016-10-28 2018-05-08 华为技术有限公司 A kind of method and device for handling broadcast message
CN108881113A (en) * 2017-05-10 2018-11-23 华为技术有限公司 network connection control method and device
WO2020192447A1 (en) * 2019-03-22 2020-10-01 华为技术有限公司 File access authority authentication method and electronic device
CN112069539A (en) * 2020-09-05 2020-12-11 蔡春梅 Information protection method and artificial intelligence platform based on cloud computing and block chain service

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170495A (en) * 2011-04-07 2011-08-31 宇龙计算机通信科技(深圳)有限公司 Mobile phone application classification management method and device
CN102355667A (en) * 2011-06-30 2012-02-15 北京邮电大学 Method and system for controlling network connection of application programs in mobile intelligent terminal system
CN102711139A (en) * 2012-04-24 2012-10-03 华为终端有限公司 Data flow counting method and terminal
WO2013044088A1 (en) * 2011-09-23 2013-03-28 Research In Motion Limited Managing mobile device applications in a wireless network
CN103763322A (en) * 2014-01-23 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Method and device for controlling process of software and terminals
CN103853981A (en) * 2014-03-31 2014-06-11 广东欧珀移动通信有限公司 Method and device for finding out background networking and power consumption rogue software
CN104038558A (en) * 2014-06-26 2014-09-10 福建伊时代信息科技股份有限公司 Method and system for controlling application networking
CN104104560A (en) * 2014-08-08 2014-10-15 广东欧珀移动通信有限公司 Monitoring method and device for application flow and mobile terminal
CN104221025A (en) * 2012-03-14 2014-12-17 三星电子株式会社 Apparatus and method of controlling permission to applications in portable terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170495A (en) * 2011-04-07 2011-08-31 宇龙计算机通信科技(深圳)有限公司 Mobile phone application classification management method and device
CN102355667A (en) * 2011-06-30 2012-02-15 北京邮电大学 Method and system for controlling network connection of application programs in mobile intelligent terminal system
WO2013044088A1 (en) * 2011-09-23 2013-03-28 Research In Motion Limited Managing mobile device applications in a wireless network
CN104221025A (en) * 2012-03-14 2014-12-17 三星电子株式会社 Apparatus and method of controlling permission to applications in portable terminal
CN102711139A (en) * 2012-04-24 2012-10-03 华为终端有限公司 Data flow counting method and terminal
CN103763322A (en) * 2014-01-23 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Method and device for controlling process of software and terminals
CN103853981A (en) * 2014-03-31 2014-06-11 广东欧珀移动通信有限公司 Method and device for finding out background networking and power consumption rogue software
CN104038558A (en) * 2014-06-26 2014-09-10 福建伊时代信息科技股份有限公司 Method and system for controlling application networking
CN104104560A (en) * 2014-08-08 2014-10-15 广东欧珀移动通信有限公司 Monitoring method and device for application flow and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邢益良等: "《PHP Web和Android开发入门与实践》", 31 August 2014 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105682095A (en) * 2015-12-24 2016-06-15 北京奇虎科技有限公司 LAN-based wireless hotspot control method and device
CN105611532A (en) * 2015-12-29 2016-05-25 小米科技有限责任公司 Network communication processing method and device
CN105611532B (en) * 2015-12-29 2020-02-28 小米科技有限责任公司 Network communication processing method and device
CN105791560A (en) * 2016-02-26 2016-07-20 广东欧珀移动通信有限公司 Data network access control method and user terminal
CN105791560B (en) * 2016-02-26 2019-06-04 广东欧珀移动通信有限公司 A kind of access data network-based control method and user terminal
CN105915504A (en) * 2016-03-29 2016-08-31 联想(北京)有限公司 Electronic device and control method thereof
CN107346253A (en) * 2016-05-06 2017-11-14 中兴通讯股份有限公司 Using synchronous method and device
CN106453907A (en) * 2016-10-19 2017-02-22 广东欧珀移动通信有限公司 Control method and device for terminal application
CN108011860B (en) * 2016-10-28 2020-05-08 华为技术有限公司 Method, device and terminal for processing broadcast message
CN108011860A (en) * 2016-10-28 2018-05-08 华为技术有限公司 A kind of method and device for handling broadcast message
CN106547634A (en) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 A kind of method and device of striding course communication
CN106547634B (en) * 2016-11-28 2020-07-31 武汉斗鱼网络科技有限公司 Cross-process communication method and device
CN108881113A (en) * 2017-05-10 2018-11-23 华为技术有限公司 network connection control method and device
CN107548058A (en) * 2017-07-28 2018-01-05 深圳和而泰智能控制股份有限公司 Equipment cut-in method and intelligent terminal
CN107548058B (en) * 2017-07-28 2020-05-19 深圳和而泰智能控制股份有限公司 Equipment access method and intelligent terminal
CN107688740A (en) * 2017-08-14 2018-02-13 北京小米移动软件有限公司 Networking control method and device
WO2020192447A1 (en) * 2019-03-22 2020-10-01 华为技术有限公司 File access authority authentication method and electronic device
CN112069539A (en) * 2020-09-05 2020-12-11 蔡春梅 Information protection method and artificial intelligence platform based on cloud computing and block chain service

Similar Documents

Publication Publication Date Title
CN104869569A (en) Network permission control method and apparatus of application program
CN104038263A (en) Method and device for establishing Bluetooth connection
CN104991789A (en) Method and apparatus for starting application
CN104105169B (en) From method and the device of the WLAN (wireless local area network) that is dynamically connected
CN104766005A (en) Management method and device for application software access authority
CN105516508A (en) Method and device for activating virtual SIM card
CN104486451A (en) Application program recommendation method and device
CN105183835A (en) Method and apparatus for information marking in social software
CN105068976A (en) Ticket information exhibition method and device
CN105389113A (en) Gesture-based application control method and apparatus and terminal
CN105094904A (en) Application program installation method and device
CN104735670A (en) Network access method and device
CN104837154A (en) Wireless access point control method and device
CN104484438A (en) Image processing method and device
CN105242837A (en) Application page acquisition method and terminal
CN105187671A (en) Recording method and device
CN104881342A (en) Terminal testing method and device
CN105488829A (en) Method and device for generating head portrait
CN104636064A (en) Gesture generating method and device
CN104281368A (en) Interface display method and device and terminal device
CN104991779A (en) Presentation method and device
CN105183571A (en) Function calling method and device
CN105376412A (en) Information processing method and device
CN105426065A (en) Browsing position marking method and device
CN105487746A (en) Search result displaying method and device

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
EXSB Decision made by sipo to initiate substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150826

RJ01 Rejection of invention patent application after publication