Cross-operating system data transmission method and device
By establishing peer-to-peer encrypted communication connections between Android and iOS devices and utilizing cloud service account authentication and Wi-Fi P2P technology, cross-operating system media file sharing is achieved, solving the data security and operational complexity issues existing in current technologies and improving user experience and transmission efficiency.
Patent Information
- Application Number
- CN202511647066.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-11
- Publication Date
- 2026-01-13
AI Technical Summary
Existing technologies struggle to achieve convenient, efficient, and user-friendly cross-operating system media file sharing while ensuring data security, especially for sharing high-frequency media files such as images and videos between Android and iOS devices.
By establishing point-to-point encrypted communication connections in the same wireless network environment, using the same cloud service account for two-way security authentication, dynamically generating one-time session keys, and combining Wi-Fi P2P technology to achieve cross-operating system media file transfer, and providing album access controls and media file lists in social applications, supporting format conversion to adapt to different operating systems.
It enables seamless, secure, and efficient media file sharing between devices with different operating systems, improving ease of operation and user experience, reducing network dependence and operational complexity, and ensuring data security and privacy protection.
Smart Images

Figure CN121333749A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, specifically relating to a cross-operating system data transmission method and apparatus. Background Technology
[0002] With the rapid development of mobile internet technology and the diversified evolution of smart electronic devices, it is now common for users to own electronic devices running different operating systems such as Android and iOS. Against this backdrop, users' demand for cross-operating system data interoperability, especially the sharing of frequently accessed media files such as images and videos, has shown a significant growth trend. This demand is particularly urgent in social application scenarios. Specifically, when users run social applications on Android electronic devices, they may need to frequently access and share media files such as images and videos stored on iOS electronic devices.
[0003] However, due to inherent technical barriers and ecosystem isolation between the Android and iOS operating systems in terms of underlying architecture, data management strategies, and ecosystems, the aforementioned cross-operating system image data sharing faces severe technical challenges in practice. Related technologies struggle to achieve convenient, efficient, and user-friendly cross-operating system media file sharing while ensuring data security. Summary of the Invention
[0004] The purpose of this application is to provide a cross-operating system data transmission method and apparatus to achieve convenient, efficient and user-friendly cross-operating system media file sharing while ensuring data security.
[0005] In a first aspect, embodiments of this application provide a cross-operating system data transmission method, applied to a first electronic device, the method comprising: Receive a first input, which is used to trigger a media selection control in a social application; In response to the first input, it detects whether there is a paired second electronic device in the same wireless network environment. If so, it establishes a point-to-point encrypted communication connection between the first electronic device and the second electronic device; wherein the operating system of the second electronic device is different from that of the first electronic device. After establishing the peer-to-peer encrypted communication connection, the album access control of the second electronic device is displayed in the media selection interface of the social application. Receive a second input, which is used to trigger the album access entry control; In response to the second input, a list of photo media files from the second electronic device is obtained and displayed; Receive a third input, the third input being used to select at least one media file from the album media file list; In response to the third input, the media file selected by the third input is transferred from the second electronic device to the first electronic device via the point-to-point encrypted communication connection.
[0006] Secondly, embodiments of this application provide a cross-operating system data transmission device, applied to a first electronic device, the device comprising: A receiving module is used to receive a first input, which is used to trigger a media selection control in a social application. The detection module is used to detect, in response to the first input, whether there is a paired second electronic device in the same wireless network environment; A module is established to establish a point-to-point encrypted communication connection between the first electronic device and the second electronic device when the detection result of the detection module is yes; wherein the operating system running on the second electronic device is different from that of the first electronic device. The display module is used to display the album access control of the second electronic device in the media selection interface of the social application after the establishment module has established the peer-to-peer encrypted communication connection. The receiving module is also used to receive a second input, which is used to trigger the album access entry control; The display module is further configured to, in response to the second input, acquire and display a list of photo media files from the second electronic device; The receiving module is also configured to receive a third input, the third input being used to select at least one media file from the album media file list; A transmission module is configured to, in response to the third input, transmit the media file selected by the third input from the second electronic device to the first electronic device via the point-to-point encrypted communication connection.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the cross-operating system data transfer method as described in the first aspect.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the cross-operating system data transmission method as described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the cross-operating system data transmission method as described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the steps of the cross-operating system data transfer method as described in the first aspect.
[0011] In this embodiment, a first electronic device receives a first input, which triggers a media selection control in a social application; in response to the first input, it detects whether a paired second electronic device exists in the same wireless network environment; if so, it establishes a peer-to-peer encrypted communication connection between the first and second electronic devices; the operating system of the second electronic device is different from that of the first electronic device; after establishing the peer-to-peer encrypted communication connection, it displays a photo album access control of the second electronic device in the media selection interface of the social application; it receives a second input, which triggers the photo album access control; in response to the second input, it obtains and displays a list of photo album media files from the second electronic device; it receives a third input, which selects at least one media file from the list of photo album media files; in response to the third input, it transmits the media file selected by the third input from the second electronic device to the first electronic device through the peer-to-peer encrypted communication connection.
[0012] As can be seen, in this embodiment of the application, through deep integration at the operating system level, it is possible to natively and seamlessly access and transmit media files on a social application of one operating system device and another operating system device. While ensuring data transmission security and user privacy, it improves the ease of operation and efficiency of cross-operating system media sharing, and provides users with a highly integrated, smooth and consistent user experience. Attached Figure Description
[0013] Figure 1 This is a flowchart illustrating a cross-operating system data transfer method provided in some embodiments of this application; Figure 2 This is a signaling flowchart of a cross-operating system data transmission method provided by some embodiments of this application; Figure 3 These are example diagrams illustrating a cross-operating system data transfer method provided by some embodiments of this application; Figure 4 This is a structural block diagram of a cross-operating system data transmission device provided in some embodiments of this application; Figure 5This is a schematic diagram of the structure of an electronic device provided in some embodiments of this application; Figure 6 This is a schematic diagram of the hardware structure of an electronic device that implements some embodiments of this application. Detailed Implementation
[0014] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0015] The terms "first," "second," etc., used in this application's specification are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, in the specification, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects have an "or" relationship.
[0016] The cross-operating system data transmission method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0017] Currently, there are three main solutions for achieving cross-operating system data transfer, but all of them have obvious limitations: The first type is the cloud storage service relay solution: Users upload images from their iOS devices to a cloud server via cloud services such as cloud storage, iCloud, and Google Photos, and then download them on their Android devices. This solution has the following problems: 1. It is highly dependent on a stable public internet environment and is completely unusable in airplane mode, weak network conditions, or without internet access (such as in basements or remote areas); 2. The operation process is cumbersome and lengthy, requiring users to manually perform multiple steps such as uploading, saving, and downloading between different applications, which cannot meet the needs of instant social sharing; 3. User privacy data needs to flow through and be stored on third-party servers, posing a potential risk of data leakage and unauthorized access.
[0018] The second type is third-party social applications or file transfer tools: This method uses the chat window of a social application for "self-sending and self-receiving" transmission. This method also requires uploading and downloading, which is not only cumbersome, but also usually performs lossy compression on the transmitted images, resulting in a decrease in image quality. In addition, there are limitations on the size and number of files transmitted, which seriously affects the integrity of the shared content and the user experience.
[0019] The third category is the operating system-level file transfer solution provided by various mobile phone manufacturers. Although this type of solution has a fast transmission speed, its technical ecosystem is highly closed. It is usually limited to file transfer between devices running the Android operating system under the same brand and cannot break through system boundaries to achieve coverage of iOS operating system devices.
[0020] It is evident that the relevant technical solutions generally suffer from key defects in practical applications, such as excessive reliance on networks, cumbersome and complex operation processes, prominent privacy and security risks, and limited application scenarios due to the closed ecosystem. These defects severely restrict the user experience in multi-device collaborative scenarios, forcing users to adopt inefficient and risky compromise solutions in social scenarios where they need to quickly share media files such as images and videos.
[0021] To address the aforementioned technical issues, embodiments of this application provide a cross-operating system data transmission method and apparatus, which can provide a convenient, efficient, and user-friendly cross-operating system media file sharing experience while ensuring data security, thereby meeting users' needs for seamless cross-operating system data transmission.
[0022] It should be noted that the cross-operating system data transmission method provided in this application is applicable to electronic devices. In practical applications, such electronic devices include, but are not limited to, mobile terminals such as smartphones, tablets, or personal digital assistants. This application does not limit this.
[0023] Figure 1 This is a flowchart illustrating a cross-operating system data transmission method provided in some embodiments of this application, applied to a first electronic device, such as... Figure 1 As shown, the method may include the following steps: step 101, step 102, step 103, step 104, step 105, step 106 and step 107.
[0024] In step 101, the first electronic device receives a first input, wherein the first input is used to trigger a media selection control in a social application.
[0025] In this embodiment, the cross-operating system data transmission method is applied to a first electronic device to enable media file transfer between electronic devices running different operating systems in social application scenarios. Through a specific operation process, users can easily obtain media files from a second electronic device running a different operating system and use them for social applications on the first electronic device.
[0026] In this embodiment of the application, the first electronic device may be a device running the Android operating system, and the second electronic device may be a device running the iOS operating system. Here, a device running the Android operating system refers to an electronic device running the Android system, and a device running the iOS operating system refers to an electronic device running the iOS system.
[0027] In this embodiment of the application, media files include, but are not limited to, images, videos, and audio.
[0028] In this application embodiment, a social application is a software or platform based on Internet technology that provides users with functions such as social interaction, information sharing, and communication. The aforementioned social applications include, but are not limited to: comprehensive social applications, image and video sharing social applications, professional social applications, and interest-based social applications.
[0029] In this embodiment, the media selection control is an interactive element in the social application interface that provides users with the ability to select media files (such as images, videos, audio, etc.). It is usually presented in the form of a button, icon, or menu option. By interacting with the media selection control, users can trigger subsequent media file acquisition and transmission operations. It acts as a bridge between the user and the operating system, facilitating users to quickly and conveniently access and manage media resources.
[0030] For example, taking the WeChat chat interface as an example, in a chat window with a friend, clicking the "+" button to the right of the input box will bring up a menu. Options such as "Photos," "Shoot," "Video Call," and "File" can all be seen as different forms of media selection controls. The "Photos" option allows users to select existing photos from their phone's album to send to friends; the "Shoot" option allows users to directly use their phone's camera to take new photos or videos and send them.
[0031] For example, taking the Douyin (TikTok) posting interface as an example, when a user wants to post a video, they can click the "+" button in the middle at the bottom of the screen to enter the video shooting and uploading interface. The "+" button is a media selection control, where users can edit and post videos by shooting a new video or selecting existing videos or photos from their phone's album.
[0032] In this embodiment of the application, the first input refers to the operation performed by the user on the media selection control in the social application of the first electronic device; wherein, the first input includes, but is not limited to: click operation, long press operation, voice command operation, etc.
[0033] For example, taking a click operation as an example, in the WeChat chat interface mentioned above, after the user clicks the "+" button, the pop-up menu selects the "Photos" option. This action of clicking the "Photos" option is the first input.
[0034] For example, taking a long press operation as an example, a social application is designed to trigger the device's detection function by long-pressing a media selection control (such as an icon specifically for cross-operating system transmission). This long press action is the first input.
[0035] For example, taking voice command operation as an example, in some social applications that support voice interaction, users can trigger media selection and device detection by speaking specific voice commands. For instance, a user saying "Open the photo album and search for transferable devices" into their phone is the first input.
[0036] In step 102, the first electronic device responds to the first input and detects whether there is a paired second electronic device in the same wireless network environment. If so, a point-to-point encrypted communication connection is established between the first electronic device and the second electronic device. The operating system of the second electronic device is different from that of the first electronic device.
[0037] In this embodiment of the application, when the user makes the first input, it indicates that the user wants to share media files in a social application. Therefore, when the first electronic device receives the first input, it begins to detect whether there is a paired second electronic device in the same wireless network environment, so as to start the entire cross-operating system data transmission process.
[0038] In this application embodiment, "paired" usually means that a specific association has been established between two or more electronic devices, enabling them to perform data interaction, functional collaboration and other operations.
[0039] Taking the pairing of Android devices and iOS devices as an example, "paired" means that the two devices have established a connection through specific technical means (such as Bluetooth, data cable or dedicated application), enabling them to interact with each other or perform functions together.
[0040] In this embodiment, Android devices and iOS devices can be paired using the same account. In this case, Android devices and iOS devices log in to the same user account (such as a cloud service account) to complete device identification and association on the cloud server, thereby realizing data synchronization and functional collaboration between devices.
[0041] For example, when Android devices and iOS devices log into the same cloud service account, the devices upload their identification information (such as device model and serial number) to the cloud server. The cloud server then associates these devices based on the account information, forming a device group. When a user performs an operation on one of the devices (such as saving a file or setting a reminder), the operation command and data are synchronized to the cloud server through the account system, and then pushed to other associated devices, thereby achieving data consistency and functional collaboration between devices.
[0042] In this embodiment of the application, the same wireless network environment refers to the network space formed by multiple devices connecting to the same wireless access point (AP, such as a router), through which the devices can communicate directly or indirectly.
[0043] In this embodiment of the application, point-to-point encrypted communication connection is a technology that ensures secure data transmission between two endpoints. It prevents data from being stolen or tampered with during transmission by encrypting the data before sending it and decrypting it after receiving it.
[0044] In some embodiments, two-way security authentication can be performed between the first electronic device and the second electronic device using the same cloud service account that is logged in, and it can be determined whether the two-way security authentication is successful; if the two-way security authentication is successful, it is determined that the second electronic device is a paired device with the first electronic device.
[0045] In this embodiment, to achieve secure and reliable device pairing, the first electronic device and the second electronic device need to be connected to the same cloud service account system. The cloud server within this system acts as a trusted authentication intermediary, maintaining device identification information and cryptographic credentials bound to the account.
[0046] In this embodiment, two-way security authentication refers to the process by which the first electronic device and the second electronic device verify each other's identities through a cloud server before establishing a communication connection. This process ensures that only authorized and legitimate devices can establish a trusted data transmission channel.
[0047] In this embodiment of the application, the two-way security authentication process may include the following steps: Authentication Initiation: The first electronic device initiates an authentication request to the cloud server. This request includes at least its device identifier and authentication key. Cloud service verification and forwarding: After the cloud server verifies the legitimacy of the first electronic device and confirms its binding relationship with the current account, it forwards the authentication request to the second electronic device. This request contains a temporary key generated by the first electronic device. The second electronic device responds: The second electronic device verifies the validity of the temporary key and returns its own device identifier and encrypted response data to the cloud server; Cloud service arbitration: The cloud server decrypts and compares the response data returned by both parties. If the information matches, an authentication token is generated and simultaneously sent to the first electronic device and the second electronic device. Pairing Confirmation: After successful authentication, the first electronic device and the second electronic device exchange and store each other's device identifiers and session keys, thereby establishing a secure communication channel. Subsequent data can be directly exchanged based on this channel.
[0048] For example, the first electronic device and the second electronic device are pre-paired and bound using cloud service accounts from the same brand. When both are connected to the same wireless local area network (such as the same Wi-Fi environment), the foundation for subsequent transmission can be established.
[0049] When a user runs a social application (such as WeChat) on the first electronic device and triggers an image selection operation, the first electronic device immediately initiates an instantaneous status check: that is, through a millisecond-level local query, it verifies whether there is a second electronic device in the current network that has been authenticated and paired through the aforementioned cloud service account. This process does not require extensive active scanning.
[0050] If the second electronic device is verified to be online, the first electronic device automatically and instantly re-establishes a peer-to-peer Wi-Fi P2P encrypted connection using a pre-shared session key. This process does not require secondary confirmation from the user, thus enabling high-speed and stable cross-operating system image transmission.
[0051] As can be seen, in this embodiment of the application, two-way security authentication between devices with different operating systems is achieved through the same cloud service account, which enables the use of cloud service encryption capabilities and dynamic verification mechanisms to resist man-in-the-middle attacks and device forgery; the account system simplifies the operation process, realizes seamless pairing and cross-operating system integration, and balances security and convenience.
[0052] In some embodiments, the first electronic device may generate a one-time session key, and based on the one-time session key, establish a point-to-point encrypted communication connection between the first electronic device and the second electronic device within a local area network using Wi-Fi P2P technology.
[0053] In this embodiment of the application, the first electronic device can generate a one-time session key through a cryptographically secure random number generator, wherein the session key has a high entropy value to prevent prediction and brute-force attacks.
[0054] In this embodiment, the session key is securely distributed or negotiated in at least one of the following ways: First, it is transmitted via a pre-established secure channel, which is based on an authenticated cloud service account or a paired Bluetooth Low Energy connection; then, it is transmitted via out-of-band communication, such as by scanning a QR code or completing a near-field communication touch; finally, a key negotiation protocol is adopted, in which both parties collaboratively generate a shared key by exchanging parameters on a public channel without transmitting the key itself.
[0055] In this embodiment of the application, a one-time session key is dynamically generated for each data transmission session, and the key is used to encrypt data packets transmitted within the local area network to ensure that even if the data packets are intercepted, they cannot be decrypted.
[0056] In this embodiment of the application, the peer-to-peer encrypted communication connection is established based on Wi-Fi P2P technology, and its process may specifically include the following steps: Device discovery and group establishment: The first electronic device, as the owner of the group, broadcasts a discovery frame, and the second electronic device, as a client, scans and responds to the discovery frame. Both parties negotiate through Wi-Fi Protected Setup to establish an initial connection. Encrypted communication establishment: After the group is established, both parties use a one-time session key and encrypt the Wi-Fi P2P data link based on the WPA2 or WPA3 security protocol to ensure the confidentiality and integrity of data transmission.
[0057] In this embodiment of the application, the point-to-point encrypted communication architecture has the following characteristics: an Ad-Hoc network is directly constructed between the first electronic device and the second electronic device, and their communication does not depend on any intermediate routing device; the electronic device that is the owner of the group assigns IP addresses within the local area network to the peer device; the devices identify available services to each other based on a common service discovery protocol, and then transmit subsequent data through an encrypted data link.
[0058] As can be seen, in this embodiment of the application, since the one-time key provides forward security, the encryption mechanism of Wi-Fi P2P resists man-in-the-middle attacks, and the direct connection can reduce latency, it is suitable for real-time applications. Therefore, by combining the one-time session key with Wi-Fi P2P technology, secure, efficient and user-friendly point-to-point encrypted communication is achieved.
[0059] In this embodiment, a dedicated management interface can be provided on the second electronic device, allowing users to view historical connection records with the first electronic device at any time and granting users the permission to forcibly unpair the device.
[0060] In some embodiments, a smart device pairing memory function may also be provided, which may include the following steps: On the cloud server side, after the first electronic device and the second electronic device successfully complete the pairing authentication for the first time, the cloud server associates the security credentials and device identification information generated by this pairing with the user's cloud service account and performs end-to-end encrypted storage.
[0061] On the first electronic device side, when the first electronic device detects that the identifier of the wireless network service set it accesses matches the record of a successfully established communication connection in the past, it initiates a reconnection request to the cloud server.
[0062] After the cloud server verifies the request, it issues encrypted and stored security credentials. The first electronic device uses these credentials to automatically re-establish a peer-to-peer encrypted communication connection with the corresponding second electronic device. The entire process eliminates the need for the user to repeatedly perform authentication, ensuring security while providing a seamless reconnection experience.
[0063] In step 103, after establishing a peer-to-peer encrypted communication connection, the first electronic device displays the album access control of the second electronic device in the media selection interface of the social application.
[0064] In this embodiment of the application, the media selection interface is an interactive area used by users to browse, select and manage multimedia resources (such as images and videos) when interacting with social applications. Its core functions include resource display, selection operation, permission control and data interaction.
[0065] In this embodiment, the album access control is an interactive element that guides the user to the album function of the second electronic device, and it usually exists in the form of a button, icon or menu.
[0066] In some embodiments, the first electronic device can achieve contextualized intelligent interaction through dynamic UI injection technology.
[0067] For example, the first electronic device is an Android device, and the second electronic device is an iOS device. Once a peer-to-peer encrypted communication connection is established between the two, a floating access point is dynamically generated and displayed in the image selection interface of the social application running on the Android device. This access point may include graphic elements (such as the Apple logo) to identify the iOS device type and functional prompts such as "Select iPhone photo." After the user selects a target image through this access point, the image is transferred from the iOS device to the Android device via the established encrypted channel and automatically loaded into the native interactive flow of the social application. Specifically, this is manifested as being directly embedded in the send area of an instant messaging dialog box, or presented as publishable content in the social feed editing interface, while retaining the option to save the image locally. The entire transmission and integration process is completed automatically in the background without user intervention, effectively maintaining the user's focus and workflow continuity within a single application, thereby significantly optimizing the overall user experience of cross-operating system media file sharing.
[0068] In some embodiments, step 103 may specifically include the following steps: step 1031, step 1032 and step 1033.
[0069] In step 1031, the foreground interface of the social application is monitored.
[0070] In this embodiment of the application, the application package name and UI stack currently in the foreground can be monitored in real time through system-level APIs (such as Android's UsageStatsManager or iOS's BGAppRefresh).
[0071] In step 1032, the media selection interface is determined from the foreground running interface based on preset interface feature values.
[0072] In this embodiment, the interface feature values include, but are not limited to, UI element identifiers, layout features, and text keywords. For example, the UI element identifier is the resource-id (Android) or accessibilityIdentifier (iOS) of the "Send Image" button, the layout features are a grid view, a preview image list, or "Album" or "Camera" tabs, and the text keywords are keywords such as "Select Photo" or "Upload from Album".
[0073] In this embodiment, the interface recognition algorithm includes, but is not limited to, template matching algorithms, rule-based algorithms, and machine learning models. The template matching algorithm is used to pre-store screenshot templates of the media selection interface and performs matching using an image similarity algorithm (such as SSIM). The rule-based algorithm is used to construct a decision tree by combining UI element types, hierarchical relationships, and text content, such as "if an ImageView list exists and there is a 'Done' button at the bottom, then it is determined to be a media selection interface." The machine learning model is used to collect lightweight CNN models (such as MobileNet) to classify the interface.
[0074] In step 1033, the album access control of the second electronic device is displayed in a preset presentation format at a preset position on the media selection interface.
[0075] In this embodiment, the preset presentation forms of the album access entry control include, but are not limited to: floating window, embedded component, navigation bar integration, and context menu. The floating window is presented as an independent window superimposed on the native layout of the media selection interface, its position dynamically adjustable and located at the top of the application view hierarchy. The embedded component is presented as a user interface element deeply integrated into the native view hierarchy of the media selection interface, its visual style and layout logic consistent with the surrounding native controls. The navigation bar integration is presented as a new tab or function button embedded in the top navigation bar or bottom function bar area of the media selection interface, displayed alongside native entries such as "Camera" and "Local Album". The context menu is presented as a menu item, which pops up in response to a long press or specific gesture operation by the user within the media selection interface.
[0076] For example, for a floating window-style album access control, a semi-transparent button can be overlaid on top of the interface using WindowManager (Android) or UIWindow (iOS), supporting drag-and-drop and click-to-jump functionality. For an embedded component-style album access control, the layout file of the media selection interface (such as XML for Android or Storyboard for iOS) can be modified to insert a custom view at a specified location (such as the top navigation bar).
[0077] In some embodiments, one or more of the preset presentation formats can be dynamically selected and combined for display based on the layout characteristics of the media selection interface, the available screen area, or the user interaction history. For example, embedded components are preferred in tablet interfaces with ample space, while navigation bar integration or floating windows are preferred in mobile phone interfaces with limited space, in order to achieve the best user experience.
[0078] In some embodiments, the coordinates of the album access control can be dynamically adjusted based on screen resolution and interface security area (such as the notch screen of an iPhone).
[0079] As can be seen, in this embodiment of the application, the efficiency of sharing media files is improved by combining dynamic interface monitoring, feature recognition and contextualized controls.
[0080] In step 104, the first electronic device receives a second input, which is used to trigger the album access entry control.
[0081] In this embodiment of the application, the second input refers to an interactive operation performed by the user on the album access entry control; wherein, the second input includes, but is not limited to: click operation, long press operation, voice command operation, etc.
[0082] In step 105, the first electronic device responds to the second input by acquiring and displaying a list of photo media files from the second electronic device.
[0083] In this embodiment of the application, when the user makes a second input, it indicates that the user wants to access the album media file list of the second electronic device. Therefore, when the first electronic device receives the second input, it obtains and displays the album media file list from the second electronic device.
[0084] In this embodiment of the application, the album media file list refers to a collection of multimedia files obtained through system API or third-party libraries and organized according to specific rules (such as time, album category, file type). It typically includes the following attributes: file metadata, thumbnails, grouping information, and permission status. Among them, file metadata may include: path, file name, format (JPEG / PNG / MP4, etc.), resolution, shooting time, and geographical location; grouping information may include: information categorized by album, time, or tag (people / location).
[0085] In this embodiment of the application, the first electronic device obtains a list of albums (which may be thumbnails and metadata) from the second electronic device and displays it to the user, so that the user of the first electronic device appears to be browsing the local album of their own first electronic device, but is actually browsing the album of the second electronic device.
[0086] In some embodiments, step 105 may specifically include the following steps: step 1051.
[0087] In step 1051, the metadata and thumbnails of the media files are obtained from the second electronic device and rendered and displayed according to the native album structure of the operating system of the second electronic device; wherein, the album media file list hides the hidden albums and deleted items in the operating system of the second electronic device.
[0088] In this embodiment, metadata refers to basic information about the media file, such as filename, creation time, modification time, file size, resolution, shooting device, and geolocation tags. A thumbnail is a small preview image of the media file, used to quickly display content without loading the full file.
[0089] In this embodiment of the application, the first electronic device can request metadata and thumbnails of media files from the second electronic device through cross-device protocols (such as DLNA, MTP, cloud synchronization or vendor proprietary protocols) instead of directly transmitting the complete file, thereby reducing the amount of data transmission.
[0090] In this embodiment of the application, the native album structure refers to the default album classification method of the operating system of the second electronic device, such as organizing by timeline, album folder, people / faces, location, etc.
[0091] In this embodiment of the application, after obtaining the metadata, the first electronic device simulates the album interface layout and interaction logic of the second electronic device to maintain the user's familiarity with the album structure of the second electronic device and reduce the learning cost of cross-operating system operation.
[0092] For example, if the second electronic device is an iOS device, it is displayed in the "year, month, event" hierarchy; if the second electronic device is an Android device, it is displayed in the "album folder, media type (image / video)" category; if the second electronic device is a Windows device, it is displayed in the "image library, date view" arrangement.
[0093] In this embodiment of the application, when the first electronic device obtains and displays album content from the second electronic device, it automatically filters and blocks protected directories in its operating system, including but not limited to hiding albums and recently deleted albums, and only displays content that is clearly visible to the user, so as to prevent sensitive content from being accessed or transmitted accidentally.
[0094] As can be seen, in this embodiment, rendering follows the native album structure, allowing users to operate more naturally without needing to adapt to a new interface. Hiding albums and deleted items prevents users from accidentally accessing sensitive content or seeing invalid files, enhancing security. Fast loading of thumbnails and metadata reduces user waiting time, making it particularly suitable for large-capacity albums or low-bandwidth networks.
[0095] In some embodiments, when the first electronic device detects a scenario where a user may access the media library of the second electronic device, it can obtain preview data of media files from the second electronic device, preprocess and store them on the first electronic device to achieve real-time response of the media browsing interface.
[0096] In some embodiments, the first electronic device may also establish a hierarchical storage strategy based on the usage characteristics of the media files, and create an optimized storage copy of the frequently used media files locally on the first electronic device, providing a priority reading path when the user accesses them again, thereby reducing data transmission latency.
[0097] In some embodiments, the first electronic device may establish a cache management strategy that is linked to the application session state, and automatically perform optimized reclamation of storage space when a session termination or device connection state change is detected.
[0098] As can be seen, in this embodiment of the application, the synergistic effect of preloading, hierarchical caching and intelligent management ensures a smooth user experience while optimizing the utilization of terminal resources.
[0099] In step 106, the first electronic device receives a third input, wherein the third input is used to select at least one media file from the album media file list.
[0100] In this embodiment of the application, the third input refers to an interactive operation performed by the user on a media file in the album media file list; wherein, the third input includes, but is not limited to: click operation, long press operation, voice command operation, etc.
[0101] In step 107, the first electronic device, in response to the third input, transmits the media file selected by the third input from the second electronic device to the first electronic device via a point-to-point encrypted communication connection.
[0102] In this embodiment, the media file selected by the third input is transferred from the second electronic device to the first electronic device, realizing the seamless embedding of cross-operating system media file retrieval and sending functions into the native operation flow within the social application. Users do not need to switch applications or perform additional save or import steps. The selected media file is automatically loaded into the message sending box or content publishing panel of the social application after the transfer is completed, maintaining the continuity and immersion of the user's creation and sharing process.
[0103] For example, when a user selects media files via a third input, selecting a single media file will directly trigger the transfer; selecting multiple media files typically supports batch transfer of up to nine media files. During the media file transfer process, a progress bar and remaining time can be displayed to indicate the current transfer status; automatic conversion of special formats such as HEIC (preserving EXIF information) can also be displayed; automatic pause and prompt in case of network interruption can also be displayed, supporting resume download without requiring manual retry by the user. Furthermore, after the transfer is complete, a "sent" record is marked at the album access entry control to avoid duplicate selections.
[0104] In some embodiments, step 107 may specifically include the following steps: step 1071 and step 1072.
[0105] In step 1071, the format of the media file selected by the third input is identified.
[0106] In this embodiment, the first electronic device can read the format identifier in the header of the media file, perform binary pattern matching on suspected corrupted files, confirm the actual format by comparing with a feature library, and cross-validate the identification result with the compatible format lists of the first electronic device's operating system (such as iOS / Android) and mainstream social applications (WeChat / TikTok) to generate a Boolean compatibility flag. Through the above multi-level verification mechanism, the format misjudgment rate can be reduced.
[0107] In step 1072, if it is identified that the media file is incompatible with the operating system of the first electronic device, the media file is converted into a format compatible with the operating system and social applications of the first electronic device during or after transmission.
[0108] In this embodiment, for cases requiring in-transmission conversion, formats such as HEIC and WebP that require real-time processing can be converted in parallel during the data block transmission stage (using GPU acceleration); for cases requiring post-transmission conversion, high bitrate videos such as AVCHD and ProRes can be converted in the background after the complete file is received, avoiding blocking the transmission channel.
[0109] For example, if the first electronic device is an Android operating system device and the second electronic device is an iOS operating system device, and the media file is an image in HEIC format, then during the process of transferring the media file from the iOS operating system device to the Android operating system device, it is converted into an image in JPEG or PNG format. During the format conversion process, the EXIF information of the original media file (such as shooting time and location) is preserved to ensure that the social application can correctly identify it.
[0110] As can be seen, in this embodiment of the application, the data format compatibility problem caused by differences in operating systems is solved by using intelligent format recognition and dynamic conversion technology, and seamless connection between electronic devices of different brands and operating systems in specific application scenarios is achieved, thereby improving the work efficiency and user experience of multi-device collaboration.
[0111] In some embodiments, after step 107 above, the following step may be added: step 108.
[0112] In step 108, the media file selected by the third input is inserted into the message sending input box or content publishing panel of the social application.
[0113] In this embodiment, after the media file selected by the third input is transmitted, the media file selected by the third input is inserted into the message sending input box or content publishing panel of the social application, realizing the native sending process of automatically loading media files into the social application. Users can directly perform operations such as sending to friends or posting to Moments. The entire transmission process maintains the native operating experience of the social application without having to jump to other applications or perform additional operations.
[0114] In some embodiments, AI analysis can be used to analyze user habits. For example, if the first electronic device is an Android device and the second electronic device is an iOS device, in the case of posting on Moments, recently taken images from the iOS photo album will be displayed first; in the case of WeChat chat, historical images related to the current conversation (such as travel photos mentioned in the chat history) will be recommended; and low-quality content such as screenshots and blurry images will be automatically filtered to improve the efficiency of users in selecting images.
[0115] In some embodiments, an image usage habit model can be established to record frequently used albums and sending times, and to prioritize displaying predicted content the next time it is used. Furthermore, cached images unused for 7 days can be automatically cleared to improve image management efficiency.
[0116] For ease of understanding, combined with Figure 2 The signaling flowchart shown is as follows: Figure 3 The example diagram shown illustrates the cross-operating system data transmission method provided in the embodiments of this application.
[0117] The first electronic device is an Android operating system device, the second electronic device is an iOS operating system device, the media selection control is an image selection control, the first input is a click input, the media selection interface is an image selection interface, the album access entry control is a "Select iPhone Photo" button, the second input is a click input, the album media file list is an album file list, the media file is an image, and the third input is a click input.
[0118] like Figure 2 As shown, the signaling flowchart includes: a user, an Android device, a server, and an iOS device. The Android device has a social media application installed, and also incorporates... Figure 3 The example diagram shown indicates that a device using the Android operating system can be simply referred to as an Android device, and a second electronic device using the iOS operating system can be simply referred to as an iOS device.
[0119] In S201, Android devices display image selection controls for social applications.
[0120] In S202, the user clicks the image selection control.
[0121] In S203, Android devices detect whether there are paired iOS devices in the same wireless network environment through the server. If so, a point-to-point encrypted communication connection is established between the Android device and the iOS device.
[0122] In S204, the Android operating system device listens to the foreground running interface of the social application, determines the image selection interface from the foreground running interface, and displays the "Select iPhone Photo" control on the image selection interface.
[0123] In S205, the user clicks the "Select iPhone Photo" control.
[0124] In S206, Android devices retrieve and display a list of photo files from iOS devices.
[0125] In S207, the user clicks on one or more images in the album file list.
[0126] In S208, an Android device requests an iOS device to transmit an image selected by the user, converts the image to a different format, and inserts the converted image into the sending panel of the social application.
[0127] In S209, the user clicks the send control in the send panel. For example, Figure 3 The "Send to social friends" control in the context of [the application / system].
[0128] In the S210, Android devices send converted images via social applications.
[0129] As can be seen from the above embodiments, in this embodiment, the first electronic device receives a first input, which is used to trigger a media selection control in a social application; in response to the first input, it detects whether there is a paired second electronic device in the same wireless network environment, and if so, establishes a peer-to-peer encrypted communication connection between the first electronic device and the second electronic device; the operating system of the second electronic device is different from that of the first electronic device; after establishing the peer-to-peer encrypted communication connection, the album access entry control of the second electronic device is displayed in the media selection interface of the social application; a second input is received, which is used to trigger the album access entry control; in response to the second input, a list of album media files from the second electronic device is obtained and displayed; a third input is received, which is used to select at least one media file from the album media file list; in response to the third input, the media file selected by the third input is transmitted from the second electronic device to the first electronic device through the peer-to-peer encrypted communication connection.
[0130] As can be seen, in this embodiment of the application, through deep integration at the operating system level, it is possible to natively and seamlessly access and transmit media files on a social application of one operating system device and another operating system device. While ensuring data transmission security and user privacy, it improves the ease of operation and efficiency of cross-operating system media sharing, and provides users with a highly integrated, smooth and consistent user experience.
[0131] In summary, in this embodiment, users do not need to switch between multiple applications, simplifying the traditional 7-8 steps into 2-3 core steps, reducing the user's operational burden and providing a one-stop, complete experience. At the interaction level, through dynamic interface injection technology, a cross-operating system access point is seamlessly integrated into the native interface of the social application. This entry point maintains a high degree of consistency with the host application in terms of visual style and interaction logic, making the technical boundaries almost imperceptible to the user and providing a smooth experience close to local operation. Through preloading mechanisms and intelligent caching strategies, the loading time of media files is effectively reduced, achieving browsing smoothness similar to a local photo album. Combined with intelligent recommendation functions based on usage habits, the efficiency of content selection and sharing is further improved.
[0132] In this embodiment, a highly reliable transmission channel is constructed by integrating three technical elements: cloud authentication, peer-to-peer direct transmission, and intelligent format conversion. Especially in a local area network environment, it exhibits a more stable transmission success rate and superior performance compared to traditional cloud transmission solutions.
[0133] In this embodiment, a two-way authentication and end-to-end encrypted transmission mechanism is employed to ensure that data is transmitted directly between authorized devices without passing through any third-party servers, thus eliminating the risk of privacy leakage at the architectural level. Regarding cross-system compatibility issues, the built-in intelligent conversion engine can automatically handle format differences between different operating systems, allowing users to use various media files without needing to concern themselves with technical details.
[0134] This application provides mobile device manufacturers with an effective path to overcome ecosystem barriers. By addressing the core pain points of dual-device users, it significantly enhances product appeal and lays a crucial foundation for building a complete cross-operating system collaborative ecosystem. By providing a unique and seamless experience, it effectively improves user satisfaction and stickiness. Simultaneously, the constructed cross-operating system access point provides an important platform for subsequent service expansion, possessing the potential to continuously unlock commercial value.
[0135] In some embodiments provided in this application, compared to Figure 1The embodiment shown provides a cross-operating system data transmission method that further introduces an active device discovery and intelligent connection mechanism, which significantly improves the discoverability and ease of use of the function. When the first electronic device detects that the user has entered the media selection interface of a third-party application and no paired second electronic device has been found in the current network environment, the device discovery process will be automatically triggered to actively guide the user to search for and connect to available devices under the same cloud service account. Accordingly, the following steps may also be included: Step 109, Step 110, Step 111 and Step 112.
[0136] In step 109, if no paired second electronic device is detected in the same wireless network environment, a device discovery boot entry control is displayed in the media selection interface.
[0137] In this embodiment of the application, the first electronic device and the second electronic device are in the same Wi-Fi Direct or local area network (same SSID) environment. If there is no valid connection record in the local device pairing list of the first electronic device or the paired device is offline, a device discovery guide entry control is displayed on the media selection interface. For example, the control is displayed in the form of an icon combined with a dynamic pulse animation.
[0138] In this embodiment, the device discovery guidance entry control is a dynamically generated graphical user interface element in the social application media selection interface of the first electronic device. This entry control can adopt interface elements that conform to the design specifications of the operating system of the first electronic device, and ensure the guidance effect through visual differentiation design. Its core function is to actively guide the user to trigger the process of "searching for and connecting new devices" when no paired device is detected. It is a remedial and guiding entry, complementing the "album access entry control" that is directly displayed after pairing in terms of function and scenario.
[0139] For example, a highly guiding entry control can be dynamically generated in a prominent position on the image selection interface of a social application (such as next to the top prompt bar or bottom tabs), such as a button or banner with the "XX Share" icon and the text "Find Nearby Devices".
[0140] In step 110, a fourth input is received; wherein the fourth input is used to trigger the device discovery boot entry control.
[0141] In this embodiment of the application, the fourth input refers to an interactive operation performed by the user on the device discovery guide entry control; wherein, the fourth input includes, but is not limited to: click operation, long press operation, voice command operation, etc.
[0142] In step 111, in response to the fourth input, a search for a nearby connectable second electronic device is initiated.
[0143] In this embodiment of the application, when the user makes a fourth input, it indicates that the user wants to search for a second electronic device. Therefore, when the first electronic device receives the fourth input, it initiates a search for nearby connectable second electronic devices.
[0144] In some embodiments, the first electronic device may initiate a combined low-power Bluetooth scan and Wi-Fi scan for device discovery, searching for a second electronic device nearby that is logged into the same cloud account.
[0145] In some embodiments, the first electronic device may also send a query request to the server to obtain a list of other devices associated with the first electronic device's currently logged-in account and their network status, in order to assist in the discovery of the second electronic device.
[0146] In step 112, after the second electronic device is found, a pairing relationship and a point-to-point encrypted communication connection are established with the second electronic device.
[0147] In some embodiments, after the first electronic device finds the second electronic device, it can display the device identifier of the second electronic device in a non-full-screen overlay within the current interface of the social application; receive a fifth input, wherein the fifth input is used to trigger a connection confirmation control in the non-full-screen overlay; respond to the fifth input, perform two-way security authentication through the cloud service account; and after the two-way security authentication is successful, establish a pairing relationship and a point-to-point encrypted communication connection with the second electronic device.
[0148] In this embodiment of the application, after the point-encrypted communication connection is successfully established, the first electronic device automatically enters the data transmission process: closing the discovery guide interface, generating a second electronic device album access entry in the media selection interface, supporting user browsing, selecting media files and transmitting them through an encrypted channel, and automatically loading the received media files into the social application sending process.
[0149] In this embodiment of the application, the first electronic device can also perform state management on the successfully established connection: encrypt and store the device identifier and network environment information of this connection, prioritize automatic reconnection in the same network environment, and establish a connection caching mechanism to improve the efficiency of subsequent connections.
[0150] In this embodiment, the complete process of proactive discovery, security authentication, and state maintenance enables intelligent and seamless cross-operating system connectivity, significantly improving user convenience and system availability.
[0151] For example, the first electronic device is an Android device, and the second electronic device is an iOS device. After the Android device finds the paired iOS device, a simple, non-full-screen overlay will pop up on the current screen of the social application, displaying the name of the discovered device (e.g., "XXX's iPhone"). After the user clicks "Connect," the Android device performs two-way security authentication through the cloud account system. This process may require authorization confirmation on the iOS device to ensure connection security. After successful two-way security authentication, a peer-to-peer encrypted communication channel (P2P Wi-Fi or Bluetooth hotspot) is established between the two devices. After successful connection, the first electronic device automatically closes the guide overlay and generates an "iPhone Album" entry on the image selection screen. The user can browse and select images, and then the image data is encrypted and transmitted to the Android device via peer-to-peer transmission technology, ultimately seamlessly loading into the social application's native sending process. In addition, the successful connection information (device ID, network environment) is encrypted and cached so that when the user enters the same page again under a similar network environment, the first electronic device will prioritize automatic reconnection, further simplifying user operation.
[0152] After establishing a point-to-point encrypted communication connection through steps 109, 110, 111, and 112, the process can continue. Figure 1 The process of steps 103 to 107 in the illustrated embodiment is used to achieve cross-operating system data transmission.
[0153] In this embodiment, an active device discovery and connection capability is introduced, which further improves the applicability of electronic devices and user experience. Through a context-aware active guidance mechanism, the problem of function access is effectively solved. When it is recognized that a user has a cross-operating system data transmission need but no available connection, a clear device discovery entry will be automatically provided, transforming the passive waiting in the traditional solution into intelligent guidance. This design reduces the user's learning cost and usage threshold, ensuring that core functions can be naturally discovered and used by the user.
[0154] In this embodiment, the entire process of device discovery, security authentication, and connection establishment is completed within the current application context. Users do not need to switch between different application interfaces or interrupt the current operation process. This highly integrated design maintains the continuity and immersion of the user experience, achieving true seamless connection.
[0155] In this embodiment, while improving the convenience of connection, all device discovery and connection operations are performed through a reliable cloud service account system for two-way security authentication, ensuring the authenticity of device identity and the confidentiality of data transmission, thus achieving the best balance between convenience and security.
[0156] In this embodiment, a multimodal device discovery mechanism is adopted, which adapts to different network environment conditions through the coordinated work of Bluetooth and Wi-Fi. This intelligent network adaptation capability ensures fast and reliable device discovery and connection in various usage scenarios.
[0157] As can be seen, in this embodiment of the application, while maintaining system security and stability, the usability of functions and user experience are improved, providing a complete, convenient and secure solution for cross-operating system data transmission, forming a complete closed loop from device discovery, secure connection to data sharing, and improving the practicality and user-friendliness of cross-operating system collaboration.
[0158] The cross-operating system data transmission method provided in this application can be executed by a cross-operating system data transmission device. This application uses an example of a cross-operating system data transmission device executing the cross-operating system data transmission method to illustrate the cross-operating system data transmission device provided in this application.
[0159] Figure 4 This is a structural block diagram of a cross-operating system data transmission device provided in some embodiments of this application, applied to a first electronic device, such as... Figure 4 As shown, the cross-operating system data transmission device 400 may include: a receiving module 401, a detection module 402, an establishment module 403, a display module 404, and a transmission module 405; The receiving module 401 is used to receive a first input, which is used to trigger a media selection control in a social application; The detection module 402 is used to detect, in response to the first input, whether there is a paired second electronic device in the same wireless network environment; The establishment module 403 is used to establish a point-to-point encrypted communication connection between the first electronic device and the second electronic device when the detection result of the detection module is yes; wherein the operating system running on the second electronic device is different from that of the first electronic device; The display module 404 is used to display the album access control of the second electronic device in the media selection interface of the social application after the establishment module has established the peer-to-peer encrypted communication connection. The receiving module 401 is also used to receive a second input, which is used to trigger the album access entry control; The display module 404 is further configured to, in response to the second input, acquire and display a list of photo media files from the second electronic device; The receiving module 401 is further configured to receive a third input, the third input being used to select at least one media file from the album media file list; The transmission module 405 is configured to, in response to the third input, transmit the media file selected by the third input from the second electronic device to the first electronic device via the point-to-point encrypted communication connection.
[0160] As can be seen from the above embodiments, this embodiment achieves native and seamless access to and transmission of media files on another operating system device in a social application on one operating system device through deep integration at the operating system level. While ensuring data transmission security and user privacy, it improves the ease of operation and efficiency of cross-operating system media sharing, and provides users with a highly integrated, smooth and consistent user experience.
[0161] Optionally, as an embodiment, the detection module 402 is specifically used to perform two-way security authentication through the same cloud service account logged in on the first electronic device and the second electronic device, and determine whether the two-way security authentication is successful; if the two-way security authentication is successful, then the second electronic device is determined to be a paired device with the first electronic device.
[0162] Optionally, as an embodiment, the establishment module 403 is specifically used to generate a one-time session key; based on the one-time session key, a point-to-point encrypted communication connection is established between the first electronic device and the second electronic device in the local area network using Wi-Fi P2P technology.
[0163] Optionally, as an embodiment, the display module 404 is specifically used to monitor the foreground running interface of the social application; determine the media selection interface from the foreground running interface based on preset interface feature values; and display the album access entry control of the second electronic device in a preset presentation format at a preset position on the media selection interface.
[0164] Optionally, as an embodiment, the display module 404 is specifically used to obtain the metadata and thumbnails of the media files from the second electronic device, and render and display them according to the native album structure of the operating system of the second electronic device; wherein, the album media file list hides the hidden albums and deleted items in the operating system of the second electronic device.
[0165] The cross-operating system data transmission device in this application embodiment can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0166] The cross-operating system data transmission device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0167] The cross-operating system data transmission device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the illustrated method embodiments achieve the same technical effect, and will not be described again here to avoid repetition.
[0168] Optionally, such as Figure 5 As shown, this application embodiment also provides an electronic device 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps of the above-described cross-operating system data transmission method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0169] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0170] Figure 6This is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of this application. The electronic device 600 includes, but is not limited to, components such as: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.
[0171] Those skilled in the art will understand that the electronic device 600 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 610 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0172] In some embodiments, when the electronic device 600 is a first electronic device, the user input unit 607 is used to receive a first input, which is used to trigger a media selection control in a social application; The processor 610 is configured to respond to the first input by detecting whether a paired second electronic device exists in the same wireless network environment; if so, to establish a point-to-point encrypted communication connection between the first electronic device and the second electronic device; wherein the operating system of the second electronic device is different from that of the first electronic device. Display unit 606 is used to display the album access control of the second electronic device in the media selection interface of the social application after the peer-to-peer encrypted communication connection is established. The user input unit 607 is also used to receive a second input, which is used to trigger the album access entry control; The display unit 606 is also configured to, in response to the second input, acquire and display a list of photo media files from the second electronic device; The user input unit 607 is also configured to receive a third input, the third input being used to select at least one media file from the album media file list; The processor 610 is also configured to, in response to the third input, transfer the media file selected by the third input from the second electronic device to the first electronic device via the point-to-point encrypted communication connection.
[0173] As can be seen, in this embodiment of the application, through deep integration at the operating system level, it is possible to natively and seamlessly access and transmit media files on a social application of one operating system device and another operating system device. While ensuring data transmission security and user privacy, it improves the ease of operation and efficiency of cross-operating system media sharing, and provides users with a highly integrated, smooth and consistent user experience.
[0174] Optionally, as an embodiment, the processor 610 is specifically configured to perform two-way security authentication through the same cloud service account logged in on the first electronic device and the second electronic device, and determine whether the two-way security authentication is successful; if the two-way security authentication is successful, then the second electronic device is determined to be a paired device with the first electronic device.
[0175] Optionally, as an embodiment, the processor 610 is specifically used to generate a one-time session key; based on the one-time session key, a point-to-point encrypted communication connection is established between the first electronic device and the second electronic device in the local area network using Wi-Fi P2P technology.
[0176] Optionally, as an embodiment, the processor 610 is specifically configured to monitor the foreground running interface of the social application; and determine the media selection interface from the foreground running interface based on preset interface feature values. The display unit 606 is specifically used to display the album access control of the second electronic device in a preset presentation format at a preset position on the media selection interface.
[0177] Optionally, as one embodiment, the processor 610 is specifically configured to obtain metadata and thumbnails of media files from the second electronic device; The display unit 606 is specifically used to render and display the album according to the native album structure of the operating system of the second electronic device; wherein the album media file list masks the hidden albums and deleted items in the operating system of the second electronic device.
[0178] It should be understood that, in this embodiment, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0179] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 609 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (Synchlink DRAM, SLDRAM), and direct memory bus RAM (DRRAM). The memory 609 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0180] Processor 610 may include one or more processing units; in some embodiments, processor 610 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the modem processor may also not be integrated into processor 610.
[0181] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described cross-operating system data transmission method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0182] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0183] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described cross-operating system data transmission method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0184] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0185] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the cross-operating system data transmission method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0186] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0187] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium such as ROM / RAM, magnetic disk, or optical disk, and includes several instructions to cause a terminal such as a mobile phone, computer, server, or network device to execute the methods described in the various embodiments of this application.
[0188] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for cross-operating system data transmission, characterized in that, Applied to a first electronic device, the method includes: Receive a first input, which is used to trigger a media selection control in a social application; In response to the first input, it detects whether there is a paired second electronic device in the same wireless network environment. If so, it establishes a point-to-point encrypted communication connection between the first electronic device and the second electronic device; wherein the operating system of the second electronic device is different from that of the first electronic device. After establishing the peer-to-peer encrypted communication connection, the album access control of the second electronic device is displayed in the media selection interface of the social application. Receive a second input, which is used to trigger the album access entry control; In response to the second input, a list of photo media files from the second electronic device is obtained and displayed; Receive a third input, the third input being used to select at least one media file from the album media file list; In response to the third input, the media file selected by the third input is transferred from the second electronic device to the first electronic device via the point-to-point encrypted communication connection.
2. The method according to claim 1, characterized in that, The detection of whether a paired second electronic device exists in the same wireless network environment includes: Two-way security authentication is performed using the same cloud service account logged in on the first electronic device and the second electronic device, and it is determined whether the two-way security authentication is successful. If the two-way security authentication is successful, the second electronic device is determined to be a paired device with the first electronic device.
3. The method according to claim 1, characterized in that, Establishing a point-to-point encrypted communication connection between the first electronic device and the second electronic device includes: Generate a one-time session key; Based on the one-time session key, a point-to-point encrypted communication connection is established between the first electronic device and the second electronic device within the local area network using Wi-Fi P2P technology.
4. The method according to claim 1, characterized in that, The step of displaying the album access control of the second electronic device within the media selection interface of the social application includes: Monitor the foreground interface of the social application; Based on preset interface feature values, the media selection interface is determined from the foreground running interface; The album access control of the second electronic device is displayed in a preset position and in a preset presentation format at a preset location on the media selection interface.
5. The method according to claim 1, characterized in that, The step of acquiring and displaying the list of photo media files from the second electronic device includes: Obtain the metadata and thumbnails of the media files from the second electronic device, and render and display them according to the native album structure of the operating system of the second electronic device; The album media file list hides the hidden albums and deleted items in the operating system of the second electronic device.
6. A cross-operating system data transmission device, characterized in that, Applied to a first electronic device, the device includes: A receiving module is used to receive a first input, which is used to trigger a media selection control in a social application. The detection module is used to detect, in response to the first input, whether there is a paired second electronic device in the same wireless network environment; A module is established to establish a point-to-point encrypted communication connection between the first electronic device and the second electronic device when the detection result of the detection module is yes; wherein the operating system running on the second electronic device is different from that of the first electronic device. The display module is used to display the album access control of the second electronic device in the media selection interface of the social application after the establishment module has established the peer-to-peer encrypted communication connection. The receiving module is also used to receive a second input, which is used to trigger the album access entry control; The display module is further configured to, in response to the second input, acquire and display a list of photo media files from the second electronic device; The receiving module is also configured to receive a third input, the third input being used to select at least one media file from the album media file list; A transmission module is configured to, in response to the third input, transmit the media file selected by the third input from the second electronic device to the first electronic device via the point-to-point encrypted communication connection.
7. The apparatus according to claim 6, characterized in that, The detection module is specifically used to perform two-way security authentication through the same cloud service account logged in on the first electronic device and the second electronic device, and to determine whether the two-way security authentication is successful; if the two-way security authentication is successful, the second electronic device is determined to be a paired device with the first electronic device.
8. The apparatus according to claim 6, characterized in that, The establishment module is specifically used to generate a one-time session key; based on the one-time session key, a point-to-point encrypted communication connection is established between the first electronic device and the second electronic device in the local area network using Wi-Fi P2P technology.
9. The apparatus according to claim 6, characterized in that, The display module is specifically used to monitor the foreground running interface of the social application; determine the media selection interface from the foreground running interface based on preset interface feature values; and display the album access entry control of the second electronic device in a preset presentation format at a preset position on the media selection interface.
10. The apparatus according to claim 6, characterized in that, The display module is specifically used to obtain the metadata and thumbnails of the media files from the second electronic device, and to render and display them according to the native album structure of the operating system of the second electronic device; wherein, the album media file list hides the hidden albums and deleted items in the operating system of the second electronic device.