Movatterモバイル変換


[0]ホーム

URL:


CN117009023B - Method and related device for displaying notification information - Google Patents

Method and related device for displaying notification information
Download PDF

Info

Publication number
CN117009023B
CN117009023BCN202311160473.3ACN202311160473ACN117009023BCN 117009023 BCN117009023 BCN 117009023BCN 202311160473 ACN202311160473 ACN 202311160473ACN 117009023 BCN117009023 BCN 117009023B
Authority
CN
China
Prior art keywords
ouc
notification
electronic device
version
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311160473.3A
Other languages
Chinese (zh)
Other versions
CN117009023A (en
Inventor
朱立国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co LtdfiledCriticalHonor Device Co Ltd
Priority to CN202311160473.3ApriorityCriticalpatent/CN117009023B/en
Publication of CN117009023ApublicationCriticalpatent/CN117009023A/en
Application grantedgrantedCritical
Publication of CN117009023BpublicationCriticalpatent/CN117009023B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The application provides a method and a related device for displaying notification information. In the method, the electronic device may display a notification of the OUC and store the notification in the electronic device. The electronic device then updates the OUC via the updater. During the OUC update process, the electronic device does not display the stored notification. After the OUC update is completed, the electronic device may again display the stored notification. In this way, the user can be prevented from missing notification information.

Description

Translated fromChinese
显示通知信息的方法及相关装置Method and related device for displaying notification information

技术领域Technical field

本申请涉及终端技术领域,尤其涉及显示通知信息的方法及相关装置。The present application relates to the field of terminal technology, and in particular, to methods and related devices for displaying notification information.

背景技术Background technique

电子设备中的可以显示应用程序所生成的各种通知信息。电子设备在使用的过程中,需要对应用程序(例如软件更新应用程序)进行更新、升级。存在应用程序在升级过程以及升级之后会删除所显示的通知消息的情况。即,更新之后的应用程序删除更新之前的应用程序所生成的通知消息,使得在应用程序更新之后,电子设备不会显示更新之前的应用程序所生成的通知消息。这样,会使得用户错过一些信息,用户体验感不好。The electronic device can display various notification information generated by the application. During the use of electronic devices, applications (such as software update applications) need to be updated and upgraded. There are cases where an application deletes the displayed notification message during and after the upgrade process. That is, the application program after the update deletes the notification message generated by the application program before the update, so that after the application program is updated, the electronic device will not display the notification message generated by the application program before the update. In this way, the user will miss some information and the user experience will be poor.

发明内容Contents of the invention

本申请实施了提供了一种显示通知信息的方法及相关装置。电子设备可以在OUC更新之后,显示OUC更新之前所生成的通知,可以防止用户错过某些通知。This application implements and provides a method and related devices for displaying notification information. The electronic device can display notifications generated before the OUC update after the OUC is updated, which can prevent users from missing certain notifications.

第一方面,本申请实施例提供了一种显示通知信息的方法,该方法包括:启动第一版本的软件更新应用程序OUC;在第一时刻显示第一通知,该第一通知由该第一版本的OUC生成;下载第二版本的OUC;将该第二版本的OUC安装至第一目录,并不显示该第一通知;启动该第二版本的OUC;在第二时刻显示该第一通知,该第二时刻晚于该第一时刻;在第三时刻显示第二通知,该第二通知由该第二版本的OUC生成;下载第三版本的OUC;将该第三版本的OUC安装至第二目录,并不显示该第二通知;启动该第三版本的OUC;在第四时刻不显示该第二通知,该第四时刻晚于该第三时刻。In a first aspect, embodiments of the present application provide a method for displaying notification information. The method includes: starting a first version of the software update application OUC; displaying a first notification at a first moment, the first notification being provided by the first Generate the second version of OUC; download the second version of OUC; install the second version of OUC to the first directory without displaying the first notification; start the second version of OUC; display the first notification at the second moment , the second time is later than the first time; display a second notification at the third time, the second notification is generated by the second version of OUC; download the third version of OUC; install the third version of OUC to The second directory does not display the second notification; the third version of OUC is started; the second notification is not displayed at the fourth time, and the fourth time is later than the third time.

由上述方法可知,电子设备可以在OUC更新之后,显示OUC更新之前所生成的通知。这样,用户可以及时观察到与问卷相关的通知,并完成问卷。在一定程度上,可以增加问卷的回收数量,使得电子设备的产商能够接收到相关的反馈信息。并且,用户还可以及时观察到与系统更新相关的通知,进而电子设备可以及时的完成系统更新。It can be seen from the above method that the electronic device can display the notification generated before the OUC update after the OUC is updated. In this way, users can observe notifications related to the questionnaire in a timely manner and complete the questionnaire. To a certain extent, the number of recycled questionnaires can be increased so that manufacturers of electronic equipment can receive relevant feedback information. Moreover, users can also observe notifications related to system updates in a timely manner, so that the electronic device can complete system updates in a timely manner.

结合第一方面,在一些实现方式中,该在第二时刻显示该第一通知具体包括:基于该第二版本的OUC是通过系统应用更新器下载的,在该第二时刻显示该第一通知。In connection with the first aspect, in some implementations, displaying the first notification at the second moment specifically includes: the OUC based on the second version is downloaded through the system application updater, and displaying the first notification at the second moment .

结合第一方面,在一些实现方式中,该在第四时刻不显示该第二通知具体包括:基于该第三版本的OUC不是通过系统应用更新器下载的,在该第四时刻不显示该第二通知。In conjunction with the first aspect, in some implementations, not displaying the second notification at the fourth moment specifically includes: the OUC based on the third version was not downloaded through the system application updater, and not displaying the second notification at the fourth moment. Two notices.

结合第一方面,在一些实现方式中,该第一目录指示data分区,该第二目录指示system分区。Combined with the first aspect, in some implementations, the first directory indicates the data partition, and the second directory indicates the system partition.

结合第一方面,在一些实现方式中,该第一目录用于存储系统应用更新器下载的应用程序,该第二目录用于存储非系统应用更新器下载的应用程序。In conjunction with the first aspect, in some implementations, the first directory is used to store applications downloaded by a system application updater, and the second directory is used to store applications downloaded by non-system application updaters.

结合第一方面,在一些实现方式中,在该在第一时刻显示第一通知之后,该方法还包括:存储该第一通知;在该在第二时刻显示该第一通知之前,该方法还包括:读取存储的该第一通知。In conjunction with the first aspect, in some implementations, after displaying the first notification at the first moment, the method further includes: storing the first notification; before displaying the first notification at the second moment, the method further includes: Including: reading the stored first notification.

结合第一方面,在一些实现方式中,在该下载第二版本的OUC之前,该方法还包括:在该第一时刻显示第三通知,该第三通知由该第一版本的OUC生成;接收并响应于第一操作,删除且不显示该第三通知;在该启动该第二版本的OUC之后,该方法还包括:在该第二时刻不显示该第三通知。In conjunction with the first aspect, in some implementations, before downloading the second version of the OUC, the method further includes: displaying a third notification at the first moment, the third notification being generated by the first version of the OUC; receiving And in response to the first operation, delete and not display the third notification; after starting the second version of OUC, the method further includes: not displaying the third notification at the second moment.

结合第一方面,在一些实现方式中,在该下载第二版本的OUC之前,该方法还包括:以固定的时间间隔向服务器发送第一消息,该第一消息用于询问该服务器是否生成除该第一版本之外的其他版本的OUC;接收第二消息,该第二消息指示该服务器已生成该第二版本的OUC。In conjunction with the first aspect, in some implementations, before downloading the second version of the OUC, the method further includes: sending a first message to the server at a fixed time interval, the first message being used to ask the server whether to generate a file other than the OUC. A version of the OUC other than the first version; receiving a second message indicating that the server has generated the second version of the OUC.

结合第一方面,在一些实现方式中,在将该第二版本的OUC安装至第一目录之前,该方法还包括:卸载该第一版本的OUC。In conjunction with the first aspect, in some implementations, before installing the second version of OUC to the first directory, the method further includes: uninstalling the first version of OUC.

第二方面,本申请提供了一种电子设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述第一方面或第一方面任一实施方式的方法。In a second aspect, the present application provides an electronic device, including one or more processors and one or more memories. The one or more memories are coupled to one or more processors. The one or more memories are used to store computer program codes. The computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device causes the electronic device to execute The method of the above first aspect or any embodiment of the first aspect.

第三方面,本申请实施例提供了一种芯片,包括一个或多个处理器。当一个或多个处理器执行计算机指令时,使得电子设备执行上述第一方面或第一方面任一实施方式的方法。In a third aspect, embodiments of the present application provide a chip including one or more processors. When one or more processors execute computer instructions, the electronic device is caused to execute the method of the first aspect or any embodiment of the first aspect.

第四方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面或第一方面任一实施方式的方法。In a fourth aspect, embodiments of the present application provide a computer storage medium that includes computer instructions. When the computer instructions are run on an electronic device, the electronic device causes the electronic device to execute the method of the first aspect or any embodiment of the first aspect.

附图说明Description of the drawings

图1A为本申请实施例提供的一种OUC的用户界面。Figure 1A is an OUC user interface provided by an embodiment of the present application.

图1B-1E为本申请实施例提供的几种显示OUC的通知的用户界面。Figures 1B-1E are several user interfaces for displaying OUC notifications provided by embodiments of the present application.

图2为本申请实施例提供的显示通知信息的方法流程图。Figure 2 is a flow chart of a method for displaying notification information provided by an embodiment of the present application.

图3为本申请实施例提供的判断更新OUC的更新方式的方法流程图。Figure 3 is a flow chart of a method for determining an update method for updating OUC provided by an embodiment of the present application.

图4为本申请实施例提供的电子设备管理OUC的通知集合的OS交互图。Figure 4 is an OS interaction diagram of the notification set of the electronic device management OUC provided by the embodiment of the present application.

图5为本申请实施例提供的电子设备更新OUC之后再次显示OUC通知的OS交互图。Figure 5 is an OS interaction diagram in which the OUC notification is displayed again after the electronic device updates the OUC provided by the embodiment of the present application.

图6为本申请实施例提供的电子设备100的硬件架构示意图。FIG. 6 is a schematic diagram of the hardware architecture of the electronic device 100 provided by the embodiment of the present application.

图7为本申请实施例提供的电子设备100的软件架构示意图。FIG. 7 is a schematic diagram of the software architecture of the electronic device 100 provided by the embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings. Among them, in the description of the embodiments of this application, unless otherwise stated, "/" means or, for example, A/B can mean A or B; "and/or" in the text is only a way to describe related objects. The association relationship means that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiment of the present application , "plurality" means two or more than two.

以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms “first” and “second” are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.

本申请以下实施例中的术语“用户界面 (user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markuplanguage,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphicuser interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。The term "user interface (UI)" in the following embodiments of this application is a media interface for interaction and information exchange between an application or operating system and a user. It realizes the difference between the internal form of information and the form acceptable to the user. conversion between. The user interface is source code written in specific computer languages such as Java and extensible markup language (XML). The interface source code is parsed and rendered on the electronic device, and finally presented as content that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed graphically. It can be text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets and other visual interface elements displayed on the display screen of an electronic device.

首先,介绍几种电子设备中的应用程序。空中下载技术更新客户端应用程序(Over-the-Air Technology Updata Client,OUC),又称软件更新应用程序,这里的OUC可以是指一个独立的应用程序。例如,电子设备可以响应作用于桌面中的OUC的应用图标的点击操作,进入OUC。OUC也可以集成在设置应用的附加的系统应用程序。例如,电子设备可以响应作用于设置应用程序中的OUC的应用图标的点击操作,进入OUC。在本申请实施例中,对此不作限定。具体的,OUC用于更新电子设备的系统,而非更新单一的系统软件。OUC还可以用于生成并显示与更新系统相关的通知信息,以此来提醒用户当前电子设备可以进行系统的更新。First, applications in several electronic devices are introduced. Over-the-Air Technology Updata Client (OUC), also known as software update application, where OUC can refer to an independent application. For example, the electronic device may enter the OUC in response to a click operation on the application icon of the OUC on the desktop. OUC can also be integrated with additional system applications in the Settings application. For example, the electronic device may enter the OUC in response to a click operation on the application icon of the OUC in the setting application. In the embodiment of the present application, this is not limited. Specifically, OUC is used to update the system of electronic equipment rather than updating a single system software. OUC can also be used to generate and display notification information related to updating the system to remind users that the current electronic device can perform system updates.

下面结合电子设备显示的用户界面介绍OUC以及OUC所生成的通知信息。The following describes the OUC and the notification information generated by the OUC in conjunction with the user interface displayed by the electronic device.

图1A示例性示出了电子设备中OUC提供的用户界面。FIG. 1A exemplarily shows a user interface provided by OUC in an electronic device.

如图1A所示,用户界面200可以包括但不限于:返回控件201、标题名称202、版本logo203、当前版本号204以及检查更新控件205。在本申请实施例中,用户界面200所包括的内容仅做示例性说明,用户界面200还可以包括更多或更少的内容,对此不作限定。As shown in FIG. 1A , the user interface 200 may include but is not limited to: a return control 201 , a title name 202 , a version logo 203 , a current version number 204 and a check update control 205 . In this embodiment of the present application, the content included in the user interface 200 is only for illustrative purposes. The user interface 200 may also include more or less content, which is not limited.

其中,标题名称202可以是指包括当前用户界面200的应用程序的名称,示例性的,标题名称202显示有文本“软件更新”。返回控件201用于回到上一级用户界面。示例性的,电子设备可以响应作用于返回控件201的点击操作,显示设置应用程序所包括的用于显示各种功能列表的用户界面。版本logo203可以显示用于表示当前系统的版本的图像logo。The title name 202 may refer to the name of the application program including the current user interface 200. For example, the title name 202 displays the text "Software Update". The return control 201 is used to return to the previous level user interface. Exemplarily, the electronic device may display a user interface included in the setting application for displaying various function lists in response to a click operation on the return control 201 . Version logo 203 can display an image logo used to represent the version of the current system.

当前版本号204可以是指电子设备中当前系统的版本号,同一电子设备中更新前后的系统的版本不一样,系统的版本号也不一样。示例性的,当前版本号204显示有“3.0.0.150”,该版本号表示电子设备中系统的版本号。其中,“3.0.0.150”中的“3.0.0”表示主版本号,一般用于表示电子设备中系统所完成的大版本更新。大版本更新可以是指更新之后的系统可能存在较大的功能和/或界面的变动。“3.0.0.150”中的“150”表示次版本号,一般用于表示电子设备中系统所完成的小版本更新。小版本更新可以是指修复系统里的一些bug和/或对系统性能进行优化处理等等。在本申请中,大版本更新以及小版本更新为一个相对概念,而非具体更新内容的限制。The current version number 204 may refer to the version number of the current system in the electronic device. The versions of the system before and after the update in the same electronic device are different, and the system version numbers are also different. For example, the current version number 204 displays "3.0.0.150", which represents the version number of the system in the electronic device. Among them, "3.0.0" in "3.0.0.150" represents the major version number, which is generally used to represent the major version update completed by the system in electronic equipment. A major version update may mean that the system after the update may have major functional and/or interface changes. The "150" in "3.0.0.150" represents the minor version number, which is generally used to represent the minor version update completed by the system in electronic equipment. Minor version updates can refer to fixing some bugs in the system and/or optimizing system performance, etc. In this application, major version update and minor version update are a relative concept, rather than a limitation on specific update content.

检查更新控件205可以用于检查电子设备的系统是否有新版本。示例性的,电子设备可以响应作用于检查更新控件205的点击操作,电子设备可以向服务器询问服务器是否生成新版本的系统。若服务器已生成新版本的系统,电子设备可以接收到服务器所发送的确定消息,然后生成并显示用于提醒用户电子设备可以进行系统更新的通知。例如,该通知可以是文本信息“检测到系统有新版本,点击进行更新”,该通知的显示形式可以参考后续图1D所示的通知显示形式,这里先不做赘述。若服务器未生成新版本的系统,电子设备可以接收到服务器所发送的否认消息,然后生成并显示电子设备无需进行系统更新的通知。例如,该通知可以是文本信息“当前版本为最新版本,无需更新”,同样该通知的显示形式可以参考后续图1D所示的通知显示形式,这里先不做赘述。The check update control 205 can be used to check whether the system of the electronic device has a new version. For example, in response to a click operation on the check update control 205, the electronic device can ask the server whether the server generates a new version of the system. If the server has generated a new version of the system, the electronic device can receive the confirmation message sent by the server, and then generate and display a notification to remind the user that the electronic device can update the system. For example, the notification may be a text message "A new version of the system has been detected, click to update." The display format of the notification may refer to the notification display format shown in Figure 1D, which will not be described in detail here. If the server does not generate a new version of the system, the electronic device may receive the denial message sent by the server, and then generate and display a notification that the electronic device does not need to update the system. For example, the notification may be text information "The current version is the latest version and does not need to be updated." Similarly, the display format of the notification may refer to the notification display format shown in Figure 1D, which will not be described in detail here.

在一些实现方式中,电子设备中的OUC还可以无需用户操作触发而自动检测电子设备的系统是否有新版本。若服务器已生成新版本的系统,电子设备可以接收到服务器所发送的确定消息,然后生成并显示用于提醒用户电子设备可以进行系统更新的通知。除了上述通知,电子设备中的OUC可以生成各种其他的通知。In some implementations, the OUC in the electronic device can also automatically detect whether the system of the electronic device has a new version without triggering by user operation. If the server has generated a new version of the system, the electronic device can receive the confirmation message sent by the server, and then generate and display a notification to remind the user that the electronic device can update the system. In addition to the above notifications, the OUC in the electronic device can generate various other notifications.

在一些实现方式中,除了上述通知的显示形式(简称界面显示形式)之外,电子设备还可以使用状态栏来显示各种应用程序所生成的通知。在一种可能的实现方式中,若电子设备通过界面显示形式显示通知一段时间(例如3s)内,未检测到用户针对于该通知的操作,则电子设备不再通过界面显示形式显示通知,而是在通知栏内显示该通知。在本申请实施例中,对两种显示通知的方式以及先后顺序不作限定,例如,还可以通过语音播放的方式来播放通知之后再在通知栏内显示通知等等,只需满足用户能够观察或感知到该通知即可。In some implementations, in addition to the above notification display form (referred to as interface display form), the electronic device can also use the status bar to display notifications generated by various applications. In a possible implementation, if the electronic device displays the notification through the interface display form for a period of time (for example, 3 seconds) and does not detect the user's operation for the notification, the electronic device will no longer display the notification through the interface display form, but The notification is displayed in the notification bar. In the embodiment of the present application, the two ways of displaying notifications and the order are not limited. For example, the notification can also be played through voice playback and then displayed in the notification bar, etc., as long as the user can observe or Just feel the notification.

示例性的,电子设备可以响应作用于用户界面200中顶部向下滑动的操作,显示用户界面210。如图1B所示,用户界面210可以包括但不限于:通知211、通知212、通知213以及关闭控件214。其中,通知211与通知212为OUC所生成的通知信息,通知213为其他应用程序(例如社交应用程序)所生成的通知信息。通知211可以显示有文本信息“诚邀您进行NPS问卷调查”,通知212可以显示有文本信息“检测到系统有新版本,点击进行更新”,通知213显示有文本信息“【有人@我】1个联系人发来6条消息”。电子设备可以响应用户作用于通知211的向左滑动或向右滑动的操作,删除通知211。电子设备还可以响应用户作用于通知211的点击操作,显示用于填写净推荐值问卷(Net Promoter Score,NPS)的用户界面。电子设备可以响应用户作用于通知212的向左滑动或向右滑动的操作,删除通知212。电子设备还可以响应用户作用于通知212的点击操作,开始更新系统。电子设备可以响应作用于关闭控件214的点击操作,显示上一级用户界面,即用户界面200。For example, the electronic device may display the user interface 210 in response to an operation of sliding down the top of the user interface 200 . As shown in FIG. 1B , the user interface 210 may include, but is not limited to, notifications 211 , notifications 212 , notifications 213 , and a close control 214 . Among them, notification 211 and notification 212 are notification information generated by OUC, and notification 213 is notification information generated by other applications (such as social networking applications). Notification 211 may display the text message "We sincerely invite you to conduct an NPS survey", notification 212 may display the text message "A new version of the system has been detected, click to update", and notification 213 may display the text message "[Someone @ me] 1 6 messages from contacts." The electronic device may delete the notification 211 in response to the user's sliding left or right sliding operation on the notification 211 . The electronic device can also respond to the user's click operation on notification 211 and display a user interface for filling in a Net Promoter Score (Net Promoter Score, NPS) questionnaire. The electronic device may delete the notification 212 in response to the user's sliding left or right sliding operation on the notification 212 . The electronic device may also respond to the user's click operation on the notification 212 to start updating the system. The electronic device may display the upper-level user interface, ie, the user interface 200, in response to the click operation on the close control 214.

在一种可能的实现方式中,电子设备可以响应作用于用户界面200中顶部向下滑动的操作,显示用户界面220。如图1C所示,用户界面220可以包括:通知221。通知221为OUC所生成的通知信息。通知221显示有文本信息“正在更新系统75%”。电子设备可以响应用户作用于通知221的向左滑动或向右滑动的操作,删除通知221。通知221可以用于提醒用户当前电子设备的系统正在更新。一般情况下,用于提醒用户电子设备可以下载新版本的系统的通知(例如通知212)与用于提醒用户当前电子设备的系统正在更新的通知(例如通知221)不会同时出现在状态栏中。例如,电子设备显示通知212之后,电子设备响应用户作用于通知212的点击操作开始更新系统,然后电子设备可以显示通知221。In a possible implementation, the electronic device may display the user interface 220 in response to an operation of sliding down the top of the user interface 200 . As shown in FIG. 1C , user interface 220 may include notification 221 . Notification 221 is notification information generated by OUC. Notification 221 displays the text message "Updating system 75%". The electronic device may delete the notification 221 in response to the user's sliding left or right sliding operation on the notification 221 . The notification 221 may be used to remind the user that the system of the current electronic device is being updated. Generally, notifications (such as notification 212) used to remind users that electronic devices can download a new version of the system and notifications used to remind users that the system of the current electronic device is being updated (such as notification 221) will not appear in the status bar at the same time. . For example, after the electronic device displays the notification 212, the electronic device starts updating the system in response to the user's click operation on the notification 212, and then the electronic device can display the notification 221.

示例性的,当用户界面220中的通知221中所显示文本信息为“正在更新系统100%”时,说明电子设备已经完成系统的更新。电子设备可以显示用户界面230。如图1D所示,用户界面230可以是桌面。用户界面230包括通知231。通知231为OUC所生成的通知信息。通知231显示有文本信息“系统已完成更新,点击重启”。在一种可能的实现方式中,电子设备可以响应作用于用户界面230中顶部向下滑动的操作,显示如图1E所示的用户界面240。用户界面240可以包括但不限于:通知241、通知242。通知241与通知242为OUC所生成的通知信息。上述通知231、通知241均用于提醒用户电子设备的系统已完成更新,其显示形式不同而已。通知241可以显示有文本信息 “系统已完成更新,点击重启”,通知242可以显示有文本信息“诚邀您进行NPS问卷调查”。电子设备可以响应用户作用于通知241的向左滑动或向右滑动的操作,删除通知241。电子设备还可以响应用户作用于通知241的点击操作,重新启动新版本的系统。电子设备可以响应用户作用于通知242的向左滑动或向右滑动的操作,删除通242。电子设备还可以响应用户作用于通知242的点击操作,显示用于填写NPS的用户界面。一般情况下,用于提醒用户电子设备的系统已完成更新的通知(例如通知241)与用于提醒用户当前电子设备的系统正在更新的通知(例如通知221)不会同时出现在状态栏中。例如,电子设备显示通知221之后,电子设备完成系统的更新,然后电子设备可以显示通知241。For example, when the text information displayed in the notification 221 in the user interface 220 is "updating system 100%", it means that the electronic device has completed the system update. The electronic device may display user interface 230. As shown in Figure ID, user interface 230 may be a desktop. User interface 230 includes notifications 231 . Notification 231 is notification information generated by OUC. Notification 231 displays the text message "The system has completed the update, click to restart." In one possible implementation, the electronic device may display the user interface 240 as shown in FIG. 1E in response to an operation of sliding the top of the user interface 230 downward. The user interface 240 may include, but is not limited to: notifications 241 and notifications 242 . Notification 241 and notification 242 are notification information generated by OUC. The above notifications 231 and 241 are both used to remind the user that the system of the electronic device has been updated, and their display forms are different. The notification 241 may display the text message "The system has been updated, click to restart", and the notification 242 may display the text message "You are sincerely invited to conduct an NPS questionnaire". The electronic device may delete the notification 241 in response to the user's sliding left or right sliding operation on the notification 241 . The electronic device can also respond to the user's click operation on notification 241 and restart the new version of the system. The electronic device may delete the notification 242 in response to the user's left sliding or right sliding operation on the notification 242 . The electronic device may also display a user interface for filling in the NPS in response to the user's click operation on the notification 242 . Generally, a notification (such as notification 241) used to remind the user that the system of the electronic device has been updated and a notification used to remind the user that the system of the current electronic device is being updated (such as notification 221) will not appear in the status bar at the same time. For example, after the electronic device displays the notification 221, the electronic device completes the update of the system, and then the electronic device can display the notification 241.

在一些实现方式中,不仅电子设备的系统需要更新升级,OUC也需要更新升级。更新OUC的一些方式包括但不限于以下任一项:1、电子设备通过系统应用更新器来更新OUC。系统应用更新器用于更新电子设备中系统中的各种应用程序的,并不是仅仅用于更新OUC。可选的,系统应用更新器是电子设备中一个系统应用程序,一般用户是不可见的。2、电子设备通过OUC来更新OUC。由于OUC适用于更新系统版本,自然OUC也可以用于更新一个或多个系统应用程序。在本申请实施例中,不限于上述更新方式,还可以包括更多的方式,对此不作限定。In some implementations, not only the system of the electronic device needs to be updated and upgraded, but the OUC also needs to be updated and upgraded. Some ways to update OUC include but are not limited to any of the following: 1. The electronic device updates OUC through the system application updater. The system application updater is used to update various applications in the system of electronic devices, and is not just used to update OUC. Optionally, the system application updater is a system application in the electronic device and is invisible to general users. 2. The electronic device updates OUC through OUC. Since OUC is suitable for updating system versions, naturally OUC can also be used to update one or more system applications. In the embodiment of the present application, it is not limited to the above update method, and may also include more methods, which are not limited.

基于上述描述,可能会出现以下情况:Based on the above description, the following situations may occur:

电子设备的状态栏显示有OUC生成的通知(例如,通知211)。然后电子设备通过系统应用更新器来更新OUC。完成OUC更新之后,电子设备的状态栏不再显示OUC之前生成的通知(例如,通知211)。这样,会导致用户可能没有观察到与问卷相关的通知,从而导致用户没有完成相关问卷,减少了问卷的回收数量。进而电子设备的产商不能及时接收的用户的相关反馈信息,影响电子设备的改善。并且,用户可能没有观察到与系统更新相关的通知,从而导致电子设备不能及时更新系统。The status bar of the electronic device displays notifications generated by OUC (for example, notification 211). The electronic device then updates the OUC through the system application updater. After the OUC update is completed, the status bar of the electronic device no longer displays the notifications generated before the OUC (for example, notification 211). In this way, users may not observe notifications related to the questionnaire, resulting in users not completing the relevant questionnaires and reducing the number of recycled questionnaires. Furthermore, manufacturers of electronic equipment cannot receive relevant feedback information from users in a timely manner, which affects the improvement of electronic equipment. Moreover, users may not observe notifications related to system updates, resulting in the electronic device failing to update the system in time.

本申请实施例提供了一种显示通知信息的方法。在该方法中,电子设备可以显示OUC的第一通知,并将该第一通知存储在电子设备中。然后电子设备通过更新器对OUC进行更新。在OUC更新过程中,电子设备不显示第一通知。在OUC更新完成之后,电子设备可以再显示OUC的第一通知。The embodiment of the present application provides a method for displaying notification information. In this method, the electronic device may display the first notification of the OUC and store the first notification in the electronic device. The electronic device then updates the OUC through the updater. During the OUC update process, the electronic device does not display the first notification. After the OUC update is completed, the electronic device can display the first notification of the OUC again.

由上述方法可知,电子设备可以在OUC更新之后,显示OUC更新之前所生成的通知。这样,用户可以及时观察到与问卷相关的通知,并完成问卷。在一定程度上,可以增加问卷的回收数量,使得电子设备的产商能够接收到相关的反馈信息。并且,用户还可以及时观察到与系统更新相关的通知,进而电子设备可以及时的完成系统更新。It can be seen from the above method that the electronic device can display the notification generated before the OUC update after the OUC is updated. In this way, users can observe notifications related to the questionnaire in a timely manner and complete the questionnaire. To a certain extent, the number of recycled questionnaires can be increased so that manufacturers of electronic equipment can receive relevant feedback information. Moreover, users can also observe notifications related to system updates in a timely manner, so that the electronic device can complete system updates in a timely manner.

下面介绍本申请实施例所提供的显示通知信息的方法。The method for displaying notification information provided by the embodiment of the present application is introduced below.

图2示例性示出了本申请实施例提供的一种显示通知信息的方法。该方法包括:Figure 2 schematically illustrates a method for displaying notification information provided by an embodiment of the present application. The method includes:

S201、电子设备显示OUC的通知,并存储OUC的通知。S201. The electronic device displays the OUC notification and stores the OUC notification.

在一些实现方式中,电子设备显示通知的方式可以包括:通过状态栏显示通知、在用户界面的上层悬浮显示通知。示例性的,通过状态栏显示通知的方式可以参考上述用户界面210,在用户界面的上层悬浮显示通知的方式可以参考上述用户界面230。在一种可能的实现方式中,电子设备可以先在用户界面的上层悬浮显示通知,在一段之时间内未检测到用户针对于该通知的操作,再通过状态栏显示该通知。在本申请实施例中,以通过状态栏显示通知的方式为例来介绍显示通知的方法。In some implementations, the way in which the electronic device displays the notification may include: displaying the notification through the status bar or floating the notification on the upper layer of the user interface. For example, the method of displaying the notification through the status bar may refer to the above-mentioned user interface 210, and the method of displaying the notification in a floating manner on the upper layer of the user interface may refer to the above-mentioned user interface 230. In a possible implementation, the electronic device can first display a notification in a floating manner on the upper layer of the user interface, and then display the notification through the status bar if no user operation on the notification is detected for a period of time. In the embodiment of this application, the method of displaying notifications is introduced by taking the method of displaying notifications through the status bar as an example.

在一些实现方式中,OUC的通知可以包括但不限于:NPS问卷通知、ROM满意度问卷通知、新版本系统下载通知、新版本系统安装通知、重启通知、配件(例如:键盘、耳机、手写笔等等)更新通知等等。In some implementations, OUC notifications may include but are not limited to: NPS questionnaire notification, ROM satisfaction questionnaire notification, new version system download notification, new version system installation notification, restart notification, accessories (for example: keyboard, headset, stylus) etc.) update notifications, etc.

其中,NPS问卷通知可以用于提醒用户完成NPS问卷。NPS是客户对品牌/产品的忠诚度得分,用来计量某个客户将会像其他人推荐某个企业或服务可能性的指数。NPS问卷可以是指在购买电子设备(简称购机)之后,每隔一段时间电子设备所生成的问卷。例如,电子设备可以基于购机时长生成四种类型的NPS问卷,购机时长可以分为:30天、90天、180天以及360天。例如,当购机时长达到30天,电子设备的OUC可以生成第一类型的NPS问卷;当购机时长达到180天,电子设备的OUC可以生成第三类型的NPS问卷。Among them, the NPS questionnaire notification can be used to remind users to complete the NPS questionnaire. NPS is a customer's loyalty score for a brand/product, which is an index used to measure the likelihood that a customer will recommend a company or service to others. NPS questionnaires can refer to questionnaires generated by electronic equipment at regular intervals after the purchase of electronic equipment (referred to as purchase). For example, electronic equipment can generate four types of NPS questionnaires based on the purchase time. The purchase time can be divided into: 30 days, 90 days, 180 days and 360 days. For example, when the purchase time reaches 30 days, the OUC of the electronic equipment can generate the first type of NPS questionnaire; when the purchase time reaches 180 days, the OUC of the electronic equipment can generate the third type of NPS questionnaire.

NPS问卷可以包括但不限于:针对于精准特性打分的问卷以及针对于系统整体的问卷。NPS questionnaires can include but are not limited to: questionnaires for scoring precise features and questionnaires for the entire system.

其中,针对于精准特性打分的问卷可以包括:针对某一功能的评分、评分的原因以及建议等等。例如,针对于精准特性打分的问卷可以包括:问题“您对快件取件提醒的整体体验是否满意,请根据您的满意程度进行评分”以及选项“0-10”的11个评分选项;问题“请具体描述下令您满意的方面,帮助我们做得更好”等等。Among them, the questionnaire for scoring precise features can include: a score for a certain function, reasons for the score, suggestions, etc. For example, a questionnaire for scoring precise features may include: the question "Are you satisfied with the overall experience of express pickup reminders? Please rate according to your level of satisfaction" and the 11 rating options of "0-10"; the question " Please describe in detail the aspects that make you satisfied and help us do better" and so on.

针对系统整体的问卷可以包括:推荐评分以及推荐原因等等。例如,针对系统整体的问卷可以包括:问题“综合考虑您目前使用本产品的各方面因素,您有多大可能向您朋友或同事推荐**产品?”以及选项“0-10”的11个评分选项;问题“您愿意向您的朋友或同事推荐**产品的原因是?”以及选项“外观:外观好看,重量适中,手感好”、“充电速度:充电速度快”、“通信:通信效果好、信号稳定、上网速度快”等等;问题“您不愿意向您的朋友或同事推荐**产品的原因是?”以及选项“外观:外观不好看,重量较重,手感差”、“充电速度:充电速度慢”、“通信:通信效果差、信号不稳定、上网速度慢”等等。在本申请实施例中,对上述NPS问卷的类型以及NPS问卷的具体内容仅做示例性说明,还可以包括更多内容,对此不做限定。Questionnaires for the entire system can include: recommendation scores and reasons for recommendation, etc. For example, a questionnaire for the system as a whole could include the question "Taking into account all aspects of your current use of this product, how likely are you to recommend ** product to your friends or colleagues?" and 11 ratings for the options "0-10" Options; question "Why are you willing to recommend ** products to your friends or colleagues?" and options "Appearance: good-looking, moderate weight, good feel", "Charging speed: fast charging speed", "Communication: communication effect good, stable signal, fast Internet speed" and so on; the question "Why are you unwilling to recommend ** products to your friends or colleagues?" and the options "Appearance: Unsightly appearance, heavy weight, poor feel", " Charging speed: slow charging speed", "communication: poor communication effect, unstable signal, slow Internet speed" and so on. In the embodiment of this application, the types of the above-mentioned NPS questionnaires and the specific contents of the NPS questionnaires are only illustratively described, and more contents may be included, without limitation.

ROM满意度问卷通知可以用于提醒用户完成ROM满意度问卷。ROM满意度问卷可以是指每一次电子设备的系统升级到新版本的系统之后,用户使用一段时间(例如7天)之后,电子设备所生成的问卷。ROM满意度问卷可以包括:整体影响、反馈与建议、联系方式。例如,ROM满意度问卷可以包括:问题“您对升级后的系统整体印象如何?”以及选项“5分(非常满意)”、“4分(满意)”、“3分(一般)”、“2分(不太满意)”、“1分(非常不满意)”5个选项、问题“请您给出打分的原因,我们将持续优化,不断提升用户体验”、问题“我们将会采用电话回访的方式,如愿意,请留下手机号码”等等。在本申请实施例中,对上述ROM满意度问卷的具体内容仅做示例性说明,还可以包括更多内容,对此不做限定。The ROM satisfaction questionnaire notification can be used to remind users to complete the ROM satisfaction questionnaire. The ROM satisfaction questionnaire may refer to a questionnaire generated by the electronic device after the user uses it for a period of time (for example, 7 days) every time the system of the electronic device is upgraded to a new version of the system. The ROM satisfaction questionnaire can include: overall impact, feedback and suggestions, and contact information. For example, the ROM satisfaction questionnaire may include: the question "What is your overall impression of the upgraded system?" and the options "5 points (very satisfied)", "4 points (satisfied)", "3 points (average)", " 2 points (not very satisfied)", "1 point (very dissatisfied)" 5 options, question "Please give the reason for the score, we will continue to optimize and continuously improve the user experience", question "We will use the telephone For a return visit, if you like, please leave your mobile phone number" and so on. In the embodiment of the present application, the specific content of the above-mentioned ROM satisfaction questionnaire is only an exemplary description, and may also include more content, which is not limited.

新版本系统下载通知可以用于提醒用户电子设备检测到新版本的系统,可以下载新版本的系统。示例性的,新版本系统下载通知可以参考上述关于通知212的相关描述。新版本系统安装通知可以用于提醒用户电子设备已经下载新版本的系统的完毕,可以安装新版本的系统。示例性的,新版本系统安装通知可以显示有文本内容“系统已完成下载,点击安装”。重启通知可以用于提醒用户电子设备已经安装完成新版本的系统,可以重新启动电子设备,然后运行新版本的系统。示例性的,重启通知可以显示有文本内容“系统已完成安装,点击重启”。在一种可能的实现方式中,电子设备可以在新版本下载、安装结束之后,生成系统更新完成通知,系统更新完成通知用于提醒用户电子设备已经下载并且安装完成新版本的系统,可以重新启动电子设备,然后运行新版本的系统。示例性的,系统更新完成通知可以参考关于通知231的相关描述。The new version system download notification can be used to remind the user that the electronic device has detected a new version of the system and can download the new version of the system. For example, for the new version system download notification, please refer to the above-mentioned related description of notification 212. The new version system installation notification can be used to remind the user that the electronic device has completed downloading the new version of the system and can install the new version of the system. For example, the new version system installation notification may display the text content "The system has completed downloading, click to install". The restart notification can be used to remind the user that the electronic device has completed the installation of a new version of the system, and the electronic device can be restarted and then run the new version of the system. For example, the restart notification may display the text content "The system has completed installation, click to restart." In one possible implementation, the electronic device can generate a system update completion notification after the new version is downloaded and installed. The system update completion notification is used to remind the user that the electronic device has downloaded and installed the new version of the system and can restart. Electronic devices then run the new version of the system. For example, the system update completion notification may refer to the relevant description of notification 231.

在本申请实施例中,上述与新版本系统相关的通知的作用以及具体内容仅做示例性说明,对此不作限定。In this embodiment of the present application, the functions and specific contents of the above-mentioned notifications related to the new version system are only illustrative and not limiting.

在一些实现方式中,新版本的系统可以分为以下几种类型:第一种:针对于系统的基础功能的进行升级之后的系统、第二种:针对系统出现单点问题进行修复之后的系统、第三种:针对系统类型(例如海外版本)进行升级之后的系统、第四种:针对系统定制(例如企业定制)进行升级之后的系统。当电子设备中的系统的大多数功能需要进行进一步的优化,例如,对电子设备中的桌面布局进行优化,电子设备可以获取到第一种类型的新版本系统。第一种类型较为普遍,一般情况下,用户的电子设备中较多获取的新版本的系统都是第一种类型。当电子设备中的系统的某一具体功能出现问题,例如,电子设备中的蓝牙功能无法正常使用,电子设备可以获取到第二种类型的新版本的系统,该新版本的系统可以用于修复蓝牙功能无法使用的情况。当电子设备中的系统需要更新为不同类型时,例如,电子设备需要更新为海外版本或移动运营商版本或电信运营商版本等等类型的系统时,电子设备可以获取到第三种类型的新版本系统。当电子设备中的系统需要更新为企业特定版本时,电子设备可以获取到第四种类型的新版本系统。一般来说,企业化定制的系统针对于某一些功能具有表征该企业的特有的设定,例如铃声、开机动画等等。In some implementation methods, the new version of the system can be divided into the following types: the first type: the system after upgrading the basic functions of the system; the second type: the system after repairing single point problems in the system , The third type: the system after upgrading for system type (such as overseas version), the fourth type: the system after upgrading for system customization (such as enterprise customization). When most functions of the system in the electronic device need to be further optimized, for example, the desktop layout in the electronic device is optimized, the electronic device can obtain the first type of new version system. The first type is more common. Generally, the new version of the system that is more commonly available in users' electronic devices is of the first type. When there is a problem with a specific function of the system in the electronic device, for example, the Bluetooth function in the electronic device cannot be used normally, the electronic device can obtain a second type of new version of the system, and this new version of the system can be used to repair it. The Bluetooth function cannot be used. When the system in the electronic device needs to be updated to a different type, for example, when the electronic device needs to be updated to an overseas version or a mobile operator version or a telecom operator version, etc., the electronic device can obtain the third type of new system. version system. When the system in the electronic device needs to be updated to an enterprise-specific version, the electronic device can obtain the fourth type of new version system. Generally speaking, enterprise-customized systems have unique settings for certain functions that characterize the enterprise, such as ringtones, startup animations, etc.

针对于电子设备检测到的新版本的系统的类型不同,电子设备所生成的与新版本系统相关的通知也会有所不同。例如,在新版本系统为第一种的情况下,新版本系统下载通知可以显示为“检测到系统有新版本3.0.0.151,点击进行更新”;在新版本系统为第二种的情况下,新版本系统下载通知可以显示为“检测到系统有修复问题的新版本,点击进行更新”;在新版本系统为第三种的情况下,新版本系统下载通知可以显示为“检测到系统有针对海外版本的新版本,点击进行更新”;在新版本系统为第四种的情况下,新版本系统下载通知可以显示为“检测到系统有针对某某企业的新版本,点击进行更新”。在本申请实施例中,上述针对不同类型的新版本的系统相关的通知的具体内容仅做示例性说明,对此不作限定。Depending on the type of the new version of the system detected by the electronic device, the notification related to the new version of the system generated by the electronic device will also be different. For example, when the new version of the system is the first, the new version system download notification can be displayed as "Detected that the system has a new version 3.0.0.151, click to update"; when the new version of the system is the second, The download notification of the new version of the system can be displayed as "A new version of the system has been detected to fix the problem, click to update"; when the new version of the system is the third type, the download notification of the new version of the system can be displayed as "A new version of the system has been detected. New version of the overseas version, click to update"; when the new version of the system is the fourth, the new version system download notification can be displayed as "It has been detected that the system has a new version for a certain enterprise, click to update." In the embodiment of the present application, the specific contents of the above notifications related to different types of new versions of the system are only illustrative and not limiting.

在一些实现方式中,电子设备可以显示有一个或多个OUC的通知,还可以将电子设备所生成的OUC的通知存储在电子设备中。示例性的,电子设备可以将OUC的通知以集合的形式存储在OUC目录下的文件里。例如,电子设备可以存储每一个OUC的通知的文本信息、功能作用等信息,使得电子设备后续可以通过读取所存储的OUC的通知可以恢复显示该OUC的通知。In some implementations, the electronic device can display one or more OUC notifications, and can also store the OUC notifications generated by the electronic device in the electronic device. For example, the electronic device can store the OUC notifications in a collection form in a file in the OUC directory. For example, the electronic device can store the text information, functions and other information of each OUC notification, so that the electronic device can subsequently restore and display the OUC notification by reading the stored OUC notification.

在一些实现方式中,电子设备还可以管理所存储的OUC的通知。具体的,电子设备可以将显示的OUC的通知存储在OUC的通知集合中。电子设备还可以从OUC的通知集合中删除OUC的通知。示例性的,通知A和通知B为OUC通知集合中的通知。电子设备可以响应用户删除通知A的操作,从OUC的通知集合中删除OUC的通知A。通知B为新版本系统下载通知。电子设备可以响应用户点击通知B的操作,从OUC的通知集合中删除OUC的通知B。电子设备还可以响应用户点击OUC中的下载新版本系统的控件,开始下载新版本系统。由于电子设备已经开始下载新版本系统,根据业务逻辑,也需要从OUC的通知集合中删除OUC的通知B。In some implementations, the electronic device can also manage stored notifications of OUC. Specifically, the electronic device may store the displayed OUC notifications in the OUC notification collection. The electronic device may also delete the OUC's notifications from the OUC's notification collection. For example, notification A and notification B are notifications in the OUC notification set. The electronic device may respond to the user's operation of deleting notification A by deleting notification A of OUC from the notification collection of OUC. Notification B is a new version system download notification. The electronic device can respond to the user's operation of clicking notification B and delete notification B of OUC from the notification collection of OUC. The electronic device can also respond to the user clicking on the control for downloading a new version of the system in the OUC to start downloading the new version of the system. Since the electronic device has started to download the new version of the system, according to the business logic, OUC notification B also needs to be deleted from the OUC notification collection.

S202、电子设备检测到存在新版本的OUC。S202. The electronic device detects the existence of a new version of OUC.

在一些实现方式中,电子设备中的系统应用更新器来检测OUC是否有新版本。由于系统应用更新器更新系统应用的机制是:检测服务器中是否存在新版本的OUC,若存在,直接下载在电子设备中。上述机制可以理解为是静默更新的机制。In some implementations, the system in the electronic device uses an updater to detect whether there is a new version of the OUC. Because the system application updater's mechanism for updating system applications is to detect whether a new version of OUC exists in the server, and if it exists, directly download it to the electronic device. The above mechanism can be understood as a silent update mechanism.

在一些实现方式中,在满足以下任一条件的情况下,系统应用更新器即可检测服务器中是否存在新版本的OUC:In some implementations, the system applies an updater to detect whether a new version of OUC exists on the server when any of the following conditions are met:

1、在电子设备启动WIFI功能并且连接充电器的情况下,系统应用更新器可以检测服务器中是否存在新版本的OUC。在一种可能的实现方式中,系统应用更新器在24小时内,最多可以检测2次。1. When the electronic device activates the WIFI function and connects to the charger, the system application updater can detect whether there is a new version of OUC in the server. In one possible implementation, the system application updater can detect up to two times within 24 hours.

2、在电子设备所连接的WIFI发生变化的情况下,系统应用更新器可以检测服务器中是否存在新版本的OUC。在一种可能的实现方式中,系统应用更新器在24小时内,最多可以检测4次。2. When the WIFI connected to the electronic device changes, the system application updater can detect whether there is a new version of OUC in the server. In one possible implementation, the system application updater can detect up to 4 times within 24 hours.

3、在电子设备所连接的网络发生波动的情况下,系统应用更新器可以检测服务器中是否存在新版本的OUC。3. When the network connected to the electronic device fluctuates, the system application updater can detect whether there is a new version of OUC in the server.

4、在电子设备提供更新软件开发工具包(Software Development Kit,SDK)和/或下载SDK接口处理业务的情况下,系统应用更新器可以检测服务器中是否存在新版本的OUC。4. When the electronic device provides software development kit (Software Development Kit, SDK) update and/or download SDK interface processing services, the system application updater can detect whether there is a new version of OUC in the server.

5、在电子设备显示的用户界面为系统应用更新器中的更新列表页面或设置页面的情况下,系统应用更新器可以检测服务器中是否存在新版本的OUC。5. When the user interface displayed by the electronic device is the update list page or settings page in the system application updater, the system application updater can detect whether a new version of OUC exists in the server.

6、在电子设备完成开机广播的一段之间内,系统应用更新器可以检测服务器中是否存在新版本的OUC。6. During the period when the electronic device completes the boot broadcast, the system application updater can detect whether there is a new version of OUC in the server.

在一些实现方式中,在系统应用更新器检测到服务器中存在新版本的OUC的情况下,电子设备可以通过系统应用更新器直接下载新版本的OUC。电子设备在下载新版本的OUC过程中,电子设备还是可以显示OUC的通知。具体的,电子设备下载新版本的OUC可以是指下载OUC的升级包。在一种可能的实现方式中,OUC的升级包可以是整个应用程序包,直接用于生成新版本的OUC。在另一种可能的实现方式中,OUC的升级包可以是一个差分补丁包,可以结合旧版本的OUC来生成新版本的OUC。在本申请实施例中,对此不作限定。In some implementations, when the system application updater detects that a new version of OUC exists in the server, the electronic device can directly download the new version of OUC through the system application updater. While the electronic device is downloading the new version of OUC, the electronic device can still display OUC notifications. Specifically, downloading a new version of OUC by an electronic device may refer to downloading an upgrade package of OUC. In a possible implementation, the upgrade package of OUC can be the entire application package, which is directly used to generate a new version of OUC. In another possible implementation, the upgrade package of OUC can be a differential patch package, which can be combined with the old version of OUC to generate a new version of OUC. In the embodiment of the present application, this is not limited.

S203、电子设备更新OUC,并且不显示OUC的通知。S203. The electronic device updates the OUC and does not display the OUC notification.

在一些实现方式中,电子设备可以通过系统更新器来更新OUC。In some implementations, the electronic device can update the OUC through a system updater.

在一种可能的实现方式中,电子设备也可以通过OUC来更新OUC。在本申请实施例中,对通过OUC来更新OUC的方式不做详细介绍。In a possible implementation, the electronic device can also update the OUC through the OUC. In the embodiment of this application, the method of updating OUC through OUC will not be introduced in detail.

在本申请实施例中,电子设备使用系统应用更新器来更新OUC的原因:1、其他更新渠道更新OUC可能会出现错误。例如,旧版本OUC通过更新新版本的系统将旧版本的OUC更新为新版本的OUC。但是在旧版本的OUC出现问题的情况,无法正常使用旧版本的OUC。此时就无法更新OUC。2、使用系统应用更新器来更新OUC可以缩短OUC的更新周期。这是由于其他更新方式下OUC是依赖于系统更新来进行更新的,而系统更新周期较长(例如120天左右)。那么电子设备可以通过系统应用更新器在较短的周期内来更新OUC。In the embodiment of this application, the reasons why the electronic device uses the system application updater to update the OUC are: 1. There may be errors when updating the OUC through other update channels. For example, the old version of OUC is updated to a new version of OUC by updating the new version of the system. However, if there is a problem with the old version of OUC, the old version of OUC cannot be used normally. OUC cannot be updated at this time. 2. Using the system application updater to update OUC can shorten the update cycle of OUC. This is because OUC relies on system updates for updates under other update methods, and the system update cycle is long (for example, about 120 days). Then the electronic device can update the OUC in a shorter period through the system application updater.

在一些实现方式中,电子设备通过系统更新器来更新OUC可以是指:电子设备卸载旧版本的OUC再安装新版本的OUC。In some implementations, updating the OUC by the electronic device through the system updater may mean: the electronic device uninstalls the old version of OUC and then installs the new version of OUC.

在一些实现方式中,电子设备需要在满足以下多项条件的情况,更新OUC:In some implementations, the electronic device needs to update the OUC when multiple of the following conditions are met:

1、电子设备下载有新版本的OUC。1. The electronic device downloads a new version of OUC.

2、电子设备启动自动更新功能。示例性的,该自动更新功能可以由系统设置应用程序提供。其中,自动更新功能可以设置在所有网络情况下均可自动更新或者在WIFI连接的情况下可自动更新。2. The electronic device activates the automatic update function. For example, the automatic update function may be provided by a system settings application. Among them, the automatic update function can be set to automatically update under all network conditions or automatically update when connected to WIFI.

3、电子设备连接网络的情况符合上述条件2中的设置。具体是指:在上述条件2中的设置为在所有网络情况下均可自动更新,电子设备连接网络(wifi或移动网络)即可;在上述条件2中的设置为在WIFI连接的情况下可自动更新,电子设备连接wifi网络即可。3. The electronic equipment connected to the network meets the settings in condition 2 above. Specifically, it means: the setting in the above condition 2 is to be automatically updated in all network conditions, as long as the electronic device is connected to the network (wifi or mobile network); the setting in the above condition 2 is to be able to be updated in the case of WIFI connection. Automatically updates, just connect the electronic device to the wifi network.

4、电子设备的电量大于或等于电量阈值。示例性的,电量阈值可以取值为10%。4. The power of the electronic device is greater than or equal to the power threshold. For example, the power threshold may be 10%.

5、电子设备的表面温度低于温度阈值。示例性的,温度阈值可以取值为40℃。5. The surface temperature of the electronic device is lower than the temperature threshold. For example, the temperature threshold may be 40°C.

在本申请实施例中,上述条件仅做示例性说明,对此不作限定。In the embodiments of this application, the above conditions are only illustrative and not limiting.

在一些实现方式中,电子设备在满足上述情况下,可以卸载旧版本的OUC再安装新版本的OUC。当卸载旧版本的OUC之后,在安装新版本OUC之前,电子设备已经不显示OUC的通知。也就是说,由于旧版本的OUC被卸载,导致电子设备不存在旧版本的OUC,使得电子设备也不具备显示OUC的通知的功能,因此,电子设备不显示OUC的通知,但是电子设备仍存储有OUC的通知。In some implementations, when the above conditions are met, the electronic device can uninstall the old version of OUC and then install the new version of OUC. After uninstalling the old version of OUC and before installing the new version of OUC, the electronic device no longer displays OUC notifications. In other words, because the old version of OUC has been uninstalled, the electronic device does not have the old version of OUC, and the electronic device does not have the function of displaying OUC notifications. Therefore, the electronic device does not display OUC notifications, but the electronic device still stores There is a notice from OUC.

在一些实现方式中,在卸载旧版本的OUC之前,电子设备中仍然可以基于用户操作或者业务逻辑对所存储的OUC的通知集合进行管理。具体管理方式可以参考上述S201的相关描述,在此不做赘述。In some implementations, before uninstalling the old version of OUC, the electronic device can still manage the stored notification collection of OUC based on user operations or business logic. For specific management methods, please refer to the relevant description of S201 above and will not be described in detail here.

S204、电子设备启动OUC,并判断是否是由系统应用更新器来更新OUC。S204. The electronic device starts the OUC and determines whether the system application updater updates the OUC.

在一些实现方式中,电子设备可以静默启动新版本的OUC,电子设备也可以在显示上述用户界面200的情况下启动OUC。在本申请实施例中,对电子设备启动OUC的条件仅做示例性说明,还可以在电子设备连接wifi的情况下启动OUC,对此不作限定。In some implementations, the electronic device can silently start the new version of OUC, or the electronic device can also start the OUC while displaying the above user interface 200 . In the embodiment of the present application, the conditions for the electronic device to activate OUC are only illustratively described. OUC can also be activated when the electronic device is connected to wifi, which is not limited.

在一些实现方式中,在电子设备启动新版本OUC之后,还需要对更新OUC的方式进行判断。在本申请实施例中之所以需要判断是否是由系统应用更新器来更新OUC,是因为:若OUC是通过其他更新渠道更新OUC的,则电子设备不需要恢复OUC的通知显示。In some implementations, after the electronic device starts the new version of OUC, it is also necessary to determine how to update the OUC. In the embodiment of this application, the reason why it is necessary to determine whether the OUC is updated by the system application updater is because: if the OUC is updated through other update channels, the electronic device does not need to restore the notification display of the OUC.

下面说明为何电子设备通过其他更新渠道更新OUC的,不需要恢复OUC的通知显示。示例性的,OUC检测到新版本的系统A,该新版本的系统A中包括新版本的OUC。OUC可以生成针对于新版本系统A的下载通知。电子设备响应用户操作,下载新版本的系统A。然后电子设备可以将新版本OUC替换为旧版本OUC。在这种情况下,OUC生成的通知为上述针对于新版本系统A的下载通知,而由上述描述可知电子设备已经完成新版本系统A的下载,针对于新版本系统A的下载通知已经实现其功能。因此在上述更新OUC的情况下,电子设备无需再恢复显示新版本系统A的下载通知。The following explains why electronic devices that update OUC through other update channels do not need to restore the notification display of OUC. For example, OUC detects a new version of system A, and the new version of system A includes a new version of OUC. OUC can generate download notifications for the new version of System A. The electronic device responds to the user operation and downloads a new version of system A. The electronic device can then replace the new version of OUC with the old version of OUC. In this case, the notification generated by OUC is the above-mentioned download notification for the new version of system A. From the above description, it can be seen that the electronic device has completed the download of the new version of system A, and the download notification for the new version of system A has been implemented. Function. Therefore, in the above situation of updating OUC, the electronic device no longer needs to resume displaying the download notification of the new version of System A.

在一些实现方式中,电子设备可以通过判断新版本的OUC的安卓应用程序包(Android application package,APK)版本号以及APK的安装路径来判断是否是由系统应用更新器来更新OUC。其中,APK是操作系统使用的一种应用程序包文件格式,用于分发和安装移动应用及中间件。示例性的,电子设备可以采用下面代码示例来进行判断:In some implementations, the electronic device can determine whether the OUC is updated by the system application updater by determining the version number of the Android application package (APK) of the new version of OUC and the installation path of the APK. Among them, APK is an application package file format used by the operating system to distribute and install mobile applications and middleware. For example, the electronic device can use the following code example to make the judgment:

oldVersionCode != -1&&verCode>oldVersionCode&&isInstallInData()oldVersionCode != -1&&verCode>oldVersionCode&&isInstallInData()

其中,“oldVersionCode != -1”可以表示旧版本的OUC是存在的。这是由于只有存在旧版本的OUC,电子设备才能够存储旧版本的OUC的通知。该字段可以理解为提高判断的准确性。“verCode>oldVersionCode”可以表示当前OUC的APK版本号大于旧版本的OUC的APK版本号。上述两个字段用于指示电子设备对OUC进行过更新。Among them, "oldVersionCode != -1" can indicate that an old version of OUC exists. This is because the electronic device can store notifications of the old version of the OUC only if the old version of the OUC exists. This field can be understood to improve the accuracy of judgment. "verCode>oldVersionCode" can indicate that the APK version number of the current OUC is greater than the APK version number of the old version of OUC. The above two fields are used to indicate that the electronic device has updated the OUC.

“isInstallInData()”可以表示当前OUC是安装在data分区的。该字段用于指示当前OUC是通过系统应用更新来进行更新的。"isInstallInData()" can indicate that the current OUC is installed in the data partition. This field is used to indicate that the current OUC is updated through system application updates.

下面结合图3说明,电子设备如何判断是否是由系统应用更新器来更新OUC。The following explains in conjunction with Figure 3 how the electronic device determines whether the OUC is updated by the system application updater.

S301、电子设备存储有旧版本的OUC的APK版本号。S301. The electronic device stores the APK version number of the old version of OUC.

在一些实现方式中,电子设备在启动之后,即会存储启动之后的OUC的APK版本号。也就是说,S301可以是在上述S201之前执行。In some implementations, after the electronic device is started, the APK version number of the OUC after the start is stored. That is to say, S301 may be executed before the above-mentioned S201.

S302、电子设备启动OUC。S302. The electronic device starts OUC.

在一些实现方式中,电子设备可以静默启动OUC,电子设备也可以在显示上述用户界面200的情况下启动OUC。在本申请实施例中,对电子设备启动OUC的条件仅做示例性说明,还可以在电子设备连接wifi的情况下启动OUC,对此不作限定。In some implementations, the electronic device can start the OUC silently, or the electronic device can also start the OUC while displaying the above user interface 200 . In the embodiment of the present application, the conditions for the electronic device to activate OUC are only illustratively described. OUC can also be activated when the electronic device is connected to wifi, which is not limited.

S303、电子设备读取当前OUC的APK版本号。S303. The electronic device reads the APK version number of the current OUC.

在一些实现方式中,在电子设备启动OUC之后,可以读取当前OUC的APK版本号。In some implementations, after the electronic device starts the OUC, the APK version number of the current OUC can be read.

S304、电子设备判断当前OUC的APK版本号是否大于旧版本的OUC的APK版本号。S304. The electronic device determines whether the APK version number of the current OUC is greater than the APK version number of the old version of OUC.

在一些实现方式中,在当前OUC为新版本的OUC的情况下,也就是说,在S302之前,电子设备将旧版本的OUC更新为新版本的OUC,电子设备可以判断当前OUC的APK版本号大于旧版本的OUC的APK版本号。然后,执行S305。In some implementations, when the current OUC is a new version of OUC, that is to say, before S302, the electronic device updates the old version of OUC to the new version of OUC, and the electronic device can determine the APK version number of the current OUC. APK version number greater than the old version of OUC. Then, execute S305.

在当前OUC为旧版本的情况下,也就是说,在S302之前,电子设备没有将旧版本的OUC更新为新版本的OUC,电子设备可以判断当前OUC的APK版本号等于旧版本的OUC的APK版本号。然后,执行S307。When the current OUC is an old version, that is to say, before S302, the electronic device has not updated the old version of OUC to the new version of OUC, the electronic device can determine that the APK version number of the current OUC is equal to the APK of the old version of OUC. version number. Then, execute S307.

S305、电子设备判断当前OUC是否安装在电子设备的data分区。S305. The electronic device determines whether the current OUC is installed in the data partition of the electronic device.

data分区是电子设备用于存储各种APK的分区,data/app目录下存放静默安装的APK。system分区是电子设备用于更新ROM的分区,system/app目录下存放系统自带的APK。The data partition is a partition used by electronic devices to store various APKs. The data/app directory stores silently installed APKs. The system partition is a partition used by electronic devices to update ROM. The system/app directory stores the APK that comes with the system.

在一些实现方式中,在电子设备判断当前OUC安装在电子设备的data分区的情况下,即电子设备判断所下载的OUC的升级包安装在data分区的情况下,执行S306。In some implementations, when the electronic device determines that the current OUC is installed in the data partition of the electronic device, that is, when the electronic device determines that the downloaded OUC upgrade package is installed in the data partition, S306 is executed.

在一些实现方式中,在电子设备判断当前OUC不是安装在电子设备的data分区的情况下,例如,所下载的OUC的升级包可能安装在system分区的情况下,执行S308。In some implementations, when the electronic device determines that the current OUC is not installed in the data partition of the electronic device, for example, the downloaded OUC upgrade package may be installed in the system partition, S308 is executed.

S306、电子设备确定是由系统应用更新器将旧版本的OUC更新为新版本的OUC。S306. The electronic device determines that the system application updater updates the old version of OUC to the new version of OUC.

在一些实现方式中,由于由系统应用更新器进行更新的应用程序安装在data/app目录下,因此可以通过确定当前OUC安装在电子设备的data分区来确定是由系统应用更新器将旧版本的OUC更新为新版本的OUC。In some implementations, since the application updated by the system application updater is installed in the data/app directory, it can be determined that the system application updater updated the old version by determining that the current OUC is installed in the data partition of the electronic device. OUC is updated to a new version of OUC.

S307、电子设备确定当前OUC为旧版本的OUC,即OUC无更新。S307. The electronic device determines that the current OUC is an old version of OUC, that is, the OUC has not been updated.

S308、电子设备确定不是由系统应用更新器将旧版本的OUC更新为新版本的OUC。S308. The electronic device determines that the system application updater does not update the old version of OUC to the new version of OUC.

在一些实现方式中,由于由其他更新途径(例如通过OUC进行系统版本升级)进行更新的应用程序安装在system/app目录下,因此电子设备可以通过确定当前OUC没有安装在电子设备的data分区来确定不是由系统应用更新器将旧版本的OUC更新为新版本的OUC。In some implementations, since applications updated by other update channels (such as system version upgrades through OUC) are installed in the system/app directory, the electronic device can determine that the current OUC is not installed in the data partition of the electronic device. Make sure it is not the system application updater that updates the old version of OUC to the new version of OUC.

S309、电子设备存储当前OUC的APK版本号。S309. The electronic device stores the APK version number of the current OUC.

在一些实现方式中,执行上述S306、S307、S308之后,均可执行S309。In some implementations, after executing the above S306, S307, and S308, S309 may be executed.

在一些实现方式中,上述电子设备判断是否是由系统应用更新器来更新OUC可以在电子设备启动OUC之后执行。在一种可能的实现方式中,电子设备判断是否是由系统应用更新器来更新OUC是周期性执行的,并且电子设备每次启动OUC都可以执行上述判断。In some implementations, the electronic device's determination of whether the OUC is updated by the system application updater may be executed after the electronic device starts the OUC. In a possible implementation, the electronic device determines whether the OUC is updated by the system application updater periodically, and the electronic device can perform the above determination every time the OUC is started.

在一些实现方式中,电子设备确定是由系统应用更新器来更新OUC之后,可以执行S205。In some implementations, after the electronic device determines that the OUC is updated by the system application updater, S205 may be performed.

在一些实现方式中,电子设备确定不是由系统应用更新器来更新OUC之后,仍不显示OUC的通知。In some implementations, after the electronic device determines that the OUC is not updated by the system application updater, the OUC notification is still not displayed.

S205、电子设备读取出OUC的通知,并显示OUC的通知。S205. The electronic device reads the OUC notification and displays the OUC notification.

在一些实现方式中,电子设备确定是由系统应用更新器来更新OUC之后,可以从OUC的通知集合中读取出所有OUC的通知,并显示所有OUC的通知。由于电子设备不判断OUC的通知类型,即不判断OUC的每一个通知用于指示何种功能。因此不会仅选择出所有OUC的通知中的一个或多个通知,显示其中一个或多个通知。In some implementations, after the electronic device determines that the OUC is updated by the system application updater, it can read all the OUC notifications from the OUC notification collection and display all the OUC notifications. Because the electronic device does not determine the notification type of the OUC, that is, it does not determine what function each notification of the OUC is used to indicate. Therefore, only one or more notifications among all OUC notifications will not be selected and displayed.

由上述方法流程可知,电子设备可以在OUC更新之后,显示OUC更新之前所生成的通知。这样,用户可以及时观察到与问卷相关的通知,并完成问卷。在一定程度上,可以增加问卷的回收数量,使得电子设备的产商能够接收到相关的反馈信息。并且,用户还可以及时观察到与系统更新相关的通知,进而电子设备可以及时的完成系统更新。It can be seen from the above method flow that the electronic device can display the notification generated before the OUC update after the OUC is updated. In this way, users can observe notifications related to the questionnaire in a timely manner and complete the questionnaire. To a certain extent, the number of recycled questionnaires can be increased so that manufacturers of electronic equipment can receive relevant feedback information. Moreover, users can also observe notifications related to system updates in a timely manner, so that the electronic device can complete system updates in a timely manner.

下面结合图4介绍本申请实施提供的电子设备管理OUC的通知集合的操作系统(Operating system,OS)交互图。管理OUC的通知集合可以包括但不限于:存储通知、显示通知、删除通知等等。其中,系统应用更新器、OUC、System UI属于电子设备中应用程序层的应用程序,通知管理器服务(Notification Manager Service,NMS),包管理器服务(PackageManager Service,PMS)属于电子设备中应用程序框架层的模块。关于上述模块或软件的定义还可以参考后文电子设备软件架构处的详细描述,关于这些模块的具体作用已详细记载在入下流程中,在此不再赘述。The following is an introduction to the operating system (OS) interaction diagram of the notification set of the electronic device management OUC provided by the implementation of this application in conjunction with Figure 4. Managing OUC notification collections may include but is not limited to: storage notifications, display notifications, deletion notifications, etc. Among them, the system application updater, OUC, and System UI belong to the application layer of electronic devices, and the notification manager service (Notification Manager Service, NMS) and the package manager service (PackageManager Service, PMS) belong to the applications of electronic devices. Framework module. Regarding the definition of the above modules or software, you can also refer to the detailed description of the electronic device software architecture later. The specific functions of these modules have been recorded in detail in the following process and will not be described again here.

SystemUI作为一种系统应用,它可以包括电子设备中下拉面板的用户界面、通知栏的用户界面以及快捷控件的用户界面。SystemUI可以用于显示通知栏、状态栏、电量等等控件。As a system application, SystemUI can include the user interface of the drop-down panel in the electronic device, the user interface of the notification bar, and the user interface of the shortcut control. SystemUI can be used to display controls such as notification bar, status bar, power, etc.

S401、OUC生成第一通知并存储第一通知。S401. OUC generates a first notification and stores the first notification.

在一些实现方式中,第一通知可以有一个或多个。第一通知可以包括但不限于:NPS问卷通知、ROM满意度问卷通知、新版本系统下载通知、新版本系统安装通知、重启通知、配件更新通知等等。关于第一通知的相关描述可以参考上述S201中的详细介绍,在此不做赘述。In some implementations, there may be one or more first notifications. The first notification may include but is not limited to: NPS questionnaire notification, ROM satisfaction questionnaire notification, new version system download notification, new version system installation notification, restart notification, accessory update notification, etc. For relevant description of the first notification, please refer to the detailed introduction in S201 above, and will not be described again here.

上述第一通知可以以集合的形式存储在OUC目录下的本地文件(例如本地SharedPreferences)当中,具体是存储在硬盘里,而不是仅存储在缓存中。The above-mentioned first notification can be stored in a local file (such as local SharedPreferences) in the OUC directory in the form of a collection. Specifically, it is stored in the hard disk instead of only being stored in the cache.

S402、OUC基于第一通知创建notification对象。S402. OUC creates a notification object based on the first notification.

在一些实现方式中,OUC生成第一通知之后,需要显示第一通知。但是OUC无法直接与SystemUI进行交互,而是需要NMS来传递通知。又由于NMS接收的消息类型为notification对象。因此,OUC需要创建notification对象,S402中创建的notification对象中搭载有第一通知的相关信息。In some implementations, after the OUC generates the first notification, the first notification needs to be displayed. But OUC cannot interact with SystemUI directly, but requires NMS to deliver notifications. And because the message type received by NMS is notification object. Therefore, OUC needs to create a notification object, and the notification object created in S402 carries relevant information about the first notification.

在一些实现方式中,由于OUC可能随时会生成通知,因此OUC也可以随时创建基于第一通知的notification对象。In some implementations, since OUC may generate notifications at any time, OUC may also create a notification object based on the first notification at any time.

S403、OUC调用notify方法将notification对象传输至NMS。S403. OUC calls the notify method to transmit the notification object to the NMS.

在一些实现方式中,OUC基于第一通知创建notification对象之后,可以调用notify方法将搭载有第一通知的信息的notification对象传输至NMS。In some implementations, after OUC creates a notification object based on the first notification, the notify method can be called to transmit the notification object carrying the information of the first notification to the NMS.

S404、NMS将notification对象传输至System UI。S404. NMS transmits the notification object to the System UI.

在一些实现方式中,NMS可以将搭载有第一通知的信息的notification对象传输至System UI。NMS可以作为传输工具,并且它可以保证System UI可以有序无误的显示各种应用程序的通知。In some implementations, the NMS can transmit the notification object carrying the information of the first notification to the System UI. NMS can be used as a transmission tool, and it can ensure that the System UI can display notifications of various applications in an orderly and error-free manner.

S405、System UI显示第一通知。S405. System UI displays the first notification.

在一些实现方式中,电子设备的System UI可以在状态栏内显示第一通知。In some implementations, the System UI of the electronic device can display the first notification in the status bar.

S406、System UI接收到删除第一通知的操作。S406. The System UI receives the operation of deleting the first notification.

在一些实现方式中,删除第一通知的操作可以包括但不限于:点击操作、滑动操作、语音指令、手势指令等等。具体的,System UI可以接收到用户针对于第一通知的左滑或右滑操作,还可以接收到用户针对于第一通知的删除控件的点击操作。In some implementations, the operation of deleting the first notification may include but is not limited to: click operation, sliding operation, voice instruction, gesture instruction, etc. Specifically, the System UI can receive the user's left-swipe or right-swipe operation on the first notification, and can also receive the user's click operation on the delete control of the first notification.

S407、System UI向OUC发送删除第一通知的消息。S407. System UI sends a message deleting the first notification to OUC.

在一些实现方式中,System UI在接收到删除第一通知的操作之后,向OUC发送删除第一通知的消息。具体的,System UI删除第一通知的消息是广播发送,并且针对删除第一通知的操作设置PendingIntent。PendingIntent可以看作是对Intent的一个封装,但它不是立刻执行某个行为,而是满足某些条件或触发某些事件后才执行指定的行为。在本申请实施例中,PendingIntent的作用可以理解:触发删除第一通知的事件之后,System UI才会发送删除第一通知的广播,而不是时刻都在发送。并且OUC静态注册广播接收,可以接收到System UI发送的删除第一通知的广播。In some implementations, after receiving the operation of deleting the first notification, the System UI sends a message to delete the first notification to the OUC. Specifically, the message that System UI deletes the first notification is sent by broadcast, and PendingIntent is set for the operation of deleting the first notification. PendingIntent can be seen as an encapsulation of Intent, but it does not execute a certain behavior immediately, but only executes the specified behavior after certain conditions are met or certain events are triggered. In the embodiment of this application, the role of PendingIntent can be understood: System UI will only send the broadcast of deleting the first notification after triggering the event of deleting the first notification, instead of sending it all the time. And OUC statically registers broadcast reception, and can receive the broadcast of the first notification of deletion sent by the System UI.

S408、OUC删除所存储的第一通知。S408. OUC deletes the stored first notification.

在一些实现方式中,OUC根据S407中所得到的删除第一通知的消息,从本地SharedPreferences中的OUC通知集合里删除该第一通知。In some implementations, OUC deletes the first notification from the OUC notification set in local SharedPreferences based on the message of deleting the first notification obtained in S407.

可选的,S409、OUC接收到点击第一通知的操作,删除所存储的第一通知。Optionally, S409, OUC receives the operation of clicking the first notification and deletes the stored first notification.

在一些实现方式中,由于电子设备接收到点击第一通知的操作之后,会执行OUC的某一个功能,例如:填写NPS问卷、填写ROM满意度问卷、下载新版本系统、安装新版本系统、重启电子设备等等。OUC可以直接接收到点击第一通知的操作。由于已经实现了第一通知所指示的功能,从逻辑上说,也需要删除第一通知。In some implementations, after receiving the operation of clicking the first notification, the electronic device will perform a certain function of the OUC, such as: filling in the NPS questionnaire, filling in the ROM satisfaction questionnaire, downloading the new version of the system, installing the new version of the system, and restarting. Electronic equipment and more. OUC can directly receive the operation of clicking the first notification. Since the function indicated by the first notification has been implemented, logically speaking, the first notification also needs to be deleted.

可选的,S410、OUC接收到启动第一通知所指示的功能的操作,删除所存储的第一通知。Optionally, S410: The OUC receives the operation of activating the function indicated by the first notification and deletes the stored first notification.

在一些实现方式中,电子设备可以直接在OUC的相关用户界面中响应用户操作,执行OUC的功能,该功能可能是第一通知所指示的功能,例如:填写NPS问卷、填写ROM满意度问卷、下载新版本系统、安装新版本系统、重启电子设备等等。由于已经实现了第一通知的功能,从逻辑上说,也需要删除第一通知。In some implementations, the electronic device can directly respond to user operations in the relevant user interface of the OUC and perform the functions of the OUC. This function may be the function indicated by the first notification, such as: filling in the NPS questionnaire, filling in the ROM satisfaction questionnaire, Download a new version of the system, install a new version of the system, restart electronic devices, etc. Since the function of the first notification has been implemented, logically speaking, the first notification also needs to be deleted.

由上述内容可知,电子设备可以实现对所存储的OUC通知的实时管理。其中包括:存储通知、显示通知、删除通知等等。这样可以使得后续电子设备重新显示OUC通知时,可以直接读取所存储的OUC通知。It can be seen from the above that the electronic device can realize real-time management of the stored OUC notifications. These include: storing notifications, showing notifications, deleting notifications, and more. This allows the subsequent electronic device to directly read the stored OUC notification when it displays the OUC notification again.

下面结合图5介绍本申请实施提供的电子设备更新OUC之后再次显示OUC通知的OS交互图。其中,系统应用更新器、OUC、System UI、NMS、PMS可以参考上述的详细介绍,这里不作赘述。The following is an introduction to the OS interaction diagram in which the OUC notification is displayed again after the electronic device provided by the implementation of this application updates the OUC in conjunction with Figure 5. Among them, the system application updater, OUC, System UI, NMS, and PMS can refer to the above detailed introduction and will not be described in detail here.

S501、系统应用更新器周期性检测是否存在新版本的OUC。S501. The system application updater periodically detects whether there is a new version of OUC.

在一些实现方式中,系统应用更新器检测是否存在新版本的OUC可以是指:系统应用更新器向用于生成新版本的OUC的服务器发送消息,该消息用于询问是否生成有新版本的OUC。并且,系统应用更新器是周期性进行检测的。这里系统应用更新器是周期性进行检测的机制可以参考上述S202中的相关描述,在此不做赘述。In some implementations, detecting whether a new version of OUC exists by the system application updater may mean: the system application updater sends a message to a server used to generate a new version of OUC, and the message is used to inquire whether a new version of OUC is generated. . Moreover, the system application updater is tested periodically. Here, the system application updater is a mechanism for periodic detection. Please refer to the relevant description in S202 above, which will not be described in detail here.

S502、系统应用更新器检测到存在新版本的OUC。S502. The system application updater detects that a new version of OUC exists.

在一些实现方式中,在系统应用更新器向用于生成新版本的OUC的服务器发送消息,该消息用于询问服务器是否生成有新版本的OUC之后,系统应用更新器可以接收到服务器发送的确认消息,即系统应用更新器检测到存在新版本的OUC。In some implementations, after the system application updater sends a message to the server used to generate a new version of the OUC, the message is used to ask the server whether a new version of the OUC is generated, the system application updater may receive a confirmation sent by the server. Message that the System Application Updater has detected the presence of a new version of OUC.

S503、系统应用更新器下载新版本的OUC。S503. The system application updater downloads the new version of OUC.

在一些实现方式中,在系统应用更新器检测到存在新版本的OUC,系统应用更新器从服务器中下载新版本的OUC。In some implementations, when the system application updater detects that a new version of OUC exists, the system application updater downloads the new version of OUC from the server.

S504、系统应用更新器在满足更新条件的情况下将更新信息发送至PMS。S504. The system application updater sends the update information to the PMS when the update conditions are met.

在一些实现方式中,系统应用程序更新器在满足更新条件的情况下,可以开始更新新版本的OUC,即可以将更新信息发送至PMS,该更新信息用于指示PMS卸载旧版本的OUC并安装新版本的OUC。上述更新条件可以参考上述S203中相关描述,在此不做赘述。In some implementations, when the update conditions are met, the system application updater can start updating the new version of OUC, that is, it can send update information to the PMS, and the update information is used to instruct the PMS to uninstall the old version of OUC and install it. New version of OUC. For the above update conditions, please refer to the relevant description in S203 above, and will not be described again here.

S505、PMS卸载旧版本的OUC。S505, PMS uninstalls the old version of OUC.

在一些实现方式中,PMS接收到更新信息之后,卸载旧版本的OUC。In some implementations, after receiving the update information, the PMS uninstalls the old version of OUC.

S506、PMS发送包卸载广播。S506. PMS sends packet offload broadcast.

在一些实现方式中,PMS在卸载旧版本的OUC之后,可以发送包卸载广播。In some implementations, the PMS can send a package uninstallation broadcast after uninstalling the old version of OUC.

S507、System UI不显示OUC的所有通知。S507, System UI does not display all notifications of OUC.

在一些实现方式中,System UI在接收到PMS发送的包卸载广播之后,可以不显示OUC的所有通知。若此时System UI显示有其他应用程序的通知,例如通知213,则也不影响System UI显示其他应用程序的通知。In some implementations, after receiving the package offload broadcast sent by the PMS, the System UI may not display all notifications of the OUC. If the System UI displays notifications from other applications at this time, such as notification 213, it will not affect the System UI from displaying notifications from other applications.

S508、PMS安装新版本的OUC。S508, PMS installs a new version of OUC.

在一些实现方式中,PMS在卸载旧版本的OUC之后,可以安装下载好的新版本的OUC。In some implementations, after uninstalling the old version of OUC, PMS can install the downloaded new version of OUC.

在一些实现方式中,上述S407与S408可以同时执行,也可以先执行S407再执行S408。在本申请实施例中,对此不作限定。In some implementations, the above S407 and S408 can be executed at the same time, or S407 can be executed first and then S408. In the embodiment of the present application, this is not limited.

S509、启动更新之后的OUC。S509. Start the OUC after the update.

在一些实现方式中,电子设备可以静默启动OUC,电子设备也可以在显示上述用户界面200的情况下启动OUC。在本申请实施例中,对电子设备启动更新之后的OUC的条件仅做示例性说明,还可以在电子设备连接wifi的情况下启动OUC,对此不作限定。In some implementations, the electronic device can start the OUC silently, or the electronic device can also start the OUC while displaying the above user interface 200 . In the embodiment of the present application, the conditions for initiating OUC after the update on the electronic device are only illustratively described. OUC can also be initiated when the electronic device is connected to WiFi, which is not limited.

S510、OUC判断是否是由系统应用更新器更新OUC。S510, OUC determines whether OUC is updated by the system application updater.

在一些实现方式中,OUC判断是否是由系统应用更新器更新OUC可以参考上述S204中的相关描述,在此不做赘述。在OUC确定是由系统应用更新器更新OUC之后,执行S411。In some implementations, the OUC determines whether the system application updater updates the OUC by referring to the relevant description in S204 above, which will not be described in detail here. After the OUC determines that the OUC is updated by the system application updater, S411 is executed.

S511、OUC判断是否存储OUC的通知。S511. OUC determines whether to store the OUC notification.

在一些实现方式中,电子设备恢复显示OUC的通知的前提是:电子设备中存储有OUC的通知。若在PMS卸载旧版本之前,电子设备中存储的OUC的通知已经被全部删除,则OUC判断所存储的OUC的通知集合为空集,即当前没有存储任何OUC的通知。然后,结束流程。In some implementations, the prerequisite for the electronic device to resume displaying OUC notifications is that the electronic device stores OUC notifications. If all OUC notifications stored in the electronic device have been deleted before the PMS uninstalls the old version, OUC determines that the stored OUC notification set is an empty set, that is, no OUC notifications are currently stored. Then, end the process.

若在PMS卸载旧版本之前,旧版本的OUC生产有OUC的通知,并且电子设备中存储的OUC的通知没有被全部删除,则OUC判断存储有OUC的通知。然后,执行S512。If the old version of OUC produces OUC notifications before the PMS uninstalls the old version, and all OUC notifications stored in the electronic device are not deleted, OUC determines that OUC notifications are stored. Then, execute S512.

S512、OUC基于所存储的OUC的通知创建notification对象。S512. OUC creates a notification object based on the stored OUC notification.

在一些实现方式中,在OUC判断存储有OUC的通知之后,可以开始恢复显示OUC的通知。但是OUC无法直接与SystemUI进行交互,而是需要NMS来传递通知。又由于NMS接收的消息类型为notification对象。因此,OUC需要创建notification对象,S512中创建的notification对象中搭载有第一通知的相关信息。In some implementations, after OUC determines that OUC notifications are stored, it may begin to resume displaying OUC notifications. But OUC cannot interact with SystemUI directly, but requires NMS to deliver notifications. And because the message type received by NMS is notification object. Therefore, OUC needs to create a notification object, and the notification object created in S512 carries relevant information about the first notification.

S513、OUC调用notify方法将notification对象传输至NMS。S513. OUC calls the notify method to transmit the notification object to the NMS.

在一些实现方式中,OUC基于所存储的OUC通知创建notification对象之后,可以调用notify方法将搭载有所存储的OUC通知的信息的notification对象传输至NMS。In some implementations, after OUC creates a notification object based on the stored OUC notification, the notify method can be called to transmit the notification object carrying the information of the stored OUC notification to the NMS.

S514、NMS将notification对象传输至System UI。S514. NMS transmits the notification object to the System UI.

S515、System UI显示所存储的OUC的通知。S515. The System UI displays the notification of the stored OUC.

在一些实现方式中,当前所启动的OUC可以是新版本的OUC。System UI还可以显示有旧版本OUC所生成的通知,即所存储的OUC的通知。除此之外,新版本的OUC也可以生成OUC的通知,并显示新版本的OUC的通知,该过程可以参考上述图4所示的流程,在此不做赘述。In some implementations, the currently started OUC may be a new version of OUC. System UI can also display notifications generated by older versions of OUC, that is, notifications of stored OUC. In addition, the new version of OUC can also generate OUC notifications and display the notifications of the new version of OUC. For this process, please refer to the process shown in Figure 4 above, which will not be described in detail here.

在一种可能的实现方式中,上述图4所示的交互图可以先于图5中的S505之前执行。即电子设备在安装有旧版本的OUC的情况下可以管理旧版本的OUC所生成的通知。在另一种可能的实现方式中,上述图4所示的交互图也可以后于图5中的S508之后执行。即电子设备在安装有新版本的OUC的情况下可以管理旧版本的OUC所生成的通知以及新版本的OUC所生成的通知。In a possible implementation, the above interaction diagram shown in Figure 4 can be executed before S505 in Figure 5 . That is, the electronic device can manage notifications generated by the old version of OUC when the old version of OUC is installed. In another possible implementation, the above-mentioned interaction diagram shown in Figure 4 can also be executed after S508 in Figure 5 . That is, when the new version of OUC is installed on the electronic device, it can manage the notifications generated by the old version of OUC and the notifications generated by the new version of OUC.

在本申请实施例中,上述用户界面中的内容仅做示例说明,还可以包括更多或更少的内容,对此不作限定。In the embodiment of the present application, the content in the above user interface is only an example, and may also include more or less content, which is not limited.

在一些实现方式中,上述旧版本的OUC可以被称为第一版本的OUC,S201中显示OUC的通知可以被称为第一通知,data分区可以被称为第一目录,system分区可以被称为第二分区,新版本的OUC可以被称为第二版本的OUC,上述删除的通知可以被称为第三通知。电子设备向服务器所发送的用于询问服务器是否生成有新版本的OUC的消息可以被称为第一消息,服务器向电子设备发送确定有新版本的OUC的消息可以被称为第二消息。In some implementations, the above-mentioned old version of OUC may be called the first version of OUC, the notification showing the OUC in S201 may be called the first notification, the data partition may be called the first directory, and the system partition may be called For the second partition, the new version of the OUC may be called the second version of the OUC, and the above-mentioned deletion notification may be called the third notification. The message sent by the electronic device to the server to ask the server whether a new version of OUC is generated may be called a first message, and the message sent by the server to the electronic device to determine that a new version of OUC is generated may be called a second message.

图6示出了电子设备100的结构示意图。FIG. 6 shows a schematic structural diagram of the electronic device 100.

电子设备100可以是搭载iOS®、Android ®、Microsoft ®、harmony ®或者其它操作系统的便携式终端设备,电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence, AI)设备、可穿戴式设备、车辆、车载设备、智能家居设备和/或智慧城市设备,不限于此,电子设备100还可以包括具有触敏表面或触控面板的膝上型计算机(laptop)、具有触敏表面或触控面板的台式计算机等非便携式终端设备等等。本申请实施例对该电子设备的具体类型不作特殊限制。The electronic device 100 may be a portable terminal device equipped with iOS®, Android®, Microsoft®, harmony® or other operating systems. The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, or a notebook computer. , ultra-mobile personal computers (UMPC), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle, vehicle-mounted device, smart home device and/or smart city device. It is not limited thereto. The electronic device 100 may also include a touch-sensitive surface or a touch panel. Non-portable terminal devices such as laptops, desktop computers with touch-sensitive surfaces or touch panels, etc. The embodiment of the present application does not place any special restrictions on the specific type of the electronic device.

电子设备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等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.

可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。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 (GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions 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, thus improving the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, 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 circuitsound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (USB) interface, etc.

I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .

I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.

PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。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. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。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 interfaces include camera serial interface (CSI), display serial interface (displayserial interface, DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 . The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .

GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.

USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. 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 to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.

可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiment of the present invention are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。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 a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication 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 (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, 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 provided in the same device.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal 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转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellite system. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. 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 , demodulates 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.

在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,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),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, 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 (GPRS), code division multiple access (codedivision multiple access, CDMA), broadband code Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou satellite navigation system (beidounavigation satellite system, BDS), quasi-zenith satellite system (quasi- zenith satellitesystem (QZSS) and/or satellite based augmentation systems (SBAS).

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor 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 alter display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use 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 (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.

ISP 用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,颜色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes 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 color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.

摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。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 frequency point energy.

视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

NPU为神经网络(neural-network ,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between human brain neurons, it can quickly process input information and can continuously learn by itself. Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.

内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory, DRAM)、同步动态随机存储器(synchronous dynamic random access memory, SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory, DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5 SDRAM)等;非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, for example, the fifth generation DDR SDRAM is generally called DDR5 SDRAM), etc.; non-volatile memory can include disk storage devices, flash memory (flash memory) .

快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell, TLC)、四阶储存单元(quad-level cell, QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。Flash memory can be divided according to the operating principle to include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. According to the storage unit potential level, it can include single-level storage cells (SLC), multi-level storage cells (multi-level cell, MLC), triple-level cell (TLC), quad-level cell (QLC), etc., which can include universal flash storage (English: universal flash storage, UFS) according to storage specifications. , embedded multi media card (embedded multi media Card, eMMC), etc.

随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。The random access memory can be directly read and written by the processor 110, can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data, etc.

非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。The non-volatile memory can also store executable programs and user and application program data, etc., and can be loaded into the random access memory in advance for direct reading and writing by the processor 110.

外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。The external memory interface 120 can be used to connect an external non-volatile memory to expand the storage capacity of the electronic device 100 . The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save music, video and other files in external non-volatile memory.

电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.

音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。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 signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .

扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.

受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.

麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In 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 implement directional recording functions, etc.

耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is performed on the display screen 194, 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 based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch location 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 is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.

陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake 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.

气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 180D includes a Hall sensor. The electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.

加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.

距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.

接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outwardly 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 can 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 when the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.

环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense 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 to prevent accidental touching.

指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。Fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.

温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。Temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the low temperature from causing the electronic device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .

骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。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 body's vocal part. The bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals. In some embodiments, the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to implement the heart rate detection function.

按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .

马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 . Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.

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采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or 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 can 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 plurality of 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 calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, 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 .

电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. This embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .

图7是本发明实施例的电子设备100的软件结构框图。FIG. 7 is a software structure block diagram of the electronic device 100 according to the embodiment of the present invention.

分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime (Android runtime) and system libraries, and kernel layer.

应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.

应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。如图7所示,应用程序包还可以包括:系统应用更新、OUC、System UI。Application packages can include camera, gallery, calendar, calling, map, navigation, WLAN, Bluetooth, music, video, SMS and other applications. As shown in Figure 7, the application package can also include: system application updates, OUC, and System UI.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器等。如图7所示,应用程序框架层还可以包括:通知管理器服务(NotificationManager Service,NMS),包管理器服务(Package Manager Service,PMS)。The application framework layer can include window managers, content providers, view systems, phone managers, resource managers, etc. As shown in Figure 7, the application framework layer can also include: Notification Manager Service (NMS) and Package Manager Service (PMS).

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the display size, 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 this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.

电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, call status management (including connected, hung up, etc.).

资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.

NMS使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。NMS allows applications 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. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.

PMS可以用于卸载应用程序以及安装应用程序。PMS还可以用于发送包卸载广播。PMS can be used to uninstall applications as well as install applications. PMS can also be used to send packet offload broadcasts.

Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. The Android runtime is responsible for the scheduling and management of the Android system.

核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.

系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如: MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support multiple 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, composition, and layer processing.

2D图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。The following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with capturing the photographing scene.

当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation and the control corresponding to the click operation as a camera application icon control as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. Camera 193 captures still images or video.

本申请的各实施方式可以任意进行组合,以实现不同的技术效果。The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solidstate disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in this application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website site, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are implemented. This process can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, , may include the processes of the above method embodiments. The aforementioned storage media include: ROM, random access memory (RAM), magnetic disks, optical disks and other media that can store program codes.

总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In short, the above descriptions are only examples of the technical solutions of the present invention and are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made based on the disclosure of the present invention shall be included in the protection scope of the present invention.

Claims (10)

Translated fromChinese
1.一种显示通知的方法,其特征在于,所述方法包括:1. A method of displaying notifications, characterized in that the method includes:启动第一版本的软件更新应用程序OUC;Launch the first version of the software update application OUC;在第一时刻显示第一通知,所述第一通知由所述第一版本的OUC生成;Display a first notification at a first moment, the first notification being generated by the first version of OUC;下载第二版本的OUC;Download the second version of OUC;将所述第二版本的OUC安装至第一目录,并不显示所述第一通知;Install the second version of OUC to the first directory without displaying the first notification;启动所述第二版本的OUC;Launch said second version of OUC;基于所述第二版本的OUC是通过系统应用更新器下载的,在第二时刻显示所述第一通知,所述第二时刻晚于所述第一时刻;The OUC based on the second version is downloaded through the system application updater, and the first notification is displayed at a second time, and the second time is later than the first time;其中,所述第一通知包括以下一项或多项:NPS问卷通知、ROM满意度问卷通知、新版本系统下载通知、新版本系统安装通知、重启通知;Wherein, the first notification includes one or more of the following: NPS questionnaire notification, ROM satisfaction questionnaire notification, new version system download notification, new version system installation notification, and restart notification;在第三时刻显示第二通知,所述第二通知由所述第二版本的OUC生成;Display a second notification at a third time, the second notification being generated by the second version of OUC;下载第三版本的OUC;Download the third version of OUC;将所述第三版本的OUC安装至第二目录,并不显示所述第二通知;Install the third version of OUC to the second directory without displaying the second notification;启动所述第三版本的OUC;Launch said third version of OUC;基于所述第三版本的OUC不是通过系统应用更新器下载的,且所述第二通知为所述新版本系统下载通知,在第四时刻不显示所述第二通知,所述第四时刻晚于所述第三时刻。The OUC based on the third version is not downloaded through the system application updater, and the second notification is the new version system download notification. The second notification is not displayed at the fourth time, and the fourth time is later at said third moment.2.根据权利要求1所述的方法,其特征在于,所述第一目录指示data分区,所述第二目录指示system分区。2. The method of claim 1, wherein the first directory indicates a data partition, and the second directory indicates a system partition.3.根据权利要求2所述的方法,其特征在于,所述第一目录用于存储系统应用更新器下载的应用程序,所述第二目录用于存储非系统应用更新器下载的应用程序。3. The method of claim 2, wherein the first directory is used to store applications downloaded by a system application updater, and the second directory is used to store applications downloaded by non-system application updaters.4.根据权利要求3所述的方法,其特征在于,在所述在第一时刻显示第一通知之后,所述方法还包括:4. The method according to claim 3, wherein after displaying the first notification at the first moment, the method further includes:存储所述第一通知;store the first notification;在所述在第二时刻显示所述第一通知之前,所述方法还包括:Before displaying the first notification at the second moment, the method further includes:读取存储的所述第一通知。Read the stored first notification.5.根据权利要求4所述的方法,其特征在于,在所述下载第二版本的OUC之前,所述方法还包括:5. The method according to claim 4, characterized in that, before downloading the second version of OUC, the method further includes:在所述第一时刻显示第三通知,所述第三通知由所述第一版本的OUC生成;Display a third notification at the first moment, the third notification being generated by the first version of OUC;接收并响应于第一操作,删除且不显示所述第三通知;Receive and respond to the first operation, delete and not display the third notification;在所述启动所述第二版本的OUC之后,所述方法还包括:After starting the second version of OUC, the method further includes:在所述第二时刻不显示所述第三通知。The third notification is not displayed at the second time.6.根据权利要求5所述的方法,其特征在于,在所述下载第二版本的OUC之前,所述方法还包括:6. The method according to claim 5, characterized in that, before downloading the second version of OUC, the method further includes:以固定的时间间隔向服务器发送第一消息,所述第一消息用于询问所述服务器是否生成除所述第一版本之外的其他版本的OUC;Send a first message to the server at a fixed time interval, the first message being used to ask the server whether to generate other versions of OUC except the first version;接收第二消息,所述第二消息指示所述服务器已生成所述第二版本的OUC。A second message is received indicating that the server has generated the second version of the OUC.7.根据权利要求6所述的方法,其特征在于,在将所述第二版本的OUC安装至第一目录之前,所述方法还包括:7. The method according to claim 6, characterized in that, before installing the second version of OUC to the first directory, the method further includes:卸载所述第一版本的OUC。Uninstall the first version of OUC.8.一种电子设备,其特征在于,所述电子设备包括存储器、一个或多个处理器;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如权利要求1-7中任一项所述的方法。8. An electronic device, characterized in that the electronic device includes a memory and one or more processors; the memory is coupled to the one or more processors, and the memory is used to store computer program code, so The computer program code includes computer instructions that are invoked by the one or more processors to cause the electronic device to perform the method of any one of claims 1-7.9.一种芯片,所述芯片应用于电子设备,其特征在于,所述芯片包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如权利要求1-7中任一项所述的方法。9. A chip, the chip is used in electronic equipment, characterized in that the chip includes one or more processors, the processor is used to call computer instructions to cause the electronic equipment to execute claims 1-7 any one of the methods.10.一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-7中任一项所述的方法。10. A computer-readable storage medium comprising instructions, characterized in that when the instructions are run on an electronic device, the electronic device is caused to perform the method according to any one of claims 1-7.
CN202311160473.3A2023-09-112023-09-11 Method and related device for displaying notification informationActiveCN117009023B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202311160473.3ACN117009023B (en)2023-09-112023-09-11 Method and related device for displaying notification information

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202311160473.3ACN117009023B (en)2023-09-112023-09-11 Method and related device for displaying notification information

Publications (2)

Publication NumberPublication Date
CN117009023A CN117009023A (en)2023-11-07
CN117009023Btrue CN117009023B (en)2023-12-22

Family

ID=88571128

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202311160473.3AActiveCN117009023B (en)2023-09-112023-09-11 Method and related device for displaying notification information

Country Status (1)

CountryLink
CN (1)CN117009023B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2012216076A (en)*2011-03-312012-11-08Hitachi Solutions LtdTelop type message notification system and method
CN105511727A (en)*2015-12-142016-04-20魅族科技(中国)有限公司Message processing method and device
CN106775615A (en)*2016-10-312017-05-31北京小米移动软件有限公司The method and apparatus of notification message management
CN116048830A (en)*2022-07-222023-05-02荣耀终端有限公司 Method, electronic device and readable storage medium for reminding software version upgrade

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7734704B2 (en)*2006-07-282010-06-08International Business Machines CorporationMethod and system for identifying and automatically redisplaying unread instant messages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2012216076A (en)*2011-03-312012-11-08Hitachi Solutions LtdTelop type message notification system and method
CN105511727A (en)*2015-12-142016-04-20魅族科技(中国)有限公司Message processing method and device
CN106775615A (en)*2016-10-312017-05-31北京小米移动软件有限公司The method and apparatus of notification message management
CN116048830A (en)*2022-07-222023-05-02荣耀终端有限公司 Method, electronic device and readable storage medium for reminding software version upgrade

Also Published As

Publication numberPublication date
CN117009023A (en)2023-11-07

Similar Documents

PublicationPublication DateTitle
RU2766255C1 (en)Voice control method and electronic device
CN113553130A (en)Method for executing drawing operation by application and electronic equipment
US12032938B2 (en)Plug-in installation method, apparatus, and storage medium
CN113568634B (en) Application-optimized processing method and processing device
WO2021185352A1 (en)Version upgrade method and related apparatus
WO2022111664A1 (en)Patching method, related apparatus, and system
CN113485709A (en)Application optimization method and device and electronic equipment
CN117687708B (en) Power-on method and electronic device
WO2023207890A1 (en)Interface display method and electronic device
CN117009023B (en) Method and related device for displaying notification information
CN113885928B (en)Program updating method and electronic device
CN114764316B (en) Focus synchronization method and electronic device
WO2023051357A1 (en)Method for running virtual device
CN117348894A (en) A software upgrade method, terminal equipment and system
CN113467821A (en)Application program repairing method, device, equipment and readable storage medium
CN116048594B (en) Software upgrade method and related devices
CN116795476B (en) A method and electronic device for deleting wallpapers
CN117312055B (en) Data backup method and related device
CN117707563B (en) Application resource processing method and related equipment
CN115952564B (en)Data writing method and terminal equipment
WO2025002248A1 (en)Application running method, electronic device and storage medium
CN117784990A (en)Method and related device for displaying icons of application programs in task bar
WO2024131823A1 (en)Installation-free application upgrading method and electronic device
CN119322622A (en)Application management method, system and related device
WO2025026285A1 (en)Application update system and method, and electronic device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address
CP03Change of name, title or address

Address after:Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after:Honor Terminal Co.,Ltd.

Country or region after:China

Address before:3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before:Honor Device Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp