CN106845247B - Method and device for synchronizing android system setting on mobile terminal and mobile terminal - Google Patents
Method and device for synchronizing android system setting on mobile terminal and mobile terminal Download PDFInfo
- Publication number
- CN106845247B CN106845247B CN201710024986.XA CN201710024986A CN106845247B CN 106845247 B CN106845247 B CN 106845247B CN 201710024986 A CN201710024986 A CN 201710024986A CN 106845247 B CN106845247 B CN 106845247B
- Authority
- CN
- China
- Prior art keywords
- mode
- normal mode
- setting information
- system setting
- module
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000005540 biological transmission Effects 0.000 claims description 35
- 230000001360 synchronised effect Effects 0.000 claims description 17
- 238000001514 detection method Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 abstract description 22
- 230000006870 function Effects 0.000 description 12
- 238000002955 isolation Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000012546 transfer Methods 0.000 description 3
- 230000001413 cellular effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/57—Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供一种移动终端上同步安卓系统设置的方法、装置和移动终端,该方法包括,从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全;获取普通模式下的系统设置信息;同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。同步安卓系统设置,不仅解决了多种登录模式状态之间不可直接通信导致的数据无法共享的问题,增强了用户的使用体验;而且还简化了用户操作,使用户在保护模式下也能得到同样的个性化体验。在保证安全的同时不影响用户体验,使移动终端变的更加智能化。
The present invention provides a method, device and mobile terminal for synchronizing Android system settings on a mobile terminal. The method includes switching from a normal mode to a protected mode to protect the security of the Android system in the protected mode; System setting information; synchronizing the system setting information in the normal mode to the system setting in the protected mode. Synchronizing Android system settings not only solves the problem that data cannot be shared due to the inability of direct communication between various login modes, and enhances the user experience; it also simplifies user operations, so that users can get the same results in protected mode. personalized experience. While ensuring security, it does not affect user experience, making mobile terminals more intelligent.
Description
技术领域technical field
本发明涉及安卓技术领域,具体而言,本发明涉及一种移动终端上同步安卓系统设置的方法、装置和移动终端。The present invention relates to the technical field of Android, and in particular, the present invention relates to a method, a device and a mobile terminal for synchronizing Android system settings on a mobile terminal.
背景技术Background technique
一些移动终端出于安全考虑,设置了相应的安全保护模式,以保护用户在网上交易、网上支付、银行查询等等场合的安全。例如,360手机的财产隔离系统,该系统一方面通过内置安全应用商店的方式来防止盗取木马、仿冒应用的入侵,从源头上保证了应用的来源安全;另一方面还通过构建专门网络通道,对账户密码等数据进行加密传输,确保数据在传输过程中的安全。同时,还将金融理财等数据进行系统隔离,禁止恶意应用非法读取,从根本上保障了用户支付环境的安全。For security reasons, some mobile terminals have set up corresponding security protection modes to protect the security of users in online transactions, online payments, bank inquiries and other occasions. For example, the property isolation system of 360 mobile phone, on the one hand, the system uses a built-in security application store to prevent the intrusion of stealing Trojans and counterfeit applications, and ensures the security of the source of applications from the source; on the other hand, it also builds a special network channel. , to encrypt and transmit data such as account passwords to ensure the security of data during transmission. At the same time, financial management and other data are systematically isolated to prohibit illegal reading by malicious applications, which fundamentally guarantees the security of the user's payment environment.
但是当用户在进行支付、收款、转账等与金融数据传输安全相关的操作时,系统切换到保护模式,由于各登录模式之间是相互独立、互不干扰的,所以普通模式下的用户个性化系统设置并不能应用在该保护模式下,保护模式下的系统设置还是保持系统默认的出厂设置,给用户带来了很大的不便。However, when the user is performing operations related to the security of financial data transmission, such as payment, collection, transfer, etc., the system switches to the protection mode. The system settings cannot be applied in the protection mode, and the system settings in the protection mode are still kept at the default factory settings of the system, which brings great inconvenience to the user.
发明内容SUMMARY OF THE INVENTION
本发明提供一种移动终端上同步安卓系统设置的方法、装置和移动终端;可以同步不同模式下的系统设置。The present invention provides a method, device and mobile terminal for synchronizing Android system settings on a mobile terminal; system settings in different modes can be synchronized.
本发明提供一种移动终端上同步安卓系统设置的方法,包括如下步骤:The present invention provides a method for synchronizing Android system settings on a mobile terminal, comprising the following steps:
从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全;;Switch from normal mode to protected mode to protect the security of the Android system in said protected mode;
获取普通模式下的系统设置信息;Get system setting information in normal mode;
同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。Synchronizing the system setting information in the normal mode to the system setting in the protected mode.
在其中一个实施例中,所述从普通模式切换到保护模式包括:In one of the embodiments, the switching from the normal mode to the protected mode includes:
从普通账号登录模式切换到保护账号登录模式。Switch from the normal account login mode to the protected account login mode.
在其中一个实施例中,所述从普通账号登录模式切换到保护账号登录模式包括:In one embodiment, the switching from the normal account login mode to the protected account login mode includes:
调用ActivityManager类中的switchUser(),从普通账号登录模式切换到保护账号登录模式。Call switchUser() in the ActivityManager class to switch from the normal account login mode to the protected account login mode.
所述获取普通模式下的系统设置信息之前,还包括:Before acquiring the system setting information in the normal mode, the method further includes:
发出同步普通模式下的系统设置的提示信息;Send out a prompt message for synchronizing system settings in normal mode;
获取用于确认同步的指令。Get the command to confirm synchronization.
在其中一个实施例中,所述获取普通模式下的系统设置信息包括:In one embodiment, the acquiring the system setting information in the normal mode includes:
确定欲同步的具体条目;Determine the specific items to be synchronized;
获取所述具体条目的普通模式下的系统设置信息。Obtain the system setting information of the specific entry in the normal mode.
在其中一个实施例中,所述确定欲同步的具体条目,包括:In one of the embodiments, the determining a specific item to be synchronized includes:
发出普通模式下的系统设置信息的信息列表选择提示;Send out a message list selection prompt for system setting information in normal mode;
获取用户输入的选择指令。Get the selection command entered by the user.
在其中一个实施例中,所述系统设置信息包括:来电提示信息、锁屏界面信息、锁屏密码信息、屏幕显示信息、联系人信息。In one embodiment, the system setting information includes: incoming call prompt information, screen lock interface information, screen lock password information, screen display information, and contact information.
在其中一个实施例中,所述同步所述普通模式下的系统设置信息至所述保护模式下的安卓系统,包括:In one embodiment, the synchronizing the system setting information in the normal mode to the Android system in the protected mode includes:
逐条判断所述系统设置信息是否影响金融数据传输安全;Determine whether the system setting information affects the security of financial data transmission one by one;
若不影响金融数据传输安全,则把该条所述系统设置信息同步到所述保护模式下的安卓系统。If the security of financial data transmission is not affected, the system setting information in this article is synchronized to the Android system in the protection mode.
在其中一个实施例中,所述逐条判断所述系统设置信息是否影响金融数据传输安全,包括:In one embodiment, the step-by-step determination of whether the system setting information affects the security of financial data transmission includes:
根据是否关联资金相关应用的运行作为判断安全依据,逐条判断所述系统设置信息是否影响金融数据传输安全。Whether the system setting information affects the security of financial data transmission is judged item by item according to whether the operation of the associated fund-related application is used as the basis for judging the security.
在其中一个实施例中,所述获取普通模式下的系统设置信息之前,还包括:In one of the embodiments, before acquiring the system setting information in the normal mode, the method further includes:
检测到普通模式下的系统设置发生变化则发出是否要重新同步普通模式下的系统设置的提示信息;If it detects that the system settings in the normal mode have changed, it will issue a prompt message whether to resynchronize the system settings in the normal mode;
若接收到重新同步指令,继续所述获取普通模式下的系统设置信息的步骤;If a resynchronization instruction is received, continue the step of obtaining the system setting information in the normal mode;
若接收到不重新同步指令,存储该不重新同步指令对应的选择,以作为下一次检测到普通模式下的系统设置发生更改时的选择。If a non-resynchronization instruction is received, the selection corresponding to the non-resynchronization instruction is stored as the selection when it is detected that the system setting in the normal mode is changed next time.
本发明还提供一种移动终端上同步安卓系统设置的装置,其包括:The present invention also provides a device for synchronizing Android system settings on a mobile terminal, comprising:
切换模块,用于从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全;;a switching module for switching from the normal mode to the protected mode to protect the security of the Android system in the protected mode;
第一获取模块,用于获取普通模式下的系统设置信息;The first acquisition module is used to acquire the system setting information in the normal mode;
第一同步模块,用于同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。The first synchronization module is used for synchronizing the system setting information in the normal mode to the system setting in the protected mode.
在其中一个实施例中,所述切换模块还用于:In one of the embodiments, the switching module is further used for:
安卓系统从普通账号登录模式切换到保护账号登录模式。The Android system switches from the normal account login mode to the protected account login mode.
在其中一个实施例中,所述切换模块还用于:In one of the embodiments, the switching module is further used for:
安卓系统通过调用ActivityManager类中的switchUser(),从普通账号登录模式切换到保护账号登录模式。The Android system switches from the normal account login mode to the protected account login mode by calling switchUser() in the ActivityManager class.
在其中一个实施例中,所述第一提示模块具体用于获取普通模式下的系统设置信息之前,发出同步普通模式下的系统设置的提示信息;In one of the embodiments, the first prompt module is specifically configured to issue prompt information for synchronizing the system settings in the normal mode before acquiring the system settings in the normal mode;
获取模块,用于获取用于确认同步的指令。Get module, used to get the command to confirm synchronization.
在其中一个实施例中,所述第一获取模块,具体用于确定欲同步的具体条目,获取所述具体条目的普通模式下的系统设置信息。In one embodiment, the first acquiring module is specifically configured to determine a specific item to be synchronized, and acquire system setting information of the specific item in the normal mode.
在其中一个实施例中,所述第一获取模块包括以下模块:In one of the embodiments, the first obtaining module includes the following modules:
选择子模块,用于发出普通模式下的系统设置信息的信息列表选择提示;The selection sub-module is used to issue the information list selection prompt of the system setting information in the normal mode;
第一获取子模块,用于获取用户输入的选择指令。The first obtaining submodule is used to obtain the selection instruction input by the user.
在其中一个实施例中,所述系统设置信息包括:来电提示信息、锁屏界面信息、锁屏密码信息、屏幕显示信息、联系人信息。In one embodiment, the system setting information includes: incoming call prompt information, screen lock interface information, screen lock password information, screen display information, and contact information.
在其中一个实施例中,所述第一同步模块,包括以下模块:In one embodiment, the first synchronization module includes the following modules:
判断子模块,用于逐条判断所述系统设置信息是否影响金融数据传输安全;A judging sub-module for judging one by one whether the system setting information affects the security of financial data transmission;
第一同步子模块,用于在不影响金融数据传输安全时把该条所述系统设置信息同步到所述保护模式下的安卓系统。The first synchronization sub-module is used for synchronizing the system setting information of this piece to the Android system in the protection mode without affecting the security of financial data transmission.
在其中一个实施例中,所述判断子模块,具有用于根据是否关联资金相关应用的运行作为判断安全依据,逐条判断所述系统设置信息是否影响金融数据传输安全。In one embodiment, the judging sub-module is configured to judge whether the system setting information affects the security of financial data transmission one by one according to whether the operation of the related fund-related application is used as the basis for judging the security.
在其中一个实施例中,所述第一获取模块之前,还包括:In one embodiment, before the first obtaining module, further includes:
第二提示模块,用于检测到普通模式下的系统设置发生变化时则发出是否要重新同步普通模式下的系统设置的提示信息;;The second prompt module is used to issue a prompt message whether to re-synchronize the system settings in the normal mode when the system settings in the normal mode are changed;
接收模块,用于若接收到重新同步指令,继续所述获取普通模式下的系统设置信息的步骤;a receiving module, configured to continue the step of obtaining the system setting information in the normal mode if the resynchronization instruction is received;
若接收到不重新同步指令,存储该不重新同步指令对应的选择,以作为下一次检测到普通模式下的系统设置发生更改时的选择。If a non-resynchronization instruction is received, the selection corresponding to the non-resynchronization instruction is stored as the selection when it is detected that the system setting in the normal mode is changed next time.
本发明还提供一种移动终端,其包括:The present invention also provides a mobile terminal, which includes:
一个或多个处理器;one or more processors;
存储器;memory;
一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的移动终端上同步安卓系统设置的方法。one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to perform the above A method of synchronizing Android system settings on a mobile terminal.
本技术方案中,从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全;获取普通模式下的系统设置信息;同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。在一些实施例中,系统从普通模式进入保护模式,是通过系统的多用户模式实现的。即系统处于普通账号登陆时为普通模式,系统处于保护账号登录时为保护模式,系统从普通模式进入保护模式即相当于系统从普通账号登录模式切换到保护账号登录模式。多用户模式下用户间存在一定的数据隔离,从而使系统个性化设置无法应用在保护模式下,本技术方案的同步安卓系统设置,不仅解决了多种登录模式之间不可直接通信导致的数据无法共享的问题,增强了用户的使用体验;而且还简化了用户操作,使用户在保护模式下也能得到同样的个性化体验。在保证安全的同时不影响用户体验,使移动终端变的更加智能化。In this technical solution, switch from normal mode to protected mode to protect the security of the Android system in the protected mode; obtain system setting information in the normal mode; synchronize the system setting information in the normal mode to the protected mode under System Settings. In some embodiments, the system enters the protected mode from the normal mode through the multi-user mode of the system. That is, the system is in normal mode when the normal account is logged in, and the protected mode is when the system is in the protected account login. When the system enters the protected mode from the normal mode, it is equivalent to the system switching from the normal account login mode to the protected account login mode. In the multi-user mode, there is a certain data isolation between users, so that the system personalized settings cannot be applied in the protected mode. The synchronization of the Android system settings in this technical solution not only solves the problem of data inability caused by the inability to communicate directly between multiple login modes. The problem of sharing enhances the user experience; it also simplifies the user operation, so that the user can get the same personalized experience in the protected mode. While ensuring security, it does not affect user experience, making mobile terminals more intelligent.
本发明附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth in part in the following description, which will be apparent from the following description, or may be learned by practice of the present invention.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1为本发明一个实施例的移动终端上同步安卓系统设置的方法流程图;1 is a flowchart of a method for synchronizing Android system settings on a mobile terminal according to an embodiment of the present invention;
图2为本发明另一实施例的移动终端上同步安卓系统设置的方法流程图;2 is a flowchart of a method for synchronizing Android system settings on a mobile terminal according to another embodiment of the present invention;
图3为本发明的移动终端上同步安卓系统设置的模块示意图;3 is a schematic diagram of a module for synchronizing Android system settings on a mobile terminal of the present invention;
图4示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。FIG. 4 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but not to be construed as a limitation of the present invention.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。It will be understood by those skilled in the art that the singular forms "a", "an", "the" and "the" as used herein can include the plural forms as well, unless expressly stated otherwise. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of stated features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components and/or groups thereof. It will be understood that when we refer to an element as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Furthermore, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combination of one or more of the associated listed items.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in a general dictionary, should be understood to have meanings consistent with their meanings in the context of the prior art and, unless specifically defined as herein, should not be interpreted in idealistic or overly formal meaning to explain.
本技术领域技术人员可以理解,这里所使用的“终端”、“终端设备”既包括无线信号接收器的设备,其仅具备无发射能力的无线信号接收器的设备,又包括接收和发射硬件的设备,其具有能够在双向通信链路上,执行双向通信的接收和发射硬件的设备。这种设备可以包括:蜂窝或其他通信设备,其具有单线路显示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备;PCS(Personal Communications Service,个人通信系统),其可以组合语音、数据处理、传真和/或数据通信能力;PDA(Personal Digital Assistant,个人数字助理),其可以包括射频接收器、寻呼机、互联网/内联网访问、网络浏览器、记事本、日历和/或GPS(Global Positioning System,全球定位系统)接收器;常规膝上型和/或掌上型计算机或其他设备,其具有和/或包括射频接收器的常规膝上型和/或掌上型计算机或其他设备。这里所使用的“终端”、“终端设备”可以是便携式、可运输、安装在交通工具(航空、海运和/或陆地)中的,或者适合于和/或配置为在本地运行,和/或以分布形式,运行在地球和/或空间的任何其他位置运行。这里所使用的“终端”、“终端设备”还可以是通信终端、上网终端、音乐/视频播放终端,例如可以是PDA、MID(Mobile Internet Device,移动互联网设备)和/或具有音乐/视频播放功能的移动电话,也可以是智能电视、机顶盒等设备。Those skilled in the art can understand that the "terminal" and "terminal device" used here include both a wireless signal receiver device that only has a wireless signal receiver without transmission capability, and a device that includes receiving and transmitting hardware. A device having receive and transmit hardware capable of performing two-way communications over a two-way communication link. Such equipment may include: cellular or other communication equipment, which has a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which can combine voice, data Processing, fax and/or data communication capabilities; PDA (Personal Digital Assistant), which may include a radio frequency receiver, pager, Internet/Intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System) receiver; conventional laptop and/or palmtop computer or other device having and/or including a conventional laptop and/or palmtop computer or other device with a radio frequency receiver. As used herein, "terminal", "terminal equipment" may be portable, transportable, mounted in a vehicle (air, marine and/or land), or adapted and/or configured to operate locally, and/or In distributed form, run at any other location on Earth and/or in space. The "terminal" and "terminal device" used here can also be a communication terminal, an Internet terminal, and a music/video playing terminal, such as a PDA, a MID (Mobile Internet Device) and/or a music/video playing terminal. It can also be a smart TV, a set-top box and other devices.
本技术领域技术人员可以理解,这里所使用的远端网络设备,其包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云。在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。本发明的实施例中,远端网络设备、终端设备与WNS服务器之间可通过任何通信方式实现通信,包括但不限于,基于3GPP、LTE、WIMAX的移动通信、基于TCP/IP、UDP协议的计算机网络通信以及基于蓝牙、红外传输标准的近距无线传输方式。Those skilled in the art can understand that the remote network device used here includes, but is not limited to, a computer, a network host, a single network server, a set of multiple network servers, or a cloud composed of multiple servers. Here, the cloud is composed of a large number of computers or network servers based on cloud computing, wherein cloud computing is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets. In the embodiment of the present invention, the communication between the remote network device, the terminal device and the WNS server can be implemented by any communication method, including but not limited to, mobile communication based on 3GPP, LTE, and WIMAX, and communication based on TCP/IP and UDP protocols. Computer network communication and short-range wireless transmission based on Bluetooth and infrared transmission standards.
在以下的描述中,系统是移动终端的操作系统,例如安卓系统。在以下的描述中,以安卓系统作为示例性说明。In the following description, the system is the operating system of the mobile terminal, such as the Android system. In the following description, the Android system is used as an example.
请参考图1,其是本发明实施例提供的移动终端上同步安卓系统设置的方法一个实施例的方法流程图。Please refer to FIG. 1 , which is a method flowchart of an embodiment of a method for synchronizing Android system settings on a mobile terminal provided by an embodiment of the present invention.
本发明提供一种移动终端上同步安卓系统设置的方法,包括如下步骤:The present invention provides a method for synchronizing Android system settings on a mobile terminal, comprising the following steps:
步骤S101:从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全。Step S101: Switch from the normal mode to the protected mode, so as to protect the security of the Android system in the protected mode.
与WINDOWS系统的多用户模式类似,安卓系统中也支持多用户模式,不同用户登陆下的系统中的用户数据相互独立,相互间不受影响。因此,系统处于普通账号登陆时为普通模式,系统处于保护账号登录时为保护模式,该保护模式是指进行关乎金融数据传输安全操作时自动切换的安全防护系统。系统从普通模式切换到保护模式即相当于系统从普通账号登录模式切换到保护账号登录模式。不同账号的用户设置各不相同,并且不同账号用户安装的应用及应用数据也不相同。但是系统中和硬件相关的设置则是共用的,例如网络设置等。Similar to the multi-user mode of the WINDOWS system, the Android system also supports the multi-user mode. The user data in the system under the login of different users are independent of each other and are not affected by each other. Therefore, the system is in the normal mode when the ordinary account is logged in, and the protected mode is when the system is in the protected account login. The protection mode refers to the security protection system that automatically switches when performing safe operations related to financial data transmission. Switching the system from the normal mode to the protected mode is equivalent to switching the system from the normal account login mode to the protected account login mode. The user settings of different accounts are different, and the apps and app data installed by users of different accounts are also different. However, hardware-related settings in the system are shared, such as network settings.
当用户在进行支付、收款、转账等与金融数据传输安全相关的操作时,系统从普通模式切换到保护模式即该系统从普通账号登录状态切换到保护账号登录状态。在安卓系统中,调用ActivityManager类中的switchUser()方法以实现从普通账号登录模式切换到保护账号登录模式。When the user is performing operations related to the security of financial data transmission, such as payment, collection, transfer, etc., the system switches from the normal mode to the protected mode, that is, the system switches from the normal account login state to the protected account login state. In the Android system, call the switchUser() method in the ActivityManager class to switch from the normal account login mode to the protected account login mode.
步骤S102:获取普通模式下的系统设置信息。Step S102: Acquire system setting information in the normal mode.
当系统从普通账号登录模式切换到保护账号登录模式后,该保护账号下的系统设置信息为默认系统设置信息,在获取普通模式下的系统设置信息之前,系统会发出是否要同步普通模式下的系统设置的提示信息,当获取到确认同步的指令。则继续该获取普通模式下的系统设置信息的步骤。如果获取到的指令为否,则根据默认系统设置信息设置该普通账号登录的安卓系统。When the system switches from the normal account login mode to the protected account login mode, the system setting information under the protection account is the default system setting information. The prompt information set by the system, when the command to confirm synchronization is obtained. Then continue with the step of acquiring the system setting information in the normal mode. If the obtained instruction is no, set the Android system that the ordinary account logs in according to the default system setting information.
获取普通模式下的系统设置信息包括确定欲同步的具体条目,并获取该具体条目的普通模式下的系统设置信息。当获取并执行确认同步的指令之后,系统会发出普通模式下的系统设置信息的信息列表选择提示,该列表罗列了所有的个性化系统设置信息,包括:来电提示信息、锁屏界面信息、锁屏密码信息、屏幕显示信息、联系人信息。用户可根据个人习惯选择想要同步的具体条目,当系统获取了用户输入的选择指令即根据选择的具体条目预设关键字,逐项调用普通模式下的对应服务层提供的接口,读取出关键字所对应的各具体条目的值并保存在终端的共享存储区,该共享存储区可设置于云端服务器和/或终端存储区内,如将SD卡/ROM等上划分出的一定大小的存储空间(如文件夹“D:共享”)作为共享存储区。Acquiring the system setting information in the normal mode includes determining a specific item to be synchronized, and acquiring the system setting information in the normal mode of the specific item. After obtaining and executing the command to confirm synchronization, the system will issue a message list selection prompt for system setting information in normal mode, which lists all personalized system setting information, including: incoming call prompt information, lock screen On-screen password information, on-screen display information, and contact information. The user can select the specific item to be synchronized according to personal habits. When the system obtains the selection instruction input by the user, it presets the keyword according to the selected specific item, calls the interface provided by the corresponding service layer in the normal mode item by item, and reads the output. The value of each specific entry corresponding to the keyword is stored in the shared storage area of the terminal, and the shared storage area can be set in the cloud server and/or the terminal storage area, such as a certain size divided on SD card/ROM, etc. A storage space (such as the folder "D:Shared") acts as a shared storage area.
步骤S103:同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。Step S103: Synchronize the system setting information in the normal mode to the system setting in the protected mode.
获取到普通模式下的系统设置信息并保存至共享存储区后,终端可以将该共享存储区的属性设置为所有系统都可以访问读写,或者也可以设置密码,以实现普通账号登录系统与保护账号登录系统之间的通信。普通账号登录系统可以根据数据调用请求所携带的用户输入的密码来验证用户是否合法,如果用户合法,则可以读取共享存储区内的设置信息,如果不合法,则不能读取共享存储区内的设置信息。After obtaining the system setting information in normal mode and saving it to the shared storage area, the terminal can set the properties of the shared storage area to allow all systems to access, read and write, or set a password to log in to the system with an ordinary account and protect it. Communication between account login systems. The ordinary account login system can verify whether the user is legal according to the password entered by the user carried in the data call request. If the user is legal, the setting information in the shared storage area can be read, and if it is not legal, the shared storage area cannot be read. setting information.
当以合法用户身份获取到共享存储区内的设置信息后,根据该设置信息是否关联资金相关应用的运行作为判断安全的依据,逐条判断该系统设置信息是否影响金融数据传输安全。若不影响金融数据传输安全,则把该条系统设置信息同步到该保护模式下的安卓系统。After obtaining the setting information in the shared storage area as a legal user, according to whether the setting information is related to the operation of funds-related applications as the basis for judging the security, it is judged one by one whether the system setting information affects the security of financial data transmission. If the security of financial data transmission is not affected, the system setting information is synchronized to the Android system in the protection mode.
由于用户在普通模式下使用终端的过程中,经常会更新终端的系统设置,例如用户的手机铃声会随着音乐的流行趋势不断发生更新,循环监听系统的设置信息数据库,当检测到普通模式下的系统设置发生更改后,系统会发出是否重新同步普通模式下的系统设置的提示信息,若接收到重新同步指令,继续该获取普通模式下的系统设置信息的步骤;若接收到不重新同步指令,则存储该不重新同步指令对应的选择,以作为下一次检测到普通模式下的系统设置发生更改时的选择。Since the user uses the terminal in the normal mode, the system settings of the terminal are often updated. For example, the user's mobile phone ringtone will be updated continuously with the trend of music, and the setting information database of the system will be monitored cyclically. When the normal mode is detected After the system settings are changed, the system will send out a prompt message whether to resynchronize the system settings in the normal mode. If a resynchronization command is received, continue with the steps to obtain the system settings in the normal mode; if no resynchronization command is received , the selection corresponding to the non-resynchronization instruction is stored as the selection when it is detected that the system settings in the normal mode are changed next time.
综上,本发明实施例的移动终端上同步安卓系统设置的方法,由于多用户模式下用户间存在一定的数据隔离,从而使系统个性化设置无法应用在保护模式下,本技术方案的同步安卓系统设置,不仅解决了多种登录模式之间不可直接通信导致的数据无法共享的问题,增强了用户的使用体验;而且还简化了用户操作,使用户在保护模式下也能得到同样的个性化体验。在保证安全的同时不影响用户体验,使移动终端变的更加智能化。To sum up, the method for synchronizing Android system settings on a mobile terminal according to the embodiment of the present invention has certain data isolation among users in multi-user mode, so that system personalized settings cannot be applied in protected mode. The system setting not only solves the problem of data sharing caused by non-direct communication between multiple login modes, and enhances the user experience; it also simplifies user operations, so that users can get the same personalization in protected mode. experience. While ensuring security, it does not affect user experience, making mobile terminals more intelligent.
请参考图2,其是本发明实施例提供的移动终端上同步安卓系统设置的方法另一个实施例的方法流程图。本实施例是在上一个方法实施例的基础上,主要增加了监听系统设置信息发生更改的方法以及更改后是否同步更新的设置信息的内容。该方法包括:Please refer to FIG. 2 , which is a method flowchart of another embodiment of a method for synchronizing Android system settings on a mobile terminal provided by an embodiment of the present invention. This embodiment is based on the previous method embodiment, and mainly adds a method for monitoring system setting information changes and the content of the setting information whether to be updated synchronously after the changes. The method includes:
步骤S201:从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全。Step S201: Switch from the normal mode to the protected mode, so as to protect the security of the Android system in the protected mode.
用户进行与资金相关的操作时,系统自动切换到保护模式,防止重要信息被盗取。When users perform operations related to funds, the system automatically switches to protection mode to prevent important information from being stolen.
步骤S202:系统发出是否要同步普通模式下更新的系统设置的提示信息。Step S202: The system sends a prompt message whether to synchronize the updated system settings in the normal mode.
设置程序循环监听普通模式下系统各项设置信息的数据库,Configuration类专门用于描述移动终端设备上的设置信息,这些设置信息既包括用户自定义的也包括系统的动态设备设置。程序可调用函数getConfiguration()来获取系统的Configuration对象。如果程序需要监听系统设置的更改,则可以考虑重写Activity的onConfigurationChanged方法,该方法是一个基于回调的事件处理方法,当系统设置发生更改时,该方法会被自动触发。The setting program loops to monitor the database of various setting information of the system in normal mode. The Configuration class is specially used to describe the setting information on the mobile terminal device. These setting information include both user-defined and dynamic device settings of the system. The program can call the function getConfiguration() to obtain the Configuration object of the system. If the program needs to monitor changes in system settings, you can consider overriding Activity's onConfigurationChanged method, which is a callback-based event handling method that is automatically triggered when system settings are changed.
当切换到该保护模式下的系统,即接收到程序推送的系统设置发生更改,是否同步设置的提示信息,点击该提示信息即可出现更改的系统设置的具体条目,用户可以通过浏览该具体条目的列表,判断并选择是否同步更新的设置信息。When switching to the system in this protected mode, that is, receiving a prompt message about whether the system settings pushed by the program are changed and whether to synchronize the settings, click the prompt message to display the specific item of the changed system setting, and the user can browse the specific item by clicking on the prompt message. list, judge and select whether to synchronize the updated setting information.
步骤S203a:执行同步更新的设置信息的输入指令。Step S203a: Execute the input instruction of the synchronously updated setting information.
如果接收到用户触发的重新同步指令,则继续步骤S204。If a user-triggered resynchronization instruction is received, go to step S204.
步骤S203b:存储该不重新同步指令对应的选择。Step S203b: Store the selection corresponding to the non-resynchronization instruction.
如果用户通过浏览该更新的系统设置具体条目的列表,认为对个人使用体验影响不大,或者忙于金融数据的交互无暇处理设置更新,则用户可以选择不同步更新的设置信息,且系统会存储用户输入的该不重新同步指令对应的选择以作为下一次检测到普通模式下的系统设置发生更改时的选择。则直至有新的系统设置发生更改,都不会再跳出提示同步的信息框。当系统设置再次发生更改时则回到步骤S202。If the user browses the updated list of system settings specific items and thinks that it has little impact on personal experience, or is busy interacting with financial data and has no time to update the settings, the user can choose not to synchronize the updated settings information, and the system will store the user The input corresponding to the non-resynchronizing instruction is used as the selection when the system setting in the normal mode is detected to be changed next time. Then, until a new system setting is changed, the information box prompting synchronization will not pop up again. When the system setting is changed again, go back to step S202.
步骤S204:获取普通模式下的系统设置信息。Step S204: Acquire system setting information in the normal mode.
步骤S205:同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。Step S205: Synchronize the system setting information in the normal mode to the system setting in the protected mode.
综上,本发明实施例的移动终端上同步安卓系统设置的方法,由于多用户模式下用户间存在一定的数据隔离,从而使系统个性化设置无法应用在保护模式下,本技术方案的同步安卓系统设置,不仅解决了多种登录模式之间不可直接通信导致的数据无法共享的问题,增强了用户的使用体验;而且还简化了用户操作,使用户在保护模式下也能得到同样的个性化体验。在保证安全的同时不影响用户体验,使移动终端变的更加智能化。To sum up, the method for synchronizing Android system settings on a mobile terminal according to the embodiment of the present invention has certain data isolation among users in multi-user mode, so that system personalized settings cannot be applied in protected mode. The system setting not only solves the problem of data sharing caused by non-direct communication between multiple login modes, and enhances the user experience; it also simplifies user operations, so that users can get the same personalization in protected mode. experience. While ensuring security, it does not affect user experience, making mobile terminals more intelligent.
请参考图3,其是本发明实施例提供的移动终端上同步安卓系统设置一个实施例的模块示意图。Please refer to FIG. 3 , which is a schematic block diagram of an embodiment of synchronizing Android system settings on a mobile terminal according to an embodiment of the present invention.
与上述移动终端上同步安卓系统设置的方法相对应,本发明还提供一种移动终端上同步安卓系统设置的装置,其包括:切换模块301、第一获取模块302、第一同步模块303。Corresponding to the above method for synchronizing Android system settings on a mobile terminal, the present invention also provides a device for synchronizing Android system settings on a mobile terminal, which includes: a switching
切换模块301用于从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全;第一获取模块302用于获取普通模式下的系统设置信息;第一同步模块303用于同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。The
切换模块301:从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全。Switching module 301: Switch from the normal mode to the protected mode to protect the security of the Android system in the protected mode.
与WINDOWS系统的多用户模式类似,安卓系统中也支持多用户模式,不同用户登陆下的系统中的用户数据相互独立,相互间不受影响。因此,系统处于普通账号登陆时为普通模式,系统处于保护账号登录时为保护模式,该保护模式是指进行关乎金融数据传输安全操作时自动切换的安全防护系统。切换模块301从普通模式切换到保护模式即相当于系统从普通账号登录模式切换到保护账号登录模式。不同账号的用户设置各不相同,并且不同账号用户安装的应用及应用数据也不相同。但是系统中和硬件相关的设置则是共用的,例如网络设置等。Similar to the multi-user mode of the WINDOWS system, the Android system also supports the multi-user mode. The user data in the system under the login of different users are independent of each other and are not affected by each other. Therefore, the system is in the normal mode when the ordinary account is logged in, and the protected mode is when the system is in the protected account login. The protection mode refers to the security protection system that automatically switches when performing safe operations related to financial data transmission. Switching the
当用户在进行支付、收款、转账等与金融数据传输安全相关的操作时,切换模块301从普通模式切换到保护模式即该系统从普通账号登录状态切换到保护账号登录状态。在安卓系统中,调用ActivityManager类中的switchUser()方法以实现从普通账号登录模式切换到保护账号登录模式。When the user performs operations related to financial data transmission security such as payment, collection, transfer, etc., the
第一获取模块302用于获取普通模式下的系统设置信息。The first obtaining
当切换模块301从普通账号登录模式切换到保护账号登录模式后,该保护账号下的系统设置信息为默认系统设置信息,在第一获取模块302获取普通模式下的系统设置信息之前,第一提示模块会发出是否要同步普通模式下的系统设置的提示信息,当获取模块获取到确认同步的指令。则继续该第一获取模块302获取普通模式下的系统设置信息的步骤。如果获取模块获取到的指令为否,则根据默认系统设置信息设置该普通账号登录的安卓系统。After the
第一获取模块302获取普通模式下的系统设置信息包括确定欲同步的具体条目,并获取该具体条目的普通模式下的系统设置信息。当第一获取模块302获取并执行确认同步的指令之后,选择子模块会发出普通模式下的系统设置信息的信息列表选择提示,该列表罗列了所有的个性化系统设置信息,包括:来电提示信息、锁屏界面信息、锁屏密码信息、屏幕显示信息、联系人信息。用户可根据个人习惯选择想要同步的具体条目,当第一获取子模块获取了用户输入的选择指令即根据选择的具体条目预设关键字,逐项调用普通模式下的对应服务层提供的接口,读取出关键字所对应的各具体条目的值并保存在终端的共享存储区,该共享存储区可设置于云端服务器和/或终端存储区内,如将SD卡/ROM等上划分出的一定大小的存储空间(如文件夹“D:共享”)作为共享存储区。The first acquiring
第一同步模块303用于同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。The
第一获取模块302获取到普通模式下的系统设置信息并保存至共享存储区后,第一同步模块303可以将该共享存储区的属性设置为所有系统都可以访问读写,或者也可以设置密码,以实现普通账号登录系统与保护账号登录系统之间的通信。普通账号登录系统可以根据数据调用请求所携带的用户输入的密码来验证用户是否合法,如果用户合法,则可以读取共享存储区内的设置信息,如果不合法,则不能读取共享存储区内的设置信息。After the
当以合法用户身份获取到共享存储区内的设置信息后,判断子模块根据该设置信息是否关联资金相关应用的运行作为判断安全的依据,逐条判断该系统设置信息是否影响金融数据传输安全。若不影响金融数据传输安全,则第一同步子模块把该条系统设置信息同步到该保护模式下的安卓系统。After obtaining the setting information in the shared storage area as a legal user, the judging sub-module judges whether the system setting information affects the security of financial data transmission item by item according to whether the setting information is related to the operation of the fund-related application as the basis for judging the security. If the security of financial data transmission is not affected, the first synchronization sub-module synchronizes the piece of system setting information to the Android system in the protection mode.
由于用户在普通模式下使用终端的过程中,经常会更新终端的系统设置,例如用户的手机铃声会随着音乐的流行趋势不断发生更新,第二提示模块循环监听系统的设置信息数据库,当检测到普通模式下的系统设置发生更改后,则会发出是否重新同步普通模式下的系统设置的提示信息,若接收模块接收到重新同步指令,继续该获取普通模式下的系统设置信息的步骤;若接收模块接收到不重新同步指令,则存储该不重新同步指令对应的选择,以作为下一次检测到普通模式下的系统设置发生更改时的选择。Since the user is using the terminal in the normal mode, the system settings of the terminal are often updated. For example, the user's mobile phone ringtone will be continuously updated with the trend of music. The second prompt module cyclically monitors the system's setting information database. After the system settings in the normal mode are changed, a prompt message will be sent to indicate whether to resynchronize the system settings in the normal mode. If the receiving module receives the resynchronization command, continue with the steps to obtain the system settings in the normal mode; if When the receiving module receives the non-resynchronization instruction, the selection corresponding to the non-resynchronization instruction is stored as the selection when it is detected that the system setting in the normal mode is changed next time.
综上,本发明实施例的移动终端上同步安卓系统设置的方法,由于多用户模式下用户间存在一定的数据隔离,从而使系统个性化设置无法应用在保护模式下,本技术方案的同步安卓系统设置,不仅解决了多种登录模式之间不可直接通信导致的数据无法共享的问题,增强了用户的使用体验;而且还简化了用户操作,使用户在保护模式下也能得到同样的个性化体验。在保证安全的同时不影响用户体验,使移动终端变的更加智能化。To sum up, the method for synchronizing Android system settings on a mobile terminal according to the embodiment of the present invention has certain data isolation among users in multi-user mode, so that system personalized settings cannot be applied in protected mode. The system setting not only solves the problem of data sharing caused by non-direct communication between multiple login modes, and enhances the user experience; it also simplifies user operations, so that users can get the same personalization in protected mode. experience. While ensuring security, it does not affect user experience, making mobile terminals more intelligent.
本发明实施例还提供了移动终端,如图4所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point ofSales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:The embodiment of the present invention also provides a mobile terminal, as shown in FIG. 4 , for the convenience of description, only the part related to the embodiment of the present invention is shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital assistant), a POS (Point of Sales, a sales terminal), a car computer, etc. The terminal is a mobile phone as an example:
图4示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图4,手机包括:射频(Radio Frequency,RF)电路1510、存储器1520、输入单元1530、显示单元1540、传感器1550、音频电路1560、无线保真(wireless fidelity,WiFi)模块1570、处理器1580、以及电源1590等部件。本领域技术人员可以理解,图4中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 4 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. 4 , the mobile phone includes: a radio frequency (RF)
下面结合图4对手机的各个构成部件进行具体的介绍:The following describes the various components of the mobile phone in detail with reference to Figure 4:
RF电路1510可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1580处理;另外,将设计上行的数据发送给基站。通常,RF电路1510包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路1510还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The
存储器1520可用于存储软件程序以及模块,处理器1580通过运行存储在存储器1520的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
输入单元1530可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1530可包括触控面板1531以及其他输入设备1532。触控面板1531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1531上或在触控面板1531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1580,并能接收处理器1580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1531。除了触控面板1531,输入单元1530还可以包括其他输入设备1532。具体地,其他输入设备1532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元1540可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1540可包括显示面板1541,可选的,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1541。进一步的,触控面板1531可覆盖显示面板1541,当触控面板1531检测到在其上或附近的触摸操作后,传送给处理器1580以确定触摸事件的类型,随后处理器1580根据触摸事件的类型在显示面板1541上提供相应的视觉输出。虽然在图4中,触控面板1531与显示面板1541是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1531与显示面板1541集成而实现手机的输入和输出功能。The
手机还可包括至少一种传感器1550,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1541的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1541和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one
音频电路1560、扬声器1561,传声器1562可提供用户与手机之间的音频接口。音频电路1560可将接收到的音频数据转换后的电信号,传输到扬声器1561,由扬声器1561转换为声音信号输出;另一方面,传声器1562将收集的声音信号转换为电信号,由音频电路1560接收后转换为音频数据,再将音频数据输出处理器1580处理后,经RF电路1510以发送给比如另一手机,或者将音频数据输出至存储器1520以便进一步处理。The
WiFi属于短距离无线传输技术,手机通过WiFi模块1570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了WiFi模块1570,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the
处理器1580是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1520内的软件程序和/或模块,以及调用存储在存储器1520内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1580可包括一个或多个处理单元;优选的,处理器1580可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1580中。The
手机还包括给各个部件供电的电源1590(比如电池),优选的,电源可以通过电源管理系统与处理器1580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 1590 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.
在本发明实施例中,该终端所包括的处理器1580还具有以下功能:从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全;;获取普通模式下的系统设置信息;同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。也即处理器1580具备执行上述的移动终端上同步安卓系统设置的方法,在此不再赘述。In this embodiment of the present invention, the
上述的移动终端上同步安卓系统设置的方法、装置和移动终端,从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全;;获取普通模式下的系统设置信息;同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。本发明实施例的移动终端上同步安卓系统设置的方法,由于多用户模式下用户间存在一定的数据隔离,从而使系统个性化设置无法应用在保护模式下,本技术方案的同步安卓系统设置,不仅解决了多种登录模式之间不可直接通信导致的数据无法共享的问题,增强了用户的使用体验;而且还简化了用户操作,使用户在保护模式下也能得到同样的个性化体验。在保证安全的同时不影响用户体验,使移动终端变的更加智能化。The above-mentioned method, device and mobile terminal for synchronizing Android system settings on a mobile terminal switch from a normal mode to a protected mode to protect the security of the Android system in the protected mode; obtain system setting information in the normal mode; synchronize all The system setting information in the normal mode is added to the system setting in the protected mode. In the method for synchronizing the Android system settings on the mobile terminal according to the embodiment of the present invention, since there is a certain data isolation between users in the multi-user mode, the system personalized settings cannot be applied in the protected mode. The synchronization of the Android system settings in this technical solution, It not only solves the problem that data cannot be shared due to non-direct communication between multiple login modes, and enhances the user experience; it also simplifies user operations, enabling users to get the same personalized experience in protected mode. While ensuring security, it does not affect user experience, making mobile terminals more intelligent.
在一些实施例中,系统从普通模式进入保护模式,是通过系统的多用户模式实现的。即系统处于管理员账号登陆时为普通模式,系统处于普通用户账号登录时为保护模式,系统从普通模式进入保护模式即相当于系统从管理员模式切换到普通用户模式。In some embodiments, the system enters the protected mode from the normal mode through the multi-user mode of the system. That is, the system is in normal mode when the administrator account is logged in, and the system is in protected mode when the system is in the normal user account. Entering the protected mode from the normal mode is equivalent to switching the system from the administrator mode to the normal user mode.
A1、一种移动终端上同步安卓系统设置的方法,包括:A1. A method for synchronizing Android system settings on a mobile terminal, comprising:
从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全;Switch from normal mode to protected mode to protect the security of the Android system in said protected mode;
获取普通模式下的系统设置信息;Get system setting information in normal mode;
同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。Synchronizing the system setting information in the normal mode to the system setting in the protected mode.
A2、根据A1所述的方法,所述从普通模式切换到保护模式包括:A2. The method according to A1, wherein the switching from the normal mode to the protected mode includes:
从普通账号登录模式切换到保护账号登录模式。Switch from the normal account login mode to the protected account login mode.
A3、根据A2所述的方法,所述从普通账号登录模式切换到保护账号登录模式包括:A3. According to the method described in A2, the switching from the normal account login mode to the protected account login mode includes:
调用ActivityManager类中的switchUser(),从普通账号登录模式切换到保护账号登录模式。Call switchUser() in the ActivityManager class to switch from the normal account login mode to the protected account login mode.
A4、根据A1所述的方法,所述获取普通模式下的系统设置信息之前,还包括:A4. The method according to A1, before acquiring the system setting information in the normal mode, further comprising:
发出同步普通模式下的系统设置的提示信息;Send out a prompt message for synchronizing system settings in normal mode;
获取用于确认同步的指令。Get the command to confirm synchronization.
A5、根据A1所述的方法,所述获取普通模式下的系统设置信息包括:A5. According to the method of A1, the acquiring the system setting information in the normal mode includes:
确定欲同步的具体条目;Determine the specific items to be synchronized;
获取所述具体条目的普通模式下的系统设置信息。Obtain the system setting information of the specific entry in the normal mode.
A6、根据A5所述的方法,所述确定欲同步的具体条目,包括:A6. According to the method described in A5, the determining the specific item to be synchronized includes:
发出普通模式下的系统设置信息的信息列表选择提示;Send out a message list selection prompt for system setting information in normal mode;
获取用户输入的选择指令。Get the selection command entered by the user.
A7、根据A1所述的方法,所述系统设置信息包括:来电提示信息、锁屏界面信息、锁屏密码信息、屏幕显示信息、联系人信息。A7. According to the method of A1, the system setting information includes: incoming call prompt information, screen lock interface information, screen lock password information, screen display information, and contact information.
A8、根据A1所述的方法,所述同步所述普通模式下的系统设置信息至所述保护模式下的安卓系统,包括:A8. The method according to A1, wherein the synchronizing the system setting information in the normal mode to the Android system in the protected mode includes:
逐条判断所述系统设置信息是否影响金融数据传输安全;Determine whether the system setting information affects the security of financial data transmission one by one;
若不影响金融数据传输安全,则把该条所述系统设置信息同步到所述保护模式下的安卓系统。If the security of financial data transmission is not affected, the system setting information in this article is synchronized to the Android system in the protection mode.
A9、根据A8所述的方法,所述逐条判断所述系统设置信息是否影响金融数据传输安全,包括:A9. According to the method described in A8, the step of determining whether the system setting information affects the security of financial data transmission includes:
根据是否关联资金相关应用的运行作为判断安全依据,逐条判断所述系统设置信息是否影响金融数据传输安全。Whether the system setting information affects the security of financial data transmission is judged item by item according to whether the operation of the associated fund-related application is used as the basis for judging the security.
A10、根据A1所述的方法,所述获取普通模式下的系统设置信息之前,还包括:A10. The method according to A1, before acquiring the system setting information in the normal mode, further comprising:
检测到普通模式下的系统设置发生变化则发出是否要重新同步普通模式下的系统设置的提示信息;If it detects that the system settings in the normal mode have changed, it will issue a prompt message whether to resynchronize the system settings in the normal mode;
若接收到重新同步指令,继续所述获取普通模式下的系统设置信息的步骤;If a resynchronization instruction is received, continue the step of obtaining the system setting information in the normal mode;
若接收到不重新同步指令,存储该不重新同步指令对应的选择,以作为下一次检测到普通模式下的系统设置发生更改时的选择。If a non-resynchronization instruction is received, the selection corresponding to the non-resynchronization instruction is stored as the selection when it is detected that the system setting in the normal mode is changed next time.
B11、一种移动终端上同步安卓系统设置的装置,包括:B11. A device for synchronizing Android system settings on a mobile terminal, comprising:
切换模块,用于从普通模式切换到保护模式,以保护在所述保护模式下的安卓系统安全;a switching module for switching from the normal mode to the protected mode to protect the security of the Android system in the protected mode;
第一获取模块,用于获取普通模式下的系统设置信息;The first acquisition module is used to acquire the system setting information in the normal mode;
第一同步模块,用于同步所述普通模式下的系统设置信息至所述保护模式下的系统设置中。The first synchronization module is used for synchronizing the system setting information in the normal mode to the system setting in the protected mode.
B12、根据B11所述的装置,所述切换模块还用于:B12. The device according to B11, wherein the switching module is further used for:
安卓系统从普通账号登录模式切换到保护账号登录模式。The Android system switches from the normal account login mode to the protected account login mode.
B13、根据B12所述的装置,所述切换模块还用于:B13. The device according to B12, wherein the switching module is further used for:
安卓系统通过调用ActivityManager类中的switchUser(),从普通账号登录模式切换到保护账号登录模式。The Android system switches from the normal account login mode to the protected account login mode by calling switchUser() in the ActivityManager class.
B14、根据B11所述的装置,还包括:B14. The device according to B11, further comprising:
第一提示模块,用于获取普通模式下的系统设置信息之前,发出同步普通模式下的系统设置的提示信息;The first prompt module is used to send out prompt information for synchronizing the system settings in the normal mode before acquiring the system setting information in the normal mode;
获取模块,用于获取用于确认同步的指令。Get module, used to get the command to confirm synchronization.
B15、根据B11所述的装置,所述第一获取模块,具体用于确定欲同步的具体条目,获取所述具体条目的普通模式下的系统设置信息。B15. The apparatus according to B11, wherein the first acquiring module is specifically configured to determine a specific item to be synchronized, and acquire system setting information of the specific item in a normal mode.
B16、根据B15所述的装置,所述第一获取模块包括:B16. The device according to B15, wherein the first obtaining module includes:
选择子模块,用于发出普通模式下的系统设置信息的信息列表选择提示;The selection sub-module is used to issue the information list selection prompt of the system setting information in the normal mode;
第一获取子模块,用于获取用户输入的选择指令。The first obtaining submodule is used to obtain the selection instruction input by the user.
B17、根据B11所述的装置,所述系统设置信息包括:来电提示信息、锁屏界面信息、锁屏密码信息、屏幕显示信息、联系人信息。B17. The device according to B11, wherein the system setting information includes: incoming call prompt information, screen lock interface information, screen lock password information, screen display information, and contact information.
B18、根据B11所述的装置,所述第一同步模块,包括:B18. The device according to B11, wherein the first synchronization module includes:
判断子模块,用于逐条判断所述系统设置信息是否影响金融数据传输安全;A judging sub-module for judging one by one whether the system setting information affects the security of financial data transmission;
第一同步子模块,用于在不影响金融数据传输安全时把该条所述系统设置信息同步到所述保护模式下的安卓系统。The first synchronization sub-module is used for synchronizing the system setting information of this piece to the Android system in the protection mode without affecting the security of financial data transmission.
B19、根据B18所述的装置,所述判断子模块,具有用于根据是否关联资金相关应用的运行作为判断安全依据,逐条判断所述系统设置信息是否影响金融数据传输安全。B19. The device according to B18, wherein the judging submodule is configured to judge whether the system setting information affects the security of financial data transmission item by item according to whether it is associated with the operation of a fund-related application as a judging security basis.
B20、根据B11所述的装置,还包括:B20. The device according to B11, further comprising:
第二提示模块,用于检测到普通模式下的系统设置发生变化则发出是否重新同步普通模式下的系统设置的提示信息;The second prompt module is used to send out a prompt message whether to resynchronize the system settings in the normal mode after detecting that the system settings in the normal mode have changed;
接收模块,用于若接收到重新同步指令,继续所述获取普通模式下的系统设置信息的步骤;若接收到不重新同步指令,存储该不重新同步指令对应的选择,以作为下一次检测到普通模式下的系统设置发生更改时的选择。The receiving module is used to continue the step of obtaining the system setting information in the normal mode if the resynchronization instruction is received; if the non-resynchronization instruction is received, the selection corresponding to the non-resynchronization instruction is stored as the next detection Selection when system settings are changed in normal mode.
C21、一种移动终端,包括:C21. A mobile terminal, comprising:
一个或多个处理器;one or more processors;
存储器;memory;
一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如A1至A10任一所述的移动终端上同步安卓系统设置的方法。One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to perform such as A method for synchronizing Android system settings on a mobile terminal described in any of A1 to A10.
应该理解的是,虽然图1的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图1中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of FIG. 1 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order and may be performed in other orders. Moreover, at least a part of the steps in FIG. 1 may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution sequence is not necessarily the same. Sequentially, but may be performed alternately or alternately with other steps or at least a portion of sub-steps or stages of other steps.
以上所述仅是本发明的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only some embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
Claims (19)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710024986.XA CN106845247B (en) | 2017-01-13 | 2017-01-13 | Method and device for synchronizing android system setting on mobile terminal and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710024986.XA CN106845247B (en) | 2017-01-13 | 2017-01-13 | Method and device for synchronizing android system setting on mobile terminal and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106845247A CN106845247A (en) | 2017-06-13 |
CN106845247B true CN106845247B (en) | 2020-10-09 |
Family
ID=59123522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710024986.XA Expired - Fee Related CN106845247B (en) | 2017-01-13 | 2017-01-13 | Method and device for synchronizing android system setting on mobile terminal and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106845247B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112085463A (en) * | 2020-08-11 | 2020-12-15 | 广州汽车集团股份有限公司 | Vehicle-mounted voice schedule management device and method and vehicle-mounted terminal |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611021A (en) * | 2015-08-21 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Contact synchronization method and device used for terminal |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130054473A1 (en) * | 2011-08-23 | 2013-02-28 | Htc Corporation | Secure Payment Method, Mobile Device and Secure Payment System |
CN104216761B (en) * | 2013-06-04 | 2017-11-03 | 中国银联股份有限公司 | It is a kind of that the method for sharing equipment is used in the device that can run two kinds of operating system |
CN104618601B (en) * | 2015-02-05 | 2019-01-22 | 深圳酷派技术有限公司 | A kind of data sharing method and multisystem terminal |
CN105635428B (en) * | 2015-03-23 | 2019-04-12 | 西安酷派软件科技有限公司 | Notifier processes method, notifier processes device and terminal |
CN106331178B (en) * | 2016-10-28 | 2019-08-02 | 宇龙计算机通信科技(深圳)有限公司 | A kind of information sharing method and mobile terminal |
-
2017
- 2017-01-13 CN CN201710024986.XA patent/CN106845247B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611021A (en) * | 2015-08-21 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Contact synchronization method and device used for terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106845247A (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106778175B (en) | Interface locking method and device and terminal equipment | |
CN110837327B (en) | Message viewing method and terminal | |
WO2018049897A1 (en) | Data backup method and device | |
WO2018049893A1 (en) | Data transmission method and terminal device | |
CN106657329A (en) | Mobile terminal as well as notification information control method and device | |
WO2020156123A1 (en) | Information processing method and terminal device | |
CN106201484A (en) | The collocation method of application program, device and terminal unit | |
WO2019184631A1 (en) | Information processing method and apparatus, computer-readable storage medium, and terminal | |
CN106598389A (en) | Application program starting method and device and mobile terminal | |
CN103279272B (en) | A kind of method and device starting application program in an electronic | |
JP7324949B2 (en) | Application sharing method, first electronic device and computer readable storage medium | |
CN108537025B (en) | Privacy protection method and device, computer readable storage medium and terminal | |
CN107046595A (en) | Notification information processing method, device and mobile terminal | |
CN106534586A (en) | Mobile terminal and contact person information processing method and device thereof | |
CN107864086B (en) | Information rapid sharing method, mobile terminal and computer readable storage medium | |
CN106506815A (en) | An application enabling method and related equipment | |
WO2019095156A1 (en) | Information search method, terminal, network device, and system | |
CN106874045A (en) | A kind of startup method of application program, device and mobile terminal | |
CN107577933B (en) | Application login method and device, computer equipment and computer readable storage medium | |
CN106203015A (en) | The collocation method of application program, device and terminal unit | |
CN106507357B (en) | Access control method and terminal equipment | |
CN111159738B (en) | Authority configuration method, application login method and device | |
WO2020192415A1 (en) | Permission configuration method and terminal device | |
CN108900692A (en) | Screen display method and device, electronic equipment and computer readable storage medium | |
CN107102913A (en) | Data backup method and device and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20170720 Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801 Applicant after: BEIJING ANYUNSHIJI TECHNOLOGY Co.,Ltd. Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park) Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201009 |
|
CF01 | Termination of patent right due to non-payment of annual fee |