Method for extracting third-party application data of Samsung mobile phone

By providing permission files to Samsung's "S Switch Assistant", using adb and MTP protocols, efficient extraction of third-party application data in Samsung mobile phones is achieved, and the problem of the inability to extract third-party application data in the existing technology is solved.

CN119597543APending Publication Date: 2025-03-11XLY SALVATIONDATA TECHNOLOGY INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411687922.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, Samsung mobile phone manufacturers do not open the permission to extract third-party application data, resulting in the inability to effectively extract third-party application data from Samsung mobile phones.

Method used

By providing permission files to Samsung's "S Switch Assistant", it can extract third-party application data. The specific steps include connecting to the phone using adb, installing and starting the S S Change Assistant, opening the hidden menu, connecting to the phone using MTP, and sending a backup request file to extract the required data.

Benefits of technology

Efficiently extract third-party application data from Samsung mobile phones without additional hardware and software, solving the problem that third-party application data cannot be extracted in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597543A_ABST
    Figure CN119597543A_ABST
Patent Text Reader

Abstract

The invention discloses a method for extracting third-party application data of a Samsung mobile phone. The method is characterized by comprising the following steps: S100, connecting a Samsung mobile phone end in an adb mode; s200, judging whether an S machine change assistant app is installed or not, if yes, executing the step S400, and if not, executing the step S300; s300, installing an S mobile phone changing assistant app; s400, opening a hidden menu; s500, starting the S machine change assistant app, judging whether the starting is successful or not, if yes, executing the step S600, and if not, executing the step S100; s600, connecting a Samsung mobile phone terminal in an MTP mode; s700, connecting an S mobile phone changing assistant app and acquiring equipment parameters of the Samsung mobile phone terminal; s800, judging whether the Samsung mobile phone terminal is in a ready state or not, if so, executing the step S900, and otherwise, ending the process; s900, creating a backup request file; sA00: backing up the data of the configured application software to the MTP equipment; sB00: copying the data of the configured application software backed up in the MTP equipment of the Samsung mobile phone terminal; and SC00, ending.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of data backup and restoration and data forensics, and relates to a method for extracting third-party application data of a Samsung mobile phone. Background Art

[0002] Smartphones have become an indispensable tool in daily life and are widely used in online shopping, electronic payment, online social networking, travel navigation, etc. Therefore, by analyzing the data in smartphones, investigators can not only obtain information such as calls, payments, and locations of smartphone users, but can even infer information such as the user's identity, network, economy, and health. Therefore, smartphone evidence collection is becoming increasingly important. In order to extract as complete electronic data as possible, investigators need to use a variety of evidence collection techniques to collect evidence.

[0003] Extraction through adb after the Android is turned on is considered logical extraction. This method is the simplest to operate. As long as the phone is not locked, theoretically, it can be used to extract any application. For the Android system, with the improvement of Android versions, especially after version 6.0, less and less application information can be extracted without root permissions. For high-version Android, logical extraction can no longer fully meet the data backup and restoration and data forensics of Android phones.

[0004] Samsung mobile phone manufacturer has launched a tool "S Switch Assistant" that supports transferring data from other brands of mobile phones to new Samsung Galaxy devices. Samsung "S Switch Assistant" can migrate different types of documents to new Samsung Galaxy devices, including photos, videos, notes, calendar events and even device settings.

[0005] However, in the existing technology, when Samsung's "S Switch Assistant" transfers data from third-party applications, such as WeChat, QQ, etc., due to policy or data security factors, Samsung mobile phone manufacturers do not open up permissions to extract third-party application data, and therefore cannot extract third-party application data.

[0006] Currently, there is no method to extract third-party application data using Samsung's "S Switch Assistant". Summary of the invention

[0007] In view of the shortcomings of the prior art, the present invention proposes a method for extracting third-party application data of Samsung mobile phones, which provides a permission file to Samsung "S Switch Assistant" so that "S Switch Assistant" can extract third-party application data, including the following steps:

[0008] S100: Use adb to connect the computer to the Samsung phone: Enable the developer options and USB debugging on the Samsung phone, use adb to connect to the Samsung phone through the computer;

[0009] S200: Determine whether the Samsung mobile phone has the S Switch Assistant app installed. If yes, execute step S400; otherwise, execute step S300;

[0010] S300: Install the S Switch Assistant app on your Samsung phone;

[0011] S400: Use adb command to create the file .ssmhiddenmenu.enable.true in the / data / local / tmp path of the Samsung phone to enable the hidden menu;

[0012] S500: Start the S Switch Assistant app and determine whether the startup is successful. If yes, execute step S600; otherwise, execute step S100;

[0013] S600: Use MTP to connect to Samsung mobile phone;

[0014] S700: Connect to the S Switch Assistant app and obtain the device parameters of the Samsung mobile phone;

[0015] S800: Determine whether the Samsung mobile phone is in a ready state. If yes, execute step S900. Otherwise, end the process.

[0016] S900: Create a backup request file and configure the application software name and its corresponding application software package name.

[0017] SA00: Using MTP, the command {"header":{"tot":86,"cur":86,"off":0},"payload":"{\"command\":\"make_folder\",\"code\":0,\"path\":[\" / SmartSwitch / OtgBackupTemp / RequestBackup\"]}"} is sent to the Samsung mobile phone. The Samsung mobile phone executes the request of the sent command and backs up the data of the configured application software to the MTP device.

[0018] SB00: Use adb to copy the backed-up application data in the MTP device on the Samsung mobile phone.

[0019] SC00: End.

[0020] Preferably, step S200 includes the following steps:

[0021] S201: The computer sends the adb command pm path com.sec.android.easyMover to the Samsung phone;

[0022] S202: Determine whether there is an installation path for the S Phone Switching Assistant app. If so, execute step S400; otherwise, execute step S300.

[0023] Preferably, step S500 includes the following steps:

[0024] S501: The computer sends the adb command monkey-pcom.sec.android.easyMover-v1 to the Samsung mobile phone;

[0025] S502: Determine whether the startup is successful, if so, execute step S600, otherwise, execute step S100.

[0026] Preferably, step S700 includes the following steps:

[0027] S701: Using MTP, the computer sends the command {"command":"launch_ssm","code":0,"type":"PHONE"} to the Samsung phone to connect to the S Switch Assistant app;

[0028] S702: Using the MTP method, the computer sends the command {"command":"receive_file","code":0,"path":" / SmartSwitch / OtgBackupTemp / DeviceInfo.json"} to the Samsung mobile phone to read the returned information and save the returned information as the device parameters of the Samsung mobile phone.

[0029] Preferably, step S800 includes the following steps:

[0030] S801: Using MTP, the computer sends the command {"command":"check_app_status","code":0} to the Samsung mobile phone;

[0031] S802: Determine whether the return to rest of the Samsung mobile phone contains "status": "IDLE". If so, it means that the Samsung mobile phone is in ready state, and execute step S900. Otherwise, end the process.

[0032] Preferably, step S900 includes the following steps:

[0033] S901: The format of creating a backup request file is as follows:

[0034]

[0035] S902: Fill in the application software name into the double quotation marks "" after the colon in the corresponding line of "ApkName", and fill in the application software package name into the double quotation marks "" after the colon in the corresponding line of "ApkPkgName".

[0036] Preferably, in step S400, the ApkDataMove option in the pop-up interface of the Samsung mobile phone is executed to open the hidden menu.

[0037] The beneficial effect of the present invention is that third-party application data of Samsung mobile phones can be efficiently extracted without additional hardware and software and without additional manpower investment. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 is a flow chart of the present invention;

[0039] Figure 2 This is a screenshot of the options of the pop-up interface on a Samsung mobile phone in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The terms used in this application are as follows:

[0041] MTP: Media Transfer Protocol

[0042] adb: The full name is Android Debug Bridge, which acts as a debugging bridge and is a client-server program.

[0043] The present invention will be further described below in conjunction with the accompanying drawings and embodiments. Figure 1 As shown, the method of the present invention comprises the following steps:

[0044] S100: Connect the computer to the Samsung phone using adb: Enable the developer options and USB debugging on the Samsung phone; USB debugging means allowing the computer to connect to the phone via USB. In this way, you can use adb to connect to the Samsung phone through the computer;

[0045] It is worth noting that in the steps of the present invention, the screen lock of the Samsung mobile phone needs to be cancelled to avoid the inconvenience caused by automatic screen lock of the Samsung mobile phone.

[0046] S200: Determine whether the Samsung mobile phone has the S Switch Assistant app installed. If yes, execute step S400; otherwise, execute step S300;

[0047] In the embodiment of the present invention, step S200 adopts the following steps:

[0048] S201: The computer sends the adb command pm path com.sec.android.easyMover to the Samsung phone;

[0049] S202: Determine whether there is an installation path for the S Phone Switching Assistant app. If so, execute step S400; otherwise, execute step S300.

[0050] S300: Install the S Switch Assistant app on your Samsung phone;

[0051] In the embodiment of the present invention, the adb method is used to send instructions, the installation package of the "S Phone Change Assistant" apk is pushed to the Samsung mobile phone, and the "insert" instruction is sent to install the "S Phone Change Assistant" apk.

[0052] S400: Use adb to send commands and create the file .ssmhiddenmenu.enable.true in the / data / local / tmp path of the Samsung phone to enable the hidden menu.

[0053] Figure 2 FIG. 1 shows a screenshot of the options of the pop-up interface on a Samsung mobile phone in an embodiment of the present invention. Figure 2 As shown, when the interface pops up on the Samsung mobile phone, select the ApkDataMove option to execute it and the hidden menu will be opened.

[0054] S500: Start the S Switch Assistant app and determine whether the startup is successful. If yes, execute step S600; otherwise, execute step S100;

[0055] In the embodiment of the present invention, step S500 adopts the following steps:

[0056] S501: The computer sends the adb command monkey-pcom.sec.android.easyMover-v1 to the Samsung mobile phone;

[0057] S502: Determine whether the startup is successful, if so, execute step S600, otherwise, execute step S100.

[0058] S600: Use MTP to connect to Samsung mobile phone;

[0059] S700: Connect to the S Switch Assistant app and obtain device parameters on the Samsung phone.

[0060] In the embodiment of the present invention, step S700 adopts the following steps:

[0061] S701: Using MTP, the computer sends the command {"command":"launch_ssm","code":0,"type":"PHONE"} to the Samsung phone to connect to the S Switch Assistant app;

[0062] S702: Using MTP, the computer sends the command {"command":"receive_file","code":0,"path":" / SmartSwitch / OtgBackupTe mp / DeviceInfo.json"} to the Samsung mobile phone to read the returned information and save it as the device parameters of the Samsung mobile phone.

[0063] S800: Determine whether the Samsung mobile phone is in a ready state. If so, execute step S900; otherwise, end the process.

[0064] In the embodiment of the present invention, step S800 includes the following steps:

[0065] S801: Using MTP, the computer sends the command {"command":"check_app_status","code":0} to the Samsung mobile phone;

[0066] S802: Determine whether the return to rest of the Samsung mobile phone contains "status": "IDLE". If so, it means that the Samsung mobile phone is in ready state, and execute step S900. Otherwise, end the process.

[0067] S900: Create a backup request file and configure the application software name and its corresponding application software package name.

[0068] In the embodiment of the present invention, step S900 includes the following steps:

[0069] S901: The format of creating a backup request file is as follows:

[0070]

[0071] S902: Fill in the application software name into the double quotation marks "" after the colon in the corresponding line of "ApkName", and fill in the application software package name into the double quotation marks "" after the colon in the corresponding line of "ApkPkgName".

[0072] For example, if you want to extract WeChat data (e.g., chat history, etc.) from a Samsung phone, the backup request file is:

[0073]

[0074]

[0075] Among them, com.tencent.mm is the name of the WeChat software package.

[0076] For example, if you want to extract the data of WeChat QQ in a Samsung phone (for example, chat history, etc.), the backup request file is:

[0077]

[0078] Among them, com.tencent.mobileqq is the name of the QQ software package.

[0079] SA00: Using MTP, the command {"header":{"tot":86,"cur":86,"off":0},"payload":"{\"command\":\"make_folder\",\"code\":0,\"path\":[\" / SmartSwitch / OtgBackupTemp / RequestBackup\"]}"} is sent to the Samsung mobile phone. The Samsung mobile phone executes the request of the sent command and backs up the data of the configured application software to the MTP device.

[0080] SB00: Use adb to copy the backed-up application data in the MTP device on the Samsung mobile phone.

[0081] SC00: End.

[0082] The method provided by the present invention solves the technical problem that there is no method for extracting third-party application data using Samsung's "S Switch Assistant" in the prior art.

[0083] It should be understood that the present invention is not limited to the above examples. For those skilled in the art, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for extracting third-party application data from a Samsung mobile phone, characterized in that The following steps are involved: S100: Use adb to connect the computer to the Samsung phone: Enable the developer options and USB debugging on the Samsung phone, use adb to connect to the Samsung phone through the computer; S200: Determine whether the Samsung mobile phone has the S Switch Assistant app installed. If yes, execute step S400; otherwise, execute step S300; S300: Install the S Switch Assistant app on your Samsung phone; S400: Use adb command to create the file .ssmhiddenmenu.enable.true in the / data / local / tmp path of the Samsung phone to enable the hidden menu; S500: Start the S Switch Assistant app and determine whether the startup is successful. If yes, execute step S600; otherwise, execute step S100; S600: Use MTP to connect to Samsung mobile phone; S700: Connect to the S Switch Assistant app and obtain the device parameters of the Samsung mobile phone; S800: Determine whether the Samsung mobile phone is in a ready state. If so, execute step S900. Otherwise, end the process. S900: Create a backup request file and configure the application software name and its corresponding application software package name; SA00: Using MTP, the command {"header":{"tot":86,"cur":86,"off":0},"payload":"{\"command\":\"make_folder\",\"code\":0,\"path\":[\" / SmartSwitch / OtgBackupTemp / RequestBackup\"]}"} is sent to the Samsung mobile phone. The Samsung mobile phone executes the request of the sent command and backs up the data of the configured application software to the MTP device. SB00: Use adb to copy the data of the configured application software that has been backed up in the MTP device on the Samsung mobile phone; SC00: End.

2. A method for extracting third-party application data of Samsung mobile phone according to claim 1, characterized in that: Step S200 includes the following steps: S201: The computer sends the adb command pm path com.sec.android.easyMover to the Samsung phone; S202: Determine whether there is an installation path for the S Phone Switching Assistant app. If so, execute step S400; otherwise, execute step S300.

3. The method for extracting third-party application data of a Samsung mobile phone according to claim 1, characterized in that: Step S500 includes the following steps: S501: The computer sends the adb command monkey-pcom.sec.android.easyMover-v 1 to the Samsung phone; S502: Determine whether the startup is successful, if so, execute step S600, otherwise, execute step S100.

4. The method for extracting third-party application data of a Samsung mobile phone according to claim 1, characterized in that: Step S700 includes the following steps: S701: Using MTP, the computer sends the command {"command":"launch_ssm","code":0,"type":"PHONE"} to the Samsung phone to connect to the S Switch Assistant app; S702: Using MTP, the computer sends the command {"command":"receive_file","code":0,"path":" / SmartSwitch / OtgBackupTe mp / DeviceInfo.json"} to the Samsung mobile phone to read the returned information and save it as the device parameters of the Samsung mobile phone.

5. The method for extracting third-party application data of a Samsung mobile phone according to claim 1, characterized in that: Step S800 includes the following steps: S801: Using MTP, the computer sends the command {"command":"check_app_status","code":0} to the Samsung mobile phone; S802: Determine whether the return to rest of the Samsung mobile phone contains "status": "IDLE". If so, it means that the Samsung mobile phone is in ready state, and execute step S900. Otherwise, end the process.

6. The method for extracting third-party application data of a Samsung mobile phone according to claim 1, characterized in that: Step S900 includes the following steps: S901: The format of creating a backup request file is as follows: S902: Fill in the application software name into the double quotation marks "" after the colon in the corresponding line of "ApkName", and fill in the application software package name into the double quotation marks "" after the colon in the corresponding line of "ApkPkgName".

7. The method for extracting third-party application data of a Samsung mobile phone according to claim 1, characterized in that: In step S400, execute the ApkDataMove option in the pop-up interface of the Samsung mobile phone to open the hidden menu.

Citation Information

Patent Citations

  • Method for communication between browser and mobile terminal and browser device

    CN104461559A

  • Microdevice for secretly extracting information of Android mobile phone and extraction method

    CN105005474A