Data extraction method and device
By bypassing permission restrictions using the target permission management application in the electronic device of the Android system, the problem of data extraction failure caused by the lack of data permissions is solved, and the successful and efficient adaptation of data extraction is achieved.
Patent Information
- Application Number
- CN202310871281.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-14
- Publication Date
- 2025-01-14
AI Technical Summary
The existing data extraction methods fail to extract due to the lack of data permissions during the electronic evidence collection process, especially when the suspect conceals data permissions.
By installing the target permission management application in the electronic device of the Android system, the system is used to bypass the permission restrictions of the system application layer, obtain the data extraction permissions of the data application to be extracted, and extract the data content in the sandbox space.
It realizes that data can be extracted successfully without the permissions of certain application data, avoids data extraction failure caused by permission restrictions, and is perfectly adapted to the Android system without the need to compile applications from scratch, reducing time consumption.
Smart Images

Figure CN119312356A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data extraction method and device. Background Art
[0002] In the process of electronic evidence collection, it is generally necessary to carry out under the control of the operating system carried by the electronic device. In this process, the operating system will manage the data according to the permission settings of the original device owner. This leads to the need for certain data permissions to extract data in the process of electronic evidence collection.
[0003] At present, the existing data extraction methods generally require obtaining data permissions from the original device owner, and then extracting the data content in the electronic device based on the data permissions. However, in actual applications, in some cases, it is impossible to obtain the data permissions from the original device owner. For example, in the process of electronic evidence collection, the suspect may not provide the relevant data permissions of his electronic device in order to evade punishment and conceal evidence. This leads to the problem that the data extraction process fails due to the lack of data permissions for one or some applications. Summary of the invention
[0004] The embodiments of the present application provide a data extraction method and device, the main purpose of which is to implement a data extraction method to solve the problem of data extraction failure caused by lack of data permissions in the existing data extraction process.
[0005] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0006] In a first aspect, the present application provides a data extraction method, which is applied to an electronic device equipped with an Android system, and the method comprises:
[0007] Obtaining data extraction permissions for the application of the data to be extracted through a target permission management application installed in the electronic device; wherein the target permission management application is developed based on a native permission management application in the Android system, and the target permission management application is used to bypass the data permission restrictions set by the system application layer through the system bottom layer of the electronic device;
[0008] The data content in the data application to be extracted is acquired based on the data extraction authority of the data application to be extracted, and the data content is output.
[0009] Optionally, the Android system includes at least one derivative system obtained by modifying the native Android system, and the electronic device is equipped with the derivative system;
[0010] Before obtaining the data extraction permission of the application of the data to be extracted through the target permission management application installed in the electronic device, the method further includes:
[0011] Determine the derivative system of the electronic device, and obtain the target permission management application corresponding to the derivative system in a preset correspondence relationship based on the derivative system, wherein the preset correspondence relationship includes the permission management application corresponding to each derivative system.
[0012] Optionally, determining the derivative system of the electronic device, and acquiring a target permission management application corresponding to the derivative system in a preset corresponding relationship based on the derivative system includes:
[0013] Based on the target device model of the electronic device, obtaining a target derived system identifier corresponding to the target device model from a device database, wherein the device database contains each device model and its corresponding derived system identifier;
[0014] Based on the target derivative system identifier, a target permission management application corresponding to the target derivative system identifier is obtained in a preset system correspondence relationship, wherein the preset system correspondence relationship includes each derivative system identifier and a corresponding permission management application.
[0015] Optionally, obtaining the data extraction permission of the application of the data to be extracted through the target permission management application installed in the electronic device includes:
[0016] Installing the target permission management application into the electronic device, and detecting whether the derivative system of the electronic device is consistent with the derivative system adapted by the target permission management application;
[0017] Optionally, obtaining the data extraction permission of the application for which the data is to be extracted through the target permission management application installed in the electronic device includes:
[0018] In the case where the target permission management application is installed in the electronic device, starting the target permission management application;
[0019] Based on user instructions, the target permission management application is controlled to enter the sandbox space of the application to be extracted data, and obtain data extraction permissions of the sandbox space, wherein the sandbox space is a data storage space separately opened by the electronic device for each application.
[0020] Optionally, controlling the target permission management application to enter the sandbox space of the application for extracting data based on a user instruction includes:
[0021] Controlling the target permission management application to traverse each application in the electronic device in turn, and detecting whether the application identifier of the sandbox space currently entered by the target permission management application is consistent with the application identifier included in the user instruction;
[0022] When it is determined that the application identifier of the sandbox space currently entered by the target permission management application is consistent with the application identifier included in the user instruction, it is determined that the target permission management application has entered the sandbox space of the application for data to be extracted.
[0023] When it is determined that the application identifier of the sandbox space entered by the current target permission management application is inconsistent with the application identifier included in the user instruction, continue to enter the sandbox space of the next application until the application identifier of the sandbox space entered by the application is consistent with the application identifier included in the user instruction.
[0024] Optionally, acquiring the data content in the data application to be extracted based on the data extraction authority of the data application to be extracted, and outputting the data content includes:
[0025] In the sandbox space of the application of the data to be extracted, the data content is obtained through the data extraction permission, and the data content is exported through a preset export tool, wherein the preset export tool is a native built-in data export tool in the Android system.
[0026] Optionally, before exporting the data content through a preset export tool, the method further includes:
[0027] Detecting the data volume of the data content, and when determining that the data volume exceeds a preset threshold, grouping and compressing the data content to obtain a plurality of grouping compression packages corresponding to the data content;
[0028] The exporting of the data content through a preset export tool includes:
[0029] The plurality of grouped compressed packages are exported through the preset export tool.
[0030] Optionally, before obtaining the data extraction permission of the application of the data to be extracted through the target permission management application installed in the electronic device, the method further includes:
[0031] Determine the application type of the data application to be extracted based on the user instruction, wherein the application type includes an application entity and an application clone;
[0032] When it is determined that the application type is the application clone, obtaining the clone identifier of the application to be extracted data from the application table in the application layer of the electronic device;
[0033] The step of obtaining the data extraction permission of the application of the data to be extracted through the target permission management application installed in the electronic device includes:
[0034] The target permission management application is started, and among the multiple applications in the electronic device, the target permission management application is controlled to enter the clone sandbox space of the application clone of the application to be extracted data based on user instructions, and obtain data extraction permissions of the clone sandbox space.
[0035] In a second aspect, the present application further provides a data extraction device, which is applied to an electronic device equipped with an Android system, and the device comprises:
[0036] An acquisition unit, used to acquire data extraction permissions of an application for data to be extracted through a target permission management application installed in the electronic device; wherein the target permission management application is developed based on a native permission management application in the Android system, and the target permission management application is used to bypass data permission restrictions set by a system application layer through a system bottom layer of the electronic device;
[0037] The extraction unit is used to obtain the data content in the data application to be extracted based on the data extraction authority of the data application to be extracted, and output the data content.
[0038] Optionally, the Android system includes at least one derivative system obtained by modifying the native Android system, and the electronic device is equipped with the derivative system;
[0039] The device also includes:
[0040] The application acquisition unit is used to determine the derivative system of the electronic device and acquire the target permission management application corresponding to the derivative system in a preset correspondence relationship based on the derivative system. The preset correspondence relationship includes the permission management application corresponding to each derivative system.
[0041] Optionally, the application acquisition unit includes:
[0042] A first acquisition module, configured to acquire, based on a target device model of the electronic device, a target derived system identifier corresponding to the target device model from a device database, wherein the device database includes each device model and its corresponding derived system identifier;
[0043] The second acquisition module is used to acquire the target permission management application corresponding to the target derivative system identifier in the preset system correspondence relationship based on the target derivative system identifier, wherein the preset system correspondence relationship includes each derivative system identifier and the corresponding permission management application.
[0044] Optionally, the acquisition unit includes:
[0045] A detection module, used to install the target permission management application into the electronic device and detect whether the derivative system of the electronic device is consistent with the derivative system adapted by the target permission management application;
[0046] The acquisition module is used to acquire the data extraction authority of the data application to be extracted through the target authority management application if the derivative system of the electronic device is consistent with the derivative system adapted by the target authority management application.
[0047] Optionally, the acquisition unit further includes:
[0048] A starting module, used to start the target permission management application when the target permission management application is installed in the electronic device;
[0049] The execution module is used to control the target permission management application to enter the sandbox space of the application to be extracted data based on user instructions, and obtain data extraction permissions from the sandbox space, wherein the sandbox space is a data storage space separately opened by the electronic device for each application.
[0050] Optionally, the execution module includes:
[0051] a detection submodule, used to control the target permission management application to traverse each application in the electronic device in turn, and detect whether the application identifier of the sandbox space currently entered by the target permission management application is consistent with the application identifier included in the user instruction;
[0052] The determination submodule is used to determine that the target permission management application has entered the sandbox space of the application to be extracted data when it is determined that the application identifier of the sandbox space entered by the current target permission management application is consistent with the application identifier included in the user instruction.
[0053] The execution submodule is used to continue entering the sandbox space of the next application until the application identifier of the sandbox space entered by the target permission management application is consistent with the application identifier contained in the user instruction when it is determined that the application identifier of the sandbox space entered by the current target permission management application is inconsistent with the application identifier contained in the user instruction.
[0054] Optionally, the extraction unit is further specifically used to obtain the data content through the data extraction permission in the sandbox space of the data application to be extracted, and export the data content through a preset export tool, wherein the preset export tool is a native built-in data export tool in the Android system.
[0055] Optionally, the device further comprises:
[0056] A packet compression unit, configured to detect the data volume of the data content, and when it is determined that the data volume exceeds a preset threshold, perform packet compression on the data content to obtain a plurality of packet compression packets corresponding to the data content;
[0057] The extraction unit is further specifically configured to export the plurality of grouped compression packages through the preset export tool.
[0058] Optionally, the device further comprises:
[0059] A determination unit, configured to determine the application type of the data application to be extracted based on a user instruction, wherein the application type includes an application entity and an application clone;
[0060] an identification acquisition unit, configured to acquire, when determining that the application type is the application clone, an identification of the clone of the application to be extracted from an application table in the application layer of the electronic device;
[0061] The acquisition unit is also specifically used to start the target permission management application, and among multiple applications in the electronic device, control the target permission management application to enter the clone sandbox space of the application clone of the data to be extracted based on user instructions, and obtain data extraction permissions from the clone sandbox space.
[0062] In a third aspect, an embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the data extraction method of the terminal device described in the first aspect.
[0063] In a fourth aspect, an embodiment of the present application provides a data extraction device, which includes a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the data extraction method of the terminal device described in the first aspect is executed.
[0064] By means of the above technical solution, the technical solution provided by this application has at least the following advantages:
[0065] The present application provides a data extraction method and device, which is applied to an electronic device equipped with an Android system. The present application can first obtain the data extraction permission of the data application to be extracted through the target permission management application installed in the electronic device; wherein the target permission management application is developed based on the native permission management application in the Android system, and the target permission management application is used to bypass the data permission restriction set by the system application layer through the system bottom layer of the electronic device; then, based on the data extraction permission of the data application to be extracted, the data content in the data application to be extracted is obtained, and the data content is output, thereby realizing the data extraction function. Compared with the prior art, since the present application directly obtains the data extraction permission of the application through the target permission management application installed in the electronic device during the data extraction process, and since the target permission management application is developed based on the native permission management application in the Android system, it can bypass the permission restriction set by the system application layer from the system bottom layer, thereby ensuring that in the process of extracting data, it is not necessary to consider the permission restriction set by each application at the system application layer, and the data acquisition function can be realized directly from the system bottom layer, solving the problem of data extraction failure caused by the lack of data permission of a certain application or some applications in the prior art. In addition, since the above-mentioned method of the present application can be directly executed using the target permission management application during the execution process, and the target permission management application is developed based on the native permission management application of the Android system, this ensures that perfect adaptation with the Android system can be achieved during the data extraction process, and there is no need to compile the application from scratch, thereby ensuring that the data extraction function can be accurately implemented and reducing the time consumption caused by compiling applications of such functions.
[0066] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, which can be implemented in accordance with the contents of the specification, and to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0068] Figure 1 A flow chart of a data extraction method provided by an embodiment of the present application is shown;
[0069] Figure 2 Another data extraction method flow chart provided by an embodiment of the present application is shown;
[0070] Figure 3 A block diagram showing a data extraction device provided in an embodiment of the present application is shown;
[0071] Figure 4 A block diagram showing the composition of another data extraction device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0072] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0073] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0074] The present application embodiment provides a data extraction method, which is applied to a device having a production environment and a development environment. Figure 1 As shown, the method includes:
[0075] 101. Obtain data extraction permission of an application for which data is to be extracted through a target permission management application installed in an electronic device.
[0076] The target permission management application is developed based on a native permission management application in the Android system, and the target permission management application is used to bypass data permission restrictions set by a system application layer through the bottom layer of the electronic device.
[0077] In this embodiment, the target permission management application can be specifically a run-as running program, which is developed from a permission management program that comes with the native Android system. After running the program, you can freely enter the sandbox space of each application to view and modify the internal information of the application, including databases, XML files and other files in various formats.
[0078] Since the target permission management application is developed based on the native permission management application of the Android system, as long as the electronic device used by the user is equipped with the Android system, the target application can be used to bypass the data permissions set by the system application layer from the bottom layer of the system. In this way, no matter what data management restrictions the user sets in each application, data can be obtained based on the target permission management application.
[0079] Specifically, in the present embodiment, the function of data extraction is mainly realized by directly obtaining the data extraction permission of the application based on the target permission management application. In the present embodiment, the application to be extracted can be understood as the application in the user's electronic device that needs to extract data. Since different applications store data in different areas in the electronic device, the method of this step can be used to extract data from the application perspective, thereby avoiding the process of directly screening data at the data level. At the same time, it also takes into account the data isolation caused by the separate storage area set for each application in the electronic device in the existing electronic device, laying the foundation for the smooth implementation of subsequent data extraction.
[0080] 102. Obtain data content in the data application to be extracted based on the data extraction authority of the data application to be extracted, and output the data content.
[0081] After obtaining the data extraction permission of the data application to be extracted through the target permission management application, you can directly obtain the extraction permission of the data content in the data application to be extracted. Then you can implement the extraction operation based on the method in this step, so as to obtain the data content in the data application to be extracted. Since the main purpose of extracting the data content is to use it for electronic forensics and other scenarios, the data content can be output after it is obtained. Of course, the specific output method includes but is not limited to displaying on a display device, transmitting to a target storage medium for recording, such as a mobile storage medium. Here, there is no specific limitation on the output method, and the operator can select it based on the specific usage scenario.
[0082] The present application provides a data extraction method, which is applied to an electronic device equipped with an Android system. In an embodiment of the present application, the data extraction permission of the data application to be extracted can be first obtained through a target permission management application installed in the electronic device; wherein the target permission management application is developed based on the native permission management application in the Android system, and the target permission management application is used to bypass the data permission restrictions set by the system application layer through the system bottom layer of the electronic device; then the data content in the data application to be extracted is obtained based on the data extraction permission of the data application to be extracted, and the data content is output, thereby realizing the data extraction function. Compared with the prior art, since the present application directly obtains the data extraction permission of the application through the target permission management application installed in the electronic device during the data extraction process, and since the target permission management application is developed based on the native permission management application in the Android system, it can bypass the permission restrictions set by the system application layer from the system bottom layer, thereby ensuring that in the process of extracting data, there is no need to consider the permission restrictions set by each application at the system application layer, and the data acquisition function can be directly realized from the system bottom layer, which solves the problem of data extraction failure caused by the lack of data permission of a certain application or some applications in the prior art. In addition, since the above-mentioned method of the present application can be directly executed using the target permission management application during the execution process, and the target permission management application is developed based on the native permission management application of the Android system, this ensures that perfect adaptation with the Android system can be achieved during the data extraction process, and there is no need to compile the application from scratch, thereby ensuring that the data extraction function can be accurately implemented and reducing the time consumption caused by compiling applications of such functions.
[0083] To explain in more detail below, the present application embodiment provides another data extraction method, which is applied to a device having a production environment and a development environment. Figure 2 As shown, the method includes:
[0084] 201. Determine a derivative system of the electronic device, and obtain a target permission management application corresponding to the derivative system in a preset corresponding relationship based on the derivative system.
[0085] The preset corresponding relationship includes the permission management application corresponding to each of the derivative systems.
[0086] Specifically, the Android system includes at least one derivative system obtained by modifying the Android native system, and the electronic device is equipped with the derivative system.
[0087] In this embodiment, since the Android system installed in the electronic device may not be the native Android system, but a system adjusted and modified by the manufacturer of the electronic device, that is, a derivative system, in this case, in the process of determining the target permission management application, it is necessary to know which Android system the current electronic device is equipped with. Specifically, determining the derivative system of the electronic device, and obtaining the target permission management application corresponding to the derivative system in a preset corresponding relationship based on the derivative system, includes:
[0088] First, based on the target device model of the electronic device, a target derivative system identifier corresponding to the target device model is obtained from a device database, wherein the device database contains each device model and its corresponding derivative system identifier;
[0089] Then, based on the target derivative system identifier, a target permission management application corresponding to the target derivative system identifier is obtained in a preset system correspondence relationship, wherein the preset system correspondence relationship includes each derivative system identifier and a corresponding permission management application.
[0090] Since different operating system versions have corresponding permission management applications during the use of the permission management application, it can be understood here that the Run As programs corresponding to different Android native systems are different. Therefore, in this case, it is necessary to determine which version of the operating system the current electronic device is using. At the same time, since the manufacturers of electronic devices will pre-install the operating system based on the "magic modification" of the native Android system, that is, the derivative system, in this embodiment, the derivative system corresponding to each electronic device can be counted and recorded in advance. After obtaining the device database, the method of this step is used to determine which derivative system corresponds to the current electronic device through the target device model of the current electronic device, that is, the derivative system identifier. For example, when the electronic device is a mobile phone, based on the different performances of different products by mobile phone manufacturers, different mobile phone models will be equipped with different derivative systems, for example, mobile phone model A is equipped with derivative system 1, and mobile phone model B is equipped with derivative system 2. In this way, the derivative system of the electronic device is detected in the device database by the device model of the electronic device, which ensures that the operating system of the electronic device does not need to be identified in this process, but is directly determined based on the model, thereby simplifying the identification process.
[0091] After determining the derivative system identifier, the target permission management application that is compatible with the current electronic device can be determined based on the preset system correspondence. The preset system correspondence includes each derivative system identifier and the permission management application that can perform permission management on the derivative system corresponding to the derivative system identifier. Specifically, the preset system correspondence includes each derivative system name and the file package of the permission management application of the derivative system name. In this way, the target permission management application that can match the currently determined derivative system specifically equipped on the current electronic device can be determined, that is, the Run As program that is compatible with the derivative system currently equipped on the electronic device. This ensures that the target permission management application can run correctly during the subsequent data extraction process, laying the foundation for the normal operation of subsequent functions.
[0092] It should be noted that in this embodiment, the preset system correspondence is obtained in advance through testing, that is, different versions of the permission management application are tested with each derivative system respectively, so as to determine the target permission management application adapted to each derivative system, and then build the relationship between the two as the preset correspondence. Of course, in this process, it is also possible to determine from the manufacturer of the electronic device the permission management application that the derivative system carried by the electronic device it produces can adapt to. Here, the construction process of the preset correspondence includes but is not limited to the above method, which can be selected based on the actual situation of the user.
[0093] 202. Obtain data extraction permission of the application for which data is to be extracted through a target permission management application installed in the electronic device.
[0094] The target permission management application is developed based on a native permission management application in the Android system, and the target permission management application is used to bypass data permission restrictions set by a system application layer through the bottom layer of the electronic device.
[0095] Specifically, the step of obtaining the data extraction permission of the application of the data to be extracted through the target permission management application installed in the electronic device may include:
[0096] Installing the target permission management application into the electronic device, and detecting whether the derivative system of the electronic device is consistent with the derivative system adapted by the target permission management application;
[0097] If they are consistent, the data extraction permission of the application to be extracted data is obtained through the target permission management application.
[0098] In order to ensure the smooth acquisition of subsequent data extraction permissions, in this step, the target permission management application can also be checked again after being installed on the electronic device to determine whether the currently installed target permission management application matches the derivative system of the current electronic device. Specifically, as described in the method described above in this step, it is determined based on whether the derivative system of the current electronic device is consistent with the derivative system adapted by the target permission management application. When it is determined that the two are consistent, it means that the currently installed target permission management application is compatible with the derivative system currently carried by the electronic device, and then the acquisition of data extraction permissions can be performed based on the target permission management application. In this way, it is ensured that the compatibility between the target permission management application and the derivative system is detected before the data extraction permission acquisition operation is performed, thereby avoiding the situation where the target permission management application is not compatible with the current derivative system of the electronic device in some cases, affecting subsequent operations, for example, when some users flash the electronic device and install a derivative system different from the one originally installed in the electronic device by the manufacturer.
[0099] Furthermore, in this step, obtaining the data extraction permission of the application to be extracted data through the target permission management application installed in the electronic device includes:
[0100] First, when the target permission management application is installed in the electronic device, the target permission management application is started;
[0101] Then, based on user instructions, the target permission management application is controlled to enter the sandbox space of the application to be extracted data, and obtain data extraction permissions for the sandbox space, wherein the sandbox space is a data storage space separately opened by the electronic device for each application.
[0102] In actual applications, each application has a separate storage space in the electronic device, namely the sandbox space described in this embodiment. The data content stored in each sandbox space is the data generated when the application corresponding to the sandbox space is actually used. Therefore, the data extraction permission obtained in this step is actually the data extraction permission of the sandbox space of the application for extracting data. At the same time, since there are many such sandbox spaces, especially when the original owner of the electronic device has installed a large number of applications in the electronic device, it is necessary to control the execution of the target permission management application to enter the sandbox space of the application to be extracted through user instructions, so as to avoid the problem of entering the wrong sandbox space and subsequently extracting the data content of the wrong application.
[0103] Furthermore, in this step, controlling the target permission management application to enter the sandbox space of the application to be extracted data based on the user instruction includes:
[0104] Controlling the target permission management application to traverse each application in the electronic device in turn, and detecting whether the application identifier of the sandbox space currently entered by the target permission management application is consistent with the application identifier included in the user instruction;
[0105] When it is determined that the application identifier of the sandbox space currently entered by the target permission management application is consistent with the application identifier included in the user instruction, it is determined that the target permission management application has entered the sandbox space of the application for data to be extracted.
[0106] When it is determined that the application identifier of the sandbox space entered by the current target permission management application is inconsistent with the application identifier included in the user instruction, continue to enter the sandbox space of the next application until the application identifier of the sandbox space entered by the application is consistent with the application identifier included in the user instruction.
[0107] In this embodiment, since the electronic device contains a large number of sandbox spaces, how to enter the correct sandbox space in these sandbox spaces, that is, the sandbox space of the application to be extracted data, rather than the sandbox space of other applications. In this step, the target permission management application can be controlled to traverse multiple applications one by one based on the above method. That is to say, after controlling the target permission management application to enter the sandbox space of each application in turn, the application identifier of the sandbox space is compared with the application identifier indicated by the user instruction. When the two are inconsistent, it means that the wrong sandbox space has been entered, then it will continue to enter the next sandbox space, and so on, until the application identifier of the sandbox space entered is consistent with the application identifier in the user instruction, which means that the sandbox space of the application specified by the user has been entered, that is, the sandbox space of the application to be extracted data.
[0108] After traversing each sandbox space in turn in the above manner, the target permission management application is determined to determine whether it has entered the sandbox space of the application to be extracted based on the comparison between the application identifier of the sandbox space and the application identifier of the user instruction, thereby ensuring that the function of entering the application to be extracted is realized from the perspective of the sandbox space, and ensuring the effect of detection during the search process, avoiding the process of obtaining unnecessary application identifiers in the process of obtaining and identifying all the application identifiers of the sandbox space, and avoiding repeated operations caused by the need for the target permission management application to enter each time the application identifier is obtained, which can improve the detection efficiency of the sandbox space of the application to be extracted as a whole.
[0109] 203. Obtain data content in the data application to be extracted based on the data extraction authority of the data application to be extracted, and output the data content.
[0110] Specifically, acquiring the data content in the data application to be extracted based on the data extraction authority of the data application to be extracted, and outputting the data content includes:
[0111] In the sandbox space of the application of the data to be extracted, the data content is obtained through the data extraction permission, and the data content is exported through a preset export tool, wherein the preset export tool is a native built-in data export tool in the Android system.
[0112] In this embodiment, the preset export tool may be a tool such as busybox, wherein busybox is a plug-in tool that comes with the native Android system and can be used for data transmission, export and other operations. Since the derivative system in actual applications is modified from the native Android system, except for some functional settings required by the manufacturer, all plug-in tools that come with this type of native Android system are retained. Therefore, in this step, the data content obtained in the previous step can be exported based on preset export tools such as busybox, thereby not only ensuring that the preset export tool can adapt to the derivative system, but also avoiding the artificial effects caused by compiling plug-ins or tools of such functions.
[0113] In addition, in some cases, the amount of data contained in the data application to be extracted may be large. In this case, it is also necessary to consider the problem of avoiding data loss during the data export process. Thus, before exporting the data content through a preset export tool in this step, the method further includes:
[0114] Detecting the data volume of the data content, and when determining that the data volume exceeds a preset threshold, grouping and compressing the data content to obtain a plurality of grouping compression packages corresponding to the data content;
[0115] Based on this, the step of exporting the data content through a preset export tool includes:
[0116] The plurality of grouped compressed packages are exported through the preset export tool.
[0117] In this way, when it is determined that the data content is large in size, that is, exceeds the preset threshold, the data content can be grouped and compressed first, that is, the entire larger data content can be split into multiple groups and compressed. This not only ensures that the data is transmitted in the form of grouped compressed packages during the transmission process, thereby reducing the problem of data loss that may exist in the overall transmission process, but also ensures that in certain cases, when the export needs to be paused or interrupted midway, a certain number can be selected from multiple grouped compressed packages for control, thereby improving the flexibility of the content data export process.
[0118] Furthermore, in some cases, the data that the user actually needs to extract is not the main body of a certain application, but may be a clone application of a certain application. For example, in some improved Android systems, different clone applications of a certain application are allowed to exist. Although these clone applications belong to a certain application for mobile phone users (just different accounts), at the system level, they actually utilize the method of modifying the specific identification of the application to make the same application exist in two different sandbox spaces. In this case, when executing the method described in this embodiment, it is also necessary to further confirm whether the data to be extracted belongs to the application main body or the application clone before obtaining the permission of the application of the data to be extracted.
[0119] In view of this, in this embodiment, before obtaining the data extraction permission of the application to be extracted through the target permission management application installed in the electronic device in the aforementioned step 202, the method may further include:
[0120] Determine the application type of the data application to be extracted based on the user instruction, wherein the application type includes an application entity and an application clone;
[0121] When it is determined that the application type is the application clone, obtaining the clone identifier of the application to be extracted data from the application table in the application layer of the electronic device;
[0122] Based on this, the aforementioned step 202 obtains the data extraction permission of the application of the data to be extracted through the target permission management application installed in the electronic device, which can be specifically:
[0123] The target permission management application is started, and among the multiple applications in the electronic device, the target permission management application is controlled to enter the clone sandbox space of the application clone of the application to be extracted data based on user instructions, and obtain data extraction permissions of the clone sandbox space.
[0124] Since the essence of the application clone is to use a separately set sandbox space or container to simulate the existence of another device, so as to install a certain application in both spaces and deceive it into being installed in different devices. However, in the system application layer, the identifiers of the two applications will actually be recorded separately. Of course, in order to avoid confusion in application calls by using the same application identifier, a new identifier will actually be set separately for the clone of the application, that is, the clone identifier described in this embodiment. Therefore, in this embodiment, when it is determined that the user instruction is to extract data from a certain application, it is first necessary to determine the application type of the application to be extracted, that is, to determine whether it is to extract the application clone. When it is determined that the corresponding application data of the application clone needs to be extracted, then the identifier corresponding to the clone, that is, the clone identifier, must be found in the application layer. Then, when obtaining the data extraction permission of the application to be extracted, it is actually necessary to obtain the extraction permission of the clone. In this process, the target permission management application can be started, and then the target permission management application can be controlled to enter the sandbox space corresponding to the clone, that is, the clone sandbox space, so as to obtain the data extraction permission of the clone sandbox space. In addition, it should be noted that in this embodiment, the sandbox space of the clone is only used to distinguish the sandbox space corresponding to the application body. In fact, both belong to the space that is separately opened from the storage space of the electronic device when the application is applied. In essence, there is no difference between the two. In this way, the data extraction function of the application clone is realized by using the above method described in this embodiment, thereby ensuring that when a clone application of a certain application exists on a certain electronic device, the data extraction function of the clone application is realized.
[0125] Furthermore, as a response to the above Figure 1 and Figure 2 In order to realize the method shown in the figure, another embodiment of the present application also provides a data extraction device. The data extraction device embodiment corresponds to the aforementioned method embodiment. For ease of reading, the data extraction device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 3 As shown, the data extraction device can be applied to electronic devices equipped with an Android system, including:
[0126] The acquisition unit 31 may be used to acquire the data extraction permission of the application to be extracted data through the target permission management application installed in the electronic device; wherein the target permission management application is developed based on the native permission management application in the Android system, and the target permission management application may be used to bypass the data permission restriction set by the system application layer through the system bottom layer of the electronic device;
[0127] The extraction unit 32 may be configured to obtain data content in the data application to be extracted based on the data extraction authority of the data application to be extracted, and output the data content.
[0128] Further, such as Figure 4 As shown, the Android system includes at least one derivative system obtained by modifying the native Android system, and the electronic device is equipped with the derivative system;
[0129] The device also includes:
[0130] The application acquisition unit 33 can be used to determine the derivative system of the electronic device, and based on the derivative system, acquire the target permission management application corresponding to the derivative system in a preset correspondence relationship, wherein the preset correspondence relationship includes the permission management application corresponding to each derivative system.
[0131] Further, such as Figure 4 As shown, the application acquisition unit 33 includes:
[0132] The first acquisition module 331 may be configured to acquire, based on the target device model of the electronic device, a target derived system identifier corresponding to the target device model from a device database, wherein the device database includes each device model and its corresponding derived system identifier;
[0133] The second acquisition module 332 can be used to acquire the target permission management application corresponding to the target derivative system identifier in the preset system correspondence based on the target derivative system identifier, wherein the preset system correspondence includes each derivative system identifier and the corresponding permission management application.
[0134] Further, such as Figure 4 As shown, the acquisition unit 31 includes:
[0135] The detection module 311 may be used to install the target permission management application into the electronic device and detect whether the derivative system of the electronic device is consistent with the derivative system adapted by the target permission management application;
[0136] The acquisition module 312 may be used to acquire the data extraction permission of the application to be extracted data through the target permission management application if the derivative system of the electronic device is consistent with the derivative system adapted by the target permission management application.
[0137] Further, such as Figure 4 As shown, the acquisition unit 31 further includes:
[0138] The starting module 313 may be used to start the target permission management application when the target permission management application is installed in the electronic device;
[0139] The execution module 314 can be used to control the target permission management application to enter the sandbox space of the application to be extracted data based on user instructions, and obtain data extraction permissions from the sandbox space, wherein the sandbox space is a data storage space separately opened by the electronic device for each application.
[0140] Further, such as Figure 4 As shown, the execution module 314 includes:
[0141] The detection submodule 3141 may be used to control the target permission management application to sequentially traverse each application in the electronic device, and detect whether the application identifier of the sandbox space currently entered by the target permission management application is consistent with the application identifier included in the user instruction;
[0142] The determination submodule 3142 may be used to determine that the target permission management application has entered the sandbox space of the application to be extracted data when it is determined that the application identifier of the sandbox space entered by the current target permission management application is consistent with the application identifier included in the user instruction.
[0143] The execution submodule 3143 can be used to continue entering the sandbox space of the next application until the application identifier of the sandbox space entered by the target permission management application is consistent with the application identifier contained in the user instruction when it is determined that the application identifier of the sandbox space entered by the current target permission management application is inconsistent with the application identifier contained in the user instruction.
[0144] Further, such as Figure 4 As shown, the extraction unit 32 can also be specifically used to obtain the data content through the data extraction permission in the sandbox space of the data application to be extracted, and export the data content through a preset export tool, wherein the preset export tool is a native built-in data export tool in the Android system.
[0145] Further, such as Figure 4 As shown, the device also includes:
[0146] The grouping compression unit 34 may be used to detect the data volume of the data content, and when it is determined that the data volume exceeds a preset threshold, grouping and compressing the data content to obtain a plurality of grouping compression packets corresponding to the data content;
[0147] The extraction unit 32 may also be specifically configured to export the plurality of grouped compression packages through the preset export tool.
[0148] Optionally, the device further comprises:
[0149] A determination unit 35 may be used to determine the application type of the data application to be extracted based on a user instruction, wherein the application type includes an application entity and an application clone;
[0150] The identification acquisition unit 36 may be configured to acquire the identification of the application to be extracted from the application table in the application layer of the electronic device when the application type is determined to be the application clone;
[0151] The acquisition unit 31 can also be specifically used to start the target permission management application, and among multiple applications in the electronic device, control the target permission management application to enter the clone sandbox space of the application clone of the data to be extracted based on user instructions, and obtain data extraction permissions from the clone sandbox space.
[0152] The embodiment of the present application provides a data extraction method and device, which is applied to an electronic device equipped with an Android system. In the embodiment of the present application, the data extraction permission of the data application to be extracted can be first obtained through the target permission management application installed in the electronic device; wherein the target permission management application is developed based on the native permission management application in the Android system, and the target permission management application is used to bypass the data permission restriction set by the system application layer through the system bottom layer of the electronic device; then the data content in the data application to be extracted is obtained based on the data extraction permission of the data application to be extracted, and the data content is output, thereby realizing the data extraction function. Compared with the prior art, since the present application directly obtains the data extraction permission of the application through the target permission management application installed in the electronic device during the data extraction process, and since the target permission management application is developed based on the native permission management application in the Android system, it can bypass the permission restriction set by the system application layer from the system bottom layer, thereby ensuring that in the process of extracting data, it is not necessary to consider the permission restriction set by each application at the system application layer, and the data acquisition function can be directly realized from the system bottom layer, solving the problem of data extraction failure caused by the lack of data permission of a certain application or some applications in the prior art. In addition, since the above-mentioned method of the present application can be directly executed using the target permission management application during the execution process, and the target permission management application is developed based on the native permission management application of the Android system, this ensures that perfect adaptation with the Android system can be achieved during the data extraction process, and there is no need to compile the application from scratch, thereby ensuring that the data extraction function can be accurately implemented and reducing the time consumption caused by compiling applications of such functions.
[0153] An embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the above-mentioned data extraction method.
[0154] The storage medium may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0155] An embodiment of the present application also provides a data extraction device, which includes a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the above-mentioned data extraction method is executed.
[0156] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining data extraction permissions for a data application to be extracted through a target permission management application installed in the electronic device; wherein the target permission management application is developed based on a native permission management application in the Android system, and the target permission management application is used to bypass data permission restrictions set by a system application layer through a system bottom layer of the electronic device; obtaining data content in the data application to be extracted based on the data extraction permissions of the data application to be extracted, and outputting the data content.
[0157] Furthermore, the Android system includes at least one derivative system obtained by modifying the native Android system, and the electronic device is equipped with the derivative system;
[0158] Before obtaining the data extraction permission of the application of the data to be extracted through the target permission management application installed in the electronic device, the method further includes:
[0159] Determine the derivative system of the electronic device, and obtain the target permission management application corresponding to the derivative system in a preset correspondence relationship based on the derivative system, wherein the preset correspondence relationship includes the permission management application corresponding to each derivative system.
[0160] Further, the determining of the derivative system of the electronic device and acquiring a target permission management application corresponding to the derivative system in a preset corresponding relationship based on the derivative system includes:
[0161] Based on the target device model of the electronic device, obtaining a target derived system identifier corresponding to the target device model from a device database, wherein the device database contains each device model and its corresponding derived system identifier;
[0162] Based on the target derivative system identifier, a target permission management application corresponding to the target derivative system identifier is obtained in a preset system correspondence relationship, wherein the preset system correspondence relationship includes each derivative system identifier and a corresponding permission management application.
[0163] Furthermore, the step of obtaining the data extraction permission of the application for which the data to be extracted is applied through the target permission management application installed in the electronic device includes:
[0164] Installing the target permission management application into the electronic device, and detecting whether the derivative system of the electronic device is consistent with the derivative system adapted by the target permission management application;
[0165] Furthermore, obtaining the data extraction permission of the application to be extracted data through the target permission management application installed in the electronic device includes:
[0166] In the case where the target permission management application is installed in the electronic device, starting the target permission management application;
[0167] Based on user instructions, the target permission management application is controlled to enter the sandbox space of the application to be extracted data, and obtain data extraction permissions of the sandbox space, wherein the sandbox space is a data storage space separately opened by the electronic device for each application.
[0168] Further, the controlling the target permission management application to enter the sandbox space of the application to be extracted data based on the user instruction includes:
[0169] Controlling the target permission management application to traverse each application in the electronic device in turn, and detecting whether the application identifier of the sandbox space currently entered by the target permission management application is consistent with the application identifier included in the user instruction;
[0170] When it is determined that the application identifier of the sandbox space currently entered by the target permission management application is consistent with the application identifier included in the user instruction, it is determined that the target permission management application has entered the sandbox space of the application for data to be extracted.
[0171] When it is determined that the application identifier of the sandbox space entered by the current target permission management application is inconsistent with the application identifier included in the user instruction, continue to enter the sandbox space of the next application until the application identifier of the sandbox space entered by the application is consistent with the application identifier included in the user instruction.
[0172] Further, the acquiring of data content in the data application to be extracted based on the data extraction authority of the data application to be extracted, and outputting the data content includes:
[0173] In the sandbox space of the application of the data to be extracted, the data content is obtained through the data extraction permission, and the data content is exported through a preset export tool, wherein the preset export tool is a native built-in data export tool in the Android system.
[0174] Furthermore, before exporting the data content through a preset export tool, the method further includes:
[0175] Detecting the data volume of the data content, and when determining that the data volume exceeds a preset threshold, grouping and compressing the data content to obtain a plurality of grouping compression packages corresponding to the data content;
[0176] The exporting of the data content through a preset export tool includes:
[0177] The plurality of grouped compressed packages are exported through the preset export tool.
[0178] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program code that initializes the following method steps: obtaining data extraction permissions for a data application to be extracted through a target permission management application installed in the electronic device; wherein the target permission management application is developed based on a native permission management application in the Android system, and the target permission management application is used to bypass data permission restrictions set by a system application layer through the system bottom layer of the electronic device; obtaining data content in the data application to be extracted based on the data extraction permissions of the data application to be extracted, and outputting the data content.
[0179] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0180] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0181] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0182] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0183] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0184] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0185] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0186] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0187] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0188] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A data extraction method, characterized in that: Applied to an electronic device equipped with an Android system, the method comprises: Obtaining data extraction permissions for the application of the data to be extracted through a target permission management application installed in the electronic device; wherein the target permission management application is developed based on a native permission management application in the Android system, and the target permission management application is used to bypass the data permission restrictions set by the system application layer through the system bottom layer of the electronic device; The data content in the data application to be extracted is acquired based on the data extraction authority of the data application to be extracted, and the data content is output.
2. The method according to claim 1, characterized in that The Android system includes at least one derivative system obtained by modifying the Android native system, and the electronic device is equipped with the derivative system; Before obtaining the data extraction permission of the application of the data to be extracted through the target permission management application installed in the electronic device, the method further includes: Determine the derivative system of the electronic device, and obtain the target permission management application corresponding to the derivative system in a preset correspondence relationship based on the derivative system, wherein the preset correspondence relationship includes the permission management application corresponding to each derivative system.
3. The method according to claim 2, characterized in that The determining of the derivative system of the electronic device and acquiring a target permission management application corresponding to the derivative system in a preset corresponding relationship based on the derivative system includes: Based on the target device model of the electronic device, obtaining a target derived system identifier corresponding to the target device model from a device database, wherein the device database contains each device model and its corresponding derived system identifier; Based on the target derivative system identifier, a target permission management application corresponding to the target derivative system identifier is obtained in a preset system correspondence relationship, wherein the preset system correspondence relationship includes each derivative system identifier and a corresponding permission management application.
4. The method according to any one of claims 1 to 3, characterized in that The step of obtaining the data extraction permission of the application for which the data is to be extracted through the target permission management application installed in the electronic device comprises: In the case where the target permission management application is installed in the electronic device, starting the target permission management application; Based on user instructions, the target permission management application is controlled to enter the sandbox space of the application to be extracted data, and obtain data extraction permissions of the sandbox space, wherein the sandbox space is a data storage space separately opened by the electronic device for each application.
5. The method according to claim 1, characterized in that The acquiring the data content in the data application to be extracted based on the data extraction authority of the data application to be extracted, and outputting the data content comprises: In the sandbox space of the application of the data to be extracted, the data content is obtained through the data extraction permission, and the data content is exported through a preset export tool, wherein the preset export tool is a native built-in data export tool in the Android system.
6. The method according to claim 5, characterized in that Before exporting the data content through a preset export tool, the method further includes: Detecting the data volume of the data content, and when determining that the data volume exceeds a preset threshold, grouping and compressing the data content to obtain a plurality of grouping compression packages corresponding to the data content; The exporting of the data content through a preset export tool includes: The plurality of grouped compressed packages are exported through the preset export tool.
7. The method according to claim 1, characterized in that Before obtaining the data extraction permission of the application of the data to be extracted through the target permission management application installed in the electronic device, the method further includes: Determine the application type of the data application to be extracted based on the user instruction, wherein the application type includes an application entity and an application clone; When it is determined that the application type is the application clone, obtaining the clone identifier of the application to be extracted data from the application table in the application layer of the electronic device; The step of obtaining the data extraction permission of the application of the data to be extracted through the target permission management application installed in the electronic device includes: The target permission management application is started, and based on user instructions, the target permission management application is controlled to enter the clone sandbox space of the application clone of the application to be extracted data, and obtain data extraction permissions of the clone sandbox space.
8. A data extraction device, characterized in that: Applicable to an electronic device equipped with an Android system, the device comprises: An acquisition unit, used to acquire data extraction permissions of an application for data to be extracted through a target permission management application installed in the electronic device; wherein the target permission management application is developed based on a native permission management application in the Android system, and the target permission management application is used to bypass data permission restrictions set by a system application layer through a system bottom layer of the electronic device; The extraction unit is used to obtain the data content in the data application to be extracted based on the data extraction authority of the data application to be extracted, and output the data content.
9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the data extraction method according to any one of claims 1 to 7.
10. A data extraction device, characterized in that: The device includes a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the data extraction method according to any one of claims 1 to 7 is executed.