User Id-based Android application traffic filtering method and system
A technology that applies traffic and filtering methods, applied in the field of network security, can solve the problems of difficult analysis of private protocols or encrypted traffic, time-consuming and labor-intensive problems, and achieve the effect of saving manual operation costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach 1
[0034] Specific implementation mode one: refer to figure 1 Describe this implementation mode, a kind of Android application flow filtering method based on userId of this implementation mode, comprises the following steps:
[0035] Step 1, read the userId (user authentication code) of the specified application from the Android device;
[0036] Obtain the said userId from the / data / system / packages.xml file of the Android device. / data / system / packages.xml is generated by PackageManagerService.java, which records all the attributes, permissions and other information of the APK installed in the system. When the APK in the system is installed, deleted, or upgraded, the file will be updated: the information in the file is divided into the following parts:
[0037] 1) permission block: it contains the information of all defined permissions in the system;
[0038] 2) package block: it contains detailed information of all installed apps in the system;
[0039] 3) shared-user block: ...
specific Embodiment approach 2
[0060] Specific implementation mode two, refer to figure 2 Describe this embodiment mode, a kind of Android application flow filtering system based on userId, comprise userId acquisition unit, iptables rule setting unit, and traffic acquisition and storage unit; Said userId acquisition unit is used to acquire the userId of specified application; Said iptables rule The setting unit is used to set iptables rules, label the flow of the userId upstream, put the data packet carrying the flow label into the NFLOG message pool, and set a label for the message pool; the flow acquisition and preservation The unit is used to obtain data packets from the NFLOG message pool and save them as pcap files.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

