WO2023155583A1 - 跨设备应用程序管理的方法、电子设备及系统 - Google Patents
跨设备应用程序管理的方法、电子设备及系统 Download PDFInfo
- Publication number
- WO2023155583A1 WO2023155583A1 PCT/CN2022/140266 CN2022140266W WO2023155583A1 WO 2023155583 A1 WO2023155583 A1 WO 2023155583A1 CN 2022140266 W CN2022140266 W CN 2022140266W WO 2023155583 A1 WO2023155583 A1 WO 2023155583A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- user
- resource
- application program
- permission
- Prior art date
Links
- 238000007726 management method Methods 0.000 title abstract description 33
- 230000004044 response Effects 0.000 claims abstract description 112
- 238000000034 method Methods 0.000 claims abstract description 102
- 230000015654 memory Effects 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 18
- 230000000694 effects Effects 0.000 claims description 14
- 238000013475 authorization Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 description 108
- 238000004891 communication Methods 0.000 description 37
- 230000006854 communication Effects 0.000 description 37
- 101100264195 Caenorhabditis elegans app-1 gene Proteins 0.000 description 35
- 230000008569 process Effects 0.000 description 25
- 238000010586 diagram Methods 0.000 description 20
- 238000012545 processing Methods 0.000 description 18
- 230000005236 sound signal Effects 0.000 description 14
- 238000010295 mobile communication Methods 0.000 description 13
- 238000001514 detection method Methods 0.000 description 12
- 210000000988 bone and bone Anatomy 0.000 description 10
- 230000008859 change Effects 0.000 description 7
- 230000009471 action Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000010985 leather Substances 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000010009 beating Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000003416 augmentation Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000011269 treatment regimen Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
- 210000000707 wrist Anatomy 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6245—Protecting personal data, e.g. for financial or medical purposes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/604—Tools and structures for managing or administering access control systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/629—Protecting access to data via a platform, e.g. using keys or access control rules to features or functions of an application
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/02—Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/30—Security of mobile devices; Security of mobile applications
- H04W12/37—Managing security policies for mobile devices or for controlling mobile applications
Definitions
- the embodiments of the present application relate to the field of terminals, and more specifically, relate to a method, electronic device and system for managing cross-device application programs.
- apps Application, App
- system capabilities such as cameras and microphones of electronic devices to provide users with corresponding functions.
- the app will ask the user to agree to the privacy statement of the app, and ask the user to grant the app the permission to call one or more system capabilities.
- the user In order to quickly enter the app, the user often does not read the app's request carefully and directly agrees to the privacy statement and authorizes the corresponding permissions of the app.
- some Apps of the electronic device may call the system capability of the electronic device to obtain the user's private information without the user's knowledge (such as calling the positioning device to collect the user's location information). At this time, if the user fails to check the use of the electronic device in time, it may cause a security risk that the user's private information is leaked.
- Embodiments of the present application provide a cross-device application management method, electronic device, and system, which can avoid leakage of user's private information and help improve user experience.
- a system in a first aspect, includes a first electronic device and a second electronic device, wherein the first electronic device is configured to send first indication information to the second electronic device, and the The first indication information is used to indicate that the application program of the first electronic device is using the first resource; the second electronic device is used to output second prompt information, and the second prompt information is used to prompt the user whether to terminate the The permission of the application program of the first electronic device to use the first resource; the second electronic device is further configured to detect an input by the user to terminate the permission of the application program of the first electronic device to use the first resource; The second electronic device is further configured to, in response to detecting the input, send second indication information to the first electronic device, where the second indication information is used to instruct the first electronic device to terminate the application The permission of the program to use the first resource; the first electronic device is further configured to, in response to the second indication information, terminate the permission of the application program to use the first resource.
- the first electronic device may send the first indication information to the second electronic device, so that the second electronic device may output second prompt information to remind the user
- the application program of the first electronic device uses the first resource.
- the user can use the second electronic device to determine whether to terminate the permission of the application program of the first electronic device to use the first resource, and when the user terminates the permission of the application program of the first electronic device to use the first resource, the second The electronic device gives a first electronic device indication. Further, the first electronic device terminates the permission of the application program of the first electronic device to use the first resource. Therefore, through the cooperative work between the first electronic device and the second electronic device, leakage of user privacy information is avoided, which helps to improve user experience.
- the second electronic device is further configured to display a second indicator in a status bar of the second electronic device in response to the first indication information , the second indicator is used to indicate the type of the first resource, or the second indicator is used to indicate the type of the first resource and the identifier of the first electronic device type.
- the second electronic device can enable the user to know the type of the first resource used, or the type of the used resource through the second indicator.
- the device of the first resource and the type of the used first resource help to further improve the user experience.
- the second electronic device is further specifically configured to display a setting bar in response to detecting a user operation on the second indicator, and the setting bar displaying the second prompt information; the second electronic device is further specifically configured to display a window in response to detecting the user’s operation on the second prompt information, the window includes a termination control, and the termination control uses triggering the termination of the permission of the application program of the first electronic device to use the first resource; Send the second indication information.
- the second electronic device is further specifically configured to display a termination control in the notification bar in response to detecting a user operation on the notification bar, the The termination control is used to trigger the termination of the permission of the application program of the first electronic device to use the first resource, and the second prompt information is displayed in the notification bar; the second electronic device is also specifically used to respond to Sending the second indication information to the first electronic device upon detection of the user's operation on the termination control.
- the second electronic device is further configured to display the control bar in response to detecting that the user opens the control bar, and the control bar displays the The second prompt information and the second control, the second control is used to disable or enable the use of the first resource of the same type as the first resource; the second electronic device is also used to respond to the detection of the user
- a setting bar is displayed, and the setting bar displays the detailed information of the second prompt information;
- the second electronic device is further configured to respond to the user's The operation of the detailed information is to display a window, the window includes a termination control, and the termination control is used to trigger the termination of the permission of the application program to use the first resource; the second electronic device is also specifically used to respond to Sending second indication information to the first electronic device upon detection of the user's operation on the termination control.
- the second electronic device is further specifically configured to display a window in response to the first indication information, and the second prompt information is displayed in the window and a termination control, the termination control is used to trigger the termination of the permission of the application program to use the first resource;
- the first electronic device sends second indication information.
- the first electronic device is further configured to send third indication information to the second electronic device, where the third indication information is used to indicate that the The first electronic device has terminated the permission of the application program to use the first resource; the second electronic device is further configured to no longer output the second prompt information in response to the third indication information.
- the first electronic device is further configured to send the first indication information to the second electronic device in response to detecting that a preset condition is met;
- the preset condition includes at least one of the following: the distance between the first electronic device and the second electronic device is less than or equal to the preset distance; the first electronic device and the second electronic device log in at the same time; An account; the first electronic device and the second electronic device are connected to the same Wi-Fi network; the first electronic device and the second electronic device have established a short-distance connection; the second electronic device is in wearing state; the first electronic device is in an unlocked state, and the first electronic device is provided with a combination lock; the second electronic device is in an unlocked state, and the second electronic device is provided with a combination lock; the second electronic device is provided with a combination lock; An electronic device is not being operated; the application program is running in the background of the first electronic device; the application program is running in the foreground of the first electronic device, and the first electronic device is
- the first electronic device can comprehensively consider various actual situations, and when it is determined that the application program of the first electronic device needs to be managed across devices, it can give an instruction to the second electronic device so that the user can control the first electronic device through the second electronic device. Manage the application programs, further avoid the leakage of user privacy information, and help to further improve the user experience.
- the first electronic device is further specifically configured to, in response to the second indication information, close the first control, so as to terminate the application program from using the For the permission of the first resource, the first control is displayed in the control bar of the first electronic device or the first control is displayed in the setting bar of the first electronic device.
- the first electronic device may automatically close the corresponding control to terminate the application program's use of the first resource. In this way, the user does not need to manually manage the application program of the first electronic device, which helps to further improve the user experience.
- the first electronic device is further configured to display a first indicator on a status bar of the first electronic device, and the first indicator is used for Indicates the type of the first resource.
- the first indicator and the second indicator when the second indicator is used to indicate the type of the first resource, the first indicator and the second indicator The display effect is different.
- the display effects of the first indicator and the second indicator are set to be different, so that the user can know that the device using the first resource is the device through the indicator Or other devices, which help to further enhance the user experience.
- the display position of the first indicator relative to the status bar of the first electronic device is the same as that of the second indicator relative to the status bar of the second electronic device.
- the display positions of the status bar of the device are different; or, the display color of the first indicator is different from the display color of the second indicator.
- the first electronic device is further specifically configured to, in response to the second indication information, permanently or once terminate the use of the application by the The permissions of the first resource.
- a system in a second aspect, includes a first electronic device and a second electronic device, including: the first electronic device, configured to send first indication information to the second electronic device, the The first instruction information is used to instruct the first electronic device to intercept the permission of the application program of the first electronic device to use the first resource; the second electronic device is used to output second prompt information, and the second prompt The information is used to prompt the user whether to allow the application program of the first electronic device to use the first resource; the second electronic device is also used to detect whether the user allows the application program of the first electronic device to use the first resource.
- the second electronic device is further configured to send second instruction information to the first electronic device in response to detecting the input, and the second instruction information is used to instruct release of the first electronic device
- the permission of the application program of the device to use the first resource is further configured to release the permission of the application program to use the first resource in response to the second indication information.
- the first electronic device may send the first indication information to the second electronic device, so that the second electronic device may Outputting second prompt information to remind the user that the first electronic device intercepts the use of the first resource by the application program of the first electronic device.
- the user can use the second electronic device to determine whether to allow the application program of the first electronic device to use the first resource permission, and when the user allows the application program of the first electronic device to use the first resource permission, the second The electronic device gives a first electronic device indication.
- the first electronic device releases the permission of the application program of the first electronic device to use the first resource. Therefore, through the cooperative work between the first electronic device and the second electronic device, leakage of user privacy information is avoided, which helps to improve user experience.
- the second electronic device is further specifically configured to display a window in response to the first indication information, and the second prompt information is displayed in the window and a permission control, the permission control is used to release the permission of the application program of the first electronic device to use the first resource; the second electronic device is also specifically configured to respond to the detection of the operation of the permission control , sending the second indication information to the first electronic device.
- the second electronic device is further specifically configured to display an allow control in the notification bar in response to detecting a user operation on the notification bar,
- the permission control is used to release the permission of the application program of the first electronic device to use the first resource, and the second prompt information is displayed in the notification bar;
- the second electronic device is also specifically used to respond to Detecting a user's operation on the permission control, and sending the second indication information to the first electronic device.
- the first electronic device is further configured to send third indication information to the second electronic device, where the third indication information is used to indicate that the The first electronic device has released the permission of the application program to use the first resource; the second electronic device is further configured to no longer output the second prompt information in response to the third indication information.
- the first electronic device is further configured to send the first indication information to the second electronic device in response to detecting that a preset condition is met;
- the preset condition includes at least one of the following: the distance between the first electronic device and the second electronic device is less than or equal to the preset distance; the first electronic device and the second electronic device log in at the same time; An account; the first electronic device and the second electronic device are connected to the same Wi-Fi network; the first electronic device and the second electronic device have established a short-distance connection; the second electronic device is in wearing state; the first electronic device is in an unlocked state, and the first electronic device is provided with a combination lock; the second electronic device is in an unlocked state, and the second electronic device is provided with a combination lock; the second electronic device is provided with a combination lock; An electronic device is not being operated; the application program is running in the background of the first electronic device; the application program is running in the foreground of the first electronic device, and the first electronic device is
- the first electronic device can comprehensively consider various actual situations, and when it is determined that the application program of the first electronic device needs to be managed across devices, it can give an instruction to the second electronic device so that the user can control the first electronic device through the second electronic device.
- Manage the application programs further avoid the leakage of user privacy information, and help to further improve the user experience.
- the first electronic device is further specifically configured to, in response to the second instruction information, open the first control to allow the application program to use the The permissions of the first resource.
- the first electronic device After the first electronic device receives the user's cross-device instruction to allow the application of the first electronic device to use the first resource, the first electronic device can automatically open the corresponding control to allow the application to use the first resource. In this way, the user does not need to manually manage the application program of the first electronic device, which helps to further improve the user experience.
- the first electronic device is further specifically configured to, in response to the second instruction information, permanently or once allow the application program to use the The permissions of the first resource.
- a method for cross-device application management is provided, the method is applied to a first electronic device, and the first electronic device is connected to a second electronic device, and the method includes: sending the second electronic device The device sends first indication information, where the first indication information is used to indicate that the application program of the first electronic device is using the first resource; receiving second indication information sent by the second electronic device, the second indication The information is used to instruct the first electronic device to terminate the permission of the application program to use the first resource; in response to the second indication information, terminate the permission of the application program to use the first resource.
- the first electronic device may send the first indication information to the second electronic device, so that the user can determine whether to terminate the first resource through the second electronic device.
- the application program of the electric device uses the permission of the first resource, and when the second electronic device gives the user an instruction to terminate the permission of the application program of the first electric device to use the first resource, the first electronic device terminates the first electronic device
- the application uses the permission of the first resource. Therefore, through the cooperative work between the first electronic device and the second electronic device, leakage of user privacy information is avoided, which helps to improve user experience.
- the method further includes: sending third indication information to the second electronic device, where the third indication information is used to indicate that the first electronic device The right of the application program to use the first resource has been terminated.
- the method further includes: sending the first indication information to the second electronic device in response to detecting that a preset condition is met; the preset The conditions include at least one of the following: the distance between the first electronic device and the second electronic device is less than or equal to a preset distance; the first electronic device and the second electronic device log into the same account; The first electronic device and the second electronic device are connected to the same Wi-Fi network; the first electronic device and the second electronic device have established a short-distance connection; the second electronic device is in a wearing state; The first electronic device is in an unlocked state, and the first electronic device is provided with a combination lock; the second electronic device is in an unlocked state, and the second electronic device is provided with a combination lock; the first electronic device has no being operated; the application is running in the background of the first electronic device; the application is running in the foreground of the first electronic device, and the first electronic device is not being operated.
- the preset The conditions include at least one of the following: the distance between the first electronic device and the second electronic device is
- the terminating the right of the application program to use the first resource in response to the second indication information includes: responding to the second indication information information, close the first control to terminate the permission of the application program to use the first resource, the first control is displayed on the control bar of the first electronic device or the first control is displayed on the first Settings bar for electronic devices.
- the method further includes: displaying a first indicator on the status bar of the first electronic device, the first indicator is used to indicate that the second A type of resource.
- the terminating the right of the application program to use the first resource in response to the second indication information includes: responding to the second indication information information, and permanently or once terminate the permission of the application program to use the first resource.
- a method for cross-device application management the method is applied to a second electronic device, and the second electronic device is connected to the first electronic device, and the method includes: receiving the first electronic device The first indication information sent by the device, the first indication information is used to indicate that the application program of the first electronic device is using the first resource; the second prompt information is output, and the second prompt information is used to prompt the user whether to terminate The application program of the first electronic device uses the permission of the first resource; detects an input of the user to terminate the application program of the first electronic device using the first resource; in response to detecting the input, sends the The first electronic device sends second indication information, where the second indication information is used to instruct the first electronic device to terminate the permission of the application program to use the first resource.
- the second electronic device may output a second prompt message to remind the user that the first resource is used by the first electronic device.
- the application program of the electronic device uses the first resource.
- the user can determine whether to terminate the permission of the application program of the first electronic device to use the first resource through the second electronic device, and when the user terminates the permission of the application program of the first electronic device to use the first resource, the second The electronic device gives an indication to the first electronic device, so that the first electronic device terminates the permission of the application program of the first electronic device to use the first resource. In this way, through the cooperation between the second electronic device and the second electronic device, leakage of user privacy information is avoided, which helps to improve user experience.
- the method further includes: in response to the first indication information, displaying a second indicator on the status bar of the second electronic device, the first Two indicators are used to indicate the type of the first resource, or the second indicator is used to indicate the type of the first resource and the identifier of the first electronic device type.
- the outputting the second prompt information includes: displaying a setting bar in response to detecting the user's operation on the second indicator, and displaying in the setting bar
- the second prompt information; detecting the user's input of terminating the application program of the first electronic device to use the first resource includes: displaying a window in response to detecting the user's operation on the second prompt information, The window includes a termination control, and the termination control is used to trigger the termination of the permission of the application program of the first electronic device to use the first resource; and detect the user's operation on the termination control.
- the outputting the second prompt information includes displaying the second prompt information in a notification bar; the detecting that the user terminates the application program of the first electronic device Using the input of the first resource includes: displaying a termination control in the notification bar in response to detecting the user's operation on the notification bar, the termination control being used to trigger the termination of the application of the first electronic device The program uses the permission of the first resource; and detects the user's operation on the termination control.
- the outputting the second prompt information includes: displaying the control bar in response to detecting that the user opens the control bar, and the control bar displays the The second prompt information and the second control, the second control is used to close or open the use of the first resource of the same type as the first resource; the detection user terminates the use of the application program of the first electronic device
- the input of the first resource includes: in response to detecting the user's operation on the second control, displaying a setting bar, and the setting bar displays the detailed information of the second prompt information; in response to detecting the user's operation on the The operation of the detailed information displayed in the setting column displays a window, the window includes a termination control, and the termination control is used to trigger the termination of the application program's right to use the first resource; detect the user's control of the termination control operate.
- the outputting the second prompt information includes: displaying a window in response to the first indication information, displaying the second prompt information in the window and terminating the control, the termination control is used to trigger the termination of the authority of the application program to use the first resource; the detection of the user's input to terminate the application program of the first electronic device to use the first resource includes: detecting the user Action on the terminate control.
- the method further includes: receiving third indication information sent by the first electronic device, where the third indication information is used to indicate that the first electronic device The device has terminated the permission of the application program to use the first resource; in response to the third indication information, the second prompt information is no longer output.
- a method for cross-device application management is provided, the method is applied to a first electronic device, and the first electronic device is connected to a second electronic device, and the method includes: sending the second electronic device The device sends first indication information, where the first indication information is used to instruct the first electronic device to intercept the permission of the application program of the first electronic device to use the first resource; receive the second indication information, the second indication information is used to indicate the authorization of the application program of the first electronic device to use the first resource; in response to the second indication information, the authorization of the application program to use the first resource authority.
- the first electronic device may send the first indication information to the second electronic device, so that the user can determine whether to release the first resource through the second electronic device.
- the application program of the electric device uses the permission of the first resource, and when the second electronic device gives the user an instruction to allow the application program of the first electronic device to use the permission of the first resource, the first electronic device releases the first electronic device
- the application uses the permission of the first resource. Therefore, through the cooperative work between the first electronic device and the second electronic device, leakage of user privacy information is avoided, which helps to improve user experience.
- the method further includes: sending third indication information to the second electronic device, where the third indication information is used to indicate that the first electronic device The permission of the application program to use the first resource has been released.
- the method further includes: sending the first indication information to the second electronic device in response to detecting that a preset condition is met; the preset The conditions include at least one of the following: the distance between the first electronic device and the second electronic device is less than or equal to a preset distance; the first electronic device and the second electronic device log into the same account; The first electronic device and the second electronic device are connected to the same Wi-Fi network; the first electronic device and the second electronic device have established a short-distance connection; the second electronic device is in a wearing state; The first electronic device is in an unlocked state, and the first electronic device is provided with a combination lock; the second electronic device is in an unlocked state, and the second electronic device is provided with a combination lock; the first electronic device has no being operated; the application is running in the background of the first electronic device; the application is running in the foreground of the first electronic device, and the first electronic device is not being operated.
- the preset The conditions include at least one of the following: the distance between the first electronic device and the second electronic device is
- the method further includes: in response to the second indication information, opening a first control to allow the application program to use the first resource permission , the first control is displayed on the control bar of the first electronic device or the first control is displayed on the setting bar of the first electronic device.
- the method further includes: permanently or once releasing the permission of the application program to use the first resource in response to the second indication information .
- a method for cross-device application management is provided, the method is applied to a second electronic device, and the second electronic device is connected to the first electronic device, and the method includes: receiving the first electronic device The first instruction information sent by the device, the first instruction information is used to instruct the first electronic device to intercept the permission of the application program of the first electronic device to use the first resource; output the second prompt information, the second The prompt information is used to prompt the user whether to release the permission of the application program of the first electronic device to use the first resource; detect the input of the user to release the permission of the application program of the first electronic device to use the first resource; The above input is used to send second indication information to the first electronic device, where the second indication information is used to indicate the authorization of the application program of the first electronic device to use the first resource.
- the second electronic device may output a second prompt message to The user is reminded that the permission of the application program of the first electronic device to use the first resource has been blocked. Furthermore, the user can determine whether to allow the application program of the first electronic device to use the first resource permission through the second electronic device, and if the user releases the application program of the first electronic device to use the first resource permission, the second The electronic device gives an indication to the first electronic device, so that the first electronic device releases the permission of the application program of the first electronic device to use the first resource. In this way, through the cooperation between the second electronic device and the second electronic device, leakage of user privacy information is avoided, which helps to improve user experience.
- the outputting the second prompt information includes: displaying a window in response to the first indication information, and displaying the second prompt information and allowing The control, the allowing control is used to release the permission of the application program of the first electronic device to use the first resource; the input of detecting the permission of the user to release the application program of the first electronic device to use the first resource includes: detecting The user's action on the allowed control.
- the outputting the second prompt information includes: displaying the second prompt information through a notification bar;
- the input of permission to use the first resource includes: in response to detecting the user's operation on the notification bar, displaying a permission control in the notification bar, the permission control being used to release the use of the application program of the first electronic device The permission of the first resource; detecting the user's operation on the allowed control.
- the method further includes: receiving third indication information sent by the first electronic device, where the third indication information is used to indicate that the first electronic device The device has released the permission of the application program to use the first resource; in response to the third indication information, the second prompt information is no longer output.
- an apparatus configured to connect to a second electronic device, and the apparatus includes: a sending unit configured to send first indication information to the second electronic equipment, and the first indication information uses to indicate that the application program of the first electronic device is using the first resource; the receiving unit is configured to receive second indication information sent by the second electronic device, and the second indication information is used to indicate that the first electronic device The device terminates the permission of the application program to use the first resource; the termination unit is configured to, in response to the second indication information, terminate the permission of the application program to use the first resource.
- an apparatus configured to connect to a first electronic device, and the apparatus includes: a receiving unit configured to receive first indication information sent by the first electronic equipment, the first indication information used to indicate that the application program of the first electronic device is using the first resource; the output unit is used to output second prompt information, and the second prompt information is used to prompt the user whether to terminate the application program of the first electronic device Permission to use the first resource; a detection unit, configured to detect an input by the user to terminate the application program of the first electronic device from using the first resource; a sending unit, configured to send a message to the user in response to detecting the input The first electronic device sends second indication information, where the second indication information is used to instruct the first electronic device to terminate the permission of the application program to use the first resource.
- an apparatus configured to connect to a second electronic device, and the apparatus includes: a sending unit configured to send first indication information to the second electronic equipment, and the first indication information uses Instructing the first electronic device to intercept the permission of the application program of the first electronic device to use the first resource; the receiving unit is configured to receive the second instruction information sent by the first electronic device, the second instruction information Instructing to release the permission of the application program of the first electronic device to use the first resource; the release unit is configured to release the permission of the application program to use the first resource in response to the second indication information.
- an apparatus configured to connect to a first electronic device, and the apparatus includes: a receiving unit configured to receive first indication information sent by the first electronic equipment, the first indication information used to instruct the first electronic device to intercept the permission of the application program of the first electronic device to use the first resource; the output unit is used to output second prompt information, and the second prompt information is used to prompt the user whether to release the The permission of the application program of the first electronic device to use the first resource; the detection unit is used to detect the input of the user to release the permission of the application program of the first electronic device to use the first resource; the sending unit is used to respond to the detected The input is to send second indication information to the first electronic device, where the second indication information is used to indicate the authorization of the application program of the first electronic device to use the first resource.
- an electronic device including: one or more processors; a memory; and one or more computer programs. Wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. When the instruction is executed by the electronic device, the electronic device is made to execute the method in any possible implementation of the third aspect or the fifth aspect.
- an electronic device including: one or more processors; one or more memories; and one or more computer programs. Wherein one or more computer programs are stored in one or more memories, the one or more computer programs comprising instructions. When the instruction is executed by the electronic device, the electronic device is made to execute the method in any possible implementation of the fourth aspect or the sixth aspect.
- a computer program product containing instructions is provided, and when the computer program product is run on an electronic device, the electronic device is made to execute the method described in the third aspect or the fifth aspect; or, When the computer program product runs on the electronic device, the electronic device is made to execute the method described in the fourth aspect or the sixth aspect.
- a computer-readable storage medium is provided, and the storage medium may be non-volatile.
- the storage medium includes instructions, and when the instructions are run on the electronic device, the electronic device is made to execute the method described in the third aspect or the fifth aspect; or, when the instructions are run on the electronic device, the The electronic device executes the method described in the fourth or sixth aspect above.
- a fifteenth aspect provides a chip for executing instructions.
- the chip executes the method described in the third aspect or the fifth aspect above; or, the chip executes the fourth aspect above Or the method described in the sixth aspect.
- FIG. 1 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
- Fig. 2 is a software structural block diagram of an electronic device provided by an embodiment of the present application.
- Fig. 3 is a set of GUIs of the mobile phone provided by the embodiment of the present application.
- Fig. 4 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- Fig. 5 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- Fig. 6 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- Fig. 7 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- FIG. 8 is an example diagram of an application scenario 200A provided by the embodiment of the present application.
- Fig. 9 is a set of GUIs of the mobile phone provided by the embodiment of the present application.
- FIG. 10 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- Fig. 11 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- Fig. 12 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- Fig. 13 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- Fig. 14 is an example of the GUI of a mobile phone provided by the embodiment of the present application.
- Fig. 15 is another example of the GUI of the mobile phone provided by the embodiment of the present application.
- Fig. 16 is another example of the GUI of the mobile phone provided by the embodiment of the present application.
- FIG. 17 is an example diagram of an application scenario 200B provided by the embodiment of the present application.
- Fig. 18 is a schematic diagram of interaction between a user and a speaker according to an embodiment of the present application.
- FIG. 19 is an example diagram of an application scenario 200C provided by an embodiment of the present application.
- FIG. 20 is a schematic diagram of interaction between a user and a headset provided by an embodiment of the present application.
- FIG. 21 is an example diagram of an application scenario 200D provided by an embodiment of the present application.
- Fig. 22 is a set of GUIs of the smart watch provided by the embodiment of the present application.
- FIG. 23 is a schematic flow chart of an example of a method for managing cross-device applications provided by an embodiment of the present application.
- Fig. 24 is a schematic flow chart of another example of a method for cross-device application management provided by an embodiment of the present application.
- Fig. 25 is a schematic block diagram of an example of a device provided by an embodiment of the present application.
- Fig. 26 is a schematic block diagram of another example of an apparatus provided by an embodiment of the present application.
- Fig. 27 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, “plurality” means two or more.
- the method provided by the embodiment of the present application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) devices, notebook computers, ultra mobile personal computers (ultra - on electronic devices such as mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
- FIG. 1 shows a schematic structural diagram of an electronic device 100 .
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and User identification (subscriber identification module, SIM) card interface 195 and so on.
- SIM Subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or fewer components than shown in the illustrations, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit, NPU
- the controller may be the nerve center and command center of the electronic device 100 .
- the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
- processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input and output
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
- processor 110 may include multiple sets of I2C buses.
- the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
- the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
- the I2S interface can be used for audio communication.
- processor 110 may include multiple sets of I2S buses.
- the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
- the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
- the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
- the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
- the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus used for asynchronous communication.
- the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
- the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
- MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
- the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
- the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
- the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
- the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the charging management module 140 is configured to receive a charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device through the power management module 141 .
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 141 may also be disposed in the processor 110 .
- the power management module 141 and the charging management module 140 may also be set in the same device.
- the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
- a modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
- the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
- the modem processor may be a stand-alone device.
- the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
- System global navigation satellite system, GNSS
- frequency modulation frequency modulation, FM
- near field communication technology near field communication, NFC
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
- GSM global system for mobile communications
- GPRS general packet radio service
- code division multiple access code division multiple access
- CDMA broadband Code division multiple access
- WCDMA wideband code division multiple access
- time division code division multiple access time-division code division multiple access
- TD-SCDMA time-division code division multiple access
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- Beidou navigation satellite system beidou navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos and the like.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
- the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
- the ISP is used for processing the data fed back by the camera 193 .
- the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin color.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be located in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other image signals.
- the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs.
- the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
- MPEG moving picture experts group
- the NPU is a neural-network (NN) computing processor.
- NN neural-network
- Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one App required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
- the audio module 170 may also be used to encode and decode audio signals.
- the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
- Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
- Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
- Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the receiver 170B can be placed close to the human ear to receive the voice.
- the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
- the user can make a sound by approaching the microphone 170C with the mouth, and input the sound signal to the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
- the earphone interface 170D is used for connecting wired earphones.
- the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association of the USA
- the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
- pressure sensor 180A may be disposed on display screen 194 .
- pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
- a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
- the electronic device 100 determines the intensity of pressure according to the change in capacitance.
- the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
- the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
- touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
- the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
- the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
- the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the air pressure sensor 180C is used to measure air pressure.
- the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
- the electronic device 100 when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D.
- features such as automatic unlocking of the flip cover are set.
- the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes).
- the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
- the distance sensor 180F is used to measure the distance.
- the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
- Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
- the light emitting diodes may be infrared light emitting diodes.
- the electronic device 100 emits infrared light through the light emitting diode.
- Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100.
- the electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
- the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
- the ambient light sensor 180L is used for sensing ambient light brightness.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
- the temperature sensor 180J is used to detect temperature.
- the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
- the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
- the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- Touch sensor 180K also known as "touch panel”.
- the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
- the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
- the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
- the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
- the keys 190 include a power key, a volume key and the like.
- the key 190 may be a mechanical key. It can also be a touch button.
- the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
- the motor 191 can generate a vibrating reminder.
- the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
- touch operations applied to different applications may correspond to different vibration feedback effects.
- the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
- Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
- the SIM card interface 195 is used for connecting a SIM card.
- the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
- the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
- the SIM card interface 195 is also compatible with different types of SIM cards.
- the SIM card interface 195 is also compatible with external memory cards.
- the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
- the electronic device 100 adopts an embedded-SIM (embedded-SIM, eSIM) card, that is, an embedded-SIM card.
- the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
- the phone card in the embodiment of the present application includes but is not limited to SIM card, eSIM card, universal subscriber identity module (USIM), universal integrated circuit card (universal integrated circuit card, UICC) and the like.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
- the embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
- FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
- the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
- the application layer can consist of a series of application packages.
- the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, and so on.
- a window manager is used to manage window programs.
- the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
- Content providers are used to store and retrieve data and make it accessible to applications.
- Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
- the view system can be used to build applications.
- a display interface can consist of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
- prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
- the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
- the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- a system library can include multiple function modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
- 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
- the App can run in the foreground of the electronic device, and can also run in the background of the electronic device.
- the electronic device 100 may display the user interface of the App on the display screen. Users can interact with the App through the controls in the App's user interface.
- the App runs in the electronic device, but does not belong to the situation of running in the foreground above, that is, the App runs in the background of the electronic device.
- the situation that the App runs in the background of the electronic device may include that the process of the App exists in the electronic device, but the user interface of the App is not displayed on the display screen. Because the user interface of the app running in the background is not displayed on the display screen, the user usually cannot directly interact with the app running in the background.
- the background above can also be referred to as "non-foreground".
- Apps There may be one or more Apps running in the foreground of the electronic device, and one or more Apps running in the background of the electronic device. Wherein, when one or more Apps are running in the foreground of the electronic device, one or more Apps may be running in the background of the electronic device.
- the system capability may include functions provided by a system application program (application, App) in the electronic device, and capabilities possessed by hardware devices of the electronic device.
- the system App may refer to an App provided or developed by a manufacturer of an electronic device.
- a producer of an electronic device may include a manufacturer, supplier, supplier, operator, etc. of the electronic device.
- the system App in the electronic device may include a phone App, an information App, an address book App, a calendar App, a camera App, and the like.
- the phone App can provide the function of making a call, reading the call status and identification code of the device, and so on.
- the foregoing identification code may include a SIM card number in the electronic device, an identification number (identity, ID) of the electronic device, and the like.
- the information App can provide functions of reading text messages, sending text messages, and the like.
- the address book App may provide a function of reading contact information, a function of editing (such as creating, modifying, deleting) a contact, and the like.
- the calendar App may provide a function of reading schedule information, a function of editing (such as creating, modifying, deleting) a schedule, and the like.
- the camera app can be used to provide functions such as taking pictures and recording videos.
- the hardware devices of the electronic equipment may include memory, camera, microphone, positioning device and so on.
- the above-mentioned memory may have the ability to store data such as photos, videos, and audio files in the electronic device.
- the camera mentioned above may have the capability of image acquisition.
- the above-mentioned microphone may have the ability to collect sound signals.
- the positioning device described above may have the ability to determine position information.
- Apps can provide users with corresponding functions by invoking one or more system capabilities in the electronic device.
- chat apps may provide users with functions such as sending instant messages, voice calls, and video calls.
- functions such as sending instant messages, voice calls, and video calls.
- the chat app needs to call the image collection capability of the electronic device (that is, call the camera) to collect the user's face image.
- a map app may provide users with functions such as positioning or navigation.
- the map app needs to call the location information determination capability of the electronic device (ie, use the above-mentioned positioning device) to obtain the user's location information, so as to provide the user with a navigation route.
- the App calls the system capability, it needs to obtain permission to call the system capability in the electronic device. Acquiring the permission to call the system capability in the electronic device may also be referred to as obtaining the device permission.
- device permissions may include: phone permissions, information permissions, address book permissions, calendar permissions, camera permissions, microphone permissions, storage permissions, location information permissions, and the like.
- obtaining a location information permission may mean obtaining a permission to call a function provided by a map app.
- the map app can perform positioning or navigation.
- the above-mentioned system App can provide multiple functions, or the hardware device of the electronic device has multiple capabilities, the above-mentioned system App or the hardware device of the electronic device can correspond to multiple system capabilities.
- a phone app can provide the function of making a call and reading the call status and identification code of the device.
- the above-mentioned telephone authority may include the authority to make a call and the authority to read the call status and identification code of the device.
- the electronic device can authorize one or more permissions in the phone permissions to an App.
- the app During the running of the app, it usually needs to collect and use user information. In order to facilitate users to provide their own information to the app with confidence, the app will provide the user with a privacy statement and ask the user whether to agree to the privacy statement.
- the app's privacy statement can be used to explain what information the app will collect from the user, how to collect the user's information, how to use the user's information, and how to protect the user's information.
- the above privacy statement may also be referred to as a privacy policy, privacy clause, etc. This embodiment of the present application does not limit it.
- the electronic device 100 will ask the user whether to agree to the privacy statement of the App in the following two situations. One is: after installing the App on the electronic device 100, when the user starts the App for the first time, the App will ask the user whether to agree to the privacy statement of the App. The other is: after the app's privacy statement is updated, when the user starts the app for the first time, the app will ask the user again whether to agree to the updated privacy statement of the app.
- the user agrees to the privacy statement of the app mentioned above can be understood as: the user agrees to authorize one or more system capabilities involved in the privacy statement of the app in the electronic device to the app, so that the app can collect the information mentioned in the privacy statement .
- the app's privacy statement proposes to collect the user's location information to realize the function of locating the user's location or provide the user with the function of navigation. Then, the electronic device 100 may authorize the location information authority (that is, the ability to invoke the collection of location information) to the App.
- the location information authority that is, the ability to invoke the collection of location information
- the app's privacy statement proposes to collect the user's face image to realize the function of identity verification by face recognition. Then, the electronic device 100 may authorize the camera permission (that is, the ability to invoke image capture) to the App.
- the App may directly use sensitive system capabilities involved in the App while running in the background.
- the App can directly use the sensitive system capabilities involved in the App.
- the app may violate the user's wishes, abuse the sensitive system capabilities of the device, and privately collect user information. This will lead to the leakage of the user's private information and bring danger to the user.
- the electronic device may remind the user that the App is using the sensitive system capability. In this way, users can also determine whether to terminate the app's use of sensitive system capabilities according to their actual needs.
- the electronic device 100 is a mobile phone as an example for description, which should not limit the present application.
- the electronic device 100 reminds the user that the App is using the sensitive system capability by displaying the prompt information as an example. limited.
- the electronic device 100 may also remind the user that the App is using sensitive system capabilities through vibration or voice playback.
- the user determines whether to terminate the app using the sensitive system capability by interacting with the screen of the electronic device 100 as an example.
- the method is not limited.
- users can also terminate the app's use of sensitive system capabilities through voice input.
- FIG. 3 is a group of graphical user interfaces (graphical user interface, GUI) of the mobile phone provided by the embodiment of the present application.
- GUI graphical user interface
- the mobile phone displays the desktop of the mobile phone, and the desktop of the mobile phone includes icons of multiple Apps, and the multiple application programs include clock, calendar, gallery, memo, and App1.
- App1 is running in the background, and without the user's knowledge, App1 is using the positioning device (that is, App1 is using the positioning function provided by the mobile phone's positioning device (an example of a sensitive system capability) to obtain the user's location information).
- App1 is using the positioning device (that is, App1 is using the positioning function provided by the mobile phone's positioning device (an example of a sensitive system capability) to obtain the user's location information).
- the positioning device that is, App1 is using the positioning function provided by the mobile phone's positioning device (an example of a sensitive system capability) to obtain the user's location information.
- the mobile phone may display a location indicator 1011 on the status bar 101 of the mobile phone to remind the user that App1 is using a positioning device to access the user's location information (that is, the location information of the mobile phone, In the following, for the convenience of description, the user's location information is used for description).
- the mobile phone may not display the location indicator 1011 on the status bar 101 of the mobile phone.
- the position of the position indicator 1011 shown in (a) in FIG. 3 in the status bar 101 is only an example, which should not limit the present application.
- the embodiment of the present application does not limit the position of the position indicator 1011 in the status bar 101 .
- the user can know that there is an App using the user's location information through the location indicator 1011 in the status bar 101.
- the user can stop the App from using the user's location information through the control bar.
- the following describes the process of changing the GUI of the mobile phone during the process that the user terminates the App's use of the user's location information through the control bar.
- the mobile phone After the mobile phone detects that the user checks the operation of the control bar, the mobile phone may display a GUI as shown in (b) in FIG. 3 .
- the embodiment of the present application does not limit the specific form of the user's operation of viewing the control bar.
- the user's operation of viewing the control bar may be an operation of the user sliding down the right side of the status bar 101 of the mobile phone as shown in (a) in FIG. 3 .
- the operation area of the status bar of the electronic device is divided into a left side and a right side, and the left side of the status bar and the right side of the status bar are relative positions.
- the GUI is a display interface displaying the control bar 102 .
- the control bar 102 may include one or more controls for controlling the mobile phone.
- the control bar 102 includes a Wi-Fi control for turning on or off a wireless high-fidelity (wireless fidelity, Wi-Fi) signal connection function, and a Wi-Fi control for turning on or off mobile data.
- the location control 1021 is in an open state.
- the control bar 102 may also include other content, which is not limited in this embodiment of the present application.
- the mobile phone After the mobile phone detects that the user has turned off the positioning function of the mobile phone, the mobile phone may display a GUI as shown in (c) in FIG. 3 .
- the embodiment of the present application does not limit the specific form of the user's operation of disabling the positioning function of the mobile phone.
- the user's operation of turning off the positioning function of the mobile phone may be an operation of the user clicking the location control 1021 as shown in (b) of FIG. 3 .
- the GUI is the display interface of the control bar 102 after the positioning function of the mobile phone is turned off. Since the user has turned off the positioning function of the mobile phone, the location control 1021 is in an off state.
- the mobile phone can remind the user in the status bar that the app running in the background of the mobile phone uses the user's location information through the positioning device without the user's knowledge. And after the mobile phone detects that the user has turned off the positioning function of the mobile phone through the control bar, the mobile phone can intercept the permission of the App to use the positioning device, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user experience .
- the mobile phone can intercept the permission of the App to use the positioning device, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user experience .
- FIG. 4 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- the mobile phone displays the desktop of the mobile phone.
- App1 is running in the background, and without the user's knowledge, the App1 is using the user's location information.
- the same as the GUI shown in (a) in FIG. The user's location information is being used.
- the mobile phone may not display the location indicator 1011 on the status bar 101 of the mobile phone.
- the user can know that an App is using the user's location information through the location indicator 1011 in the status bar 101 .
- the user can stop the App from using the user's location information through the notification bar.
- the mobile phone After the mobile phone detects that the user checks the notification bar, the mobile phone may display a GUI as shown in (b) in FIG. 4 .
- the embodiment of the present application does not limit the specific form of the user's operation of viewing the notification bar.
- the user's operation of viewing the control bar may be an operation of the user sliding down along the left side of the status bar 101 of the mobile phone as shown in (a) in FIG. 4 .
- the GUI is a display interface for displaying a notification bar.
- the notification bar may include one or more notification messages.
- the notification bar includes a notification message 103, etc.
- the notification message 103 includes a message title bar (for example, "App1") and text information (for example, "using a geographic location") .
- the notification bar can also include other content, for example, as shown in (b) in Figure 4, the notification bar can also include time information (for example, "8:00", “Friday, January 28 ”), which is not limited in this embodiment of the present application.
- the notification bar may also specifically display the location information of which device is used by the App on which device.
- the notification bar may include text information of "App1 (mobile phone) is using user location information (mobile phone)".
- the mobile phone After the mobile phone detects that the user turns off the positioning function of the mobile phone, the mobile phone may display a GUI as shown in (c) in FIG. 4 .
- the user's operation of turning off the positioning function of the mobile phone may be an operation of the user sliding from right to left on the notification message 103 as shown in (b) of FIG. 4 .
- the GUI is the desktop of the mobile phone after the positioning function is turned off. Since the user has turned off the positioning function of the mobile phone, the location indicator 1011 is no longer displayed in the status bar 101 .
- the mobile phone can remind the user in the status bar that the app running in the background of the mobile phone uses the user's location information through the positioning device without the user's knowledge. And after the mobile phone detects that the user has turned off the positioning function of the mobile phone through the notification bar, the mobile phone can intercept the permission of the App to use the positioning device, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user experience .
- the mobile phone can intercept the permission of the App to use the positioning device, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user experience .
- FIG. 5 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- the mobile phone displays the desktop of the mobile phone.
- App1 is running in the background, and without the user's knowledge, the App1 is using the user's location information.
- the same as the GUI shown in (a) in FIG. The user's location information is being used.
- the mobile phone may not display the location indicator 1011 on the status bar 101 of the mobile phone.
- the user can know that an App is using the user's location information through the location indicator 1011 in the status bar 101 .
- the user can stop the App from using the user's location information through a positioning switch.
- the process of changing the GUI of the mobile phone is introduced when the user terminates the App using the user's location information through the location switch.
- the mobile phone After the mobile phone detects the user's operation of viewing the positioning function setting bar, the mobile phone may display a GUI as shown in (b) in FIG. 5 .
- the embodiment of the present application does not limit the specific form of the user's operation of viewing the positioning function setting column.
- the user's operation of viewing the positioning function setting bar may be the user's operation of clicking the location indicator 1011 as shown in (a) in FIG. 5 .
- the GUI is a display interface of the positioning function setting column.
- the positioning function setting column may include a positioning switch option 1041 .
- the location switch option 1041 may include the text information of "system location switch” and a location switch control 10411 .
- the notification column may also include other content, which is not limited in this embodiment of the present application.
- the mobile phone After the mobile phone detects that the user turns off the positioning function of the mobile phone, the mobile phone may display a GUI as shown in (c) in FIG. 5 .
- the user's operation of turning off the positioning function of the mobile phone may be an operation of the user clicking the positioning switch control 10411 as shown in (b) in FIG. 5 .
- the GUI is the desktop of the mobile phone after the positioning function of the mobile phone is turned off. Since the user has turned off the positioning function of the mobile phone, the location indicator 1011 is no longer displayed in the status bar 101 .
- the mobile phone can remind the user in the status bar that the application running in the background of the mobile phone uses the user's location information through the positioning device without the user's knowledge. And after the mobile phone detects that the user turns off the positioning function of the mobile phone through the positioning switch, the mobile phone can intercept the permission of App1 to use the positioning device, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user experience .
- the mobile phone can intercept the permission of App1 to use the positioning device, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user experience .
- FIG. 6 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- the mobile phone displays the desktop of the mobile phone.
- App1 is running in the background, and without the user's knowledge, the App1 is using the user's location information.
- the mobile phone can also remind the user App1 by displaying a location indicator 1011 in the status bar 101 of the mobile phone. The user's location information is being used.
- the mobile phone may not display the location indicator 1011 on the status bar 101 of the mobile phone.
- the mobile phone can also display a pop-up window on the mobile phone at the same time to remind App1 that the user's location information is being used by the pop-up window.
- the pop-up window 105 may include text information of "App1 is using the geographic location" and a termination control 1051 for stopping App1 from using the user's location information.
- the pop-up window 105 may also include an ignore control 1052 for ignoring App1 from using the user's location information.
- the pop-up window may also specifically display the location information of which device is used by the App on which device.
- the pop-up window 105 may include text information of "App1 (mobile phone) is using user location information (mobile phone)".
- the mobile phone may or may not display the mobile phone desktop, which is not limited in this embodiment of the present application.
- the mobile phone may also only display a pop-up window on the mobile phone to remind that App1 is using the user's location information.
- the user can know that an App is using the user's location information through the location indicator 1011 in the status bar 101 and/or the pop-up window 105 .
- the user does not want to stop the App from using the user's location information, in one example, the user does not need to perform any operations. In another example, the user can use the pop-up window to not stop the app from using the user's location information.
- the process of changing the GUI of the mobile phone is introduced when the user does not stop the App from using the user's location information through a pop-up window.
- the mobile phone When the mobile phone detects that the user clicks on the ignore control 1052, it considers that the user does not want to stop the App from using the user's location information. At this point, the App can continue to use the user's location information.
- the user can stop the App from using the user's location information through a pop-up window.
- the mobile phone After the mobile phone detects that the user clicks the operation of the termination control 1051, the mobile phone may display a GUI as shown in (b) in FIG. 6 .
- the GUI shown in (b) in FIG. 6 is the desktop of the mobile phone after the positioning function of the mobile phone is turned off. Since the user has turned off the positioning function of the mobile phone, the location indicator 1011 is no longer displayed in the status bar 101 .
- the mobile phone can remind the user not only through the status bar but also through the pop-up window: the application running in the background of the mobile phone uses the positioning device without the user's knowledge. location information. And after the mobile phone detects that the user closes the positioning function of the mobile phone through the pop-up window, the mobile phone can intercept the permission of the App to use the positioning device, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user experience .
- the application running in the background of the mobile phone uses the positioning device without the user's knowledge. location information.
- the mobile phone can intercept the permission of the App to use the positioning device, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user experience .
- the electronic device may first block the App from using the sensitive system capability. In this way, users can also determine whether to allow App to use sensitive system capabilities according to their actual needs.
- the electronic device 100 is described as an example of a mobile phone, which should not limit the present application.
- the electronic device 100 reminds the user that the sensitive system capability of the App has been intercepted by displaying a prompt message as an example.
- the embodiment of the present application does not limit the way the electronic device 100 reminds the user that the sensitive system capability of the App has been blocked.
- the electronic device 100 may remind the user that an App has been blocked from using sensitive system capabilities through vibration or voice playback.
- the user determines whether to allow the App to use sensitive system capabilities by interacting with the screen of the electronic device 100 as an example.
- the embodiment of the present application does not limit the method for the user to allow the App to use sensitive system capabilities.
- the user may also allow the App to use sensitive system capabilities through voice input.
- FIG. 7 is another set of GUIs of the mobile phone provided by the embodiment of the present application.
- the mobile phone displays the desktop of the mobile phone, and the desktop of the mobile phone includes icons of multiple Apps, and the multiple application programs include clock, calendar, gallery, memo, and App1.
- App1 is running in the background, and without the user's knowledge, App1 uses the user's location information, and the mobile phone has intercepted the permission of App1 to use the positioning device, that is, the mobile phone has intercepted the positioning function of the App1 using the positioning device Permission to access the user's location information.
- the mobile phone may also ask the user whether to allow the App1 to use the user's location information, that is, whether to allow the App1 to use the positioning device.
- the mobile phone may also display a pop-up window 106 on the mobile phone.
- the pop-up window 106 may include the text message "Please confirm whether to allow App1 to use the user's location information" and a control 1061 for allowing App1 to use the user's location information.
- the pop-up window 106 may also include a No control 1062 for not allowing App1 to use the user's location information.
- the pop-up window may also specifically display whether the App on which device is allowed to use the location information of which device.
- the pop-up window 106 may include the text message "Please confirm whether App1 (mobile phone) is allowed to use the user's location information (mobile phone)".
- the mobile phone may or may not display the mobile phone desktop, which is not limited in this embodiment of the present application.
- the user can know through the pop-up window 106 that there is an App that wants to use the user's location information.
- the user does not want to allow the App to use the user's location information, in one example, the user does not need to perform any operations. In another example, the user may not allow the App to use the user's location information through the pop-up window 106 .
- the mobile phone detects that the user clicks on the No control 1062, it considers that the user does not want to allow the App to use the user's location information. At this point, the App cannot continue to use the user's location information.
- the user can allow the App to use the user's location information through the pop-up window 106 .
- the mobile phone When the mobile phone detects that the user's click is the operation of the control 1061, the mobile phone can enable the positioning function.
- the mobile phone can also display a location indicator 1011 on the status bar 101 of the mobile phone to remind the user that the user's location information can be used. .
- the mobile phone can first intercept the mobile phone's permission to use the positioning device, and then , the mobile phone asks the user whether to allow the app to use the user's location information through a pop-up window, and after detecting that the user allows the app to use the user's location information through the pop-up window, the mobile phone releases the app's permission to use the positioning device, and then the app
- the user's location information can be used, thereby avoiding leakage of user privacy information (such as location information), and helping to improve user experience.
- users generally have more than one electronic device.
- the user owns other electronic devices besides the electronic device 100 .
- the user may not be able to see or hear a prompt from the electronic device 100 that the App is using sensitive system capabilities. This may cause the user to not be able to terminate the app's use of sensitive system capabilities in a timely manner, thereby unavoidably leaking the user's private information and bringing danger to the user.
- the electronic device 100 can also synchronize the information that the App on the electronic device 100 is using sensitive system capabilities across devices to other electronic devices. In this way, the user can also determine whether to terminate the use of sensitive system capabilities of the App on the electronic device 100 through other electronic devices according to their actual needs.
- the trusted relationship between the electronic device 100 and other electronic devices may be understood as the electronic device 100 is a trusted device of other electronic devices or the other electronic device is a trusted device of the electronic device 100 .
- the trusted relationship between the electronic device 100 and other electronic devices may be understood as the electronic device 100 and other electronic devices are mutually trusted devices. That is to say, the electronic device 100 is a trusted device of other electronic devices, and the other electronic devices are also trusted devices of the electronic device 100 .
- the embodiment of the present application does not limit the manner of establishing the trusted relationship between the electronic device 100 and other electronic devices.
- the electronic device 100 and other electronic devices can scan a QR code, an application, a personal identification number (personal identification number, PIN), log in to the same account (personal account or family account), account association (for example, link parents Trusted relationships can be established through methods such as associating your account with your child’s account), logging into the same Wi-Fi network, and establishing a short-distance connection.
- the distance between the electronic device 100 and other electronic devices satisfies a preset distance.
- the embodiment of the present application does not limit the specific value of the preset distance.
- the electronic device in the scene shown in FIG. 8 is only an example, which should not limit the present application.
- more electronic devices may also be included in the scene.
- FIG. 8 is an example diagram of an application scenario 200A provided by the embodiment of the present application.
- the scene 200A may include a smart TV 220 (an example of the electronic device 100 ), a mobile phone 210 (an example of other electronic devices) and a user 230 .
- the smart TV 220 in the living room is suspending playing TV dramas.
- User 230 is using mobile phone 210 in the bedroom.
- the App for example, Huawei Video
- the App playing TV series is obtaining the user's location information through the positioning function provided by the positioning device of Smart TV 220. location information.
- the smart TV 220 may first determine whether the user is within the preset range of the smart TV 220, and then take corresponding reminder measures according to the determined result.
- the smart TV 220 may also skip the step of determining whether the user is within the preset range of the smart TV 220 , and directly execute the subsequent reminding step. This embodiment of the present application does not limit it.
- the embodiment of the present application does not limit how the smart TV 220 determines whether the user is within the preset range of the smart TV 220 .
- the smart TV 220 may collect images, and judge whether the user is watching the smart TV 220 according to the collected images, to determine whether the user is within the preset range of the smart TV 220 .
- the smart TV 220 may determine whether the user is within the preset range of the smart TV 220 according to whether there is currently a user operating the smart TV 220 .
- the smart TV 220 may not intercept the permission of the Huawei video of the smart TV 220 to use the positioning device, that is, the smart TV 220 may not intercept the Huawei video of the smart TV 220 to access the user's location information.
- the smart TV 220 may further determine whether the user is a trusted user of the smart TV 220, and determine whether the user is a trusted user of the smart TV 220. In the case of the user, the smart TV 220 does not intercept the permission of the Huawei video of the smart TV 220 to use the positioning device.
- the trusted users of the smart TV 220 can be understood as users who can use the smart TV 220 .
- the embodiment of the present application does not limit how the smart TV 220 determines whether the user is a trusted user of the smart TV 220.
- the smart TV 220 may collect images, and judge whether the user is a trusted user pre-stored in the smart TV 220 according to the collected images.
- the smart TV 220 may also remind the user through the smart TV 220 that Huawei Video is using the user's location information on the smart TV 220 .
- the smart TV 220 can remind the user that Huawei Video is using the user's location information by displaying a location indicator 2211 on the status bar 221 of the smart TV 220 .
- the position of the position indicator 2211 in the status bar 221 shown in (a) of FIG. 9 is only an example, and it should not limit the present application.
- the embodiment of the present application does not limit the position of the position indicator 2211 in the status bar 221 .
- the smart TV 220 may display a pop-up window 222 on the display interface of the smart TV 220 to remind the user that Huawei Video is using the user's location information.
- the pop-up window 222 may include text information of "Huawei Video is using the geographic location" and a termination control 2221 for terminating the use of the user's location information by Huawei Video.
- the pop-up window 222 may also include an ignore control 2222 for ignoring the location information of the Huawei video user.
- the pop-up window 222 may also specifically display the location information of which device is used by the App on which device.
- the pop-up window 222 may include text information of "Huawei Video (smart TV) is using user location information (smart TV)".
- the smart TV 220 may send the first indication information to the mobile phone 210 .
- the first indication information may be used to indicate that the Huawei video of the smart TV 220 is using the user's location information.
- the smart TV 220 may also remind the user through the smart TV 220 that the Huawei video of the smart TV 220 is using the user's location information. How the smart TV 220 reminds the user that the Huawei video of the smart TV 220 is using the user's location information can be described as an example above, and will not be repeated here.
- the mobile phone 210 may remind the user that the Huawei video of the smart TV 220 is using the user's location information.
- the mobile phone 210 can remind the user that the Huawei video on the smart TV 220 is using the user's location information by displaying a location indicator 2111 on the status bar 211 of the mobile phone 210 .
- the embodiment of the present application does not limit the position of the position indicator 2111 in the status bar 101 .
- the position indicator 2111 is on the left side of the status bar 101 .
- the position indicator 2111 is on the right side of the status bar 101 .
- the device reminds that the own device uses the user's location information in a different way than other devices use the user's location information.
- the color and/or position of the location indicator displayed when the device uses the user's location information is different from that displayed by other devices when the user's location information is used.
- the location indicator displayed by the user's location information is not the same color, for example, the location indicator displayed by this device may be green; the location indicator displayed by other devices Can be red.
- the location indicator displayed by the current device may be red; the location indicators displayed by other devices may be green.
- this device can display the location indicator on the left side of the status bar, and other devices can display the location indicator on the status bar.
- the left position of the bar displays a position indicator.
- the smart TV 220 displays the location indicator 2211 on the left side of the status bar 221
- the mobile phone 210 displays the location indicator 2111 on the right side of the status bar 211 .
- the smart TV 220 displays the location indicator 2211 on the right side of the status bar 221
- the mobile phone 210 displays the location indicator 2111 on the left side of the status bar 211 .
- some information of other devices may also be displayed.
- the mobile phone 210 may also display the type identification of the smart TV 220 on the status bar 211 of the mobile phone 210 .
- the embodiment of the present application does not limit the specific form of the type identification of the smart TV 220 .
- the type identifier 2112 of the smart TV 220 may be the outline of the smart TV 220 .
- the embodiment of the present application does not limit the positional relationship between the type identifier of the smart TV 220 and the position indicator 2111 in the status bar 211 .
- the location indicator 2111 and the type identification of the smart TV 220 may be displayed in combination. For example, as shown in (c) in FIG. 10 and (d) in FIG. 10 , the position indicator 2111 may be set at the middle position of the type identification 2112 of the smart TV 220 .
- the user can know that the App on other devices is using the user's location information through the location indicator 2111 in the status bar 211 .
- the user can use the mobile phone 210 to stop the apps on other devices from using the user's location information.
- FIG. 11 shows the changing process of the GUI of the mobile phone 210 when the user terminates the use of the user's location information by the Huawei video on the smart TV 220 through the control bar.
- FIG. 12 shows the change process of the GUI of the mobile phone 210 when the user terminates the use of the user's location information by the Huawei video on the smart TV 220 through the notification bar.
- FIG. 13 shows the change process of the GUI of the mobile phone 210 when the user terminates the use of the user's location information by the Huawei video on the smart TV 220 through the positioning function setting bar.
- FIG. 14 shows the change process of the GUI of the mobile phone 210 when the user terminates the use of the user's location information by the Huawei Video app on the Smart TV 220 through a pop-up window.
- the mobile phone 210 reminds the user that the Huawei video on the smart TV 220 is using the user's location information by displaying prompt information as an example.
- the embodiment of the present application does not limit the manner in which the mobile phone 210 reminds the user that the Huawei video on the smart TV 220 is using the user's location information.
- the mobile phone 210 can remind the user that the Huawei video on the smart TV 220 is using the user's location information through vibration or voice playback.
- the user determines whether to terminate the Huawei video on the smart TV 220 by interacting with the screen of the mobile phone 210 as an example to describe the use of the user's location information.
- the manner in which the Huawei video on the smart TV 220 uses the location information of the user is not limited.
- the user can also terminate the function of using the user's location information on the Huawei video on the smart TV 220 through voice input.
- FIG. 11 to FIG. 14 all take the position of the position indicator 2111 on the right side of the status bar 211 as an example for description, which should not limit the present application.
- the mobile phone 210 may be on the mobile phone 210.
- the status bar displays a location indicator 2111. If the mobile phone 210 does not use the positioning device or the mobile phone 210 does not receive an indication that other electronic devices use the positioning device, the first electronic device does not display the location indicator 2111 on the status bar of the mobile phone 210 .
- FIG. 11 is a set of GUIs of the mobile phone 210 provided by the embodiment of the present application.
- the mobile phone 210 displays the desktop of the mobile phone.
- the desktop of the mobile phone includes icons of a plurality of Apps, and the plurality of Apps include a clock, a calendar, a gallery, a note, an application store, and the like.
- the mobile phone 210 may display a GUI as shown in (b) in FIG. 11 .
- the user's operation of viewing the control bar may be an operation of the user sliding down the right side of the status bar 211 of the mobile phone 210 as shown in (a) in FIG. 11 .
- the GUI is a display interface displaying a control bar 212 .
- the control bar 212 may include one or more controls for controlling the mobile phone 210 .
- the control bar 212 includes a Wi-Fi control for turning on or off the Wi-Fi signal connection function, a mobile data control for turning on or off the mobile data connection function, and A Bluetooth control for turning on or off Bluetooth, a control for turning on mute, a location control 2121 for turning on or off the positioning function, and the like.
- the control column 212 may also include other content, which is not limited in this embodiment of the present application.
- the location control 2121 is in the off state.
- the mobile phone 210 since the mobile phone 210 has received the first indication information sent by the smart TV 220 , the mobile phone 210 can remind the user at the location control 2121 that Huawei Video on the smart TV 220 uses the user's location information.
- the embodiment of the present application does not limit the manner in which the mobile phone 210 reminds the user that the Huawei video on the smart TV 220 uses the user's location information at the location control 2121 .
- the mobile phone 210 displays the text message "Huawei video of the smart TV is using” to remind the user that Huawei video is using the user's location information" below the location control 2121.
- the mobile phone 210 can also specifically display the location information of which device is used by the App on which device at the location control 2121 .
- the mobile phone 210 displays the text message "Huawei Video (smart TV) is using user location information (smart TV)" below the location control 2121.
- the mobile phone 210 may send the second indication information to the smart TV 220 .
- the second instruction information is used to instruct the smart TV 220 to terminate the Huawei video on the smart TV 220 to use the location information of the user, that is, the second instruction information is used to instruct the smart TV 220 to turn off the positioning function of the smart TV 220 .
- the embodiment of the present application does not limit the specific form in which the user terminates the operation of using the user's location information by the Huawei video on the smart TV 220 .
- the user's operation of terminating the use of the user's location information by Huawei Video on the smart TV 220 may include a series of operations from (b) to (d) in FIG. 11 .
- the mobile phone 210 may display a GUI as shown in (c) in FIG. 11 .
- the GUI is a display interface of the positioning function setting column.
- the positioning function setting bar may include a title bar 2122 and at least one display bar 2123 .
- the title bar 2122 may display "Location Information" text information.
- the display column 2123 may display: the type of device using the user's location information (outline of the smart TV), the device identifier (smart TV) using the user's location information, and the logo of Huawei Video.
- the positioning function setting column may also include other content, which is not limited in this embodiment of the present application.
- the mobile phone 210 may display a pop-up window 2124 as shown in (d) in FIG. 11 .
- the pop-up window 2124 may include the text message "Huawei Video (smart TV) is using the geographic location" and a termination control 21241 for terminating the use of the user's location information by Huawei Video (smart TV) .
- the pop-up window 2124 may also include an ignore control 21242 for ignoring Huawei Video (smart TV) using the user's location information.
- the pop-up window 2124 may also specifically display the location information of which device is used by the App on which device.
- the pop-up window 2124 may include text information of "Huawei Video (smart TV) is using user location information (smart TV)".
- the mobile phone 210 detects that the user clicks on the termination control 21241 , it is considered that the mobile phone 210 detects that the user wants to terminate the use of the user's location information by the Huawei video on the smart TV 220 .
- the user can click the ignore control 21242 .
- the mobile phone 210 detects that the user clicks the operation of ignoring the control 21242, it is considered that the mobile phone 210 detects that the user does not want to terminate the operation of using the user's location information on the Huawei video on the smart TV 220.
- the mobile phone 210 and the smart TV 220 do not need to perform any operations.
- the mobile phone 210 can remind the user through the status bar that the Huawei video running in the foreground of the smart TV 220 uses the user's location through the positioning device without the user's knowledge. information. And the user can stop the Huawei video on the smart TV 220 from using the user's location information through the control bar, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user's experience.
- the Huawei video running in the foreground of the smart TV 220 uses the user's location through the positioning device without the user's knowledge. information.
- the user can stop the Huawei video on the smart TV 220 from using the user's location information through the control bar, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user's experience.
- FIG. 12 is another set of GUIs of the mobile phone 210 provided by the embodiment of the present application.
- the mobile phone 210 displays the desktop of the mobile phone.
- the desktop of the mobile phone includes icons of a plurality of Apps, and the plurality of Apps include a clock, a calendar, a gallery, a note, an application store, and the like.
- the mobile phone 210 may display a GUI as shown in (b) in FIG. 12 .
- the user's operation of viewing the notification bar may be an operation of the user sliding down along the left side of the status bar 101 of the mobile phone 210 as shown in (a) in FIG. 12 .
- the GUI is a display interface for displaying a notification bar.
- the notification bar may include one or more notification messages.
- the notification bar includes a notification message 213 and so on, and the notification message 213 includes text information of "Huawei Video (smart TV) is using geographic location".
- the notification column may also include other content, which is not limited in this embodiment of the present application.
- the notification message 213 may also specifically display the location information of which device is used by the App on which device.
- the notification message 213 may include text information of "Huawei Video (smart TV) is using user location information (smart TV)".
- the mobile phone 210 may send the second indication information to the smart TV 220 .
- the second indication information For the relevant description of the second indication information, reference may be made to the above relevant description, which will not be repeated here.
- the user's operation of terminating the use of the user's location information by Huawei Video on the smart TV 220 may include a series of operations of (b) in FIG. 12 and (c) in FIG. 12 .
- the mobile phone 210 may display a GUI as shown in (c) in FIG. 12 .
- a termination control 2131 for terminating the use of the user's location information by Huawei Video on the smart TV 220 may also be displayed on the notification message 213 .
- an ignore control 2132 for ignoring the location information of the Huawei video user on the smart TV 220 may also be displayed on the notification message 213, which is not limited in this embodiment of the present application.
- the mobile phone 210 detects that the user clicks on the termination control 2131 , it is considered that the mobile phone 210 detects that the user wants to terminate the use of the user's location information by the Huawei video on the smart TV 220 .
- the user can click the ignore control 2132 .
- the mobile phone 210 detects that the user clicks the operation of ignoring the control 2132, it is considered that the mobile phone 210 detects that the user does not want to terminate the operation of using the user's location information on the Huawei video on the smart TV 220.
- the mobile phone 210 and the smart TV 220 do not need to perform any operations.
- the mobile phone 210 can remind the user through the status bar that the Huawei video running in the foreground of the smart TV 220 uses the user's location through the positioning device without the user's knowledge. information. And the user can stop the Huawei video on the smart TV 220 from using the user's location information on the notification bar, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user's experience.
- the Huawei video running in the foreground of the smart TV 220 uses the user's location through the positioning device without the user's knowledge. information.
- the user can stop the Huawei video on the smart TV 220 from using the user's location information on the notification bar, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user's experience.
- FIG. 13 is another set of GUIs of the mobile phone 210 provided by the embodiment of the present application.
- the mobile phone 210 displays the desktop of the mobile phone.
- the desktop of the mobile phone includes icons of a plurality of Apps, and the plurality of Apps include a clock, a calendar, a gallery, a note, an application store, and the like.
- the mobile phone 210 After the mobile phone 210 detects the user's operation of viewing the positioning function setting bar, the mobile phone 210 may display a GUI as shown in (b) in FIG. 13 .
- the user's operation of viewing the positioning function setting bar may be the user's operation of clicking the location indicator 2111 as shown in (a) in FIG. 13 .
- the GUI is a display interface of the positioning function setting column.
- the positioning function setting bar may include a positioning switch option title bar 2141 and at least one display bar 2142 .
- the title bar 2141 of the positioning switch option may display the text information of “system positioning switch” and a positioning switch control 21411 .
- the positioning switch control 21411 is in the off state.
- the mobile phone 210 can remind the user at the location control 2121 that Huawei Video on the smart TV 220 uses the user's location information.
- the display column 2142 may display text information of "system positioning switch (smart TV)", which may be understood as the system positioning switch of the smart TV is on.
- the positioning function setting column may also include other content, which is not limited in this embodiment of the present application.
- the mobile phone 210 may send the second indication information to the smart TV 220 .
- the second indication information For the relevant description of the second indication information, reference may be made to the above relevant description, which will not be repeated here.
- the user's operation of terminating the use of the user's location information by Huawei Video on the smart TV 220 may include a series of operations of (b) in FIG. 13 and (c) in FIG. 13 .
- the mobile phone 210 may display a pop-up window 215 as shown in (c) in FIG. 13 .
- the pop-up window 215 may include the text information "Huawei video (smart TV) is using the geographic location" and a termination control 2151 for terminating the use of the user's location information by Huawei video (smart TV) .
- the pop-up window 215 may also include an ignore control 2152 for ignoring Huawei Video (smart TV) using the user's location information.
- the pop-up window 215 can also specifically display the location information of which device is used by the App on which device.
- the pop-up window 215 may include text information of "Huawei Video (smart TV) is using user location information (smart TV)".
- the mobile phone 210 detects that the user clicks on the termination control 2151 , it is considered that the mobile phone 210 detects that the user wants to terminate the use of the user's location information by the Huawei video on the smart TV 220 .
- the user can click the ignore control 2152 .
- the mobile phone 210 detects that the user clicks the operation of ignoring the control 2152, it is considered that the mobile phone 210 detects that the user does not want to terminate the operation of using the user's location information on the Huawei video on the smart TV 220.
- the mobile phone 210 and the smart TV 220 do not need to perform any operations.
- the mobile phone 210 can remind the user through the status bar that the Huawei video running in the foreground of the smart TV 220 uses the user's location through the positioning device without the user's knowledge. information. And the user can terminate the Huawei video on the smart TV 220 from using the user's location information through the positioning function setting bar, thereby avoiding the leakage of user privacy information (such as location information), and helping to improve the user experience.
- user privacy information such as location information
- FIG. 14 is another set of GUIs of the mobile phone 210 provided by the embodiment of the present application.
- the mobile phone 210 not only displays the location indicator 2111 in the status bar 211 of the mobile phone 210, but also displays prompt information to remind the user that Huawei Video on the smart TV 220 uses the user's location information.
- the mobile phone 210 displays a pop-up window 216 .
- the pop-up window 216 may include text information of "Huawei Video (smart TV) is using the geographic location" and a termination control 2161 for terminating the use of the user's location information by Huawei Video on the Huawei Smart TV 220 .
- the pop-up window 216 may also include an ignore control 2162 for ignoring the location information of the Huawei video user on the smart TV 220 .
- the pop-up window 216 may also specifically display the location information of which device is used by the App on which device.
- the pop-up window 216 may include text information of "Huawei Video (smart TV) is using user location information (smart TV)".
- the mobile phone 210 When the mobile phone 210 detects that the user clicks on the termination control 2161 , it is considered that the mobile phone 210 detects that the user wants to terminate the use of the user's location information by the Huawei video on the smart TV 220 . After the mobile phone 210 detects that the user wants to terminate the operation of using the user's location information on the Huawei video on the smart TV 220 , the mobile phone 210 may send the second indication information to the smart TV 220 . For the relevant description of the second indication information, reference may be made to the above relevant description, which will not be repeated here.
- the user can click the ignore control 2162 .
- the mobile phone 210 detects that the user clicks the operation of ignoring the control 2162 , it is considered that the mobile phone 210 detects that the user does not want to terminate the operation of using the user's location information on the Huawei video on the smart TV 220 .
- the mobile phone 210 and the smart TV 220 do not need to perform any operations.
- the mobile phone 210 can remind the user through a pop-up window that the Huawei video running in the foreground of the smart TV 220 uses the user's location information through the positioning device without the user's knowledge. And the user can stop the Huawei video on the smart TV 220 from using the user's location information through the pop-up window, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user experience.
- the Huawei video running in the foreground of the smart TV 220 uses the user's location information through the positioning device without the user's knowledge.
- the user can stop the Huawei video on the smart TV 220 from using the user's location information through the pop-up window, thereby avoiding the leakage of the user's private information (such as location information), and helping to improve the user experience.
- the smart TV 220 may automatically terminate the use of the user's location information by Huawei Video on the smart TV 220.
- the embodiment of the present application does not limit how the smart TV 220 automatically terminates the operation of using the user's location information by the Huawei video on the smart TV 220 .
- the smart TV 220 may terminate the use of the user's location information by the Huawei video on the smart TV 220 by disabling the positioning function.
- the smart TV 220 used the location indicator 2211 to remind the user that Huawei Video is using the user's location information, at this time, since the positioning function of the smart TV 220 has been turned off, the status bar 221 of the smart TV 220 will display The location indicator 2211 is no longer displayed.
- the smart TV 220 can also directly terminate the process of using the user's location information on the smart TV 220, or directly close the Huawei video, or directly close the permission to use the positioning device, to terminate the smart TV 220.
- Huawei Video uses the user's location information.
- the smart TV 220 may also send third indication information to the mobile phone 210, the third indication information is used to indicate that the smart TV 220 has terminated the use of user location information by Huawei Video.
- the mobile phone 210 ends the behavior of reminding the user that Huawei Video on the smart TV 220 uses the user's location information through the mobile phone 210 .
- the mobile phone 210 used the location indicator 2111 to remind the user that the Huawei video on the smart TV 220 uses the user's location information.
- the location indicator 2111 will no longer be displayed in the status bar 221 of the mobile phone 210 .
- the mobile phone 210 reminds the user that the Huawei video on the smart TV 220 uses the user's location information through a prompt message. At this point, the mobile phone 210 will no longer display the prompt information.
- the smart TV 220 may also first intercept the permission of the app playing TV dramas on the smart TV 220 to use the user's location information. Then, the smart TV 220 may send the first indication information to the mobile phone 210 . Wherein, the first indication information may be used to indicate that the smart TV 220 has intercepted the right of the smart TV 220 to use the location information of the user by the App playing TV dramas on the smart TV 220 .
- the smart TV 220 may also remind the user through the smart TV 220 at this time that the smart TV 220 has intercepted the permission of the Huawei video of the smart TV 220 to use the user's location information.
- the smart TV 220 reminds the user that the Huawei video of the smart TV 220 is using the user's location information permission
- the mobile phone 210 may remind the user that the smart TV 220 has intercepted the permission of Huawei Video on the smart TV 220 to use the user's location information.
- FIG. 15 is the GUI of the mobile phone 210 provided by the embodiment of the present application.
- the mobile phone 210 may display a pop-up window 217 on the mobile phone 210 to remind the user that the smart TV 220 has intercepted the authorization of the user's location information for the Huawei video of the smart TV 220 .
- the pop-up window 217 may include the text message "Please confirm whether to allow the Huawei video of the smart TV to use the user's location information" and the text information used to allow (or release) the Huawei video of the smart TV to use the user's location information. Control 2171.
- the pop-up window 217 may also include a No control 2172 for disallowing (or not allowing) Huawei Video of the smart TV to use the user's location information.
- the pop-up window 217 may also specifically display the location information of which device is allowed to be used by the App on which device.
- the pop-up window 217 may include the text message "Please confirm whether Huawei Video (smart TV) is allowed to use user location information (smart TV)".
- the mobile phone 210 may send the second indication information to the smart TV 220 .
- the second indication information is used to indicate that Huawei Video of the smart TV is allowed to use the user's location information.
- the smart TV 220 may automatically allow Huawei Video of the smart TV to use the location information of the user. For example, the smart TV 220 can automatically turn on the system positioning switch, so that Huawei Video can use the positioning function of the smart TV 220 .
- the mobile phone 210 detects that the user clicks the ignore control 2172 or that the mobile phone 210 does not receive the instruction within the preset time, it is considered that the mobile phone 210 detects that the user does not want to allow the Huawei video of the smart TV to use the user's location information. . At this time, the mobile phone 210 and the smart TV 220 do not need to perform any operations.
- the smart TV 220 can also send third indication information to the mobile phone 210, the third indication information is used to indicate that the smart TV 220 has allowed Huawei Video to use users' location information.
- the mobile phone 210 stops reminding the user through the mobile phone 210 that the smart TV 220 has intercepted the permission of Huawei Video on the smart TV 220 to use the user's location information. For example, if the mobile phone 210 has previously reminded the user that the smart TV 220 has intercepted the permission of Huawei Video on the smart TV 220 to use the user's location information through a prompt message. At this point, the mobile phone 210 will no longer display the prompt information.
- FIG. 16 is the GUI of the mobile phone 210 provided by the embodiment of the present application.
- the mobile phone 210 may display a notification message on the mobile phone 210 to remind the user that the smart TV 220 has intercepted the right of Huawei Video on the smart TV 220 to use the user's location information.
- the mobile phone 210 is a display interface displaying a notification bar.
- the notification bar may include one or more notification messages.
- the notification bar includes a notification message 218, etc.
- the notification message 218 includes a message title bar (for example, "blocked") and text information (for example, "Huawei Video (Smart TV) ) using geolocation").
- the notification column may also include other content, which is not limited in this embodiment of the present application.
- the notification message 218 can also specifically display the location information of which device is used by the App on which device is intercepted.
- the notification message 218 may include text information of "Huawei Video (smart TV) uses user location information (smart TV)".
- the mobile phone 210 may send the second indication information to the smart TV 220 .
- the second indication information is used to indicate that Huawei Video of the smart TV is allowed to use the user's location information.
- the embodiment of the present application does not limit the specific form of the user's operation of allowing the Huawei video of the smart TV 220 to use the user's location information.
- the user's operation of allowing Huawei Video on the smart TV 220 to use the user's location information may include a series of operations as shown in (a) in FIG. 16 and (b) in FIG. 16 .
- the mobile phone 210 may display a GUI as shown in (b) in FIG. 16 .
- an allow control 2181 for allowing Huawei Video on the smart TV 220 to use the user's location information may also be displayed on the notification message 218 .
- an ignore control 2182 for ignoring the permission of the intercepted Huawei video user's location information of the smart TV 220 may also be displayed on the notification message 218 , which is not limited in this embodiment of the present application.
- the mobile phone 210 detects that the user clicks the operation of the allow control 2181, it is considered that the mobile phone 210 detects that the user wants to allow Huawei Video on the smart TV 220 to use the user's location information.
- the user can click the ignore control 2182 .
- the mobile phone 210 detects that the user clicks the operation of ignoring the control 2182, it is considered that the mobile phone 210 detects that the user does not want to allow Huawei Video on the smart TV 220 to use the user's location information.
- the mobile phone 210 and the smart TV 220 do not need to perform any operations.
- the smart TV 220 may automatically allow Huawei Video of the smart TV to use the location information of the user. For example, the smart TV 220 can automatically turn on the system positioning switch, so that Huawei Video can use the positioning function of the smart TV 220 .
- the mobile phone 210 detects that the user clicks the ignore control 2182 or that the mobile phone 210 does not receive the instruction within the preset time, it is considered that the mobile phone 210 detects that the user does not want to allow the Huawei video of the smart TV to use the user's location information. . At this time, the mobile phone 210 and the smart TV 220 do not need to perform any operations.
- the smart TV 220 can also send third indication information to the mobile phone 210, the third indication information is used to indicate that the smart TV 220 has allowed Huawei Video to use users' location information.
- the mobile phone 210 ends the action of reminding the user that the smart TV 220 has intercepted the Huawei video of the smart TV 220 from using the user's location information through the mobile phone 210 .
- the mobile phone 210 reminds the user that the smart TV 220 has intercepted the use of the user's location information by the Huawei video of the smart TV 220 through a prompt message. At this point, the mobile phone 210 will no longer display the prompt information.
- the electronic device in the scene shown in FIG. 17 is only an example, which should not limit the present application.
- more electronic devices may also be included in the scene.
- FIG. 17 is an example diagram of an application scenario 200B provided by the embodiment of the present application.
- the scene 200B may include a smart TV 220 (an example of the electronic device 100 ), a speaker 240 (an example of other electronic devices) and a user 230 .
- the smart TV 220 in the living room is suspending playing TV dramas.
- Both the user 230 and the speaker 240 are in the bedroom, and the speaker 240 is turned on.
- the smart TV 220 is using the location information of the user for an App (for example, Huawei Video) that plays TV dramas.
- App for example, Huawei Video
- the smart TV 220 may first determine whether the user is within the preset range of the smart TV 220, and then take corresponding reminder measures according to the determined result.
- the operation of the smart TV 220 can refer to the related description above, which will not be repeated here.
- the smart TV 220 may send the first indication information to the speaker 240 .
- the first indication information may be used to indicate that the Huawei video of the smart TV 220 is using the user's location information.
- the smart TV 220 may also remind the user through the smart TV 220 that the Huawei video of the smart TV 220 is using the user's location information.
- the smart TV 220 reminds the user that the Huawei video of the smart TV 220 is using the user's location information.
- the speaker 240 may remind the user that the Huawei video of the smart TV 220 is using the user's location information.
- the speaker 240 can remind the user that the Huawei video on the smart TV 220 is using the user's location information by playing voice.
- the speaker 240 can play a voice message "Huawei Video of the smart TV is using the user's location information".
- the speaker 240 may play a voice message of "the location information of the smart TV's Huawei video user who is using the smart TV”.
- the speaker 240 can play a voice to remind the user whether to terminate or ignore that the Huawei video of the smart TV 220 is using the user's location information.
- the speaker 240 can periodically play voices to remind the user whether to terminate or ignore the permission that the Huawei video of the smart TV 220 is using the user's location information until the speaker 240 receives further instructions. This application is not limited to this.
- the speaker 240 plays the voice message "Please confirm whether to terminate or ignore the permission of Huawei Video of the smart TV to use the user's location information".
- the speaker 240 can play the voice message "Please confirm whether to terminate or ignore the location information of the smart TV user's Huawei video who is using the smart TV”.
- the speaker 240 may not perform any operation. For example, the user 230 inputs a "ignore" voice message to the speaker 240 by voice. At this time, the voice message is an operation that the user does not want to terminate the use of the user's location information by the Huawei Video of the smart TV 220 .
- the speaker 240 may send the second indication information to the smart TV 220 .
- the second instruction information is used to instruct the smart TV 220 to terminate the right of the Huawei video of the smart TV 220 to use the user's location information.
- the user 230 inputs a voice message of "terminate" to the speaker 240 by voice.
- the voice message is an operation that the user wants to terminate the Huawei video of the smart TV 220 from using the user's location information.
- the speaker 240 does not receive an instruction from the user 230 within the preset time, the speaker 240 assumes that the user does not want to terminate the authorization of the Huawei video of the smart TV 220 to use the user's location information. At this time, the speaker 240 and the smart TV 220 do not need to perform any operations.
- the embodiment of the present application does not limit the specific value of the preset time.
- the speaker 240 can also play a voice to remind the user that the user is using the location information of the user according to the instructions for further processing.
- the speaker 240 plays the voice message "OK, we are helping you terminate the permission of Huawei Video of the smart TV to use the user's location information on the smart TV, please wait a moment".
- the smart TV 220 may automatically terminate the use of the user's location information by Huawei Video on the smart TV 220.
- the smart TV 220 can also send third indication information to the speaker 240, the third indication information is used to indicate that the smart TV 220 has terminated the use of user location information by Huawei Video.
- the speaker 240 ends the action of reminding the user that Huawei Video on the smart TV 220 uses the user's location information through the speaker 240 .
- the speaker 240 may no longer remind the user that the Huawei video on the smart TV 220 uses the user's location information by playing voice.
- the smart TV 220 may first intercept the permission of the Huawei video on the smart TV 220 to use the user's location information. Then, the smart TV 220 may send the first indication information to the speaker 240 . Wherein, the first indication information may be used to indicate that the smart TV 220 has intercepted the right of the Huawei video of the smart TV 220 to use the user's location information.
- the speaker 240 may remind the user that the smart TV 220 has intercepted the authorization of Huawei Video on the smart TV 220 to use the user's location information.
- the speaker 240 can play the voice message "Smart TV has intercepted the permission of the Huawei video of the smart TV to use the user's location information, please confirm whether to allow the Huawei video of the smart TV to use the user's location information (smart TV)".
- the speaker 240 may not perform any operation. For example, the user 230 inputs a voice message of "No" to the speaker 240 by voice. At this time, the voice message is an operation that the user does not allow the Huawei video of the smart TV 220 to use the user's location information.
- the speaker 240 may send the second indication information to the smart TV 220 .
- the second indication information is used to indicate that Huawei Video of the smart TV 220 is allowed to use the user's location information.
- the smart TV 220 may automatically allow Huawei Video of the smart TV to use the location information of the user. For example, the smart TV 220 can automatically turn on the system positioning switch, so that Huawei Video can use the positioning function of the smart TV 220.
- the smart TV 220 can also send third indication information to the speaker 240, the third indication information is used to indicate that the smart TV 220 has allowed Huawei Video to use users' location information.
- the speaker 240 ends the act of reminding the user that the smart TV 220 has intercepted the Huawei video of the smart TV 220 from using the user's location information through the speaker 240 .
- the speaker 240 may no longer remind the user that the Smart TV 220 has intercepted the right of Huawei Video on the Smart TV 220 to use the user's location information by playing voice.
- the electronic device in the scene shown in FIG. 19 is only an example, which should not limit the present application.
- more electronic devices may also be included in the scene.
- FIG. 19 is an example diagram of an application scenario 200C provided by the embodiment of the present application.
- the scene 200C may include smart TV 220 (an example of electronic device 100 ), mobile phone 210 (an example of other electronic device), headset 250 (another example of other electronic device) and user 230 .
- the smart TV 220 in the living room is suspending playing TV dramas.
- the user 230 is using the mobile phone 210 wearing the earphone 250 in the bedroom, and the earphone 250 and the mobile phone 210 are in a connected state.
- the smart TV 220 is using the location information of the user for an App (for example, Huawei Video) that plays TV dramas.
- App for example, Huawei Video
- the smart TV 220 may first determine whether the user is within the preset range of the smart TV 220, and then take corresponding reminder measures according to the determined result.
- the operation of the smart TV 220 can refer to the related description above, which will not be repeated here.
- the smart TV 220 may also send the first indication information to the earphone 250 or the mobile phone 210 according to the reminder strategy.
- the first indication information may be used to indicate that the Huawei video of the smart TV 220 is using the user's location information.
- the smart TV 220 may also remind the user through the smart TV 220 at this time that Huawei Video is using the smart TV 220 to use the user's location information.
- the smart TV 220 reminds the user that the Huawei video of the smart TV 220 is using the user's location information.
- the reminder policy may be preset by the user or configured by the system.
- the reminder strategy includes: reminding the worn electronic device (such as earphones or watches) that the App on the smart TV is using sensitive system capabilities; reminding the mobile phone that the App on the smart TV is using sensitive system capabilities; Remind that the app on the smart TV is using sensitive system capabilities; remind the electronic device operated by the user that the app on the smart TV is using sensitive system capabilities; remind the unlocked electronic device that the app on the smart TV is using sensitive system capabilities, and the electronic device There are password locks and so on.
- the worn electronic device such as earphones or watches
- the reminder strategy is preset by the user, the user can also change the reminder strategy through corresponding setting options, which is not limited in this embodiment of the present application.
- the reminder strategy includes reminding the user of the electronic device worn by the user that the App on the smart TV is using sensitive system capabilities, at this time, the smart TV 220 only sends the first indication information to the earphone 250, and does not send the first indication information to the mobile phone 210.
- the earphone 250 may remind the user that the Huawei video of the smart TV 220 is using the user's location information.
- the speaker 240 may send the second indication information to the smart TV 220 .
- the second indication information is used to instruct the smart TV 220 to stop the Huawei video of the smart TV 220 from using the location information of the user.
- the smart TV 220 may first intercept the permission information of the Huawei video on the smart TV 220 to use the user's location information. Then, the smart TV 220 may send the first indication information to the earphone 250 or the mobile phone 210 according to the reminder strategy. Wherein, the first indication information may be used to indicate that the smart TV 220 has intercepted the right of the Huawei video of the smart TV 220 to use the user's location information.
- the smart TV 220 sends the first indication information to the earphone 250, and does not send the first indication information to the mobile phone 210.
- the electronic device in the scene shown in FIG. 21 is only an example, which should not limit the present application.
- more electronic devices may also be included in the scene.
- FIG. 21 is an example diagram of an application scenario 200D provided by the embodiment of the present application.
- the scene 200D may include a mobile phone 210 (an example of the electronic device 100 ), a smart watch 260 (an example of other electronic devices), a tablet 270 (another example of other electronic devices) and a user 230 .
- the user 230 is sleeping on the bus, the user 230 wears the smart watch 260 on the wrist, and the mobile phone 210 is in the trouser pocket of the user 230 , and the tablet 270 is in the backpack of the user 230 .
- chat App of the mobile phone 210 is running in the background without the user's knowledge, and is using the audio module of the mobile phone 210, that is, the chat App is using the recording function provided by the audio module of the mobile phone 210 to obtain the user's recording information.
- the mobile phone 210 may first determine whether the user is within the preset range of the mobile phone 210, and then take corresponding reminder measures according to the determination result.
- the operation of the mobile phone 210 can refer to the relevant description above about the user being within the preset range of the smart TV 220 , which will not be repeated here.
- the mobile phone 210 may According to the reminder policy, the first indication information is sent to the smart watch 260 or the tablet 270 . Wherein, the first indication information may be used to indicate that the chat App is using the recording information of the user.
- the mobile phone 210 may also remind the user through the mobile phone 210 that the chatting App is using the recorded information of the user. How the mobile phone 210 reminds the user that the chat app is using the user's recording information can be described as an example of how the smart TV 220 reminds the user that the Huawei video is using the user's location information, and will not be repeated here.
- the mobile phone 210 sends the first indication information to the smart watch 260 and does not send the first indication information to the tablet 270 .
- the smart watch 260 After the smart watch 260 receives the first indication information, the smart watch 260 can remind the user that the chatting App is using the recorded information of the user.
- the smart watch 260 can remind the user that the chatting App is using the recorded information of the user by vibrating and displaying information.
- the smart watch 260 may display an interface 261 on the smart watch 260 while vibrating.
- the display interface 261 may display the text message "chat App (mobile phone) is using the recording information" and a termination control 2611 for terminating the recording information of the user using the chat App of the mobile phone.
- the display interface 261 may also display an ignore control 2612 for ignoring the recorded information of the user using the mobile phone's chat App.
- the display interface 261 may also specifically display the location information of which device is used by the App on which device.
- the display interface 261 may display the text message "chat App (mobile phone) is using recorded information (mobile phone)".
- the smart watch 260 When the smart watch 260 detects that the user clicks the operation of the termination control 2611 , that is, it considers that the user wants to terminate the operation of the chat App using the user's recording information, at this time, the smart watch 260 can send the second indication information to the mobile phone 210 .
- the second instruction information is used to instruct the mobile phone 210 to terminate the recording information of the user using the chat App of the mobile phone 210 .
- the mobile phone 210 may terminate the use of the recording information of the user in the chat App of the mobile phone 210 .
- the mobile phone 210 may automatically turn off the recording function of the mobile phone 210, so as to prohibit the chat App from using the recorded information of the user.
- the smart watch 260 detects that the user clicks the operation of ignoring the control 2612 or the smart watch 260 does not receive the indicated operation within the preset time, it is considered that the smart watch 260 detects that the user does not want to allow the chat App of the mobile phone 210 to use the user's recorded information. . At this time, the smart watch 260 and the mobile phone 210 may not perform any processing.
- the mobile phone 210 can also send third indication information to the smart watch 260, the third indication information is used to indicate that the mobile phone 210 has Terminate the chatting App on the mobile phone 210 from using the recorded information of the user.
- the smart watch 260 stops reminding the user through the smart watch 260 that the chat App on the mobile phone 210 uses the user's recorded information. For example, if the mobile phone 210 reminds the user that the chat App on the mobile phone 210 uses the recorded information of the user through a prompt message. At this point, the mobile phone 210 will no longer display the prompt information.
- the mobile phone 210 may first intercept the permission of the chat App to use the recorded information of the user. Then, the mobile phone 210 may send the first indication information to the smart watch 260 or the tablet 270 according to the reminder policy. Wherein, the first indication information may be used to indicate that the mobile phone 210 has intercepted the recording information of the user using the chat App.
- the mobile phone 210 may also remind the user through the mobile phone 210 that the mobile phone 210 has intercepted the permission of the chat App to use the recorded information of the user.
- the mobile phone 210 reminds the user that the mobile phone 210 has intercepted the permission of the chat app to use the user's recording information
- the mobile phone 210 sends the first indication information to the smart watch 260 and does not send the first indication information to the tablet 270 .
- the smart watch 260 can remind the user that the mobile phone 210 has intercepted the permission of the chat App to use the user's recorded information by vibrating and displaying information.
- the smart watch 260 may display an interface 262 on the smart watch 260 while vibrating.
- the display interface 262 can display the text message "Please confirm whether to allow the chat App of the mobile phone to use the recorded information" and the control 2621 for allowing the chat App of the mobile phone 210 to use the recorded information of the user.
- the display interface 262 may also display a No control 2622 for not allowing the chat App of the mobile phone 210 to use the recorded information of the user.
- the display interface 262 may also specifically display which device's App is allowed to use the location information of which device.
- the display interface 262 may display the text message "Please confirm whether the mobile phone chat App is allowed to use the recorded information (mobile phone)".
- the smart watch 260 can send the second indication information to the mobile phone 210 .
- the second indication information is used to indicate that the chat App of the mobile phone 210 is allowed to use the recording information of the user.
- the mobile phone 210 may allow the chat App of the mobile phone 210 to use the recorded information of the user. For example, the mobile phone 210 can automatically turn on the recording switch of the mobile phone 210, so that the chat App can use the recorded information of the user.
- the smart watch 260 detects that the user clicks the No control 2622 or the smart watch 260 does not receive an instruction within the preset time, it is considered that the smart watch 260 detects that the user does not want to allow the chat App of the mobile phone 210 to use the user's recorded information. At this time, the mobile phone 210 and the smart watch 260 may not perform any operations.
- the mobile phone 210 may also send third indication information to the smart watch 260, the third indication information is used to indicate that the mobile phone 210 has Allow the chat app to use the user's recorded information.
- the smart watch 260 ends the act of reminding the user that the mobile phone 210 has intercepted the chatting App on the mobile phone 210 from using the user's recorded information through the smart watch 260 .
- the smart watch 260 reminds the user that the mobile phone 210 has intercepted the permission of the chat App on the mobile phone 210 to use the user's recording information through a prompt message.
- the smart watch 260 will no longer display the prompt information.
- the cross-device application management method provided by the embodiment of the present application will be described.
- the method may be executed by a first electronic device and a second electronic device, and the first electronic device and the second electronic device are connected.
- the first electronic device may be the smart TV 220 in the scenario described above in FIG. 8 , FIG. 17 , FIG. 19 , or FIG. 21 .
- the second electronic device may be the mobile phone 210 in the scenario described in FIG. 8 above, the speaker 240 in the scenario described in FIG. 17 , the earphone 250 in the scenario described in FIG. 19 , or the smart watch 260 in the scenario described in FIG. 21 .
- connection between the first electronic device and the second electronic device can be understood as: the first electronic device and the second electronic device have the above-mentioned trusted relationship.
- the trusted relationship refer to the relevant description above, and will not repeat it here.
- FIG. 23 shows a schematic flowchart of a method 300 for managing cross-device application programs provided by an embodiment of the present application.
- the method 300 includes:
- the first electronic device sends first indication information to the second electronic device.
- the second electronic device receives the first indication information sent by the first electronic device.
- the first indication information is used to indicate that the application program of the first electronic device is using the first resource.
- the embodiment of the present application does not limit the type of the first resource.
- the first resource may be a hardware device.
- the first resource may include a positioning device, a camera, a microphone, a memory, a flashlight, a wireless communication module, a mobile communication module, and the like.
- the first resource may be information.
- the first resource may include phone calls, chat messages, address books, wireless communication data, mobile communication data, and the like.
- the use of the first resource by the application program of the first electronic device may be understood as: the use of the first resource by the application program of the first electronic device to obtain the private information of the user. That is to say, the first electronic device application program accesses (or uses) the user's private information.
- the user's private information may include the user's location information, the above-mentioned user's recording information, the user's address book information, the user's clipboard information, the user's image information, and so on.
- the user privacy information may include user privacy information already existing on the first electronic device, that is, the user privacy information may include user privacy information already generated on the first electronic device. And/or, the user privacy information may include the user's privacy information being acquired by the first electronic device, that is, the user privacy information may be the privacy information that the user is generating on the first electronic device. This is not limited.
- the use of the first resource by the application program of the first electronic device can be understood as: the application program of the first electronic device uses the first resource to obtain the private information of the user corresponding to the first electronic device, or, the second An application program of an electronic device obtains private information of a user corresponding to another electronic device (which may be a second electronic device or an electronic device other than the second electronic device) by using the first resource.
- the first electronic device when the first electronic device detects that the preset condition is satisfied, the first electronic device sends the first indication information to the second electronic device.
- the preset condition includes at least one of the following: the distance between the first electronic device and the second electronic device is less than or equal to the preset distance; the first electronic device and the second electronic device log into the same account; The second electronic device is connected to the same Wi-Fi network; the first electronic device and the second electronic device have established a short-distance connection; the second electronic device is in the wearing state; the first electronic device is in the unlocked state, and the first electronic device is set with Combination lock; the second electronic device is in an unlocked state, and the second electronic device is provided with a combination lock; the first electronic device is not operated; the application program is running in the background of the first electronic device; the application program is running in the foreground of the first electronic device , and the first electronic device is not operated.
- the first electronic device may also display the first indicator on the status bar of the first electronic device.
- the first indicator is used to indicate the type of the first resource.
- the first electronic device may display the first indicator on the status bar of the first electronic device only when the first electronic device has used the first resource. If the first electronic device does not use the first resource, the first electronic device does not display the first indicator on the status bar of the first electronic device.
- the embodiment of the present application does not limit the display manner of the first indicator.
- the first electronic device may always display the first indicator on the status bar of the first electronic device until the first electronic device receives a next step instruction.
- the first electronic device may display the first indicator at certain intervals on the status bar of the first electronic device, that is, the user may see the first indicator flashing at certain intervals on the status bar of the first electronic device until until the first electronic device receives the next step instruction.
- the smart TV 220 may display a location indicator 2211 on the status bar 221 of the smart TV 220 , and the location indicator 2211 indicates that the type of the first resource is a location type.
- the second electronic device outputs second prompt information.
- the second prompt information is used to prompt the user whether to terminate the application program of the first electronic device to use the first resource.
- the second electronic device in addition to displaying the second prompt information, may also display a second indicator on the status bar of the second electronic device in response to the first indication information.
- the second electronic device only after the second electronic device itself uses the first resource or the second electronic device receives an indication that other electronic devices have used the first resource, the second electronic device A second indicator may be displayed on a status bar of the second electronic device. If the second electronic device does not use the first resource or the second electronic device does not receive an indication that other electronic devices have used the first resource, the first electronic device does not display the second indicator on the status bar of the second electronic device.
- the second indicator is used to indicate the type of the first resource.
- the second indicator may be a location indicator 2111, and the location indicator 2111 is used to indicate that the type of the first resource is location information.
- the second indicator is used to indicate the type of the first resource and the identity of the first electronic device type.
- the second indicator includes a position indicator 2111 and a logo 2112 .
- the location indicator 2111 is used to indicate that the type of the first resource is location information
- the identifier 2112 is used to indicate the type of the smart TV 220 .
- the embodiment of the present application does not limit the display manner of the second indicator.
- the second electronic device may always display the second indicator on the status bar of the second electronic device until the second electronic device receives a next step instruction.
- the second electronic device may display the second indicator at a certain interval on the status bar of the second electronic device, that is, the user may see the second indicator flashing at a certain interval on the status bar of the second electronic device until until the second electronic device receives the next step instruction.
- the second electronic device displays the second indicator
- the second indicator is used to indicate the type of the first resource, the first indicator and the second indicator
- the display effect is different.
- the display position of the first indicator relative to the status bar of the first electronic device is different from the display position of the second indicator relative to the status bar of the second electronic device.
- the first indicator is displayed on the left side of the status bar of the first electronic device
- the second indicator is displayed on the right side of the status bar of the second electronic device.
- the display color of the first indicator and the display color of the second indicator are different.
- the display color of the first indicator is green
- the display color of the second indicator is red
- the embodiment of the present application does not limit the manner in which the second electronic device outputs the second prompt information.
- the second electronic device may output the second prompt information by displaying text information on the second electronic device.
- Another example is the text information of "system positioning switch (smart TV)" displayed on the mobile phone 210 as shown in (c) of FIG. 13 .
- the text message "chat (App) mobile phone is using the user's recording information" displayed on the smart watch 260 as shown in (a) of FIG. 22 .
- the user can directly view the second prompt information on the display interface of the second electronic device without operating the second electronic device.
- the second electronic device displays a window in response to the first indication information, and the second prompt information is displayed in the window.
- the mobile phone 210 displays a window 216 in response to the first indication information, and the window 216 displays the text information of "Huawei Video (smart TV) is using geographic location".
- the smart watch 260 responds to the first indication information and displays a window 216, which displays the text "chat (App) mobile phone is using the user's recording information" displayed in the window 216. information.
- the user can only see the second prompt information on the display interface of the second electronic device after performing some operations.
- the second prompt information is displayed on the control bar.
- the display interface of the second electronic device at this time is the display interface of the control bar
- the second prompt information is displayed on the display interface.
- S320 specifically includes: the second electronic device responds to detecting that the user opens the control bar. The operation of the bar displays the control bar, and the second prompt information is displayed in the control bar.
- the user can see the text information "Huawei video of the smart TV is in use" displayed on the mobile phone 210 as shown in (b) in FIG. 11 .
- control bar may also include a second control.
- the second control is used to turn off or turn on the use of the first resource of the same type as the first resource.
- the second prompt information is displayed on the notification bar.
- the display interface of the second electronic device at this time is the display interface of the notification bar
- the second prompt information is displayed on the display interface.
- S320 specifically includes: the second electronic device responds to the user opening the notification bar. Operation, display the notification bar, and display the second prompt information in the notification bar.
- the user can see the text information "Huawei Video (smart TV) is using geographic location" displayed on the mobile phone 210 as shown in (b) in FIG. 12 .
- the above-mentioned notification bar and control bar may be displayed together.
- the content of the control bar may be displayed in the upper part of the interface
- the content of the notification bar may be displayed in the lower part of the interface.
- the second prompt information is displayed in the positioning function setting column.
- S320 specifically includes: in response to detecting the user's operation on the second indicator, displaying a setting bar, and displaying second prompt information in the setting bar.
- the user can see the text information of "system positioning switch (smart TV)" displayed on the mobile phone 210 as shown in (c) in FIG. 13 .
- the second electronic device may output the second prompt information through a voice message.
- the sound box 240 as shown in FIG. 18 or the earphone 250 as shown in FIG. 20 outputs a voice message that “Huawei Video of the smart TV is using the user's location information”.
- the second electronic device detects an input by the user to terminate the permission of the application program of the first electronic device to use the first resource.
- the embodiment of the present application does not limit the specific form of the user's input to terminate the permission of the application program of the first electronic device to use the first resource.
- the user may input that the user terminates the use of the first resource by the application program of the first electronic device through interaction with the display interface of the second electronic device.
- the user's input of terminating the permission of the application program of the first electronic device to use the first resource may include the operation of the user clicking the termination control 2161 .
- the termination control can only be displayed on the display interface of the second electronic device because some user operations are required.
- S330 specifically includes: in response to detecting the user's operation on the second prompt information, displaying a window, the window includes a termination control, and the termination control is used to trigger the termination of the permission of the application program of the first electronic device to use the first resource; Detects user action on the kill control.
- the user's input of terminating the use of the first resource by the application program of the first electronic device may include: the user clicks the button operation in the lower right corner of the position control 2121, the user clicks the operation of the display bar 2123, and the user Click to terminate the operation of control 21241.
- S330 specifically includes: in response to detecting the user's operation on the notification bar, displaying a termination control in the notification bar, where the termination control is used to trigger the termination of the permission of the application program of the first electronic device to use the first resource; detecting The user's action on the terminate control.
- the user's input to terminate the use of the first resource by the application program of the first electronic device may include: the user slides from right to left on the notification message 213 and the user clicks the termination control 2131 .
- S330 specifically includes: in response to detecting the user's operation on the second control, displaying a setting bar, and the setting bar displays detailed information of the second prompt information; The operation is to display the window, the window includes a termination control, and the termination control is used to trigger the termination of the permission of the application program to use the first resource; and detect the user's operation on the termination control.
- the user's input of terminating the use of the first resource by the application program of the first electronic device may include: the user's operation of clicking the display bar 2142 and the user's operation of clicking the termination control 2151 .
- the user may input the user's termination of the permission of the application program of the first electronic device to use the first resource through a voice message.
- the user's input to terminate the permission of the application program of the first electronic device to use the first resource may be a "terminate" voice message input by the user 230 to the speaker 240 through voice.
- the second electronic device sends second indication information to the first electronic device in response to detecting the input described in S330.
- the first electronic device receives the second indication information sent by the second electronic device.
- the second indication information is used to instruct the first electronic device to terminate the permission of the application program to use the first resource.
- S340 specifically includes: in response to detecting the user's operation on the termination control, sending the second indication information to the first electronic device.
- the user's input to terminate the permission of the application program of the first electronic device to use the first resource may include an operation of the user clicking a termination control.
- the first electronic device terminates the permission of the application program to use the first resource in response to the second indication information.
- the termination of the application program The right to use the first resource is to terminate the right of the application program to use the first resource to obtain the private information of the user corresponding to the first electronic device.
- the application program of the first electronic device uses the first resource in S310, the application program of the first electronic device uses the first resource to acquire other electronic devices (which may be the second electronic device, or electronic devices other than the second electronic device) device) corresponding to the user’s privacy information
- the authority of the terminated application program to use the first resource is to terminate the application program to use the first resource to obtain other electronic devices (which may be the second electronic device, or other than the second electronic device) external electronic device) corresponding to the user's privacy information permissions.
- the embodiment of the present application does not set a time limit for terminating the permission of the application program to use the first resource.
- the application's right to use the first resource can be permanently terminated.
- the embodiment of the present application does not limit the specific form of permanently terminating the permission of the application program to use the first resource.
- the permission to use the first resource may be disabled in the privacy statement of the application program to permanently terminate the permission of the application program to use the first resource.
- the right of the application program to use the first resource may be terminated once.
- the embodiment of the present application does not limit the specific form of one-time termination of the permission of the application program to use the first resource.
- terminating the right of the application program to use the first resource may directly end the process of the application program using the first resource. In another example, terminating the right of the application to use the first resource may be directly closing the application.
- S350 specifically includes: closing the first control in response to the second indication information, so as to terminate the permission of the application program to use the first resource.
- the first control is displayed on the control bar of the first electronic device or the first control is displayed on the setting bar of the first electronic device.
- the first control may be a position indicator in the control column or a system positioning switch in the setting column.
- turning off the position indicator can be understood as adjusting the state of the position indicator to the off state.
- the method 300 may further include S360 and S370, where S360 is performed after S350, and S370 is performed after S360.
- S360 is performed after S350
- S370 is performed after S360.
- S360 is performed after S350
- S370 is performed after S360.
- the first electronic device sends third indication information to the second electronic device.
- the second electronic device receives the third indication information sent by the first electronic device.
- the third indication information is used to indicate that the first electronic device has terminated the permission of the application program to use the first resource.
- the second electronic device no longer outputs the second prompt information in response to the third indication information.
- the first electronic device may send the first indication information to the second electronic device, so that the second electronic device may output second prompt information to remind the user of the first resource.
- the application program of the electronic device uses the first resource.
- the user may use the second electronic device to determine whether to terminate the permission of the application program of the first electronic device to use the first resource. In this way, the disclosure of user privacy information is avoided, which brings danger to users.
- FIG. 24 shows a schematic flow chart of a method 400 for cross-device application management provided by an embodiment of the present application.
- the method 400 includes:
- the first electronic device sends first indication information to the second electronic device.
- the second electronic device receives the first indication information sent by the first electronic device.
- the first indication information is used to instruct the first electronic device to intercept the permission of the application program of the first electronic device to use the first resource.
- the first electronic device when the first electronic device detects that the preset condition is satisfied, the first electronic device sends the first indication information to the second electronic device.
- the preset condition includes at least one of the following: the distance between the first electronic device and the second electronic device is less than or equal to the preset distance; the first electronic device and the second electronic device log into the same account; The second electronic device is connected to the same Wi-Fi network; the first electronic device and the second electronic device have established a short-distance connection; the second electronic device is in the wearing state; the first electronic device is in the unlocked state, and the first electronic device is set with Combination lock; the second electronic device is in an unlocked state, and the second electronic device is provided with a combination lock; the first electronic device is not operated; the application program is running in the background of the first electronic device; the application program is running in the foreground of the first electronic device , and the first electronic device is not operated.
- the second electronic device outputs second prompt information.
- the second prompt information is used to prompt the user whether to release the permission of the application program of the first electronic device to use the first resource.
- the embodiment of the present application does not limit the manner in which the second electronic device outputs the second prompt information.
- the second electronic device may output the second prompt information by displaying text information on the second electronic device.
- the text message "Please confirm whether to allow Huawei Video of the Smart TV to use the user's location information" is displayed on the mobile phone 210 .
- the user can directly view the second prompt information on the display interface of the second electronic device without operating the second electronic device.
- the second electronic device displays a window in response to the first indication information, and the second prompt information is displayed in the window.
- the mobile phone 210 displays a window 217 in response to the first indication information, and the window 217 displays the text message "Please confirm whether Huawei Video of the smart TV is allowed to use the user's location information".
- the window may also include an allow control.
- the permission control is used to allow the application program of the first electronic device to use the permission of the first resource.
- the window 217 also includes a control 2171 .
- the user can only see the second prompt information on the display interface of the second electronic device after performing some operations.
- the second prompt information is displayed on the notification bar.
- the display interface of the second electronic device at this time is the display interface of the notification bar
- the second prompt information is displayed on the display interface.
- S420 specifically includes: the second electronic device responds to detecting that the user opens the notification bar. The operation of the bar displays the notification bar, and the second prompt information is displayed in the notification bar.
- the user can see the title bar of the "blocked” message displayed on the mobile phone 210 as shown in (a) in Figure 16 and the "Geographic Location Used by Huawei Video (Smart TV)" text message.
- the second electronic device may output the second prompt information through a voice message.
- the second electronic device detects an input by the user to allow the application program of the first electronic device to use the first resource.
- the embodiment of the present application does not limit the specific form of the user's input of the permission of the application program of the first electronic device to use the first resource.
- the user may input permission for the application program of the first electronic device to use the first resource by interacting with the display interface of the second electronic device.
- the user's input of allowing the application program of the first electronic device to access the first resource using the user's private information includes the user's operation on the permission control.
- the input by the user to release the permission of the application program of the first electronic device to use the first resource may be an operation of clicking the yes control 2171 (ie, an example of the allow control).
- the user's input of permitting the application program of the first electronic device to use the first resource may be an operation of clicking the allow control 2181 .
- the permission control can be displayed on the display interface of the second electronic device only after some user operations are required. At this time, we collectively refer to some operations of the user and the operation of the user clicking the permission control as the input of the user's permission to allow the application program of the first electronic device to use the first resource.
- S430 specifically includes: in response to detecting the user's operation on the notification bar, displaying a permission control in the notification bar, and the permission control is used to allow the application program of the first electronic device to use the first resource; Allows the operation of the control.
- the user's input of allowing the application program of the first electronic device to use the first resource may include: the user's operation of sliding from right to left on the notification message 103 and the user's operation of clicking the allow control 2181 .
- the user may input the user's permission to allow the application program of the first electronic device to use the first resource through a voice message.
- the second electronic device sends second indication information to the first electronic device in response to detecting the input described in S430.
- the first electronic device receives the second indication information sent by the second electronic device.
- the second indication information is used to indicate the authorization of the application program of the first electronic device to use the first resource.
- S440 specifically includes: sending second instruction information to the first electronic device in response to detecting the user's operation on the permission control. At this time, it may be considered that the user's input of allowing the application program of the first electronic device to use the first resource may include an operation of the user clicking a permission control.
- the first electronic device releases permission for the application program to use the first resource.
- the application program of the first electronic device intercepted in S410 uses the first resource to obtain the private information of the user corresponding to the first electronic device.
- the permission of the release application program to use the first resource is the permission of the release application program to use the first resource to obtain the private information of the user corresponding to the first electronic device.
- the application program of the first electronic device intercepted in S410 has the authority to use the first resource
- the application program of the first electronic device uses the first resource to acquire other electronic devices (which may be the second electronic device or other than the second electronic device) other than the electronic device) corresponding to the permission of the user's private information
- the permission of the release application to use the first resource is the permission of the release application to use the first resource to obtain other electronic devices (it can be a second electronic device or a The authority of the user's private information corresponding to the electronic device other than the second electronic device.
- the embodiment of the present application does not limit the specific form of the permission to allow the application program to use the first resource.
- the permission of the application program to use the first resource may be permanently released.
- the embodiment of the present application does not limit the specific form of the permission to permanently release the application program to use the first resource.
- the permission to use the first resource may be enabled in the privacy statement of the application program to realize the permanent release of the application program's permission to use the first resource.
- the permission of the application program to use the first resource may be released once.
- the embodiment of the present application does not limit the specific form of the permission to terminate the permission of the application program to use the first resource.
- S450 specifically includes: in response to the second indication information, opening the first control, so as to release the permission of the application program to use the first resource.
- the first control is displayed on the control bar of the first electronic device or the first control is displayed on the setting bar of the first electronic device.
- the first control may be a position indicator in the control column or a system positioning switch in the setting column.
- opening the position indicator can be understood as adjusting the state of the position indicator to an open state.
- the method 400 may further include S460 and S470, where S460 is performed after S450, and S470 is performed after S460.
- S460 is performed after S450
- S470 is performed after S460.
- S460 and S470 is performed after S460.
- the first electronic device sends third indication information to the second electronic device.
- the second electronic device receives the third indication information sent by the first electronic device.
- the third indication information is used to indicate that the first electronic device has released the permission of the application program to use the first resource.
- the second electronic device no longer outputs the second prompt information in response to the third indication information.
- the first electronic device may first intercept the permission of the application program to use the first resource, and then send the first indication information to the second electronic device, so that The second electronic device may output second prompt information to remind the user that the first electronic device has intercepted the permission of the application program of the first electronic device to use the first resource.
- the user can use the second electronic device to determine whether to allow the application program of the first electronic device to use the first resource. In this way, the disclosure of user privacy information is avoided, which brings danger to users.
- Fig. 25 is a schematic block diagram of a device provided by an embodiment of the present application.
- the apparatus 500 is the first electronic device described in the method 300 or method 400 above.
- the apparatus 500 is connected to the second electronic device, and the apparatus 500 includes: a sending unit 510 , a receiving unit 520 and a terminating unit 530 .
- the sending unit 510 is configured to send first indication information to the second electronic device, where the first indication information is used to indicate that the application program of the first electronic device is using the first Resources; a receiving unit 520, configured to receive second indication information sent by the second electronic device, where the second indication information is used to instruct the first electronic device to terminate the permission of the application program to use the first resource a terminating unit 530, configured to, in response to the second indication information, terminate the permission of the application program to use the first resource.
- the sending unit 510 is configured to send first indication information to the second electronic device, where the first indication information is used to instruct the first electronic device to intercept the first electronic The permission of the application program of the device to use the first resource; the receiving unit 520 is configured to receive the second instruction information sent by the first electronic device, and the second instruction information is used to instruct release of the application program of the first electronic device The right to use the first resource; the granting unit 530, configured to, in response to the second indication information, release the right of the application to use the first resource.
- Fig. 26 is a schematic block diagram of another example of an apparatus provided by an embodiment of the present application.
- the apparatus 600 is the second electronic device described in the method 300 or method 400 above.
- the apparatus 600 is connected to the first electronic device, and the apparatus 600 includes: a receiving unit 610 , an output unit 620 , a detecting unit 630 and a sending unit 640 .
- the receiving unit 610 is configured to receive first indication information sent by the first electronic device, where the first indication information is used to indicate that the application program of the first electronic device is using the first A resource; the output unit 620 is configured to output second prompt information, and the second prompt information is used to prompt the user whether to terminate the permission of the application program of the first electronic device to use the first resource; the detection unit 630 is used to Detecting an input by the user to terminate the use of the first resource by the application program of the first electronic device; the sending unit 640 is configured to send second indication information to the first electronic device in response to detecting the input, and The second indication information is used to instruct the first electronic device to terminate the permission of the application program to use the first resource.
- the receiving unit 610 is configured to receive first indication information sent by the first electronic device, where the first indication information is used to instruct the first electronic device to intercept the first The permission of the application program of the electronic device to use the first resource; the output unit 620 is configured to output second prompt information, and the second prompt information is used to prompt the user whether to allow the application program of the first electronic device to use the first resource.
- Permission detection unit 630, configured to detect an input by the user to allow the application program of the first electronic device to use the first resource; a sending unit 640, configured to send to the first electronic device in response to detecting the input Sending second indication information, where the second indication information is used to indicate the authorization of the application program of the first electronic device to use the first resource.
- FIG. 27 shows a schematic structural diagram of an electronic device 700 provided by an embodiment of the present application.
- the electronic device includes: one or more processors 710, one or more memories 720, the one or more memory stores 720 are stored with one or more computer programs, the one or more computer programs Include instructions.
- the instruction is executed by the one or more processors 710, the first electronic device or the second electronic device is made to execute the technical solutions in the foregoing embodiments.
- An embodiment of the present application provides a system, including a first electronic device and a second electronic device, and the system is configured to implement the technical solutions in the foregoing embodiments. Its implementation principle and technical effect are similar to those of the related embodiments of the method above, and will not be repeated here.
- An embodiment of the present application provides a computer program product.
- the computer program product runs on a first electronic device, the first electronic device executes the technical solutions in the foregoing embodiments. Its implementation principle and technical effect are similar to those of the related embodiments of the method above, and will not be repeated here.
- An embodiment of the present application provides a computer program product.
- the computer program product is run on a second electronic device, the second electronic device is made to execute the technical solutions in the foregoing embodiments. Its implementation principle and technical effect are similar to those of the related embodiments of the method above, and will not be repeated here.
- An embodiment of the present application provides a readable storage medium, where the readable storage medium contains instructions, and when the instructions are run on a first electronic device, the first electronic device is made to execute the technical solutions of the foregoing embodiments.
- the implementation principles and technical effects are similar, and will not be repeated here.
- An embodiment of the present application provides a readable storage medium, where the readable storage medium contains instructions, and when the instructions are run on a second electronic device, the second electronic device is made to execute the technical solutions of the foregoing embodiments.
- the implementation principles and technical effects are similar, and will not be repeated here.
- An embodiment of the present application provides a chip, the chip is used to execute instructions, and when the chip is running, it executes the technical solutions in the foregoing embodiments.
- the implementation principles and technical effects are similar, and will not be repeated here.
- the disclosed systems, devices and methods may be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
- the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Automation & Control Theory (AREA)
- Medical Informatics (AREA)
- Databases & Information Systems (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
本申请实施例提供了一种跨设备应用程序管理的方法、电子设备及系统。该方法包括:接收与该电子设备连接的另一电子设备发送的第一指示信息,第一指示信息用于指示:第一电子设备的应用程序正在使用第一资源或第一电子设备拦截第一电子设备的应用程序使用第一资源的权限;输出第二提示信息,第二提示信息用于提示用户是否终止或放行第一电子设备的应用程序使用第一资源的权限;检测用户终止或放行第一电子设备的应用程序使用第一资源的输入;响应于检测到输入,向第一电子设备发送第二指示信息,第二指示信息用于指示第一电子设备终止或放行应用程序使用第一资源的权限。这样,可以避免用户的隐私信息的泄露,有助于提升用户的使用体验。
Description
本申请要求于2022年2月17日提交中国专利局、申请号为202210146506.8、申请名称为“跨设备应用程序管理的方法、电子设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及及终端领域,并且更具体地,涉及一种跨设备应用程序管理的方法、电子设备及系统。
随着电子技术的发展和人们生活水平的提高,可安装在电子设备上的应用程序(Application,App)越来越多。一些App在电子设备上运行的过程中,可能需要使用电子设备的相机、麦克风等系统能力为用户提供相应的功能。通常,电子设备首次开启App时,App会请求用户同意该App的隐私声明,并请求用户授予该App调用一项或多项系统能力的权限。用户为了快速进入该App,往往不会仔细阅读App的请求而直接同意隐私声明,授权App相应的权限。
这样,电子设备的一些App有可能在用户不知情的情况下调用电子设备的系统能力来获取用户隐私信息(如调用定位装置进行用户的位置信息的采集)。而此时若用户没能及时查看该电子设备的使用情况,可能会造成用户的隐私信息被泄露的安全隐患。
发明内容
本申请实施例提供一种跨设备应用程序管理的方法、电子设备及系统,可以避免用户的隐私信息的泄露,有助于提升用户的使用体验。
第一方面,提供了一种系统,所述系统包括第一电子设备和第二电子设备,其中,所述第一电子设备,用于向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备的应用程序正在使用第一资源;所述第二电子设备,用于输出第二提示信息,所述第二提示信息用于提示用户是否终止所述第一电子设备的应用程序使用所述第一资源的权限;所述第二电子设备,还用于检测用户终止所述第一电子设备的应用程序使用所述第一资源的权限的输入;所述第二电子设备,还用于响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示所述第一电子设备终止所述应用程序使用所述第一资源的权限;所述第一电子设备,还用于响应于所述第二指示信息,终止所述应用程序使用所述第一资源的权限。
在本申请实施例中,若第一电子设备的应用程序使用第一资源,第一电子设备可以向第二电子设备发送第一指示信息,从而第二电子设备可以输出第二提示信息来提醒用户第一电子设备的应用程序使用第一资源。这样,用户可以通过第二电子设备来确定是否终止 第一电设备的应用程序使用第一资源的权限,并在用户终止第一电设备的应用程序使用第一资源的权限的情况下,第二电子设备给出第一电子设备指示。进而,第一电子设备终止第一电设备的应用程序使用第一资源的权限。从而,通过第一电子设备和第二电子设备之间的协同工作,避免了用户隐私信息的泄露,有助于提升用户的使用体验。
结合第一方面,在第一方面的某些实现方式中,所述第二电子设备,还用于响应于所述第一指示信息,在所述第二电子设备的状态栏显示第二指示符,所述第二指示符用于指示所述第一资源的类型,或者,所述第二指示符用于指示所述第一资源的类型和所述第一电子设备类型的标识。
第二电子设备通过响应于第一指示信息,在第二电子设备的状态栏显示第二指示符,可以使得用户通过该第二指示符,便可知晓:使用的第一资源的类型,或使用第一资源的设备以及使用的第一资源的类型,有助于进一步地提升用户的使用体验。
结合第一方面,在第一方面的某些实现方式中,所述第二电子设备,还具体用于响应于检测到用户对所述第二指示符的操作,显示设置栏,所述设置栏中显示所述第二提示信息;所述第二电子设备,还具体用于响应于检测到用户对所述第二提示信息的操作,显示窗口,所述窗口包括终止控件,所述终止控件用于触发终止所述第一电子设备的应用程序使用所述第一资源的权限;所述第二电子设备,还具体用于响应于用户对所述终止控件的操作,向所述第一电子设备发送所述第二指示信息。
结合第一方面,在第一方面的某些实现方式中,所述第二电子设备,还具体用于响应于检测到用户对通知栏的操作,在所述通知栏中显示终止控件,所述终止控件用于触发终止所述第一电子设备的应用程序使用所述第一资源的权限,所述通知栏中显示有所述第二提示信息;所述第二电子设备,还具体用于响应于检测到用户对所述终止控件的操作,向所述第一电子设备发送所述第二指示信息。
结合第一方面,在第一方面的某些实现方式中,所述第二电子设备,还用于响应于检测到用户打开控制栏的操作,显示所述控制栏,所述控制栏中显示所述第二提示信息和第二控件,所述第二控件用于关闭或开启使用与所述第一资源的类型相同的第一资源;所述第二电子设备,还用于响应于检测到用户对所述第二控件的操作,显示设置栏,所述设置栏显示所述第二提示信息的详情信息;所述第二电子设备,还用于响应于检测到用户对所述设置栏显示的所述详情信息的操作,显示窗口,所述窗口包括终止控件,所述终止控件用于触发终止所述应用程序使用所述第一资源的权限;所述第二电子设备,还具体用于响应于检测到用户对所述终止控件的操作,向所述第一电子设备发送第二指示信息。
结合第一方面,在第一方面的某些实现方式中,所述第二电子设备,还具体用于响应于所述第一指示信息,显示窗口,所述窗口中显示所述第二提示信息和终止控件,所述终止控件用于触发终止所述应用程序使用所述第一资源的权限;所述第二电子设备,还具体用于响应于检测到用户对所述终止控件的操作,向所述第一电子设备发送第二指示信息。
结合第一方面,在第一方面的某些实现方式中,所述第一电子设备,还用于向所述第二电子设备发送第三指示信息,所述第三指示信息用于指示所述第一电子设备已终止所述应用程序使用所述第一资源的权限;所述第二电子设备,还用于响应于所述第三指示信息,不再输出所述第二提示信息。
结合第一方面,在第一方面的某些实现方式中,所述第一电子设备,还用于响应于检测到满足预设条件,向所述第二电子设备发送所述第一指示信息;所述预设条件包括以下 至少一项:所述第一电子设备和所述第二电子设备之间的距离小于或等于预设距离;所述第一电子设备和所述第二电子设备登录同一个账号;所述第一电子设备和所述第二电子设备连接同一个Wi-Fi网络;所述第一电子设备和所述第二电子设备已建立近距离连接;所述第二电子设备处于佩戴状态;所述第一电子设备处于解锁状态,且所述第一电子设备设置有密码锁;所述第二电子设备处于解锁状态,且所述第二电子设备设置有密码锁;所述第一电子设备没有被操作;所述应用程序在所述第一电子设备的后台运行;所述应用程序在所述第一电子设备的前台运行,且所述第一电子设备没有被操作。
第一电子设备可以综合考虑各种实际情况,确定需要跨设备对第一电子设备的应用程序进行管理的情况下,给出第二电子设备指示,以便用户通过第二电子设备对第一电子设备的应用程序进行管理,进一步避免了用户隐私信息的泄露,有助于进一步地提升用户的使用体验。结合第一方面,在第一方面的某些实现方式中,所述第一电子设备,还具体用于响应于所述第二指示信息,关闭第一控件,以终止所述应用程序使用所述第一资源的权限,所述第一控件显示在所述第一电子设备的控制栏或所述第一控件显示在所述第一电子设备的设置栏。
第一电子设备在接收到用户跨设备对第一电子设备的应用程序使用第一资源的权限终止的指示信息后,第一电子设备可以自动关闭相应的控件,以终止应用程序使用第一资源的权限,从而实现了跨设备对第一电子设备的应用程序的使用情况进行管理,这样,无需用户再手动对第一电子设备的应用程序进行管理,有助于进一步地提升用户的使用体验。
结合第一方面,在第一方面的某些实现方式中,所述第一电子设备,还用于在所述第一电子设备的状态栏显示第一指示符,所述第一指示符用于指示所述第一资源的类型。
结合第一方面,在第一方面的某些实现方式中,在所述第二指示符用于指示所述第一资源的类型的情况下,所述第一指示符和所述第二指示符的显示效果不同。
在第二指示符指示第一资源的类型的情况下,将第一指示符和第二指示符的显示效果设置为不同,这样,用户通过指示符,便可以知晓使用第一资源的是本设备还是其他设备,有助于进一步地提升用户的使用体验。
结合第一方面,在第一方面的某些实现方式中,所述第一指示符相对于所述第一电子设备的状态栏的显示位置与所述第二指示符相对于所述第二电子设备的状态栏的显示位置不同;或者,所述第一指示符的显示颜色和所述第二指示符的显示颜色不同。
结合第一方面,在第一方面的某些实现方式中,所述第一电子设备,还具体用于响应于所述第二指示信息,永久性或单次性终止所述应用程序使用所述第一资源的权限。
第二方面,提供了一种系统,所述系统包括第一电子设备和第二电子设备,包括:所述第一电子设备,用于向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备拦截所述第一电子设备的应用程序使用第一资源的权限;所述第二电子设备,用于输出第二提示信息,所述第二提示信息用于提示用户是否放行所述第一电子设备的应用程序使用第一资源的权限;所述第二电子设备,还用于检测用户放行所述第一电子设备的应用程序使用第一资源的权限的输入;所述第二电子设备,还用于响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示放行所述第一电子设备的应用程序使用第一资源的权限;所述第一电子设备,还用于响应于所述第二指示信息,放行所述应用程序使用所述第一资源的权限。
在本申请实施例中,若第一电子设备拦截了第一电子设备的应用程序使用第一资源的权限,第一电子设备可以向第二电子设备发送第一指示信息,从而第二电子设备可以输出第二提示信息来提醒用户第一电子设备拦截了第一电子设备的应用程序使用第一资源。这样,用户可以通过第二电子设备来确定是否放行第一电设备的应用程序使用第一资源的权限,并在用户放行第一电设备的应用程序使用第一资源的权限的情况下,第二电子设备给出第一电子设备指示。进而,第一电子设备放行第一电设备的应用程序使用第一资源的权限。从而,通过第一电子设备和第二电子设备之间的协同工作,避免了用户隐私信息的泄露,有助于提升用户的使用体验。
结合第二方面,在第二方面的某些实现方式中,所述第二电子设备,还具体用于响应于所述第一指示信息,显示窗口,所述窗口中显示所述第二提示信息和允许控件,所述允许控件用于放行所述第一电子设备的应用程序使用第一资源的权限;所述第二电子设备,还具体用于响应于检测到用户对所述允许控件的操作,向所述第一电子设备发送所述第二指示信息。
结合第二方面,在第二方面的某些实现方式中,所述第二电子设备,还具体用于响应于检测到用户对所述通知栏的操作,在所述通知栏中显示允许控件,所述允许控件用于放行所述第一电子设备的应用程序使用第一资源的权限,所述通知栏中显示有所述第二提示信息;所述第二电子设备,还具体用于响应于检测到用户对所述允许控件的操作,向所述第一电子设备发送所述第二指示信息。
结合第二方面,在第二方面的某些实现方式中,所述第一电子设备,还用于向所述第二电子设备发送第三指示信息,所述第三指示信息用于指示所述第一电子设备已放行所述应用程序使用所述第一资源的权限;所述第二电子设备,还用于响应于所述第三指示信息,不再输出所述第二提示信息。
结合第二方面,在第二方面的某些实现方式中,所述第一电子设备,还用于响应于检测到满足预设条件,向所述第二电子设备发送所述第一指示信息;所述预设条件包括以下至少一项:所述第一电子设备和所述第二电子设备之间的距离小于或等于预设距离;所述第一电子设备和所述第二电子设备登录同一个账号;所述第一电子设备和所述第二电子设备连接同一个Wi-Fi网络;所述第一电子设备和所述第二电子设备已建立近距离连接;所述第二电子设备处于佩戴状态;所述第一电子设备处于解锁状态,且所述第一电子设备设置有密码锁;所述第二电子设备处于解锁状态,且所述第二电子设备设置有密码锁;所述第一电子设备没有被操作;所述应用程序在所述第一电子设备的后台运行;所述应用程序在所述第一电子设备的前台运行,且所述第一电子设备没有被操作。
第一电子设备可以综合考虑各种实际情况,确定需要跨设备对第一电子设备的应用程序进行管理的情况下,给出第二电子设备指示,以便用户通过第二电子设备对第一电子设备的应用程序进行管理,进一步避免了用户隐私信息的泄露,有助于进一步地提升用户的使用体验。
结合第二方面,在第二方面的某些实现方式中,所述第一电子设备,还具体用于响应于所述第二指示信息,打开第一控件,以放行所述应用程序使用所述第一资源的权限。
第一电子设备在接收到用户跨设备对第一电子设备的应用程序使用第一资源的权限放行的指示信息后,第一电子设备可以自动打开相应的控件,以放行应用程序使用第一资源的权限,从而实现了跨设备对第一电子设备的应用程序的使用情况进行管理,这样,无 需用户再手动对第一电子设备的应用程序进行管理,有助于进一步地提升用户的使用体验。
结合第二方面,在第二方面的某些实现方式中,所述第一电子设备,还具体用于响应于所述第二指示信息,永久性或单次性放行所述应用程序使用所述第一资源的权限。
第三方面,提供了一种跨设备应用程序管理的方法,所述方法应用于第一电子设备,所述第一电子设备与第二电子设备连接,所述方法包括:向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备的应用程序正在使用第一资源;接收所述第二电子设备发送的第二指示信息,所述第二指示信息用于指示所述第一电子设备终止所述应用程序使用所述第一资源的权限;响应于所述第二指示信息,终止所述应用程序使用所述第一资源的权限。
在本申请实施例中,若第一电子设备的应用程序使用第一资源,第一电子设备可以向第二电子设备发送第一指示信息,以便用户可以通过第二电子设备来确定是否终止第一电设备的应用程序使用第一资源的权限,并在第二电子设备给出用户终止第一电设备的应用程序使用第一资源的权限的指示的情况下,第一电子设备终止第一电设备的应用程序使用第一资源的权限。从而,通过第一电子设备和第二电子设备之间的协同工作,避免了用户隐私信息的泄露,有助于提升用户的使用体验。
结合第三方面,在第三方面的某些实现方式中,所述方法还包括:向所述第二电子设备发送第三指示信息,所述第三指示信息用于指示所述第一电子设备已终止所述应用程序使用所述第一资源的权限。
结合第三方面,在第三方面的某些实现方式中,所述方法还包括:响应于检测到满足预设条件,向所述第二电子设备发送所述第一指示信息;所述预设条件包括以下至少一项:所述第一电子设备和所述第二电子设备之间的距离小于或等于预设距离;所述第一电子设备和所述第二电子设备登录同一个账号;所述第一电子设备和所述第二电子设备连接同一个Wi-Fi网络;所述第一电子设备和所述第二电子设备已建立近距离连接;所述第二电子设备处于佩戴状态;所述第一电子设备处于解锁状态,且所述第一电子设备设置有密码锁;所述第二电子设备处于解锁状态,且所述第二电子设备设置有密码锁;所述第一电子设备没有被操作;所述应用程序在所述第一电子设备的后台运行;所述应用程序在所述第一电子设备的前台运行,且所述第一电子设备没有被操作。
结合第三方面,在第三方面的某些实现方式中,所述响应于所述第二指示信息,终止所述应用程序使用所述第一资源的权限,包括:响应于所述第二指示信息,关闭第一控件,以终止所述应用程序使用所述第一资源的权限,所述第一控件显示在所述第一电子设备的控制栏或所述第一控件显示在所述第一电子设备的设置栏。
结合第三方面,在第三方面的某些实现方式中,所述方法还包括:在所述第一电子设备的状态栏显示第一指示符,所述第一指示符用于指示所述第一资源的类型。
结合第三方面,在第三方面的某些实现方式中,所述响应于所述第二指示信息,终止所述应用程序使用所述第一资源的权限,包括:响应于所述第二指示信息,永久性或单次性终止所述应用程序使用所述第一资源的权限。
第四方面,提供了一种跨设备应用程序管理的方法,所述方法应用于第二电子设备,所述第二电子设备与第一电子设备连接,所述方法包括:接收所述第一电子设备发送的第一指示信息,所述第一指示信息用于指示所述第一电子设备的应用程序正在使用第一资 源;输出第二提示信息,所述第二提示信息用于提示用户是否终止所述第一电子设备的应用程序使用所述第一资源的权限;检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入;响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示所述第一电子设备终止所述应用程序使用所述第一资源的权限。
在本申请实施例中,在第二电子设备接收到第一电子设备指示的第一电子设备的应用程序使用第一资源的信息后,第二电子设备可以输出第二提示信息来提醒用户第一电子设备的应用程序使用第一资源。进而,用户可以通过第二电子设备来确定是否终止第一电设备的应用程序使用第一资源的权限,并在用户终止第一电设备的应用程序使用第一资源的权限的情况下,第二电子设备给出第一电子设备指示,以便第一电子设备终止第一电设备的应用程序使用第一资源的权限。这样,通过第二电子设备和第二电子设备之间的协同工作,避免了用户隐私信息的泄露,有助于提升用户的使用体验。
结合第四方面,在第四方面的某些实现方式中,所述方法还包括:响应于所述第一指示信息,在所述第二电子设备的状态栏显示第二指示符,所述第二指示符用于指示所述第一资源的类型,或者,所述第二指示符用于指示所述第一资源的类型和所述第一电子设备类型的标识。
结合第四方面,在第四方面的某些实现方式中,所述输出第二提示信息包括:响应于检测到用户对所述第二指示符的操作,显示设置栏,所述设置栏中显示所述第二提示信息;所述检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入,包括:响应于检测到用户对所述第二提示信息的操作,显示窗口,所述窗口包括终止控件,所述终止控件用于触发终止所述第一电子设备的应用程序使用所述第一资源的权限;检测用户对所述终止控件的操作。
结合第四方面,在第四方面的某些实现方式中,所述输出第二提示信息包括在通知栏中显示所述第二提示信息;所述检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入,包括:响应于检测到用户对所述通知栏的操作,在所述通知栏中显示终止控件,所述终止控件用于触发终止所述第一电子设备的应用程序使用所述第一资源的权限;检测用户对所述终止控件的操作。
结合第四方面,在第四方面的某些实现方式中,所述输出第二提示信息包括:响应于检测到用户打开控制栏的操作,显示所述控制栏,所述控制栏中显示所述第二提示信息和第二控件,所述第二控件用于关闭或开启使用与所述第一资源的类型相同的第一资源;所述检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入,包括:响应于检测到用户对所述第二控件的操作,显示设置栏,所述设置栏显示所述第二提示信息的详情信息;响应于检测到用户对所述设置栏显示的所述详情信息的操作,显示窗口,所述窗口包括终止控件,所述终止控件用于触发终止所述应用程序使用所述第一资源的权限;检测用户对所述终止控件的操作。
结合第四方面,在第四方面的某些实现方式中,所述输出第二提示信息包括:响应于所述第一指示信息,显示窗口,所述窗口中显示所述第二提示信息和终止控件,所述终止控件用于触发终止所述应用程序使用所述第一资源的权限;所述检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入,包括:检测用户对所述终止控件的操作。
结合第四方面,在第四方面的某些实现方式中,所述方法还包括:接收所述第一电子设备发送的第三指示信息,所述第三指示信息用于指示所述第一电子设备已终止所述应用 程序使用所述第一资源的权限;响应于所述第三指示信息,不再输出所述第二提示信息。
第五方面,提供了一种跨设备应用程序管理的方法,所述方法应用于第一电子设备,所述第一电子设备与第二电子设备连接,所述方法包括:向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备拦截所述第一电子设备的应用程序使用第一资源的权限;接收所述第一电子设备发送的第二指示信息,所述第二指示信息用于指示放行所述第一电子设备的应用程序使用第一资源的权限;响应于所述第二指示信息,放行所述应用程序使用所述第一资源的权限。
在本申请实施例中,若第一电子设备的应用程序使用第一资源,第一电子设备可以向第二电子设备发送第一指示信息,以便用户可以通过第二电子设备来确定是否放行第一电设备的应用程序使用第一资源的权限,并在第二电子设备给出用户放行第一电设备的应用程序使用第一资源的权限的指示的情况下,第一电子设备放行第一电设备的应用程序使用第一资源的权限。从而,通过第一电子设备和第二电子设备之间的协同工作,避免了用户隐私信息的泄露,有助于提升用户的使用体验。
结合第五方面,在第五方面的某些实现方式中,所述方法还包括:向所述第二电子设备发送第三指示信息,所述第三指示信息用于指示所述第一电子设备已放行所述应用程序使用所述第一资源的权限。
结合第五方面,在第五方面的某些实现方式中,所述方法还包括:响应于检测到满足预设条件,向所述第二电子设备发送所述第一指示信息;所述预设条件包括以下至少一项:所述第一电子设备和所述第二电子设备之间的距离小于或等于预设距离;所述第一电子设备和所述第二电子设备登录同一个账号;所述第一电子设备和所述第二电子设备连接同一个Wi-Fi网络;所述第一电子设备和所述第二电子设备已建立近距离连接;所述第二电子设备处于佩戴状态;所述第一电子设备处于解锁状态,且所述第一电子设备设置有密码锁;所述第二电子设备处于解锁状态,且所述第二电子设备设置有密码锁;所述第一电子设备没有被操作;所述应用程序在所述第一电子设备的后台运行;所述应用程序在所述第一电子设备的前台运行,且所述第一电子设备没有被操作。
结合第五方面,在第五方面的某些实现方式中,所述方法还包括:响应于所述第二指示信息,打开第一控件,以放行所述应用程序使用所述第一资源的权限,所述第一控件显示在所述第一电子设备的控制栏或所述第一控件显示在所述第一电子设备的设置栏。
结合第五方面,在第五方面的某些实现方式中,所述方法还包括:响应于所述第二指示信息,永久性或单次性放行所述应用程序使用所述第一资源的权限。
第六方面,提供了一种跨设备应用程序管理的方法,所述方法应用于第二电子设备,所述第二电子设备和第一电子设备连接,所述方法包括:接收所述第一电子设备发送的第一指示信息,所述第一指示信息用于指示所述第一电子设备拦截所述第一电子设备的应用程序使用第一资源的权限;输出第二提示信息,所述第二提示信息用于提示用户是否放行所述第一电子设备的应用程序使用第一资源的权限;检测用户放行所述第一电子设备的应用程序使用第一资源的权限的输入;响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示放行所述第一电子设备的应用程序使用第一资源的权限。
在本申请实施例中,在第二电子设备接收到第一电子设备指示的第一电子设备的应用程序使用第一资源的权限已拦截的信息后,第二电子设备可以输出第二提示信息来提醒用 户第一电子设备的应用程序使用第一资源的权限已拦截。进而,用户可以通过第二电子设备来确定是否放行第一电设备的应用程序使用第一资源的权限,并在用户放行第一电设备的应用程序使用第一资源的权限的情况下,第二电子设备给出第一电子设备指示,以便第一电子设备放行第一电设备的应用程序使用第一资源的权限。这样,通过第二电子设备和第二电子设备之间的协同工作,避免了用户隐私信息的泄露,有助于提升用户的使用体验。
结合第六方面,在第六方面的某些实现方式中,所述输出第二提示信息包括:响应于所述第一指示信息,显示窗口,所述窗口中显示所述第二提示信息和允许控件,所述允许控件用于放行所述第一电子设备的应用程序使用第一资源的权限;所述检测用户放行所述第一电子设备的应用程序使用第一资源的权限的输入包括:检测用户对所述允许控件的操作。
结合第六方面,在第六方面的某些实现方式中,所述输出第二提示信息包括:通过通知栏显示所述第二提示信息;所述检测用户放行所述第一电子设备的应用程序使用第一资源的权限的输入包括:响应于检测到用户对所述通知栏的操作,在所述通知栏中显示允许控件,所述允许控件用于放行所述第一电子设备的应用程序使用第一资源的权限;检测用户对所述允许控件的操作。
结合第六方面,在第六方面的某些实现方式中,所述方法还包括:接收所述第一电子设备发送的第三指示信息,所述第三指示信息用于指示所述第一电子设备已放行所述应用程序使用所述第一资源的权限;响应于所述第三指示信息,不再输出所述第二提示信息。
第七方面,提供了一种装置,所述装置与第二电子设备连接,所述装置包括:发送单元,用于向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备的应用程序正在使用第一资源;接收单元,用于接收所述第二电子设备发送的第二指示信息,所述第二指示信息用于指示所述第一电子设备终止所述应用程序使用所述第一资源的权限;终止单元,用于响应于所述第二指示信息,终止所述应用程序使用所述第一资源的权限。
第八方面,提供了一种装置,所述装置与第一电子设备连接,所述装置包括:接收单元,用于接收所述第一电子设备发送的第一指示信息,所述第一指示信息用于指示所述第一电子设备的应用程序正在使用第一资源;输出单元,用于输出第二提示信息,所述第二提示信息用于提示用户是否终止所述第一电子设备的应用程序使用所述第一资源的权限;检测单元,用于检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入;发送单元,用于响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示所述第一电子设备终止所述应用程序使用所述第一资源的权限。
第九方面,提供了一种装置,所述装置与第二电子设备连接,所述装置包括:发送单元,用于向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备拦截所述第一电子设备的应用程序使用第一资源的权限;接收单元,用于接收所述第一电子设备发送的第二指示信息,所述第二指示信息用于指示放行所述第一电子设备的应用程序使用第一资源的权限;放行单元,用于响应于所述第二指示信息,放行所述应用程序使用所述第一资源的权限。
第十方面,提供了一种装置,所述装置与第一电子设备连接,所述装置包括:接收单元,用于接收所述第一电子设备发送的第一指示信息,所述第一指示信息用于指示所述第一电子设备拦截所述第一电子设备的应用程序使用第一资源的权限;输出单元,用于输出 第二提示信息,所述第二提示信息用于提示用户是否放行所述第一电子设备的应用程序使用第一资源的权限;检测单元,用于检测用户放行所述第一电子设备的应用程序使用第一资源的权限的输入;发送单元,用于响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示放行所述第一电子设备的应用程序使用第一资源的权限。
第十一方面,提供了一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第三方面或第五方面中任一项可能的实现中的方法。
第十二方面,提供了一种电子设备,包括:一个或多个处理器;一个或多个存储器;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在一个或多个存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第四方面或第六方面中任一项可能的实现中的方法。
第十三方面,提供了一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行上述第三方面或第五方面所述的方法;或者,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行上述第四方面或第六方面所述的方法。
第十四方面,提供了一种计算机可读存储介质,该存储介质可以是非易失性的。该存储介质包括指令,当所述指令在电子设备上运行时,使得所述电子设备执行上述第三方面或第五方面所述的方法;或者,当所述指令在电子设备上运行时,使得所述电子设备执行上述第四方面或第六方面所述的方法。
第十五方面,提供了一种芯片,用于执行指令,当所述芯片运行时,所述芯片执行上述第三方面或第五方面所述的方法;或者,所述芯片执行上述第四方面或第六方面所述的方法。
图1是本申请实施例提供的一种电子设备的硬件结构示意图。
图2是本申请实施例提供的一种电子设备的软件结构框图。
图3是本申请实施例提供的手机的一组GUI。
图4是本申请实施例提供的手机的另一组GUI。
图5是本申请实施例提供的手机的又一组GUI。
图6是本申请实施例提供的手机的又一组GUI。
图7是本申请实施例提供的手机的又一组GUI。
图8是本申请实施例提供的一例应用场景200A的示例图。
图9是本申请实施例提供的手机的一组GUI。
图10是本申请实施例提供的手机的另一组GUI。
图11是本申请实施例提供的手机的又一组GUI。
图12是本申请实施例提供的手机的又一组GUI。
图13是本申请实施例提供的手机的又一组GUI。
图14是本申请实施例提供的一例手机的GUI。
图15是本申请实施例提供的另一例手机的GUI。
图16是本申请实施例提供的另一例手机的GUI。
图17是本申请实施例提供的一例应用场景200B的示例图。
图18是本申请实施例提供的用户与音箱交互的示意图。
图19是本申请实施例提供的一例应用场景200C的示例图。
图20是本申请实施例提供的用户与耳机交互示意图。
图21是本申请实施例提供的一例应用场景200D的示例图。
图22是本申请实施例提供的智能手表的一组GUI。
图23是本申请实施例提供的一例跨设备应用程序管理的方法的示意性流程图。
图24是本申请实施例提供的另一例跨设备应用程序管理的方法的示意性流程图。
图25是本申请实施例提供的一例装置的示意性框图。
图26是本申请实施例提供的另一例装置的示意性框图。
图27是本申请实施例提供的电子设备的示意性结构图。
下面将结合附图,对本申请实施例中的技术方案进行描述。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“复数个”或者“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供的方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户身份识别(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部 件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户身份识别(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI 接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信 号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP 还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的App(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或 发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电 子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM 卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用嵌入式SIM(embedded-SIM,eSIM)卡,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
应理解,本申请实施例中的电话卡包括但不限于SIM卡、eSIM卡、全球用户识别卡(universal subscriber identity module,USIM)、通用集成电话卡(universal integrated circuit card,UICC)等等。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
应理解,本申请实施例中的技术方案可以用于Android、IOS、鸿蒙等系统中。
为了便于理解,这里先对本申请涉及的一些概念进行介绍。
1、前台、后台
App可以在电子设备的前台运行,也可以在电子设备的后台运行。其中,当App在电子设备的前台运行,电子设备100可以在显示屏上显示该App的用户界面。用户可以通过该App的用户界面中的控件与该App进行交互。App在电子设备中运行,但不属于上述在前台运行的情况即为App在电子设备的后台运行的情况。App在电子设备的后台运行的情况可以包括电子设备中存在该App的进程,但显示屏上未显示有该App的用户界面。由于后台运行的App的用户界面未显示在显示屏上,用户通常无法直接与后台运行的App进行交互。上述后台也可以称为“非前台”。
在电子设备前台运行的App可以有一个或多个,在电子设备后台运行的App也可以有一个或多个。其中,在有一个或多个App在电子设备前台运行的同时,电子设备的后台可运行有一个或多个App。
2、系统能力
系统能力可以包括电子设备中的系统应用程序(application,App)提供的功能,以及电子设备的硬件装置所具有的能力。该系统App可以指电子设备的生产商所提供或研发的App。电子设备的生产商可以包括该电子设备的制造商、供应商、提供商或运营商等。
例如,电子设备中的系统App可以包括电话App、信息App、通讯录App、日历App、相机App等等。其中,电话App可以提供拨打电话的功能、读取设备通话状态和识别码的功能等。上述识别码可以包括电子设备中的SIM卡号码、电子设备的身份标识号(identity,ID)等。信息App可以提供读取短信的功能、发送短信的功能等。通讯录App可以提供读取联系人的信息的功能、编辑(如新建、修改、删除)联系人的功能等。日历App可以提供读取日程信息的功能,编辑(如新建、修改、删除)日程的功能等。相机App可用于提供拍照、录像等功能。
电子设备的硬件装置可以包括存储器、相机、麦克风、定位装置等。上述存储器可具有存储电子设备中的照片、视频、音频文件等数据的能力。上述相机可具有图像采集的能力。上述麦克风可具有采集声音信号的能力。上述定位装置可具有确定位置信息的能力。
App可以通过调用电子设备中的一项或多项系统能力来为用户提供相应的功能。
示例性地,聊天类App可以为用户提供发送即时消息、语音通话、视频通话等功能。例如,当用户使用聊天类App进行视频通话时,聊天类App需要调用电子设备的图像采集能力(即调用相机)来采集用户的人脸图像。
示例性地,地图类App可以为用户提供定位或导航等功能。例如,当用户使用地图类App进行导航时,地图类App需要调用电子设备的位置信息确定能力(即用上述定位装置)来获取用户的位置信息,从而为用户提供导航路线。
通常,App在调用系统能力之前,需要先获取调用电子设备中系统能力的权限。其中获取调用电子设备中系统能力的权限也可以称为获取设备权限。
示例性地,设备权限可以包括:电话权限、信息权限、通讯录权限、日历权限、相机权限、麦克风权限、存储权限、位置信息权限等。
例如,获取位置信息权限可以表示获取调用地图类App提供的功能的权限。当用户授权该地图类App位置信息权限,该地图类App可以进行定位或导航。
当上述系统App可以提供多项功能,或者电子设备的硬件装置具有多项能力,上述系统App或电子设备的硬件装置可以对应多项系统能力。
例如,电话App可以提供拨打电话的功能、读取设备通话状态和识别码的功能。上述电话权限可以包括拨打电话的权限和读取设备通话状态和识别码的权限。电子设备可以将电话权限中的一项或多项权限授权给一个App。
3、隐私声明
App在运行的过程中,通常会需要收集和使用用户的信息。为了便于用户放心将自己的信息提供给App,App会向用户提供隐私声明,并询问用户是否同意该隐私声明。
App的隐私声明可用于说明App会收集用户的哪些信息、如何收集用户的信息、如何使用用户的信息以及如何保护用户的信息等内容。上述隐私声明也可称为隐私政策、隐私条款等。本申请实施例对此不作限定。
通常,电子设备100会在以下两种情况下,询问用户是否同意App的隐私声明。一种是:在电子设备100上安装App后,用户首次开启该App时,该App会询问用户是否同意App的隐私声明。另一种是:在该App的隐私声明更新后,用户首次开启该App时,该App会再次询问用户是否同意App更新之后的隐私声明。
在用户同意隐私声明之后,且该App的隐私声明未更新的情况下,当用户再次开启该App时,该App可以不再询问用户是否同意App的隐私声明,也即该App默认用户始终同意该App的隐私声明。
上文所述的用户同意App的隐私声明可以理解为:用户同意将电子设备中该App的隐私声明涉及的一项或多项系统能力授权给该App,以便该App收集隐私声明提及的信息。
例如,App的隐私声明提出了收集用户的位置信息,来实现对用户的位置进行定位的功能或为用户提供导航的功能。那么,电子设备100可以将位置信息权限(即调用采集位置信息的能力)授权给App。
又例如,App的隐私声明提出了收集用户的人脸图像,来实现以人脸识别的方式进行身份验证的功能。那么,电子设备100可以将相机权限(即调用采集图像的能力)授权给App。
在本申请实施例中,为了方便描述,我们将App隐私声明涉及的一项或多项系统能力称为该App涉及的一项或多项敏感系统能力。
这样,在用户同意隐私声明之后,且该App的隐私声明未更新的情况下,无论该App是后台运行还是前台运行,可能都会存在:在用户不知情的情况下,该App使用敏感系统能力。
例如,若该App在后台运行,即使电子设备100未检测到用户对该App的操作,该App在后台运行的过程中也可以直接使用该App涉及的敏感系统能力。
又例如,若该App在前台运行,即使电子设备100未检测到用户使用该App涉及的敏感系统能力的操作,该App也可以直接使用该App涉及的敏感系统能力。
可见,在用户同意隐私声明之后,且该App的隐私声明未更新的情况下,该App可能会违背用户的意愿,滥用设备的敏感系统能力,私自收集用户的信息。进而导致用户的隐私信息泄露,给用户带来危险。
在一些实施例中,为了避免第一资源的泄露,当电子设备的App在用户不知情的情况下使用了敏感系统能力,电子设备可以提醒用户App正在使用敏感系统能力。这样,用户也可以自己的实际需求,确定是否终止该App使用敏感系统能力。
下面,结合图3至图6,对电子设备100如何提醒用户App正在使用敏感系统能力,以及用户如何终止该App使用敏感系统能力进行描述。
需要说明的是,图3至图6中均以电子设备100是手机为例进行描述,其不应对本申请构成限制。
此外,图3至图6中均以电子设备100通过显示提示信息来提醒用户App正在使用敏感系统能力为例进行描述,本申请实施例对电子设备100提醒用户App正在使用敏感系统能力的方式不作限定。例如,该电子设备100也可以通过振动或语音播放的方式来提醒用户App正在使用敏感系统能力。
同理,图3至图6中均以用户通过与电子设备100的屏幕之间的交互方式确定是否终止App使用敏感系统能力为例进行描述,本申请实施例对用户终止App使用敏感系统能力的方式不作限定。例如,用户也可以通过语音输入的方式终止App使用敏感系统能力。
图3为本申请实施例提供的手机的一组图形用户界面(graphical user interface,GUI)。
如图3中的(a)所示,手机显示手机的桌面,手机的桌面上包括多个App的图标,该多个应用程序包括时钟、日历、图库、备忘录以及App1等。其中,App1在后台运行,且在用户不知情的情况下,该App1正在使用定位装置(即App1正在使用手机的定位装置提供的定位功能(敏感系统能力的一例)来获取用户的位置信息)。在一个示例中,如图3中的(a)所示,手机可以通过在手机的状态栏101显示位置指示符1011来提醒用户App1正在使用定位装置访问用户的位置信息(即手机的位置信息,以下,为了方便描述,都以用户的位置信息进行描述)。
此时,可选地,在图3中的(a)所示的GUI之前,若手机没有使用定位装置,手机可能不会在手机的状态栏101显示位置指示符1011。
需要说明的是,图3中的(a)所示的位置指示符1011在状态栏101的位置仅为示例,其不应对本申请构成限制。本申请实施例对位置指示符1011在状态栏101的位置不作限定。
此时,用户通过状态栏101的位置指示符1011便可知晓有App正在使用用户的位置 信息。
若用户不想终止App使用用户的位置信息,用户可以不用进行任何操作。
若用户想要终止App使用用户的位置信息,在一些实施例中,用户可以通过控制栏来终止App使用用户的位置信息。
下面,介绍在用户通过控制栏来终止App使用用户的位置信息的过程中,手机的GUI的变化过程。
当手机检测到用户查看控制栏的操作后,手机可以显示如图3中的(b)所示的GUI。
本申请实施例对用户查看控制栏的操作的具体形式不作限定。例如,用户查看控制栏的操作可以是如图3中的(a)所示的用户沿手机的状态栏101的右侧向下滑动的操作。
需要说明的是,本申请实施例将电子设备的状态栏的操作区域分为左侧和右侧,该状态栏的左侧和状态栏的右侧是一个相对的位置。
如图3中的(b)所示,该GUI为显示控制栏102的显示界面。该控制栏102可以包括一项或多项用于控制手机的控件。例如,如图3中的(b)所示,该控制栏102包括用于开启或关闭无线高保真(wireless fidelity,Wi-Fi)信号连接功能的Wi-Fi控件、用于开启或关闭移动数据连接功能的移动数据控件、用于开启或关闭蓝牙的蓝牙控件、用于开启静音的控件、以及用于开启或关闭定位功能的位置控件1021等等。此时,由于App1正在使用用户的位置信息,因此,位置控件1021处于开启状态。可选地,该控制栏102还可以包括其他内容,本申请实施例对此不作限定。
当手机检测到用户关闭手机的定位功能的操作后,手机可以显示如图3中的(c)所示的GUI。
本申请实施例对用户关闭手机的定位功能的操作的具体形式不作限定。例如,用户关闭手机的定位功能的操作可以是如图3中的(b)所示的用户单击位置控件1021的操作。
如图3中的(c)所示,该GUI为关闭手机的定位功能后的控制栏102的显示界面。由于用户关闭了手机的定位功能,因此,位置控件1021处于关闭状态。
在本申请实施例提供的如图3所示的一组GUI中,手机可以在状态栏提醒用户:手机后台运行的App在用户不知情的情况下,通过定位装置使用用户的位置信息。且在手机检测到用户通过控制栏关闭手机的定位功能的操作后,手机可以拦截App使用定位装置的权限,从而可以避免用户隐私信息(如位置信息)的泄露,有助于提升用户的使用体验。
图4为本申请实施例提供的手机的另一组GUI。
如图4中的(a)所示,手机显示手机的桌面。其中,App1在后台运行,且在用户不知情的情况下,该App1正在使用用户的位置信息。在一个示例中,如图4中的(a)所示,和图3中的(a)所示的GUI一样,该手机也可以通过在手机的状态栏101显示位置指示符1011来提醒用户App1正在使用用户的位置信息。
关于图4中的(a)中未描述的内容,可以参考上文中关于图3中的(a)的相关描述,这里不再赘述。
此时,可选地,在图4中的(a)所示的GUI之前,若手机没有使用定位装置,手机可能不会在手机的状态栏101显示位置指示符1011。
此时,用户通过状态栏101的位置指示符1011便可知晓有App正在使用用户的位置信息。
若用户不想终止App使用用户的位置信息,用户可以不用进行任何操作。
若用户想要终止App使用用户的位置信息,在一些实施例中,用户可以通过通知栏来终止App使用用户的位置信息。
下面,介绍在用户通过通知栏来终止App使用用户的位置信息的过程中,手机的GUI的变化过程。
当手机检测到用户查看通知栏的操作后,手机可以显示如图4中的(b)所示的GUI。
本申请实施例对用户查看通知栏的操作的具体形式不作限定。例如,用户查看控制栏的操作可以是如图4中的(a)所示的用户沿手机的状态栏101的左侧向下滑动的操作。
如图4中的(b)所示,该GUI为显示通知栏的显示界面。该通知栏可以包括一项或多项通知消息。例如,如图4中的(b)所示,该通知栏包括通知消息103等,该通知消息103包括消息标题栏(例如,“App1”)和文本信息(例如,“正在使用地理位置”)。可选地,该通知栏还可以包括其他内容,例如,如图4中的(b)所示,该通知栏还可以包括时间信息(例如,“8:00”、“1月28日周五”),本申请实施例对此不作限定。
可选地,该通知栏中还可以具体显示是哪个设备上的App使用了哪个设备的位置信息。例如,该通知栏中可以包括“App1(手机)正在使用用户位置信息(手机)”文本信息。
当手机检测到用户关闭手机的定位功能的操作后,手机可以显示如图4中的(c)所示的GUI。
例如,用户关闭手机的定位功能的操作可以是如图4中的(b)所示的用户在通知消息103上由右向左滑动的操作。
如图4中的(c)所示GUI,该GUI为关闭定位功能后的手机的桌面。由于用户关闭了手机的定位功能,因此,状态栏101中不再显示位置指示符1011。
在本申请实施例提供的如图4所示的一组GUI中,手机可以在状态栏提醒用户:手机后台运行的App在用户不知情的情况下,通过定位装置使用用户的位置信息。且在手机检测到用户通过通知栏关闭手机的定位功能的操作后,手机可以拦截App使用定位装置的权限,从而可以避免用户隐私信息(如位置信息)的泄露,有助于提升用户的使用体验。
图5为本申请实施例提供的手机的又一组GUI。
如图5中的(a)所示,手机显示手机的桌面。其中,App1在后台运行,且在用户不知情的情况下,该App1正在使用用户的位置信息。在一个示例中,如图5中的(a)所示,和图3中的(a)所示的GUI一样,该手机也可以通过在手机的状态栏101显示位置指示符1011来提醒用户App1正在使用用户的位置信息。
关于图5中的(a)中未描述的内容,可以参考上文中关于图3中的(a)的相关描述,这里不再赘述。
此时,可选地,在图5中的(a)所示的GUI之前,若手机没有使用定位装置,手机可能不会在手机的状态栏101显示位置指示符1011。
此时,用户通过状态栏101的位置指示符1011便可知晓有App正在使用用户的位置信息。
若用户不想终止App使用用户的位置信息,用户可以不用进行任何操作。
若用户想要终止App使用用户的位置信息,在一些实施例中,用户可以通过定位开关来终止App使用用户的位置信息。
下面,介绍在用户通过定位开关来终止App使用用户的位置信息的过程中,手机的 GUI的变化过程。
当手机检测到用户查看定位功能设置栏的操作后,手机可以显示如图5中的(b)所示的GUI。
本申请实施例对用户查看定位功能设置栏的操作的具体形式不作限定。例如,用户查看定位功能设置栏的操作可以是如图5中的(a)所示的用户单击位置指示符1011的操作。
如图5中的(b)所示,该GUI为定位功能设置栏的显示界面。该定位功能设置栏可以包括定位开关选项1041。例如,如图5中的(b)所示,该定位开关选项1041可以包括“系统定位开关”文本信息和定位开关控件10411。可选地,该通知栏还可以包括其他内容,本申请实施例对此不作限定。
当手机检测到用户关闭手机的定位功能的操作后,手机可以显示如图5中的(c)所示的GUI。
例如,用户关闭手机的定位功能的操作可以是如图5中的(b)所示的用户单击定位开关控件10411的操作。
如图5中的(c)所示GUI,该GUI为关闭手机的定位功能后的手机的桌面。由于用户关闭了手机的定位功能,因此,状态栏101中不再显示位置指示符1011。
在本申请实施例提供的如图5所示的一组GUI中,手机可以在状态栏提醒用户:手机后台运行的应用在用户不知情的情况下,通过定位装置使用用户的位置信息。且在手机检测到用户通过定位开关关闭手机的定位功能的操作后,手机可以拦截App1使用定位装置的权限,从而可以避免用户隐私信息(如位置信息)的泄露,有助于提升用户的使用体验。
图6为本申请实施例提供的手机的又一组GUI。
如图6中的(a)所示,手机显示手机的桌面。其中,App1在后台运行,且在用户不知情的情况下,该App1正在使用用户的位置信息。在一个示例中,如图6中的(a)所示,和图3中的(a)所示的GUI一样,该手机也可以通过在手机的状态栏101显示位置指示符1011来提醒用户App1正在使用用户的位置信息。
此时,可选地,在图6中的(a)所示的GUI之前,若手机没有使用定位装置,手机可能不会在手机的状态栏101显示位置指示符1011。
此外,手机同时还可以在手机上显示弹窗,通过弹窗提醒App1正在使用用户的位置信息。
例如,如图6中的(a)所示,该弹窗105可以包括“App1正在使用地理位置”文本信息以及用于终止App1使用用户的位置信息的终止控件1051。可选地,该弹窗105还可以包括用于忽略App1使用用户的位置信息的忽略控件1052。
可选地,该弹窗中还可以具体显示是哪个设备上的App使用了哪个设备的位置信息。例如,该弹窗105中可以包括“App1(手机)正在使用用户位置信息(手机)”文本信息。
需要说明的是,当手机显示弹窗105时,手机可以显示手机桌面也可以不显示手机桌面,本申请实施例对此不作限定。
在另一个示例中,手机也可以仅在手机上显示弹窗,通过弹窗提醒App1正在使用用户的位置信息。
关于图5中的(a)中未描述的内容,可以参考上文中关于图3中的(a)的相关描述,这里不再赘述。
此时,用户通过状态栏101的位置指示符1011和/或弹窗105便可知晓有App正在使用用户的位置信息。
若用户不想终止App使用用户的位置信息,在一个示例中,用户可以不用进行任何操作。在另一个示例中,用户可以通过弹窗来不终止App使用用户的位置信息。
下面,介绍在用户通过弹窗来不终止App使用用户的位置信息的过程中,手机的GUI的变化过程。
当手机检测到用户点击忽略控件1052的操作后,即认为用户不想终止App使用用户的位置信息。此时,App便可以继续使用用户的位置信息。
若用户想要终止App使用用户的位置信息,在一些实施例中,用户可以通过弹窗来终止App使用用户的位置信息。
下面,介绍在用户通过弹窗来终止App使用用户的位置信息的过程中,手机的GUI的变化过程。
当手机检测到用户点击终止控件1051的操作后,手机可以显示如图6中的(b)所示的GUI。
如图6中的(b)所示GUI,该GUI为关闭手机的定位功能后的手机的桌面。由于用户关闭了手机的定位功能,因此,状态栏101中不再显示位置指示符1011。
在本申请实施例提供的如图6所示的一组GUI中,手机不仅可以通过状态栏也可以通过弹窗提醒用户:手机后台运行的应用在用户不知情的情况下,通过定位装置使用用户的位置信息。且在手机检测到用户通过弹窗关闭手机的定位功能的操作后,手机可以拦截App使用定位装置的权限,从而可以避免用户隐私信息(如位置信息)的泄露,有助于提升用户的使用体验。
在另一些实施例中,为了避免用户隐私信息的泄露,当电子设备的App在用户不知情的情况下需要使用敏感系统能力时,电子设备也可以先拦截该App使用敏感系统能力。这样,用户也可以自己的实际需求,确定是否允许App使用敏感系统能力。
下面,结合图7,对电子设备如何提醒用户已拦截App使用敏感系统能力,以及用户如何允许该App使用敏感系统能力进行描述。
需要说明的是,图7中以电子设备100是手机为例进行描述,其不应对本申请构成限制。
此外,图7中以电子设备100通过显示提示信息来提醒用户已拦截App使用敏感系统能力为例进行描述,本申请实施例对电子设备100提醒用户已拦截App使用敏感系统能力的方式不作限定。示例性地,该电子设备100可以通过振动或语音播放的方式来提醒用户已拦截App使用敏感系统能力。
同理,图7中以用户通过与电子设备100的屏幕之间的交互方式确定是否允许App使用敏感系统能力为例进行描述,本申请实施例对用户允许App使用敏感系统能力的方式不作限定。示例性地,该用户还可以通过语音输入的方式允许App使用敏感系统能力。
图7为本申请实施例提供的手机的又一组GUI。
如图7中的(a)所示,手机显示手机的桌面,手机的桌面上包括多个App的图标,该多个应用程序包括时钟、日历、图库、备忘录以及App1等。其中,App1在后台运行,且在用户不知情的情况下,该App1使用用户的位置信息,且该手机已拦截该App1使用定位装置的权限,即该手机已拦截该App1使用定位装置的定位功能访问用户的位置信息 的权限。
可选地,进一步地,该手机还可以询问用户是否允许该App1使用用户的位置信息,即是否放行该App1使用定位装置的权限。
示例性地,如图7中的(a)所示,手机还可以在手机上显示弹窗106。该弹窗106可以包括“请确认是否允许App1使用用户的位置信息”文本信息以及用于允许App1使用用户的位置信息的是控件1061。可选地,该弹窗106还可以包括用于不允许App1使用用户的位置信息的否控件1062。
可选地,该弹窗中还可以具体显示是否允许哪个设备上的App使用了哪个设备的位置信息。例如,该弹窗106中可以包括“请确认是否允许App1(手机)正在使用用户位置信息(手机)”文本信息。
需要说明的是,当手机显示弹窗106时,手机可以显示手机桌面也可以不显示手机桌面,本申请实施例对此不作限定。
此时,用户通过弹窗106便可知晓有App想要使用用户的位置信息。
若用户不想允许App使用用户的位置信息,在一个示例中,用户可以不用进行任何操作。在另一个示例中,用户可以通过弹窗106来不允许App使用用户的位置信息。
下面,介绍在用户通过弹窗106来不允许App使用用户的位置信息的过程中,手机的GUI的变化过程。
当手机检测到用户点击否控件1062的操作后,即认为用户不想允许App使用用户的位置信息。此时,App便继续不可以使用用户的位置信息。
若用户想要允许App使用用户的位置信息,在一些实施例中,用户可以通过弹窗106来允许App使用用户的位置信息。
下面,介绍在用户通过弹窗106来允许App使用用户的位置信息的过程中,手机的GUI的变化过程。
当手机检测到用户点击是控件1061的操作后,手机可以开启定位功能。
此外,在一些实施例中,如图7中的(b)所示,手机在打开定位功能后,手机还可以通过在手机的状态栏101显示位置指示符1011来提醒用户可以使用用户的位置信息。
在本申请实施例提供的如图7所示的一组GUI中,当手机后台运行的App在用户不知情的情况下使用用户的位置信息时,手机可以先拦截手机使用定位装置的权限,然后,手机通过弹窗询问用户是否允许该App使用用户的位置信息,并在检测到用户通过弹窗允许App使用用户的位置信息的操作后,手机便放行该App使用定位装置的权限,进而该App能够使用用户的位置信息,从而可以避免用户隐私信息(如位置信息)的泄露,有助于提升用户的使用体验。
随着电子技术的发展和人们生活水平的提高,用户一般都拥有一部以上的电子设备。例如,用户除了拥有电子设备100外,还拥有其他电子设备。当电子设备100与用户超过一定距离,用户可能无法看到或听到电子设备100关于App正在使用敏感系统能力的提示。这样可能会造成用户不能够及时地终止App使用敏感系统能力,从而避免不了用户隐私信息的泄露,给用户带来危险。
鉴于此,电子设备100还可以跨设备将电子设备100上App正在使用敏感系统能力的信息同步到其他电子设备。这样,用户也可以根据自己的实际需求,通过其他电子设备确定是否终止电子设备100上该App使用敏感系统能力。
其中,电子设备100和其他电子设备之间存在可信关系。
在一些实施例中,电子设备100和其他电子设备之间存在可信关系可以理解为电子设备100是其他电子设备的可信设备或其他电子设备是电子设备100的可信设备。
在另一些实施例中,电子设备100和其他电子设备之间存在可信关系可以理解为电子设备100和其他电子设备互为可信设备。也就是说,电子设备100是其他电子设备的可信设备,且其他电子设备也是电子设备100的可信设备。
本申请实施例对电子设备100和其他电子设备之间的可信关系的建立方式不作限定。例如,电子设备100和其他电子设备可以通过扫描二维码、应用程序、个人身份识别码(personal identification number,PIN)、登录同一个账号(个人账号或家庭账号)、账号关联(例如,将父母的账号与子女账号关联)、登录同一个Wi-Fi网络、建立近距离连接等方式建立可信关系。
可选地,在一些实施例中,电子设备100和其他电子设备之间的距离满足预设距离。本申请实施例对预设距离的具体取值不作限定。
下面,结合图8至图16,对图8所示的场景中智能电视如何跨设备提醒用户智能电视上App使用敏感系统能力,以及用户如何跨设备控制智能电视上该App使用敏感系统能力的行为进行描述。
需要说明的是,图8所示的场景中的电子设备仅为示例,其不应对本申请构成限制。例如,该场景中还可以包括更多的电子设备。
图8为本申请实施例提供的一例应用场景200A的示例图。如图8所示,该场景200A可以包括智能电视220(电子设备100的一例)、手机210(其他电子设备的一例)和用户230。其中,客厅的智能电视220正在暂停播放电视剧。用户230在卧室正在使用手机210。
若在用户不知情的情况下,智能电视220播放电视剧的App(例如,华为视频)正在使用用户的位置信息,即播放电视剧的App正在通过智能电视220的定位装置提供的定位功能来获取用户的位置信息。
此时,可选地,在一些实施例中,智能电视220可以先确定用户是否在智能电视220的预设范围内,然后根据确定的结果,采用相应的提醒措施。
需要说明的是,智能电视220也可以跳过确定用户是否在智能电视220的预设范围内的步骤,直接执行后续提醒的步骤。本申请实施例对此不作限定。
本申请实施例对智能电视220如何确定用户是否在智能电视220的预设范围内的方式不作限定。例如,智能电视220可以采集图像,并根据采集的图像判断用户是否正在观看智能电视220,来判断用户是否在智能电视220的预设范围内。又例如,智能电视220可以根据当前是否有用户操作智能电视220,来判断用户是否在智能电视220的预设范围内。
在用户在智能电视220的预设范围内的情况下,智能电视220可以不拦截智能电视220的华为视频使用定位装置的权限,即智能电视220可以不拦截智能电视220的华为视频访问用户的位置信息。
可选地,在用户在智能电视220的预设范围内的情况下,智能电视220还可以进一步确定该用户是否是智能电视220可信任的用户,并在该用户是否是智能电视220可信任的用户的情况下,智能电视220不拦截智能电视220的华为视频使用定位装置的权限。
其中,智能电视220可信任的用户可以理解为是可以使用智能电视220的用户。
本申请实施例对智能电视220如何确定该用户是否是智能电视220可信任的用户的方 式不作限定。例如,智能电视220可以采集图像,并根据采集的图像判断用户是否是预存在智能电视220中的可信任的用户。
可选地,在用户在智能电视220的预设范围内的情况下,智能电视220也可以通过智能电视220提醒用户华为视频正在使用智能电视220的用户的位置信息。
在一个示例中,如图9中的(a)所示,智能电视220可以通过在智能电视220的状态栏221显示位置指示符2211来提醒用户华为视频正在使用用户的位置信息。
需要说明的是,图9中的(a)所示的位置指示符2211在状态栏221的位置仅为示例,其不应对本申请构成限制。本申请实施例对位置指示符2211在状态栏221的位置不作限定。
在另一个示例中,如图9中的(b)所示,智能电视220可以在智能电视220的显示界面显示弹窗222来提醒用户华为视频正在使用用户的位置信息。例如,该弹窗222可以包括“华为视频正在使用地理位置”文本信息以及用于终止华为视频使用用户的位置信息的终止控件2221。可选地,该弹窗222还可以包括用于忽略华为视频使用用户的位置信息的忽略控件2222。
可选地,该弹窗222中还可以具体显示是哪个设备上的App使用了哪个设备的位置信息。例如,该弹窗222中可以包括“华为视频(智能电视)正在使用用户位置信息(智能电视)”文本信息。
在一些实施例中,在用户不在智能电视220的预设范围内的情况下,或者,在用户在智能电视220的预设范围内,且该用户不是智能电视220可信任的用户的情况下,智能电视220可以向手机210发送第一指示信息。其中,第一指示信息可以用于指示智能电视220的华为视频正在使用用户的位置信息。
可选地,智能电视220此时也可以通过智能电视220提醒用户智能电视220的华为视频正在使用用户的位置信息。关于智能电视220如何提醒用户智能电视220的华为视频正在使用用户的位置信息的方式可以上文的举例描述,这里不再赘述。
在手机210接收到第一指示信息后,手机210可以提醒用户智能电视220的华为视频正在使用用户的位置信息。
下面,结合图10至图14,对手机210如何提醒用户智能电视220的华为视频正在使用用户的位置信息,以及对用户如何通过手机210终止智能电视220上的华为视频使用用户的位置信息进行描述。
在一些实施例中,如图10所示,该手机210可以通过在手机210的状态栏211显示位置指示符2111来提醒用户智能电视220的华为视频正在使用用户的位置信息。
需要说明的是,本申请实施例对位置指示符2111在状态栏101的位置不作限定。例如,如图10中的(a)和图10中的(c)所示,位置指示符2111在状态栏101的左侧位置。又例如,如图10中的(b)和图10中的(d)所示,位置指示符2111在状态栏101的右侧位置。
可选地,为了区分是本设备还是其他设备使用用户的位置信息,在一些实施例中,设备提醒本设备使用用户的位置信息和其他设备使用用户的位置信息的方式不同。
在一个示例中,本设备使用用户的位置信息和其他设备使用用户的位置信息时显示的位置指示符的颜色和/或位置不相同。
在本设备使用用户的位置信息和其他设备使用用户的位置信息时显示的位置指示符 的颜色不相同的示例中,例如,本设备显示的位置指示符可以是绿色;其他设备显示的位置指示符可以是红色。又例如,本设备显示的位置指示符可以是红色;其他设备显示的位置指示符可以是绿色。
在本设备使用用户的位置信息和其他设备使用用户的位置信息时显示的位置指示符的位置不相同的示例中,本设备可以在状态栏的左侧位置显示位置指示符,其他设备可以在状态栏的左侧位置显示位置指示符。例如,智能电视220在状态栏221的左侧位置显示位置指示符2211,手机210在状态栏211的右侧位置显示位置指示符2111。又例如,智能电视220在状态栏221的右侧位置显示位置指示符2211,手机210在状态栏211的左侧位置显示位置指示符2111。
在另一示例中,其他设备使用用户的位置信息时除了显示的位置指示符外,还可以显示其他设备的一些信息。
例如,该手机210除了在手机210的状态栏211显示位置指示符2111外,还可以在手机210的状态栏211显示智能电视220的类型的标识。
需要说明的是,本申请实施例对智能电视220的类型的标识的具体形式不作限定。例如,如图10中的(c)和图10中的(d)所示,智能电视220的类型的标识2112可以是智能电视220的外形轮廓。
此外,本申请实施例对智能电视220的类型的标识和位置指示符2111在状态栏211中的位置关系不作限定。为了让用户更快的获取哪个设备涉及敏感系统能力,可以将位置指示符2111和智能电视220的类型的标识组合显示。例如,如图10中的(c)和图10中的(d)所示,位置指示符2111可以设置在智能电视220的类型的标识2112的中间位置。
此时,用户通过状态栏211的位置指示符2111便可知晓其他设备上有App正在使用用户的位置信息。
若用户不想终止其他设备上的App使用用户的位置信息,用户可以不用进行任何操作。
若用户想要终止其他设备上的App使用用户的位置信息,在一些实施例中,用户可以通过手机210来终止其他设备上的App使用用户的位置信息。
下面,结合图11至图14,对用户如何通过手机210终止其他设备上的华为视频使用用户的位置信息进行描述。
其中,图11是用户通过控制栏终止智能电视220上的华为视频使用用户的位置信息的过程中,手机210的GUI的变化过程。图12是用户通过通知栏终止智能电视220上的华为视频使用用户的位置信息的过程中,手机210的GUI的变化过程。图13是用户通过定位功能设置栏终止智能电视220上的华为视频使用用户的位置信息的过程中,手机210的GUI的变化过程。图14是用户通过弹窗终止App智能电视220上的华为视频使用用户的位置信息的过程中,手机210的GUI的变化过程。
需要说明的是,图11至图14中均以手机210通过显示提示信息来提醒用户智能电视220上的华为视频正在使用用户的位置信息为例进行描述。本申请实施例对手机210提醒用户智能电视220上的华为视频正在使用用户的位置信息的方式不作限定。示例性地,该手机210可以通过振动或语音播放的方式来提醒用户智能电视220上的华为视频正在使用用户的位置信息。
同理,图11至图14中均以用户通过与手机210的屏幕之间的交互方式确定是否终止 智能电视220上的华为视频使用用户的位置信息为例进行描述,本申请实施例对用户终止智能电视220上的华为视频使用用户的位置信息的方式不作限定。示例性地,该用户还可以通过语音输入的方式终止智能电视220上的华为视频使用用户的位置信息能。
此外,图11至图14中均以位置指示符2111在状态栏211的右侧位置为例进行描述,其不应对本申请构成限制。
需要说明的是,在图11至图14所示的实施例中,只有手机210自身使用了定位装置或手机210接收到智能电视220使用了定位装置的指示后,手机210才可能在手机210的状态栏显示位置指示符2111。若手机210没有使用定位装置或手机210未接收到其他电子设备使用了定位装置的指示,第一电子设备在手机210的状态栏不用显示位置指示符2111。
图11为本申请实施例提供的手机210的一组GUI。
如图11中的(a)所示,手机210显示手机的桌面。其中,手机的桌面上包括多个App的图标,该多个应用程序包括时钟、日历、图库、备忘录以及应用商城等。
当手机210检测到用户查看控制栏的操作后,手机210可以显示如图11中的(b)所示的GUI。
例如,用户查看控制栏的操作可以是如图11中的(a)所示的用户沿手机210的状态栏211的右侧向下滑动的操作。
如图11中的(b)所示,该GUI为显示控制栏212的显示界面。该控制栏212可以包括一项或多项用于控制手机210的控件。例如,如图11中的(b)所示,该控制栏212包括用于开启或关闭Wi-Fi信号连接功能的Wi-Fi控件、用于开启或关闭移动数据连接功能的移动数据控件、用于开启或关闭蓝牙的蓝牙控件、用于开启静音的控件、以及用于开启或关闭定位功能的位置控件2121等等。可选地,该控制栏212还可以包括其他内容,本申请实施例对此不作限定。
此时,若手机210当前未开启定位功能,位置控件2121处于关闭状态。此外,由于手机210接收到智能电视220发送的第一指示信息,因此,手机210可以在位置控件2121处提醒用户智能电视220上的华为视频使用用户的位置信息。
本申请实施例对手机210在位置控件2121处提醒用户智能电视220上的华为视频使用用户的位置信息的方式不作限定。例如,如图11中的(b)所示,手机210在位置控件2121的下方显示“智能电视的华为视频正在使用”文本信息来提醒用户华为视频正在使用用户的位置信息”。
可选地,手机210在位置控件2121处还可以具体显示是哪个设备上的App使用了哪个设备的位置信息。例如,手机210在位置控件2121的下方显示“华为视频(智能电视)正在使用用户位置信息(智能电视)”文本信息。
当手机210检测到用户想要终止智能电视220上的华为视频使用用户的位置信息的操作后,手机210可以向智能电视220发送第二指示信息。其中,第二指示信息用于指示智能电视220终止智能电视220上的华为视频使用用户的位置信息的,即第二指示信息用于指示智能电视220关闭智能电视220的定位功能。
本申请实施例对用户终止智能电视220上的华为视频使用用户的位置信息的操作的具体形式不作限定。
例如,用户终止智能电视220上的华为视频使用用户的位置信息的操作可以包括图 11中的(b)至图11中的(d)的一系列操作。
具体地,首先,如图11中的(b)所示,用户单击位置控件2121的右下角的按钮操作。
当手机210检测到该操作后,手机210可以显示如图11中的(c)所示的GUI。
如图11中的(c)所示,该GUI为定位功能设置栏的显示界面。该定位功能设置栏可以包括标题栏2122和至少一个显示栏2123。例如,标题栏2122可以显示“位置信息”文本信息。显示栏2123可以显示:使用用户的位置信息的设备的类型(智能电视的外形轮廓)、使用用户的位置信息的设备的标识(智能电视)、华为视频的标识。可选地,该定位功能设置栏还可以包括其他内容,本申请实施例对此不作限定。
其次,如图11中的(c)所示,用户单击显示栏2123的操作。
当手机210检测到该操作后,手机210可以显示如图11中的(d)所示的弹窗2124。
如图11中的(d)所示,该弹窗2124可以包括“华为视频(智能电视)正在使用地理位置”文本信息以及用于终止华为视频(智能电视)使用用户的位置信息的终止控件21241。可选地,该弹窗2124还可以包括用于忽略华为视频(智能电视)使用用户的位置信息的忽略控件21242。
可选地,该弹窗2124还可以具体显示是哪个设备上的App使用了哪个设备的位置信息。例如,该弹窗2124可以包括“华为视频(智能电视)正在使用用户位置信息(智能电视)”文本信息。
最后,如图11中的(d)所示,用户点击终止控件21241的操作。
当手机210检测到用户点击终止控件21241的操作,即认为手机210检测到用户想要终止智能电视220上的华为视频使用用户的位置信息。
需要说明的是,若用户此时又不想终止智能电视220上的华为视频使用用户的位置信息,用户可以点击忽略控件21242。当手机210检测到用户点击忽略控件21242的操作,即认为手机210检测到用户不想终止智能电视220上的华为视频使用用户的位置信息的操作。此时,手机210和智能电视220可以不用进行任何操作。
在本申请实施例提供的如图11所示的一组GUI中,手机210可以通过状态栏提醒用户:智能电视220前台运行的华为视频在用户不知情的情况下,通过定位装置使用用户的位置信息。且用户可以通过控制栏终止智能电视220上的华为视频使用用户的位置信息,从而可以避免用户隐私信息(如位置信息)的泄露,有助于提升用户的使用体验。
图12为本申请实施例提供的手机210的另一组GUI。
如图12中的(a)所示,手机210显示手机的桌面。其中,手机的桌面上包括多个App的图标,该多个应用程序包括时钟、日历、图库、备忘录以及应用商城等。
当手机210检测到用户查看通知栏的操作后,手机210可以显示如图12中的(b)所示的GUI。
例如,用户查看通知栏的操作可以是如图12中的(a)所示的用户沿手机210的状态栏101的左侧向下滑动的操作。
如图12中的(b)所示,该GUI为显示通知栏的显示界面。该通知栏可以包括一项或多项通知消息。例如,如图12中的(b)所示,该通知栏包括通知消息213等等,该通知消息213包括“华为视频(智能电视)正在使用地理位置”文本信息。可选地,该通知栏还可以包括其他内容,本申请实施例对此不作限定。
可选地,该通知消息213还可以具体显示是哪个设备上的App使用了哪个设备的位置信息。例如,该通知消息213可以包括“华为视频(智能电视)正在使用用户位置信息(智能电视)”文本信息。
当手机210检测到用户想要终止智能电视220上的华为视频使用用户的位置信息的操作后,手机210可以向智能电视220发送第二指示信息。其中,第二指示信息的相关描述可以参见上文的相关描述,这里不再赘述。
例如,用户终止智能电视220上的华为视频使用用户的位置信息的操作可以包括图12中的(b)和图12中的(c)的一系列操作。
具体地,首先,如图12中的(b)所示,用户在通知消息213上由右向左滑动操作。
当手机210检测到该操作后,手机210可以显示如图12中的(c)所示的GUI。
如图12中的(c)所示,在通知消息213上还可以显示用于终止智能电视220上的华为视频使用用户的位置信息的终止控件2131。可选地,在通知消息213上还可以显示用于忽略智能电视220上的华为视频使用用户的位置信息的忽略控件2132,本申请实施例对此不作限定。
然后,如图12中的(c)所示,用户单击终止控件2131的操作。
当手机210检测到用户点击终止控件2131的操作,即认为手机210检测到用户想要终止智能电视220上的华为视频使用用户的位置信息。
需要说明的是,若用户此时又不想终止智能电视220上的华为视频使用用户的位置信息,用户可以点击忽略控件2132。当手机210检测到用户点击忽略控件2132的操作,即认为手机210检测到用户不想终止智能电视220上的华为视频使用用户的位置信息的操作。此时,手机210和智能电视220可以不用进行任何操作。
在本申请实施例提供的如图12所示的一组GUI中,手机210可以通过状态栏提醒用户:智能电视220前台运行的华为视频在用户不知情的情况下,通过定位装置使用用户的位置信息。且用户可以通知栏终止智能电视220上的华为视频使用用户的位置信息,从而可以避免用户隐私信息(如位置信息)的泄露,有助于提升用户的使用体验。
图13为本申请实施例提供的手机210的又一组GUI。
如图13中的(a)所示,手机210显示手机的桌面。其中,手机的桌面上包括多个App的图标,该多个应用程序包括时钟、日历、图库、备忘录以及应用商城等。
当手机210检测到用户查看定位功能设置栏的操作后,手机210可以显示如图13中的(b)所示的GUI。
例如,用户查看定位功能设置栏的操作可以是如图13中的(a)所示的用户单击位置指示符2111的操作。
如图13中的(b)所示,该GUI为定位功能设置栏的显示界面。该定位功能设置栏可以包括定位开关选项标题栏2141和至少一个显示栏2142。
例如,如图13中的(b)所示,该定位开关选项标题栏2141可以显示“系统定位开关”文本信息和定位开关控件21411。
此时,若手机210当前未开启定位功能,定位开关控件21411处于关闭状态。
此外,由于手机210接收到智能电视220发送的第一指示信息,因此,手机210可以在位置控件2121处提醒用户智能电视220上的华为视频使用用户的位置信息。例如,如图13中的(b)所示,该显示栏2142可以显示“系统定位开关(智能电视)”文本信息, 该文本信息可以理解为智能电视的系统定位开关处于打开状态。
可选地,该定位功能设置栏还可以包括其他内容,本申请实施例对此不作限定。
当手机210检测到用户想要终止智能电视220上的华为视频使用用户的位置信息的操作后,手机210可以向智能电视220发送第二指示信息。其中,第二指示信息的相关描述可以参见上文的相关描述,这里不再赘述。
例如,用户终止智能电视220上的华为视频使用用户的位置信息的操作可以包括图13中的(b)和图13中的(c)的一系列操作。
具体地,首先,如图13中的(b)所示,用户单击显示栏2142的操作。
当手机210检测到该操作后,手机210可以显示如图13中的(c)所示的弹窗215。
如图13中的(c)所示,该弹窗215可以包括“华为视频(智能电视)正在使用地理位置”文本信息以及用于终止华为视频(智能电视)使用用户的位置信息的终止控件2151。可选地,该弹窗215还可以包括用于忽略华为视频(智能电视)使用用户的位置信息的忽略控件2152。
可选地,该弹窗215还可以具体显示是哪个设备上的App使用了哪个设备的位置信息。例如,该弹窗215可以包括“华为视频(智能电视)正在使用用户位置信息(智能电视)”文本信息。
然后,如图13中的(c)所示,用户点击终止控件2151的操作。
当手机210检测到用户点击终止控件2151的操作,即认为手机210检测到用户想要终止智能电视220上的华为视频使用用户的位置信息。
需要说明的是,若用户此时又不想终止智能电视220上的华为视频使用用户的位置信息,用户可以点击忽略控件2152。当手机210检测到用户点击忽略控件2152的操作,即认为手机210检测到用户不想终止智能电视220上的华为视频使用用户的位置信息的操作。此时,手机210和智能电视220可以不用进行任何操作。
在本申请实施例提供的如图13所示的一组GUI中,手机210可以通过状态栏提醒用户:智能电视220前台运行的华为视频在用户不知情的情况下,通过定位装置使用用户的位置信息。且用户可以通过定位功能设置栏终止智能电视220上的华为视频使用用户的位置信息,从而可以避免用户隐私信息(如位置信息)的泄露,有助于提升用户的使用体验。
图14为本申请实施例提供的手机210的又一组GUI。
如图14所示,该手机210不仅通过在手机210的状态栏211中位置指示符2111,还通过显示提示信息来提醒用户智能电视220上的华为视频使用用户的位置信息。
如图14所示,手机210显示弹窗216。该弹窗216可以包括“华为视频(智能电视)正在使用地理位置”文本信息以及用于终止华智能电视220上的华为视频使用用户的位置信息的终止控件2161。可选地,该弹窗216还可以包括用于忽略智能电视220上的华为视频使用用户的位置信息的忽略控件2162。
可选地,该弹窗216还可以具体显示是哪个设备上的App使用了哪个设备的位置信息。例如,该弹窗216可以包括“华为视频(智能电视)正在使用用户位置信息(智能电视)”文本信息。
当手机210检测到用户点击终止控件2161的操作,即认为手机210检测到用户想要终止智能电视220上的华为视频使用用户的位置信息。在手机210检测到用户想要终止智能电视220上的华为视频使用用户的位置信息的操作后,手机210可以向智能电视220发 送第二指示信息。其中,第二指示信息的相关描述可以参见上文的相关描述,这里不再赘述。
需要说明的是,若用户此时又不想终止智能电视220上的华为视频使用用户的位置信息,用户可以点击忽略控件2162。当手机210检测到用户点击忽略控件2162的操作,即认为手机210检测到用户不想终止智能电视220上的华为视频使用用户的位置信息的操作。此时,手机210和智能电视220可以不用进行任何操作。
在本申请实施例提供的如图14所示的GUI中,手机210可以通过弹窗提醒用户:智能电视220前台运行的华为视频在用户不知情的情况下,通过定位装置使用用户的位置信息。且用户可以通过弹窗终止智能电视220上的华为视频使用用户的位置信息,从而可以避免用户隐私信息(如位置信息)的泄露,有助于提升用户的使用体验。
智能电视220接收到手机210发送的第二指示信息后,智能电视220可以自动终止智能电视220上的华为视频使用用户的位置信息。
本申请实施例对智能电视220如何自动终止智能电视220上的华为视频使用用户的位置信息的操作不作限定。
在一个示例中,智能电视220可以通过关闭定位功能来终止智能电视220上的华为视频使用用户的位置信息。可选地,若智能电视220之前通过位置指示符2211来提醒用户华为视频正在使用用户的位置信息,此时,由于智能电视220的定位功能已关闭,因此,智能电视220的状态栏221中将不再显示位置指示符2211。
在另一个示例中,智能电视220也可以直接终止智能电视220上的华为视频使用用户的位置信息的进程、或直接关闭华为视频、或直接关闭使用定位装置的权限,来终止智能电视220上的华为视频使用用户的位置信息。
可选地,在一些实施例中,在终止智能电视220上的华为视频使用用户的位置信息之后,智能电视220还可以向手机210发送第三指示信息,该第三指示信息用于指示智能电视220已终止华为视频使用用户的位置信息。
可选地,在一些实施例中,在手机210接收到第三指示信息之后,该手机210结束通过手机210提醒用户智能电视220上的华为视频使用用户的位置信息的行为。例如,若手机210之前通过位置指示符2111来提醒用户智能电视220上的华为视频使用用户的位置信息。此时,手机210的状态栏221中将不再显示位置指示符2111。又例如,若手机210之前通过提示信息来提醒用户智能电视220上的华为视频使用用户的位置信息。此时,手机210将不再显示该提示信息。
在另一些实施例中,在用户不在智能电视220的预设范围内的情况下,或者,在用户在智能电视220的预设范围内,且该用户不是智能电视220可信任的用户的情况下,智能电视220也可以先拦截智能电视220的播放电视剧的App使用用户的位置信息的权限。然后,智能电视220可以向手机210发送第一指示信息。其中,第一指示信息可以用于指示智能电视220已拦截智能电视220的播放电视剧的App使用用户的位置信息的权限。
可选地,智能电视220此时也可以通过智能电视220提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信息的权限。关于智能电视220如何提醒用户智能电视220的华为视频正在使用用户的位置信息的权限的方式可以上文图7中关于手机如何提醒用户手机的App1已拦截该App1使用用户的位置信息的权限的举例描述,这里不再赘述。
在一些实施例中,在手机210接收到第一指示信息后,手机210可以提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信息的权限。
下面,结合图15和图16,对手机210如何提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信息的权限,以及对用户如何通过手机210允许智能电视220上的华为视频使用用户的位置信息进行描述。
图15本申请实施例提供的手机210的GUI。
示例性地,如图15所示,该手机210可以通过在手机210上显示弹窗217来提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信的权限。
如图15所示,该弹窗217可以包括“请确认是否允许智能电视的华为视频使用用户的位置信息”文本信息和用于允许(或放行)智能电视的华为视频使用用户的位置信息的是控件2171。可选地,该弹窗217还可以包括用于不允许(或不放行)智能电视的华为视频使用用户的位置信息的否控件2172。
可选地,该弹窗217还可以具体显示是允许哪个设备上的App使用了哪个设备的位置信息。例如,该弹窗217可以包括“请确认是否允许华为视频(智能电视)使用用户位置信息(智能电视)”文本信息。
当手机210检测到用户点击是控件2171的操作后,手机210可以向智能电视220发送第二指示信息。其中,第二指示信息用于指示允许智能电视的华为视频使用用户的位置信息。
在智能电视220接收到第二指示信息后,智能电视220可以自动允许智能电视的华为视频使用用户的位置信息。例如,智能电视220可以自动打开系统定位开关,以便华为视频使用智能电视220的定位功能。
需要说明的是,当手机210检测到用户点击忽略控件2172或手机210在预设时间未收到指示的操作,即认为手机210检测到用户不想允许智能电视的华为视频使用用户的位置信息的操作。此时,手机210和智能电视220可以不用进行任何操作。
可选地,在一些实施例中,在允许智能电视220上的华为视频使用用户的位置信息之后,智能电视220还可以向手机210发送第三指示信息,该第三指示信息用于指示智能电视220已允许华为视频使用用户的位置信息。
可选地,在一些实施例中,在手机210接收到第三指示信息之后,该手机210结束通过手机210提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信息的权限。例如,若手机210之前通过提示信息来提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信息的权限。此时,手机210将不再显示该提示信息。
图16本申请实施例提供的手机210的GUI。
示例性地,该手机210可以通过在手机210上显示通知消息来提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信息的权限。
如图16中的(a)所示,该手机210为显示通知栏的显示界面。该通知栏可以包括一项或多项通知消息。例如,如图16中的(a)所示,该通知栏包括通知消息218等,该通知消息218包括消息标题栏(例如,“已拦截”)和文本信息(例如,“华为视频(智能电视)使用地理位置”)。可选地,该通知栏还可以包括其他内容,本申请实施例对此不作限定。
可选地,该通知消息218还可以具体显示是拦截了哪个设备上的App使用了哪个设备 的位置信息。例如,该通知消息218可以包括“华为视频(智能电视)使用用户位置信息(智能电视)”文本信息。
当手机210检测到用户想要允许智能电视220的华为视频使用用户的位置信息的操作后,手机210可以向智能电视220发送第二指示信息。其中,第二指示信息用于指示允许智能电视的华为视频使用用户的位置信息。
本申请实施例对用户允许智能电视220的华为视频使用用户的位置信息的操作的具体形式不作限定。
例如,用户允许智能电视220的华为视频使用用户的位置信息的操作可以包括如图16中的(a)和图16中的(b)所示的一系列操作。
具体的,首先,如图16中的(a)所示,用户在通知消息103上由右向左滑动的操作。
当手机210检测到该操作后,手机210可以显示如图16中的(b)所示的GUI。
如图16中的(b)所示,在通知消息218上还可以显示用于允许智能电视220上的华为视频使用用户的位置信息的允许控件2181。可选地,在通知消息218上还可以显示用于忽略已拦截的智能电视220的华为视频使用用户的位置信息的权限的忽略控件2182,本申请实施例对此不作限定。
然后,如图16中的(b)所示,用户单击允许控件2181的操作。
当手机210检测到用户点击允许控件2181的操作,即认为手机210检测到用户想要允许智能电视220上的华为视频使用用户的位置信息。
需要说明的是,若用户此时又不想允许智能电视220上的华为视频使用用户的位置信息,用户可以点击忽略控件2182。当手机210检测到用户点击忽略控件2182的操作,即认为手机210检测到用户不想允许智能电视220上的华为视频使用用户的位置信息的操作。此时,手机210和智能电视220可以不用进行任何操作。
在智能电视220接收到第二指示信息后,智能电视220可以自动允许智能电视的华为视频使用用户的位置信息。例如,智能电视220可以自动打开系统定位开关,以便华为视频使用智能电视220的定位功能。
需要说明的是,当手机210检测到用户点击忽略控件2182或手机210在预设时间未收到指示的操作,即认为手机210检测到用户不想允许智能电视的华为视频使用用户的位置信息的操作。此时,手机210和智能电视220可以不用进行任何操作。
可选地,在一些实施例中,在允许智能电视220上的华为视频使用用户的位置信息之后,智能电视220还可以向手机210发送第三指示信息,该第三指示信息用于指示智能电视220已允许华为视频使用用户的位置信息。
可选地,在一些实施例中,在手机210接收到第三指示信息之后,该手机210结束通过手机210提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信息的行为。例如,若手机210之前通过提示信息来提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信息。此时,手机210将不再显示该提示信息。
下面,结合图17和图18,对图17所示的场景中智能电视如何跨设备提醒用户智能电视上App正在使用敏感系统能力,以及用户如何跨设备终止该App使用敏感系统能力进行描述。
需要说明的是,图17所示的场景中的电子设备仅为示例,其不应对本申请构成限制。例如,该场景中还可以包括更多的电子设备。
图17为本申请实施例提供的一例应用场景200B的示例图。如图17所示,该场景200B可以包括智能电视220(电子设备100的一例)、音箱240(其他电子设备的一例)和用户230。其中,客厅的智能电视220正在暂停播放电视剧。用户230和音箱240均在卧室,且音箱240处于开机状态。
若在用户不知情的情况下,智能电视220播放电视剧的App(例如,华为视频)正在使用用户的位置信息。
此时,可选地,在一些实施例中,智能电视220可以先确定用户是否在智能电视220的预设范围内,然后根据确定的结果,采用相应的提醒措施。
在用户在智能电视220的预设范围内的情况下,智能电视220的操作可以参见上文的相关描述,这里不再赘述。
在一些实施例中,在用户不在智能电视220的预设范围内的情况下,或者,在用户在智能电视220的预设范围内,且该用户不是智能电视220可信任的用户的情况下,智能电视220可以向音箱240发送第一指示信息。其中,第一指示信息可以用于指示智能电视220的华为视频正在使用用户的位置信息。
可选地,智能电视220此时也可以通过智能电视220提醒用户智能电视220的华为视频正在使用用户的位置信息。关于智能电视220如何提醒用户智能电视220的华为视频正在使用用户的位置信息的方式可以参考上文关于图9中相关举例描述,这里不再赘述。
在音箱240接收到第一指示信息后,音箱240可以提醒用户智能电视220的华为视频正在使用用户的位置信息。
在一些实施例中,该音箱240可以通过播放语音的方式,来提醒用户智能电视220的华为视频正在使用用户的位置信息。
例如,如图18所示,该音箱240可以播放“智能电视的华为视频正在使用用户的位置信息”语音消息。又例如,该音箱240可以播放“智能电视的华为视频正在使用智能电视的用户的位置信息”语音消息。
可选地,进一步地,该音箱240可以通过播放语音的方式,来提醒用户是终止还是忽略智能电视220的华为视频正在使用用户的位置信息。
需要说明的是,该音箱240可以周期性地通过播放语音的方式,来提醒用户是终止还是忽略智能电视220的华为视频正在使用用户的位置信息的权限,直到音箱240收到进一步指示为止。本申请对此不作限定。
例如,如图18所示,该音箱240播放“请确认是终止还是忽略智能电视的华为视频使用用户的位置信息的权限”语音消息。又例如,该音箱240可以播放“请确认是终止还是忽略智能电视的华为视频正在使用智能电视的用户的位置信息”语音消息。
当音箱240检测到用户不想终止智能电视220的华为视频正在使用用户的位置信息的权限的操作后,音箱240可以不作任何操作。例如,该用户230通过语音向音箱240输入“忽略”语音消息。此时,该语音消息即为用户不想终止智能电视220的华为视频使用用户的位置信息的操作。
当音箱240检测到用户想要终止智能电视220的华为视频正在使用用户的位置信息的操作后,音箱240可以向智能电视220发送第二指示信息。其中,第二指示信息用于指示智能电视220终止智能电视220的华为视频正在使用用户的位置信息的权限。
例如,如图18所示,该用户230通过语音向音箱240输入“终止”语音消息。此时, 该语音消息即为用户想要终止智能电视220的华为视频正在使用用户的位置信息的操作。
需要说明的是,若音箱240在预设时间未收到用户230的指示,则音箱240默认用户不想终止智能电视220的华为视频正在使用用户的位置信息的权限。此时,音箱240和智能电视220可以不用进行任何操作。
本申请实施例对预设时间的具体取值不作限定。
可选地,在一些实施例中,音箱240还可以在接收到用户想要终止智能电视220的华为视频使用用户的位置信息的权限的操作后,通过播放语音的方式,来提醒用户正在根据用户的指示做进一步处理的指示。
例如,如图18所示,该音箱240播放“好的,正在帮您在智能电视上终止智能电视的华为视频使用用户的位置信息的权限,请稍等”语音消息。
智能电视220接收到音箱240发送的第二指示信息后,智能电视220可以自动终止智能电视220上的华为视频使用用户的位置信息。
关于智能电视220如何自动终止智能电视220上的华为视频使用用户的位置信息的操作可以参考上文的描述,这里不再赘述。
可选地,在一些实施例中,在终止智能电视220上的华为视频使用用户的位置信息之后,智能电视220还可以向音箱240发送第三指示信息,该第三指示信息用于指示智能电视220已终止华为视频使用用户的位置信息。
可选地,在一些实施例中,在音箱240接收到第三指示信息之后,该音箱240结束通过音箱240提醒用户智能电视220上的华为视频使用用户的位置信息的行为。例如,音箱240可将不再通过播放语音的方式来提醒用户智能电视220上的华为视频使用用户的位置信息。
在另一些实施例中,在用户不在智能电视220的预设范围内的情况下,或者,在用户在智能电视220的预设范围内,且该用户不是智能电视220可信任的用户的情况下,智能电视220也可以先拦截智能电视220上的华为视频使用用户的位置信息的权限。然后,智能电视220可以向音箱240发送第一指示信息。其中,第一指示信息可以用于指示智能电视220已拦截智能电视220的华为视频使用用户的位置信息的权限。
在一些实施例中,在音箱240接收到第一指示信息后,音箱240可以提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信息的权限。
例如,该音箱240可以播放“智能电视已拦截智能电视的华为视频使用用户的位置信息的权限,请确认是否允许智能电视的华为视频使用用户的位置信息(智能电视)”语音消息。
当音箱240检测到用户不允许智能电视220的华为视频使用用户的位置信息或音箱240在预设时间未收到指示的操作后,音箱240可以不作任何操作。例如,该用户230通过语音向音箱240输入“否”语音消息。此时,该语音消息即为用户不允许智能电视220的华为视频使用用户的位置信息的操作。
当音箱240检测到用户允许智能电视220的华为视频使用用户的位置信息的操作后,音箱240可以向智能电视220发送第二指示信息。其中,第二指示信息用于指示允许智能电视220的华为视频使用用户的位置信息。
在智能电视220接收到第二指示信息后,智能电视220可以自动允许智能电视的华为视频使用用户的位置信息。例如,智能电视220可以自动打开系统定位开关,以便华为视 频使用智能电视220的定位功能。
可选地,在一些实施例中,在允许智能电视220上的华为视频使用用户的位置信息之后,智能电视220还可以向音箱240发送第三指示信息,该第三指示信息用于指示智能电视220已允许华为视频使用用户的位置信息。
可选地,在一些实施例中,在音箱240接收到第三指示信息之后,该音箱240结束通过音箱240提醒用户智能电视220已拦截智能电视220的华为视频使用用户的位置信息的行为。例如,音箱240可将不再通过播放语音的方式来提醒用户智能电视220已拦截智能电视220上的华为视频使用用户的位置信息的权限。
下面,结合图19和图20,对图19所示的场景中智能电视如何跨设备提醒用户智能电视上App正在使用敏感系统能力,以及用户如何跨设备终止该App使用敏感系统能力进行描述。
需要说明的是,图19所示的场景中的电子设备仅为示例,其不应对本申请构成限制。例如,该场景中还可以包括更多的电子设备。
图19为本申请实施例提供的一例应用场景200C的示例图。如图19所示,该场景200C可以包括智能电视220(电子设备100的一例)、手机210(其他电子设备的一例)、耳机250(其他电子设备的另一例)和用户230。其中,客厅的智能电视220正在暂停播放电视剧。用户230正在在卧室戴着耳机250使用手机210,且耳机250和手机210处于连接状态。
若在用户不知情的情况下,智能电视220播放电视剧的App(例如,华为视频)正在使用用户的位置信息。
此时,可选地,在一些实施例中,智能电视220可以先确定用户是否在智能电视220的预设范围内,然后根据确定的结果,采用相应的提醒措施。
在用户在智能电视220的预设范围内的情况下,智能电视220的操作可以参见上文的相关描述,这里不再赘述。
在一些实施例中,在用户不在智能电视220的预设范围内的情况下,或者,在用户在智能电视220的预设范围内,且该用户不是智能电视220可信任的用户的情况下,智能电视220还可以根据提醒策略,向耳机250或手机210发送第一指示信息。其中,第一指示信息可以用于指示智能电视220的华为视频正在使用用户的位置信息。
可选地,智能电视220此时也可以通过智能电视220提醒用户华为视频正在智能电视220的使用用户的位置信息。关于智能电视220如何提醒用户智能电视220的华为视频正在使用用户的位置信息的方式可以参考上文关于图9中相关举例描述,这里不再赘述。
示例性地,该提醒策略可以是用户预先设置的或系统配置的。
例如,提醒策略包括:向佩戴的电子设备(例如,耳机或手表)提醒智能电视上App正在使用敏感系统能力;向手机提醒智能电视上App正在使用敏感系统能力;向满足预设距离的电子设备提醒智能电视上App正在使用敏感系统能力;向用户操作的电子设备提醒智能电视上App正在使用敏感系统能力;向处于解锁状态的电子设备提醒智能电视上App正在使用敏感系统能力,且该电子设备设置有密码锁等。
可选地,若该提醒策略是用户预先设置的,用户还可以通过相应的设置选项来更改该提醒策略,本申请实施例对此不作限定。
若提醒策略包括向佩戴的电子设备提醒用户智能电视上App正在使用敏感系统能力, 此时,智能电视220仅向耳机250发送第一指示信息,不会向手机210发送第一指示信息。
在耳机250接收到第一指示信息后,耳机250可以提醒用户智能电视220的华为视频正在使用用户的位置信息。
关于该耳机250如何提醒用户智能电视220的华为视频正在使用用户的位置信息以及用户如何终止智能电视220的华为视频使用用户的位置信息可以参见图20,其与上文音箱240关于如何提醒智能电视220的华为视频正在使用用户的位置信息的方式以及用户如何终止智能电视220的华为视频正在使用用户的位置信息的过程类似,这里不再赘述。
当音箱240检测到用户想要终止智能电视220的华为视频正在使用用户的位置信息的操作后,音箱240可以向智能电视220发送第二指示信息。其中,第二指示信息用于指示智能电视220终止智能电视220的华为视频正在使用用户的位置信息。
在智能电视220接收到耳机250发送的第二指示信息之后的步骤可以参考上文中音箱240接收到第一指示信息之后的步骤的相关描述,这里不再赘述。
在另一些实施例中,在用户不在智能电视220的预设范围内的情况下,或者,在用户在智能电视220的预设范围内,且该用户不是智能电视220可信任的用户的情况下,智能电视220也可以先拦截智能电视220上的华为视频使用用户的位置信的权限息。然后,智能电视220可以根据提醒策略,向耳机250或手机210发送第一指示信息。其中,第一指示信息可以用于指示智能电视220已拦截智能电视220的华为视频使用用户的位置信息的权限。
若提醒策略包括优先向佩戴的电子设备提醒用户智能电视上App正在使用敏感系统能力,此时,智能电视220向耳机250发送第一指示信息,不会向手机210发送第一指示信息。
在耳机250接收到第一指示信息之后的步骤可以参考上文中音箱240接收到第一指示信息之后的步骤的相关描述,这里不再赘述。
下面,结合图21和图22,对图21所示的场景中智能电视如何跨设备提醒用户智能电视上App正在使用敏感系统能力,以及用户如何跨设备终止该App使用敏感系统能力进行描述。
需要说明的是,图21所示的场景中的电子设备仅为示例,其不应对本申请构成限制。例如,该场景中还可以包括更多的电子设备。
图21为本申请实施例提供的一例应用场景200D的示例图。如图21所示,该场景200D可以包括手机210(电子设备100的一例)、智能手表260(其他电子设备的一例)、平板270(其他电子设备的另一例)和用户230。其中,用户230正在在公交车上睡觉,用户230手腕戴着智能手表260,且手机210在用户230的裤兜装着,平板270在用户230的背包中装着。
若在用户不知情的情况下,手机210的聊天App正在后台运行,且正在使用手机210的音频模块,即聊天App正在使用手机210的音频模块提供的录音功能来获取用户的录音信息。
此时,可选地,在一些实施例中,手机210可以先确定用户是否在手机210的预设范围内,然后根据确定的结果,采用相应的提醒措施。
在用户在手机210的预设范围内的情况下,手机210的操作可以参考上文用户在智能电视220的预设范围内的相关描述,这里不再赘述。
在一些实施例中,在用户不在手机210的预设范围内的情况下,或者,在用户在手机210的预设范围内,且该用户不是手机210可信任的用户的情况下,手机210可以根据提醒策略,向智能手表260或平板270发送第一指示信息。其中,第一指示信息可以用于指示聊天App正在使用用户的录音信息。
可选地,手机210此时也可以通过手机210提醒用户聊天App正在使用用户的录音信息。关于相关手机210如何提醒用户聊天App正在使用用户的录音信息的方式可以上文智能电视220如何提醒用户华为视频正在使用用户的位置信息的方式的举例描述,这里不再赘述。
若提醒策略包括优先向佩戴的电子设备提醒用户电子设备正在使用敏感系统能力,此时,手机210向智能手表260发送第一指示信息,不会向平板270发送第一指示信息。
在智能手表260接收到第一指示信息后,智能手表260可以提醒用户聊天App正在使用用户的录音信息。
在一些实施例中,该智能手表260可以通过振动和显示信息的方式,来提醒用户聊天App正在使用用户的录音信息。
例如,如图22中的(a)所示,该智能手表260可以一边振动,一边在智能手表260显示界面261。该显示界面261可以显示“聊天App(手机)正在使用录音信息”文本信息和用于终止手机的聊天App使用用户的录音信息的终止控件2611。可选地,该显示界面261还可以显示用于忽略手机的聊天App使用用户的录音信息的忽略控件2612。
可选地,该显示界面261还可以具体显示是哪个设备上的App使用了哪个设备的位置信息。例如,该显示界面261可以显示“聊天App(手机)正在使用录音信息(手机)”文本信息。
当智能手表260检测到用户点击终止控件2611的操作,即认为用户想要终止聊天App使用用户的录音信息的操作,此时,智能手表260可以向手机210发送第二指示信息。其中,第二指示信息用于指示手机210终止手机210的聊天App使用用户的录音信息。
在手机210接收到第二指示信息后,手机210可以终止手机210的聊天App使用用户的录音信息。例如,手机210可以自动关闭手机210的录音功能,以禁止聊天App使用用户的录音信息。
当智能手表260检测到用户点击忽略控件2612的操作或智能手表260在预设时间未收到指示的操作,即认为智能手表260检测到用户不想允许手机210的聊天App使用用户的录音信息的操作。此时,智能手表260和手机210可以不进行任何处理。
可选地,在一些实施例中,在允许手机210上的聊天App使用用户的录音信息之后,手机210还可以向智能手表260发送第三指示信息,该第三指示信息用于指示手机210已终止手机210上的聊天App使用用户的录音信息。
可选地,在一些实施例中,在智能手表260接收到第三指示信息之后,该智能手表260结束通过智能手表260提醒用户手机210上的聊天App使用用户的录音信息的行为。例如,若手机210之前通过提示信息来提醒用户手机210上的聊天App使用用户的录音信息。此时,手机210将不再显示该提示信息。
在一些实施例中,在用户不在手机210的预设范围内的情况下,手机210也可以先拦截聊天App使用用户的录音信息的权限。然后,手机210可以根据提醒策略,向智能手表260或平板270发送第一指示信息。其中,第一指示信息可以用于指示手机210已拦截聊 天App使用用户的录音信息。
可选地,手机210此时也可以通过手机210提醒用户手机210已拦截聊天App使用用户的录音信息的权限。关于相关手机210如何提醒用户手机210已拦截聊天App使用用户的录音信息的权限可以上文智能电视220如何提醒用户智能电视220已拦截华为视频使用用户的位置信息的权限方式的举例描述,这里不再赘述。
若提醒策略包括优先向佩戴的电子设备提醒用户电子设备正在使用敏感系统能力,此时,手机210向智能手表260发送第一指示信息,不会向平板270发送第一指示信息。
在智能手表260接收到第一指示信息后,智能手表260可以通过振动和显示信息的方式,来提醒用户手机210已拦截聊天App使用用户的录音信息的权限。
例如,如图22中的(b)所示,该智能手表260可以一边振动,一边在智能手表260显示界面262。该显示界面262可以显示“请确认是否允许手机的聊天App使用录音信息”文本信息和用于允许手机210的聊天App使用用户的录音信息的是控件2621。可选地,该显示界面262还可以显示用于不允许手机210的聊天App使用用户的录音信息的否控件2622。
可选地,该显示界面262还可以具体显示是允许哪个设备上的App使用哪个设备的位置信息。例如,该显示界面262可以显示“请确认是否允许手机聊天App使用录音信息(手机)”文本信息。
当智能手表260检测到用户点击是控件2621的操作,即认为用户允许手机210的聊天App使用用户的录音信息的操作,此时,智能手表260可以向手机210发送第二指示信息。其中,第二指示信息用于指示允许手机210的聊天App使用用户的录音信息。
在手机210接收到第二指示信息后,手机210可以允许手机210的聊天App使用用户的录音信息。例如,手机210可以自动打开手机210的录音开关,以便聊天App使用用户的录音信息。
当智能手表260检测到用户点击否控件2622或智能手表260在预设时间未收到指示的操作,即认为智能手表260检测到用户不想允许手机210的聊天App使用用户的录音信息的操作。此时,手机210和智能手表260可以不用进行任何操作。
可选地,在一些实施例中,在允许手机210上的聊天App使用用户的录音信息之后,手机210还可以向智能手表260发送第三指示信息,该第三指示信息用于指手机210已允许聊天App使用用户的录音信息。
可选地,在一些实施例中,在智能手表260接收到第三指示信息之后,该智能手表260结束通过智能手表260提醒用户手机210已拦截手机210上的聊天App使用用户的录音信息的行为。例如,若智能手表260之前通过提示信息来提醒用户手机210已拦截手机210上的聊天App使用用户的录音信息的权限。此时,智能手表260将不再显示该提示信息。
下面,结合图23和图24,对本申请实施例提供的跨设备应用程序管理的方法进行描述。该方法可以由第一电子设备和第二电子设备执行,该第一电子设备和第二电子设备连接。示例性的,该第一电子设备可以为上文图8、图17、图19、或图21所述场景中的智能电视220。该第二电子设备可以为上文图8所述场景中的手机210、图17所述场景中的音箱240、图19所述场景中的耳机250、或图21所述场景中的智能手表260。
需要说明的是,第一电子设备和第二电子设备连接可以理解为:第一电子设备和第二 电子设备存在上文所述的可信关系。关于可信关系的描述可以参见上文相关描述,这里不再赘述。
此外,图23和图24中均以第一电子设备的应用程序正在使用第一电子
图23示出了本申请实施例提供的跨设备应用程序管理的方法300的示意性流程图。例如,如图23所示,该方法300包括:
S310,第一电子设备向第二电子设备发送第一指示信息。相应地,第二电子设备接收第一电子设备发送的第一指示信息。
其中,第一指示信息用于指示第一电子设备的应用程序正在使用第一资源。
本申请实施例对第一资源的类型不作限定。
在一个示例中,第一资源可以是硬件装置。例如,第一资源可以包括定位装置、相机、麦克风、存储器、手电筒、无线通信模块、移动通信模块等。
在另一个示例中,第一资源可以是信息。例如,第一资源可以包括电话、聊天消息、通讯录、无线通信数据、移动通信数据等。
第一电子设备的应用程序使用第一资源可以理解为:第一电子设备的应用程序使用第一资源获取用户的隐私信息。也就是说,第一电子设备应用程序访问(或使用)用户的隐私信息。例如,用户的隐私信息可以包括用户的位置信息、上文所述的用户的录音信息、用户的通讯录信息、用户的剪贴板信息、用户的图像信息等等。
需要说明的是,该用户隐私信息可以包括第一电子设备上已经存在的用户隐私信息,也就是说,该用户隐私信息可以包括用户在第一电子设备上已经产生的隐私信息。和/或,该用户隐私信息可以包括第一电子设备正在获取的用户的隐私信息,也就是说,该用户隐私信息可以是用户在第一电子设备上正在产生的隐私信息,本申请实施例对此不作限定。
此外,在本申请实施例中,第一电子设备的应用程序使用第一资源可以理解为:第一电子设备的应用程序使用第一资源获取第一电子设备对应的用户的隐私信息,或者,第一电子设备的应用程序使用第一资源获取其他电子设备(可以是第二电子设备,也可以是除第二电子设备之外的电子设备)对应的用户的隐私信息。
可选地,在一些实施例中,在第一电子设备响应于检测到满足预设条件,第一电子设备向第二电子设备发送所述第一指示信息。
其中,预设条件包括以下至少一项:第一电子设备和第二电子设备之间的距离小于或等于预设距离;第一电子设备和第二电子设备登录同一个账号;第一电子设备和第二电子设备连接同一个Wi-Fi网络;第一电子设备和第二电子设备已建立近距离连接;第二电子设备处于佩戴状态;第一电子设备处于解锁状态,且第一电子设备设置有密码锁;第二电子设备处于解锁状态,且第二电子设备设置有密码锁;第一电子设备没有被操作;应用程序在第一电子设备的后台运行;应用程序在第一电子设备的前台运行,且第一电子设备没有被操作。
可选地,在一些实施例中,第一电子设备也可以在第一电子设备的状态栏显示第一指示符。其中,第一指示符用于指示第一资源的类型。
需要说明的是,可选地,在一些实施例中,只有第一电子设备使用了第一资源,第一电子设备才可能在第一电子设备的状态栏显示第一指示符。若第一电子设备没有使用第一资源,第一电子设备在第一电子设备的状态栏不用显示第一指示符。
本申请实施例对第一指示符的显示方式不作限定。
例如,第一电子设备可以一直在第一电子设备的状态栏显示第一指示符,直到第一电子设备收到下一步指示为止。
又例如,第一电子设备可以在第一电子设备的状态栏以一定的间隔显示第一指示符,也即用户可以看见第一指示符在第一电子设备的状态栏以一定的间隔闪现,直到第一电子设备收到下一步指示为止。
例如,如图9所示,智能电视220可以通过在智能电视220的状态栏221显示位置指示符2211,该位置指示符2211指示第一资源的类型为位置类型。
S320,第二电子设备输出第二提示信息。
其中,第二提示信息用于提示用户是否终止第一电子设备的应用程序使用第一资源。
可选地,在一些实施例中,第二电子设备除了显示第二提示信息之外,第二电子设备还可以响应于第一指示信息,在第二电子设备的状态栏显示第二指示符。
需要说明的是,可选地,在一些实施例中,只有第二电子设备自身使用了第一资源或第二电子设备接收到其他电子设备使用了第一资源的指示后,第二电子设备才可能在第二电子设备的状态栏显示第二指示符。若第二电子设备没有使用第一资源或第二电子设备未接收到其他电子设备使用了第一资源的指示,第一电子设备在第二电子设备的状态栏不用显示第二指示符。
在一个示例中,第二指示符用于指示第一资源的类型。
例如,如图10中的(a)和图10中的(b)所示,第二指示符可以是位置指示符2111,该位置指示符2111用于指示第一资源的类型是位置信息。
在另一个示例中,第二指示符用于指示第一资源的类型和第一电子设备类型的标识。
例如,如图10中的(c)和图10中的(d)所示,第二指示符包括位置指示符2111和标识2112。其中,位置指示符2111用于指示第一资源的类型是位置信息,标识2112用于指示智能电视220的类型。
本申请实施例对第二指示符的显示方式不作限定。
例如,第二电子设备可以一直在第二电子设备的状态栏显示第二指示符,直到第二电子设备收到下一步指示为止。
又例如,第二电子设备可以在第二电子设备的状态栏以一定的间隔显示第二指示符,也即用户可以看见第二指示符在第二电子设备的状态栏以一定的间隔闪现,直到第二电子设备收到下一步指示为止。
可选地,在第一电子设备显示第一指示符、第二电子设备显示第二指示符以及第二指示符用于指示第一资源的类型的情况下,第一指示符和第二指示符的显示效果不同。
在一个示例中,第一指示符相对于第一电子设备的状态栏的显示位置与第二指示符相对于第二电子设备的状态栏的显示位置不同。
例如,第一指示符在第一电子设备的状态栏的左侧显示,第二指示符在第二电子设备的状态栏的右侧显示。
在另一个示例中,第一指示符的显示颜色和第二指示符的显示颜色不同。
例如,第一指示符的显示颜色为绿色,第二指示符的显示颜色为红色。
本申请实施例对第二电子设备输出第二提示信息的方式不作限定。
在一些实施例中,第二电子设备可以通过在第二电子设备上显示文本信息来输出第二提示信息。
例如,如图11中的(b)所示的手机210显示的“智能电视的华为视频正在使用”文本信息。
又例如,如图12中的(b)所示或如图14所示的手机210显示的“华为视频(智能电视)正在使用地理位置”文本信息。
又例如,如图13中的(c)所示的手机210显示的“系统定位开关(智能电视)”文本信息。
又例如,如图22中的(a)所示的智能手表260显示的“聊天(App)手机正在使用用户的录音信息”文本信息。
在该示例中,可选地,在一些实施例中,用户可以无需对第二电子设备进行操作,便可直接在第二电子设备的显示界面上看到该第二提示信息。
示例性地,第二电子设备响应于第一指示信息,显示窗口,窗口中显示第二提示信息。
例如,如图14所示,手机210响应于第一指示信息,显示窗口216,该窗口216中显示“华为视频(智能电视)正在使用地理位置”文本信息。
又例如,如图22中的(a)所示,智能手表260响应于第一指示信息,显示窗口216,该窗口216中显示有显示的“聊天(App)手机正在使用用户的录音信息”文本信息。
在该示例中,可选地,在另一些实施例中,用户必须通过一些操作后才能在第二电子设备的显示界面上看到该第二提示信息。
在一个示例中,该第二提示信息显示在控制栏。
若第二电子设备此时的显示界面是控制栏的显示界面,该显示界面中便显示有第二提示信息。
若第二电子设备此时的显示界面不是控制栏的显示界面,用户需要打开控制栏,才可以看到第二提示信息,此时,S320具体包括:第二电子设备响应于检测到用户打开控制栏的操作,显示控制栏,控制栏中显示第二提示信息。
例如,用户在执行查看控制栏的操作后,用户可以看到如图11中的(b)所示的手机210显示的“智能电视的华为视频正在使用”文本信息。
可选地,该控制栏还可以包括第二控件。第二控件用于关闭或开启使用与第一资源的类型相同的第一资源。
在另一个示例中,该第二提示信息显示在通知栏。
若第二电子设备此时的显示界面是通知栏的显示界面,该显示界面中便显示有第二提示信息。
若第二电子设备此时的显示界面不是通知栏的显示界面,用户需要打开通知栏,才可以看到第二提示信息,此时,S320具体包括:第二电子设备响应于用户打开通知栏的操作,显示通知栏,通知栏中显示第二提示信息。
例如,用户在执行查看通知栏的操作后,用户可以看到如图12中的(b)所示的手机210显示的“华为视频(智能电视)正在使用地理位置”文本信息。
可选的,上述通知栏和控制栏可以融合显示。示例性的,可以在用户在屏幕上方下滑后,在界面的上半部分显示控制栏的内容,在界面下半部分显示通知栏的内容。
在又一个示例中,该第二提示信息显示在定位功能设置栏。S320具体包括:响应于检测到用户对第二指示符的操作,显示设置栏,设置栏中显示第二提示信息。
例如,用户在执行查看定位功能设置栏的操作后,用户可以看到如图13中的(c)所 示的手机210显示的“系统定位开关(智能电视)”文本信息。
在另一些实施例中,第二电子设备可以通过语音消息来输出第二提示信息。
例如,如图18所示的音箱240或如图20所示的耳机250输出“智能电视的华为视频正在使用用户的位置信息”语音消息。
S330,第二电子设备检测用户终止第一电子设备的应用程序使用第一资源的权限的输入。
本申请实施例对用户终止第一电子设备的应用程序使用第一资源的权限的输入的具体形式不作限定。
在一些实施例中,用户可以通过与第二电子设备的显示界面之间的交互实现用户终止第一电子设备的应用程序使用第一资源的输入。
例如,如图14所示,用户终止第一电子设备的应用程序使用第一资源的权限的输入可以包括用户点击终止控件2161的操作。
可选地,在一些实施例中,由于该终止控件需要通过用户的一些操作,才能够在第二电子设备的显示界面上显示。此时,我们将用户的一些操作和用户点击终止控件的操作统称为用户终止第一电子设备的应用程序使用第一资源的权限的输入。
在一个示例中,S330具体包括:响应于检测到用户对第二提示信息的操作,显示窗口,窗口包括终止控件,终止控件用于触发终止第一电子设备的应用程序使用第一资源的权限;检测用户对终止控件的操作。
例如,如图11所示,用户终止第一电子设备的应用程序使用第一资源的输入可以包括:用户单击位置控件2121的右下角的按钮操作、用户单击显示栏2123的操作、以及用户点击终止控件21241的操作。
在另一个示例中,S330具体包括:响应于检测到用户对通知栏的操作,在通知栏中显示终止控件,终止控件用于触发终止第一电子设备的应用程序使用第一资源的权限;检测用户对终止控件的操作。
例如,如图12所示,用户终止第一电子设备的应用程序使用第一资源的输入可以包括:用户在通知消息213上由右向左滑动操作以及用户单击终止控件2131的操作。
在又一个示例中,S330具体包括:响应于检测到用户对第二控件的操作,显示设置栏,设置栏显示第二提示信息的详情信息;响应于检测到用户对设置栏显示的详情信息的操作,显示窗口,窗口包括终止控件,终止控件用于触发终止应用程序使用第一资源的权限;检测用户对终止控件的操作。
例如,如图13所示,用户终止第一电子设备的应用程序使用第一资源的输入可以包括:用户单击显示栏2142的操作以及用户点击终止控件2151的操作。
在另一些实施例中,用户可以通过语音消息实现用户终止第一电子设备的应用程序使用第一资源的权限的输入。
例如,如图18和图20所示,用户终止第一电子设备的应用程序使用第一资源的权限的输入可以是用户230通过语音向音箱240输入的“终止”语音消息。
S340,第二电子设备响应于检测到S330所述的输入,向第一电子设备发送第二指示信息。相应地,第一电子设备接收第二电子设备发送的第二指示信息。
其中,第二指示信息用于指示第一电子设备终止应用程序使用第一资源的权限。
在一个示例中,S340具体包括:响应于检测到用户对终止控件的操作,向第一电子 设备发送第二指示信息。此时,可认为用户终止第一电子设备的应用程序使用第一资源的权限的输入可以包括用户点击终止控件的操作。
S350,第一电子设备响应于第二指示信息,终止应用程序使用第一资源的权限。
需要说明的是,若S310中第一电子设备的应用程序使用第一资源为第一电子设备的应用程序使用第一资源获取第一电子设备对应的用户的隐私信息,此时,该终止应用程序使用所述第一资源的权限为终止应用程序使用第一资源获取第一电子设备对应的用户的隐私信息的权限。
若S310中第一电子设备的应用程序使用第一资源为第一电子设备的应用程序使用第一资源获取其他电子设备(可以是第二电子设备,也可以是除第二电子设备之外的电子设备)对应的用户的隐私信息,该终止应用程序使用所述第一资源的权限为终止应用程序使用第一资源获取其他电子设备(可以是第二电子设备,也可以是除第二电子设备之外的电子设备)对应的用户的隐私信息的权限。
本申请实施例对终止应用程序使用第一资源的权限的时限不作限定。
在一个示例中,可以永久性终止应用程序使用第一资源的权限。
本申请实施例对永久性终止应用程序使用第一资源的权限的具体形式不作限定。例如,可以在该应用程序的隐私声明中关闭使用第一资源的权限来实现永久性终止应用程序使用第一资源的权限。
在另一个示例中,可以单次性终止应用程序使用第一资源的权限。
本申请实施例对单次性终止应用程序使用第一资源的权限的具体形式不作限定。
在一个示例中,终止应用程序使用第一资源的权限可以直接是结束应用程序使用第一资源的进程。在另一个示例中,终止应用程序使用第一资源的权限可以直接是关闭该应用程序。
在一些实施例中,S350具体包括:响应于第二指示信息,关闭第一控件,以终止应用程序使用第一资源的权限。
其中,第一控件显示在第一电子设备的控制栏或第一控件显示在第一电子设备的设置栏。
例如,若第一资源包括定位装置,第一控件可以是控制栏的位置指示符或设置栏的系统定位开关。
需要说明的是,关闭位置指示符可以理解为将位置指示符的状态调整为关闭状态。
可选地,方法300还可以包括S360和S370,该S360在S350之后执行,S370在S360之后执行。下面详细介绍S360和S370。
S360,第一电子设备向第二电子设备发送第三指示信息。相应地,第二电子设备接收第一电子设备发送的第三指示信息。
其中,第三指示信息用于指示第一电子设备已终止应用程序使用第一资源的权限。
S370,第二电子设备响应于第三指示信息,不再输出第二提示信息。
在方法300中,若第一电子设备的应用程序使用第一资源,第一电子设备可以向第二电子设备发送第一指示信息,以便第二电子设备可以输出第二提示信息来提醒用户第一电子设备的应用程序使用第一资源。这样,用户可以通过第二电子设备来确定是否终止第一电设备的应用程序使用第一资源的权限。从而避免用户隐私信息的泄露,给用户带来危险。
图24示出了本申请实施例提供的跨设备应用程序管理的方法400的示意性流程图。 例如,如图24所示,该方法400包括:
S410,第一电子设备向第二电子设备发送第一指示信息。相应地,第二电子设备接收第一电子设备发送的第一指示信息。
其中,第一指示信息用于指示第一电子设备拦截第一电子设备的应用程序使用第一资源的权限。
关于第一资源和第一电子设备的应用程序使用第一资源的描述可以参见上文S310中的相关描述,这里不再赘述。
关于第一电子设备拦截第一电子设备的应用程序使用第一资源的权限的描述可以参考上文S350中关于第一电子设备终止应用程序使用所述第一资源的权限的相关描述,这里不再赘述。
可选地,在一些实施例中,在第一电子设备响应于检测到满足预设条件,第一电子设备向第二电子设备发送所述第一指示信息。
其中,预设条件包括以下至少一项:第一电子设备和第二电子设备之间的距离小于或等于预设距离;第一电子设备和第二电子设备登录同一个账号;第一电子设备和第二电子设备连接同一个Wi-Fi网络;第一电子设备和第二电子设备已建立近距离连接;第二电子设备处于佩戴状态;第一电子设备处于解锁状态,且第一电子设备设置有密码锁;第二电子设备处于解锁状态,且第二电子设备设置有密码锁;第一电子设备没有被操作;应用程序在第一电子设备的后台运行;应用程序在第一电子设备的前台运行,且第一电子设备没有被操作。
S420,第二电子设备输出第二提示信息。
其中,第二提示信息用于提示用户是否放行第一电子设备的应用程序使用第一资源的权限。
本申请实施例对第二电子设备输出第二提示信息的方式不作限定。
在一些实施例中,第二电子设备可以通过在第二电子设备上显示文本信息来输出第二提示信息。
例如,如图15所示的手机210显示的“请确认是否允许智能电视的华为视频使用用户的位置信息”文本信息。
又例如,如图16中的(a)所示的手机210显示的“已拦截”消息标题栏和“华为视频(智能电视)使用地理位置”文本信息。
在该示例中,可选地,在一些实施例中,用户可以无需对第二电子设备进行操作,便可直接在第二电子设备的显示界面上看到该第二提示信息。
示例性地,第二电子设备响应于第一指示信息,显示窗口,窗口中显示第二提示信息。
例如,如图15所示,手机210响应于第一指示信息,显示窗口217,该窗口217中显示“请确认是否允许智能电视的华为视频使用用户的位置信息”文本信息。
可选地,该窗口还可以包括允许控件。允许控件用于放行第一电子设备的应用程序使用第一资源的权限。
例如,如图15所示,该窗口217还包括可以是控件2171。
在该示例中,可选地,在另一些实施例中,用户必须通过一些操作后才能在第二电子设备的显示界面上看到该第二提示信息。
在一个示例中,该第二提示信息显示在通知栏。
若第二电子设备此时的显示界面是通知栏的显示界面,该显示界面中便显示有第二提示信息。
若第二电子设备此时的显示界面不是通知栏的显示界面,用户需要打开通知栏,才可以看到第二提示信息,此时,S420具体包括:第二电子设备响应于检测到用户打开通知栏的操作,显示通知栏,通知栏中显示第二提示信息。
例如,用户在执行查看通知栏的操作后,用户可以看到如图16中的(a)所示的手机210显示的“已拦截”消息标题栏和“华为视频(智能电视)使用地理位置”文本信息。
在另一些实施例中,第二电子设备可以通过语音消息来输出第二提示信息。
S430,第二电子设备检测用户放行第一电子设备的应用程序使用第一资源的权限的输入。
本申请实施例对用户放行第一电子设备的应用程序使用第一资源的权限的输入的具体形式不作限定。
在一些实施例中,用户可以通过与第二电子设备的显示界面之间的交互实现用户放行第一电子设备的应用程序使用第一资源的权限的输入。
在一个示例中,用户放行第一电子设备的应用程序访问使用用户隐私信息第一资源的权限的输入包括用户对允许控件的操作。
例如,如图15所示,用户放行第一电子设备的应用程序使用第一资源的权限的输入可以是点击是控件2171(即允许控件的一例)的操作。
又例如,如图16中的(b)所示,用户放行第一电子设备的应用程序使用第一资源的权限的输入可以是点击允许控件2181的操作。
可选地,在一些实施例中,由于该允许控件需要通过用户的一些操作,才能够在第二电子设备的显示界面上显示。此时,我们将用户的一些操作和用户点击允许控件的操作统称为用户放行第一电子设备的应用程序使用第一资源的权限的输入。
在一个示例中,S430具体包括:响应于检测到用户对通知栏的操作,在通知栏中显示允许控件,允许控件用于放行第一电子设备的应用程序使用第一资源的权限;检测用户对允许控件的操作。
例如,如图16所示,用户放行第一电子设备的应用程序使用第一资源的输入可以包括:用户在通知消息103上由右向左滑动的操作以及用户点击允许控件2181的操作。
在另一些实施例中,用户可以通过语音消息实现用户放行第一电子设备的应用程序使用第一资源的权限的输入。
S440,第二电子设备响应于检测到S430所述的输入,向第一电子设备发送第二指示信息。相应地,第一电子设备接收第二电子设备发送的第二指示信息。
其中,第二指示信息用于指示放行第一电子设备的应用程序使用第一资源的权限。
在一个示例中,S440具体包括:响应于检测到用户对允许控件的操作,向第一电子设备发送第二指示信息。此时,可认为用户放行第一电子设备的应用程序使用第一资源的权限的输入可以包括用户点击允许控件的操作。
S450,第一电子设备响应于第二指示信息,放行应用程序使用第一资源的权限。
需要说明的是,若S410中拦截的第一电子设备的应用程序使用第一资源的权限为第一电子设备的应用程序使用第一资源获取第一电子设备对应的用户的隐私信息的权限,此时,该放行应用程序使用第一资源的权限为放行应用程序使用第一资源获取第一电子设备 对应的用户的隐私信息的权限。
若S410中拦截的第一电子设备的应用程序使用第一资源的权限为第一电子设备的应用程序使用第一资源获取其他电子设备(可以是第二电子设备,也可以是除第二电子设备之外的电子设备)对应的用户的隐私信息的权限,该放行应用程序使用所述第一资源的权限为放行应用程序使用第一资源获取其他电子设备(可以是第二电子设备,也可以是除第二电子设备之外的电子设备)对应的用户的隐私信息的权限。
本申请实施例对放行应用程序使用第一资源的权限的具体形式不作限定。
本申请实施例对放行应用程序使用第一资源的权限的时限不作限定。
在一个示例中,可以永久性放行应用程序使用第一资源的权限。
本申请实施例对永久性放行应用程序使用第一资源的权限的具体形式不作限定。例如,可以在该应用程序的隐私声明中打开使用第一资源的权限来实现永久性放行应用程序使用第一资源的权限。
在另一个示例中,可以单次性放行应用程序使用第一资源的权限。
本申请实施例对放行性终止应用程序使用第一资源的权限的具体形式不作限定。
在一些实施例中,S450具体包括:响应于第二指示信息,打开第一控件,以放行应用程序使用第一资源的权限。
其中,第一控件显示在第一电子设备的控制栏或第一控件显示在第一电子设备的设置栏。
例如,若第一资源包括定位装置,第一控件可以是控制栏的位置指示符或设置栏的系统定位开关。
需要说明的是,打开位置指示符可以理解为将位置指示符的状态调整为打开状态。
可选地,方法400还可以包括S460和S470,该S460在S450之后执行,S470在S460之后执行。下面详细介绍S460和S470。
S460,第一电子设备,向第二电子设备发送第三指示信息。相应地,第二电子设备接收第一电子设备发送的第三指示信息。
其中,第三指示信息用于指示第一电子设备已放行应用程序使用第一资源的权限。
S470,第二电子设备响应于第三指示信息,不再输出第二提示信息。
在方法400中,若第一电子设备的应用程序使用第一资源,第一电子设备可以先将该应用程序使用第一资源的权限拦截,然后,向第二电子设备发送第一指示信息,以便第二电子设备可以输出第二提示信息来提醒用户第一电子设备已拦截第一电子设备的应用程序使用第一资源的权限。这样,用户可以通过第二电子设备来确定是否放行第一电设备的应用程序使用第一资源的权限。从而避免用户隐私信息的泄露,给用户带来危险。
下面,结合图25至图27,对本申请实施例提供的跨设备应用程序管理的装置进行描述。
图25是本申请实施例提供的装置的示意性框图。
如图25所示,该装置500为上文方法300或方法400中所述的第一电子设备。该装置500与第二电子设备连接,该装置500包括:发送单元510、接收单元520和终止单元530。
在一种可实现的方式中,发送单元510,用于向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备的应用程序正在使用第一资源;接收单元 520,用于接收所述第二电子设备发送的第二指示信息,所述第二指示信息用于指示所述第一电子设备终止所述应用程序使用所述第一资源的权限;终止单元530,用于响应于所述第二指示信息,终止所述应用程序使用所述第一资源的权限。
在另一种可实现的方式中,发送单元510,用于向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备拦截所述第一电子设备的应用程序使用第一资源的权限;接收单元520,用于接收所述第一电子设备发送的第二指示信息,所述第二指示信息用于指示放行所述第一电子设备的应用程序使用第一资源的权限;放行单元530,用于响应于所述第二指示信息,放行所述应用程序使用所述第一资源的权限。
图26是本申请实施例提供的另一例装置的示意性框图。
如图26所示,该装置600为上文方法300或方法400中所述的第二电子设备。该装置600与第一电子设备连接,该装置600包括:接收单元610、输出单元620、检测单元630和发送单元640。
在一种可实现的方式中,接收单元610,用于接收所述第一电子设备发送的第一指示信息,所述第一指示信息用于指示所述第一电子设备的应用程序正在使用第一资源;输出单元620,用于输出第二提示信息,所述第二提示信息用于提示用户是否终止所述第一电子设备的应用程序使用所述第一资源的权限;检测单元630,用于检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入;发送单元640,用于响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示所述第一电子设备终止所述应用程序使用所述第一资源的权限。
在另一种可实现的方式中,接收单元610,用于接收所述第一电子设备发送的第一指示信息,所述第一指示信息用于指示所述第一电子设备拦截所述第一电子设备的应用程序使用第一资源的权限;输出单元620,用于输出第二提示信息,所述第二提示信息用于提示用户是否放行所述第一电子设备的应用程序使用第一资源的权限;检测单元630,用于检测用户放行所述第一电子设备的应用程序使用第一资源的权限的输入;发送单元640,用于响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示放行所述第一电子设备的应用程序使用第一资源的权限。
图27示出了本申请实施例提供的电子设备700的示意性结构图。
如图27所示,该电子设备包括:一个或多个处理器710,一个或多个存储器720,该一个或多个存储器存储720存储有一个或多个计算机程序,该一个或多个计算机程序包括指令。当该指令被所述一个或多个处理器710运行时,使得所述的第一电子设备或者第二电子设备执行上述实施例中的技术方案。
本申请实施例提供了一种系统,包括第一电子设备和第二电子设备,该系统用于执行上述实施例中的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。
本申请实施例提供一种计算机程序产品,当所述计算机程序产品在第一电子设备运行时,使得第一电子设备执行上述实施例中的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。
本申请实施例提供一种计算机程序产品,当所述计算机程序产品在第二电子设备运行时,使得第二电子设备执行上述实施例中的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。
本申请实施例提供一种可读存储介质,所述可读存储介质包含指令,当所述指令在第一电子设备运行时,使得所述第一电子设备执行上述实施例的技术方案。其实现原理和技术效果类似,此处不再赘述。
本申请实施例提供一种可读存储介质,所述可读存储介质包含指令,当所述指令在第二电子设备运行时,使得所述第二电子设备执行上述实施例的技术方案。其实现原理和技术效果类似,此处不再赘述。
本申请实施例提供一种芯片,所述芯片用于执行指令,当所述芯片运行时,执行上述实施例中的技术方案。其实现原理和技术效果类似,此处不再赘述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (27)
- 一种系统,其特征在于,所述系统包括第一电子设备和第二电子设备,其中,所述第一电子设备,用于向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备的应用程序正在使用第一资源;所述第二电子设备,用于输出第二提示信息,所述第二提示信息用于提示用户是否终止所述第一电子设备的应用程序使用所述第一资源的权限;所述第二电子设备,还用于检测用户终止所述第一电子设备的应用程序使用所述第一资源的权限的输入;所述第二电子设备,还用于响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示所述第一电子设备终止所述应用程序使用所述第一资源的权限;所述第一电子设备,还用于响应于所述第二指示信息,终止所述应用程序使用所述第一资源的权限。
- 根据权利要求1所述的系统,其特征在于,所述第二电子设备,还用于响应于所述第一指示信息,在所述第二电子设备的状态栏显示第二指示符,所述第二指示符用于指示所述第一资源的类型,或者,所述第二指示符用于指示所述第一资源的类型和所述第一电子设备类型的标识。
- 根据权利要求2所述的系统,其特征在于,所述第二电子设备,还具体用于响应于检测到用户对所述第二指示符的操作,显示设置栏,所述设置栏中显示所述第二提示信息;所述第二电子设备,还具体用于响应于检测到用户对所述第二提示信息的操作,显示窗口,所述窗口包括终止控件,所述终止控件用于触发终止所述第一电子设备的应用程序使用所述第一资源的权限;所述第二电子设备,还具体用于响应于用户对所述终止控件的操作,向所述第一电子设备发送所述第二指示信息。
- 根据权利要求1或2所述的系统,其特征在于,所述第二电子设备,还具体用于响应于检测到用户对通知栏的操作,在所述通知栏中显示终止控件,所述终止控件用于触发终止所述第一电子设备的应用程序使用所述第一资源的权限,所述通知栏中显示有所述第二提示信息,所述第二电子设备,还具体用于响应于检测到用户对所述终止控件的操作,向所述第一电子设备发送所述第二指示信息;或者,所述第二电子设备,还用于响应于检测到用户打开控制栏的操作,显示所述控制栏,所述控制栏中显示所述第二提示信息和第二控件,所述第二控件用于关闭或开启使用与所述第一资源的类型相同的第一资源,所述第二电子设备,还用于响应于检测到用户对所述第二控件的操作,显示设置栏,所述设置栏显示所述第二提示信息的详情信息,所述第二电子设备,还用于响应于检测到用户对所述设置栏显示的所述详情信息的操 作,显示窗口,所述窗口包括终止控件,所述终止控件用于触发终止所述应用程序使用所述第一资源的权限,所述第二电子设备,还具体用于响应于检测到用户对所述终止控件的操作,向所述第一电子设备发送第二指示信息;或者,所述第二电子设备,还具体用于响应于所述第一指示信息,显示窗口,所述窗口中显示所述第二提示信息和终止控件,所述终止控件用于触发终止所述应用程序使用所述第一资源的权限,所述第二电子设备,还具体用于响应于检测到用户对所述终止控件的操作,向所述第一电子设备发送第二指示信息。
- 根据权利要求1至4中任一项所述的系统,其特征在于,所述第一电子设备,还用于向所述第二电子设备发送第三指示信息,所述第三指示信息用于指示所述第一电子设备已终止所述应用程序使用所述第一资源的权限;所述第二电子设备,还用于响应于所述第三指示信息,不再输出所述第二提示信息。
- 根据权利要求1至5中任一项所述的系统,其特征在于,所述第一电子设备,还用于响应于检测到满足预设条件,向所述第二电子设备发送所述第一指示信息;所述预设条件包括以下至少一项:所述第一电子设备和所述第二电子设备之间的距离小于或等于预设距离;所述第一电子设备和所述第二电子设备登录同一个账号;所述第一电子设备和所述第二电子设备连接同一个Wi-Fi网络;所述第一电子设备和所述第二电子设备已建立近距离连接;所述第二电子设备处于佩戴状态;所述第一电子设备处于解锁状态,且所述第一电子设备设置有密码锁;所述第二电子设备处于解锁状态,且所述第二电子设备设置有密码锁;所述第一电子设备没有被操作;所述应用程序在所述第一电子设备的后台运行;所述应用程序在所述第一电子设备的前台运行,且所述第一电子设备没有被操作。
- 根据权利要求1至6中任一项所述的系统,其特征在于,所述第一电子设备,还具体用于响应于所述第二指示信息,关闭第一控件,以终止所述应用程序使用所述第一资源的权限,所述第一控件显示在所述第一电子设备的控制栏或所述第一控件显示在所述第一电子设备的设置栏。
- 根据权利要求1至7中任一项所述的系统,其特征在于,所述第一电子设备,还用于在所述第一电子设备的状态栏显示第一指示符,所述第一指示符用于指示所述第一资源的类型。
- 根据权利要求8所述的系统,其特征在于,在所述第二指示符用于指示所述第一资源的类型的情况下,所述第一指示符和所述第二指示符的显示效果不同。
- 根据权利要求9所述的系统,其特征在于,所述第一指示符相对于所述第一电子设备的状态栏的显示位置与所述第二指示符相对于所述第二电子设备的状态栏的显示位置不同;或者,所述第一指示符的显示颜色和所述第二指示符的显示颜色不同。
- 根据权利要求1至10中任一项所述的系统,其特征在于,所述第一电子设备,还具体用于响应于所述第二指示信息,永久性或单次性终止所述应用程序使用所述第一资源的权限。
- 一种系统,其特征在于,所述系统包括第一电子设备和第二电子设备,包括:所述第一电子设备,用于向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备拦截所述第一电子设备的应用程序使用第一资源的权限;所述第二电子设备,用于输出第二提示信息,所述第二提示信息用于提示用户是否放行所述第一电子设备的应用程序使用第一资源的权限;所述第二电子设备,还用于检测用户放行所述第一电子设备的应用程序使用第一资源的权限的输入;所述第二电子设备,还用于响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示放行所述第一电子设备的应用程序使用第一资源的权限;所述第一电子设备,还用于响应于所述第二指示信息,放行所述应用程序使用所述第一资源的权限。
- 根据权利要求12所述的系统,其特征在于,所述第二电子设备,还具体用于响应于所述第一指示信息,显示窗口,所述窗口中显示所述第二提示信息和允许控件,所述允许控件用于放行所述第一电子设备的应用程序使用第一资源的权限,所述第二电子设备,还具体用于响应于检测到用户对所述允许控件的操作,向所述第一电子设备发送所述第二指示信息;或者,所述第二电子设备,还具体用于响应于检测到用户对所述通知栏的操作,在所述通知栏中显示允许控件,所述允许控件用于放行所述第一电子设备的应用程序使用第一资源的权限,所述通知栏中显示有所述第二提示信息,所述第二电子设备,还具体用于响应于检测到用户对所述允许控件的操作,向所述第一电子设备发送所述第二指示信息。
- 根据权利要求12或13所述的系统,其特征在于,所述第一电子设备,还用于向所述第二电子设备发送第三指示信息,所述第三指示信息用于指示所述第一电子设备已放行所述应用程序使用所述第一资源的权限;所述第二电子设备,还用于响应于所述第三指示信息,不再输出所述第二提示信息。
- 根据权利要求12至14中任一项所述的系统,其特征在于,所述第一电子设备,还用于响应于检测到满足预设条件,向所述第二电子设备发送所述第一指示信息;所述预设条件包括以下至少一项:所述第一电子设备和所述第二电子设备之间的距离小于或等于预设距离;所述第一电子设备和所述第二电子设备登录同一个账号;所述第一电子设备和所述第二电子设备连接同一个Wi-Fi网络;所述第一电子设备和所述第二电子设备已建立近距离连接;所述第二电子设备处于佩戴状态;所述第一电子设备处于解锁状态,且所述第一电子设备设置有密码锁;所述第二电子设备处于解锁状态,且所述第二电子设备设置有密码锁;所述第一电子设备没有被操作;所述应用程序在所述第一电子设备的后台运行;所述应用程序在所述第一电子设备的前台运行,且所述第一电子设备没有被操作。
- 根据权利要求12至15中任一项所述的系统,其特征在于,所述第一电子设备,还具体用于响应于所述第二指示信息,打开第一控件,以放行所述应用程序使用所述第一资源的权限。
- 根据权利要求12至16中任一项所述的系统,其特征在于,所述第一电子设备,还具体用于响应于所述第二指示信息,永久性或单次性放行所述应用程序使用所述第一资源的权限。
- 一种跨设备应用程序管理的方法,其特征在于,所述方法应用于第二电子设备,所述第二电子设备与第一电子设备连接,所述方法包括:接收所述第一电子设备发送的第一指示信息,所述第一指示信息用于指示所述第一电子设备的应用程序正在使用第一资源;输出第二提示信息,所述第二提示信息用于提示用户是否终止所述第一电子设备的应用程序使用所述第一资源的权限;检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入;响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示所述第一电子设备终止所述应用程序使用所述第一资源的权限。
- 根据权利要求18所述的方法,其特征在于,所述方法还包括:响应于所述第一指示信息,在所述第二电子设备的状态栏显示第二指示符,所述第二指示符用于指示所述第一资源的类型,或者,所述第二指示符用于指示所述第一资源的类型和所述第一电子设备类型的标识。
- 根据权利要求19所述的方法,其特征在于,所述输出第二提示信息包括:响应于检测到用户对所述第二指示符的操作,显示设置栏,所述设置栏中显示所述第二提示信息;所述检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入,包括:响应于检测到用户对所述第二提示信息的操作,显示窗口,所述窗口包括终止控件,所述终止控件用于触发终止所述第一电子设备的应用程序使用所述第一资源的权限;检测用户对所述终止控件的操作。
- 根据权利要求18或19所述的方法,其特征在于,所述输出第二提示信息包括在通知栏中显示所述第二提示信息,所述检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入,包括:响应于检测到用户对所述通知栏的操作,在所述通知栏中显示终止控件,所述终止控件用于触发终止所述第一电子设备的应用程序使用所述第一资源的权限,检测用户对所述终止控件的操作;或者,所述输出第二提示信息包括:响应于检测到用户打开控制栏的操作,显示所述控制栏,所述控制栏中显示所述第二提示信息和第二控件,所述第二控件用于关闭或开启使用与所述第一资源的类型相同的第一资源,所述检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入,包括:响应于检测到用户对所述第二控件的操作,显示设置栏,所述设置栏显示所述第二提示信息的详情信息,响应于检测到用户对所述设置栏显示的所述详情信息的操作,显示窗口,所述窗口包括终止控件,所述终止控件用于触发终止所述应用程序使用所述第一资源的权限,检测用户对所述终止控件的操作;或者,所述输出第二提示信息包括:响应于所述第一指示信息,显示窗口,所述窗口中显示所述第二提示信息和终止控件,所述终止控件用于触发终止所述应用程序使用所述第一资源的权限,所述检测用户终止所述第一电子设备的应用程序使用所述第一资源的输入,包括:检测用户对所述终止控件的操作。
- 根据权利要求18至21中任一项所述的方法,其特征在于,所述方法还包括:接收所述第一电子设备发送的第三指示信息,所述第三指示信息用于指示所述第一电子设备已终止所述应用程序使用所述第一资源的权限;响应于所述第三指示信息,不再输出所述第二提示信息。
- 一种跨设备应用程序管理的方法,其特征在于,所述方法应用于第二电子设备,所述第二电子设备和第一电子设备连接,所述方法包括:接收所述第一电子设备发送的第一指示信息,所述第一指示信息用于指示所述第一电子设备拦截所述第一电子设备的应用程序使用第一资源的权限;输出第二提示信息,所述第二提示信息用于提示用户是否放行所述第一电子设备的应用程序使用第一资源的权限;检测用户放行所述第一电子设备的应用程序使用第一资源的权限的输入;响应于检测到所述输入,向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示放行所述第一电子设备的应用程序使用第一资源的权限。
- 根据权利要求23所述的方法,其特征在于,所述输出第二提示信息包括:响应于所述第一指示信息,显示窗口,所述窗口中显示所述第二提示信息和允许控件,所述允许控件用于放行所述第一电子设备的应用程序使用第一资源的权限,所述检测用户放行所述第一电子设备的应用程序使用第一资源的权限的输入包括:检测用户对所述允许控件的操作;或者,所述输出第二提示信息包括:通过通知栏显示所述第二提示信息,所述检测用户放行所述第一电子设备的应用程序使用第一资源的权限的输入包括:响应于检测到用户对所述通知栏的操作,在所述通知栏中显示允许控件,所述允许控 件用于放行所述第一电子设备的应用程序使用第一资源的权限,检测用户对所述允许控件的操作。
- 根据权利要求23或24所述的方法,其特征在于,所述方法还包括:接收所述第一电子设备发送的第三指示信息,所述第三指示信息用于指示所述第一电子设备已放行所述应用程序使用所述第一资源的权限;响应于所述第三指示信息,不再输出所述第二提示信息。
- 一种电子设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求18至25中任一项所述的方法。
- 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求18至25中任一项所述的方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP22926882.6A EP4451153A1 (en) | 2022-02-17 | 2022-12-20 | Cross-device application management method, electronic device, and system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210146506.8A CN116663044A (zh) | 2022-02-17 | 2022-02-17 | 跨设备应用程序管理的方法、电子设备及系统 |
CN202210146506.8 | 2022-02-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023155583A1 true WO2023155583A1 (zh) | 2023-08-24 |
Family
ID=87577446
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/140266 WO2023155583A1 (zh) | 2022-02-17 | 2022-12-20 | 跨设备应用程序管理的方法、电子设备及系统 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP4451153A1 (zh) |
CN (1) | CN116663044A (zh) |
WO (1) | WO2023155583A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105025164A (zh) * | 2015-06-23 | 2015-11-04 | 上海斐讯数据通信技术有限公司 | 通信信息管理系统及方法 |
CN110737916A (zh) * | 2019-09-30 | 2020-01-31 | 青岛海信移动通信技术股份有限公司 | 通信终端及处理方法 |
WO2020034227A1 (zh) * | 2018-08-17 | 2020-02-20 | 华为技术有限公司 | 一种多媒体内容同步方法及电子设备 |
CN111835907A (zh) * | 2019-04-22 | 2020-10-27 | 华为技术有限公司 | 一种跨电子设备转接服务的方法、设备以及系统 |
-
2022
- 2022-02-17 CN CN202210146506.8A patent/CN116663044A/zh active Pending
- 2022-12-20 EP EP22926882.6A patent/EP4451153A1/en active Pending
- 2022-12-20 WO PCT/CN2022/140266 patent/WO2023155583A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105025164A (zh) * | 2015-06-23 | 2015-11-04 | 上海斐讯数据通信技术有限公司 | 通信信息管理系统及方法 |
WO2020034227A1 (zh) * | 2018-08-17 | 2020-02-20 | 华为技术有限公司 | 一种多媒体内容同步方法及电子设备 |
CN111835907A (zh) * | 2019-04-22 | 2020-10-27 | 华为技术有限公司 | 一种跨电子设备转接服务的方法、设备以及系统 |
CN110737916A (zh) * | 2019-09-30 | 2020-01-31 | 青岛海信移动通信技术股份有限公司 | 通信终端及处理方法 |
Also Published As
Publication number | Publication date |
---|---|
CN116663044A (zh) | 2023-08-29 |
EP4451153A1 (en) | 2024-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4113415A1 (en) | Service recommending method, electronic device, and system | |
CN111602379B (zh) | 语音通话方法、电子设备及系统 | |
KR102484738B1 (ko) | 어플리케이션 권한을 관리하는 방법 및 전자 장치 | |
WO2020062159A1 (zh) | 无线充电方法及电子设备 | |
WO2021253975A1 (zh) | 应用程序的权限管理方法、装置和电子设备 | |
CN114840825B (zh) | 智能终端的登录方法及电子设备 | |
WO2021052204A1 (zh) | 基于通讯录的设备发现方法、音视频通信方法及电子设备 | |
WO2020224447A1 (zh) | 一种在联系人中添加智能家居设备的方法及系统 | |
WO2022037407A1 (zh) | 一种回复消息的方法、电子设备和系统 | |
CN114173204A (zh) | 一种提示消息的方法、电子设备和系统 | |
WO2022042770A1 (zh) | 控制通信服务状态的方法、终端设备和可读存储介质 | |
WO2022037726A1 (zh) | 分屏显示方法和电子设备 | |
US20230262065A1 (en) | Atomic Ability Invoking Method and Terminal Device | |
WO2020107463A1 (zh) | 一种电子设备的控制方法及电子设备 | |
WO2022160991A1 (zh) | 权限控制方法和电子设备 | |
CN114095599B (zh) | 消息显示方法和电子设备 | |
CN113452945A (zh) | 分享应用界面的方法、装置、电子设备及可读存储介质 | |
CN114528581A (zh) | 一种安全显示方法及电子设备 | |
US20220377278A1 (en) | Video Communication Method and Video Communications Apparatus | |
WO2023284555A1 (zh) | 安全调用服务的方法、安全注册服务的方法及装置 | |
WO2023024887A1 (zh) | 跨设备认证方法和装置 | |
WO2023155583A1 (zh) | 跨设备应用程序管理的方法、电子设备及系统 | |
CN110737916A (zh) | 通信终端及处理方法 | |
WO2022143273A1 (zh) | 信息处理方法和电子设备 | |
WO2024012346A1 (zh) | 任务迁移的方法、电子设备和系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22926882 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2022926882 Country of ref document: EP Effective date: 20240719 |