CN112114719B - Application body-splitting method and device - Google Patents

Application body-splitting method and device Download PDF

Info

Publication number
CN112114719B
CN112114719B CN201910532013.6A CN201910532013A CN112114719B CN 112114719 B CN112114719 B CN 112114719B CN 201910532013 A CN201910532013 A CN 201910532013A CN 112114719 B CN112114719 B CN 112114719B
Authority
CN
China
Prior art keywords
application
user
split
self
terminal
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
CN201910532013.6A
Other languages
Chinese (zh)
Other versions
CN112114719A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201910532013.6A priority Critical patent/CN112114719B/en
Publication of CN112114719A publication Critical patent/CN112114719A/en
Application granted granted Critical
Publication of CN112114719B publication Critical patent/CN112114719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an application body-separating method and device. In the application, a desktop starter of a terminal detects an application split gesture for starting a first application; the desktop launcher responds to the application split gesture, installs the first application under a split user, and displays an icon of the split application of the first application in a main page of the terminal, wherein the icon of the split application of the first application is used for launching the first application installed under the split user.

Description

Application body-splitting method and device
Technical Field
The present application relates to the field of terminal technologies, and in particular, to an application differentiation method and apparatus.
Background
Nowadays, in order to meet more demands of users, many terminal manufacturers are increasingly provided with functions of terminals, such as allowing users to differentiate one application, so that a main application and a separate application of one application can be run on the same terminal.
The method supports the application of the application split, and the main application and the split application of the application can be obtained on a terminal after the application split is started. The main application and the separate application of one application can run on one terminal simultaneously, and the data is completely independent and free from interference. For some social type applications, the friends of the user may include the friends on work and the friends in life, and if the application split is started, the friends on work and the friends in life can be separately set in the main application and the split application, so that the main application and the split application of the application can be simultaneously run on one terminal, and data of the friends on work and the friends in life are isolated from each other.
At present, the method for opening the application split is to select and set in options of a system 'setting' page, and the options of the system 'setting' page of the terminal produced by different terminal manufacturers are different, which brings difficulty for users to open the application split.
Disclosure of Invention
The application provides an application body-separating method and a terminal.
In a first aspect, a method for application of a split is provided, including: a desktop starter of a terminal detects an application split gesture for starting a first application; the desktop launcher responds to the application split gesture, installs the first application under a split user, and displays an icon of the split application of the first application in a main page of the terminal, wherein the icon of the split application of the first application is used for launching the first application installed under the split user.
In one possible implementation, the installing the first application under the separate user includes: invoking an interface for installing the avatar application to perform:
creating an application catalog and application data for the avatar application, the application catalog and application data being isolated from a primary application of the first application;
modifying the installation state of the personal application into an installed state;
updating a configuration file of a system record application installation state;
sending a broadcast message of successful installation of the self-body application to other applications or services in the terminal;
and adding the information of the self-body application into an opened self-body application list of a device manager under the self-body user.
Optionally, the method further comprises: the desktop starter detects an application split closing gesture aiming at a first application; the desktop launcher responds to the application split gesture, and calls an interface for unloading the split application to execute:
deleting the application catalog and the application data of the personal application;
modifying the installation state of the personal application into an uninstallation state;
updating a configuration file of a system record application installation state;
sending a broadcast message that the split application uninstalling is successful to other applications or services in the terminal, so that the desktop launcher deletes the split application icon of the first application in the main page of the terminal in response to the broadcast message;
and deleting the information of the self-body application from an opened self-body application list of a device manager under the self-body user.
In one possible implementation, the installing the first application under the separate user includes: the desktop starter acquires user information of the terminal and judges whether a self-service user exists according to the user information of the terminal; the desktop starter responds to the judgment result that no self-service user exists, calls the system service of the terminal to create the self-service user, and installs the first application under the self-service user; or the desktop launcher responds to the judgment result of the presence of the individual user, and the first application is installed under the individual user.
In one possible implementation manner, the method further includes: the desktop starter acquires the information of the first application and judges whether the first application supports the split according to the information of the first application; the desktop launcher, in response to the avatar gesture, installs the first application under an avatar user, including: and the desktop launcher responds to the split gesture and the judgment result that the first application supports the split, and installs the first application under the split user.
In one possible implementation manner, the detecting, by a desktop launcher of the terminal, an application split gesture for a first application, includes: a desktop starter of the terminal detects touch operation of multi-finger pressing and separation on the first application icon; or the desktop starter of the terminal detects that the icon of the first application is dragged to an application split triggering area.
In one possible implementation manner, before installing the first application under the divided user, the method further includes: appointing a device manager for the individual user, wherein the device manager is used for managing the application under the individual user; installing the first application under the split user, comprising: the desktop launcher requests a device manager designated for the avatar user to install the first application under the avatar user.
In a possible implementation manner, the displaying an icon of the avatar application of the first application in a home page of the terminal includes: the desktop starter receives a notification sent by a device manager appointed by the self-identified user, wherein the notification is used for notifying the completion of installation of the first application under the self-identified user, and the device manager is used for managing the application under the self-identified user; and the desktop launcher responds to the notification, creates an icon of the first application under the self-identified user, and displays the icon in a main page of the terminal.
In a second aspect, a terminal is provided, including:
the desktop starter is used for detecting a split-body opening gesture aiming at a first application and calling the application manager to open the split-body in response to the split-body opening gesture;
the application manager responds to the calling of the desktop starter and installs the first application under the personal user;
the desktop launcher is further used for responding to the completion of installation of a first application under the self-identified user, displaying an icon of the self-identified application of the first application in a main page of the terminal, wherein the icon of the self-identified application of the first application is used for launching the first application installed under the self-identified user.
In a third aspect, a terminal is provided, including: a controller, a memory; the memory to store computer instructions; the controller is configured to read computer instructions in the memory and execute the method according to any one of the above first aspects.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon computer instructions which, when run on a computer, cause the computer to perform the method of any of the above first aspects.
In the above embodiment of the application, after the desktop starter of the terminal detects the application split gesture for the first application, the desktop starter responds to the application split gesture for the first application, installs the first application under the split user, and displays the icon of the split application of the first application in the main page of the terminal, so that the split application is opened based on the gesture of the user, and the operation of opening the split application by the user is simplified.
Drawings
Fig. 1 exemplarily shows a block diagram of a hardware configuration of a terminal according to an embodiment;
fig. 2 schematically shows an operating system architecture of the terminal according to an embodiment;
FIGS. 3a and 3b respectively illustrate schematic diagrams of a user interface for applying a split-body operation according to an embodiment;
FIGS. 4a and 4b respectively illustrate schematic diagrams of a user interface for applying a split-body operation according to an embodiment;
fig. 5 illustrates a flow chart of an application avatar according to the present embodiment;
fig. 6 illustrates a schematic structural diagram of a terminal according to the present embodiment.
Detailed Description
The concept to which the present application relates will be first explained below with reference to the drawings. It should be noted that the following descriptions of the concepts are only for the purpose of facilitating understanding of the contents of the present application, and do not represent limitations on the scope of the present application.
The term "module," as used in various embodiments of the present application, may refer to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and/or software code that is capable of performing the functionality associated with that element.
The term "gesture" used in the embodiments of the present application refers to a user behavior used to express an intended idea, action, purpose or result through a change in hand shape or an action such as hand movement.
The term "hardware system" used in the embodiments of the present application may refer to a physical component having computing, controlling, storing, inputting and outputting functions, which is formed by a mechanical, optical, electrical and magnetic device such as an Integrated Circuit (IC), a Printed Circuit Board (PCB) and the like. In various embodiments of the present application, a hardware system may also be referred to as a motherboard (or chip).
The term "middleware" (middleware) used in the embodiments of the present application is an independent system software or service program, and a multisystem architecture can implement resource sharing or information transfer between different systems by using the software. Middleware is software that connects two independent systems. Connected systems, even if they have different interfaces, can still exchange information with each other through middleware.
The embodiment of the application body dividing method can open the application body dividing through the application body dividing opening gesture of a user so as to simplify the processing operation of starting the application body dividing by the user.
After an application split is opened for an application, a main application and a split application (also called an auxiliary application) of the application can be obtained. The primary application refers to an application installed and running under a primary user, and the primary user is a foreground user by default. The separate application refers to an application installed and running under a separate user, and the separate user is a background user. The data of the two users are completely isolated, particularly the account information of the application is completely isolated from the application data, and by means of the function, the main application and the body application can run simultaneously without interference.
In the embodiment of the application, when the application is opened and divided, the installation package (APK) does not need to be analyzed again, and the installation operation can be completed quickly only by modifying the installation state of the application and updating the configuration file. When the separate application is closed, the operation of closing the separate application can be realized only by modifying the installation state and updating the configuration file.
In the embodiment of the present application, the terminal is a device for providing voice and/or data connectivity to a user, and may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices with wireless communication functions, or other processing devices connected to a wireless modem, for example, the terminal may be a smart phone or a tablet computer, etc. The embodiment of the present application does not limit this.
A block diagram of the configuration of a terminal 100 according to an exemplary embodiment is illustrated in fig. 1. As shown in fig. 1, the terminal 100 includes a controller 110, a communicator 130, a user input/output interface 140, a memory 190, and a power supply 180.
The terminal 100 may receive an input operation instruction of a user and perform a processing operation in response to the operation instruction.
The controller 110 includes a processor 112, a RAM 113 and a ROM 114, a communication interface, and a communication bus. The controller 110 is used for controlling the operation and operation of the terminal 100, as well as communication cooperation among internal components and external and internal data processing functions.
The communicator 130 enables communication of control signals and data signals with other devices under the control of the controller 110. Such as: and sending the received user input signal to the display device. The communicator 130 may include at least one of a WiFi module 131, a bluetooth module 132, a Near Field Communication (NFC) module 133, and the like.
A user input/output interface 140, wherein the input interface includes at least one of a microphone 141, a touch pad 142, a sensor 143, a key 144, and the like. Such as: the user can realize the user instruction input function through actions such as voice, touch, gestures, pressing and the like, and the input interface converts the received analog signals into digital signals and converts the digital signals into corresponding instruction signals to be sent to other equipment.
The output interface includes an interface that transmits the received user instruction to the other device. In some embodiments, it may be an infrared interface or a radio frequency interface. Such as: when the infrared signal interface is used, a user input instruction needs to be converted into an infrared control signal according to an infrared control protocol, and the infrared control signal is sent to other equipment through an infrared sending module. The following steps are repeated: when the radio frequency signal interface is used, a user input instruction needs to be converted into a digital signal, then the digital signal is modulated according to a radio frequency control signal modulation protocol, and then the digital signal is sent to other equipment through a radio frequency sending terminal.
In some embodiments, the terminal 100 includes at least one of a communicator 130 and an output interface. The terminal 100 is configured with a communicator 130, such as: the WiFi, Bluetooth, NFC and other modules can transmit the user input command to other equipment through the WiFi protocol, the Bluetooth protocol or the NFC protocol.
A memory 190 for storing various operating programs, data, and applications for driving and controlling the terminal 100 under the control of the controller 110. The memory 190 may store various control signal commands input by a user.
And a power supply 180 for providing operational power support to the various elements of the terminal 100 under the control of the controller 110. A battery and associated control circuitry.
Fig. 2 illustrates a schematic structural diagram of a system of the terminal 100 according to an exemplary embodiment.
As shown in fig. 2, taking the Andriod system as an example, the system architecture is a four-layer structure, and from the upper layer to the lower layer, the application framework layer, the system runtime layer, and the Linux kernel layer are respectively provided.
The application layer includes various applications, wherein the applications related to the embodiments of the present application include a launcher (launcher). The desktop starter is responsible for detecting and recognizing user gestures and refreshing and displaying the body-separated application.
The application framework layer is related to two parts, wherein one part is a middleware (frames) and is responsible for creating a new user (related to recording information such as a new user identifier, a user name and a user state), updating application information (related to information such as an application installation state, version information and operation authority), and the other part is an equipment manager and is responsible for receiving a message of opening or closing an individual user, which is sent by a desktop starter when an application individual opening gesture of the user is detected.
The system operation library layer comprises a Native system library and an android operation. The Native system library includes a plurality of system services, including installd, vold, sdcard, etc. related to the embodiments of the present application. The installd is responsible for creating application data (e.g. data/user/10/android, data/user/10/com.tent.mm) required by the new user to run, the vold (volume daemon) is responsible for creating a directory and mount binding relationship of the new user (e.g. creating a storage space directory/data/media/10 of the new user 10 and mounting an SD card), and the sdcard is responsible for managing a user space of a divided user (e.g. implementing application data isolation by setting user identifications UID and GID for applications under the new user).
The Linux kernel layer, core system services such as security, memory management, process management, network protocols, and driver models all rely on the Linux kernel.
Although fig. 2 describes the system architecture of the terminal 100 in the embodiment of the present application by taking the Andriod system as an example, it should be understood that the terminal 100 in the embodiment of the present application may also adopt other operating system architectures, which is not limited in the present application.
In the embodiment of the present application, an application split starting gesture may be defined, and when the terminal 100 detects the application split starting gesture, the application split may be started, so as to simplify the operation of starting the application split by the user.
Fig. 3a, 3b schematically show the operation of the application-avatar interface of the terminal 100 according to an exemplary embodiment.
As shown in fig. 3a, the main page 200 of the terminal 100 includes a first area 201, a second area 202 and a third area 203. The first area 201 is used for displaying information such as terminal power, network state and the like of the terminal, the second area 202 is used for displaying application icons, and the third area 203 is used for displaying icons of common applications. The first region 201 and the third region 203 are optional regions.
The main page 200 of the terminal 100 may include a plurality of pages, and may be switched between different pages by a sliding touch operation of a user. When switching between different pages, the display contents in the first area 201 and the third area 203 do not change with the switching of the pages.
The second area 202 may include a plurality of application icons, and the application icons may be arranged according to an arrangement manner set by the system, for example, N icons are displayed in each row and M columns of icons are displayed in one page, where M and N are integers greater than 1, respectively.
In the embodiment of the application, a multi-finger press and separate touch operation can be used as a gesture for starting the split application operation. When the user presses the icon of the application 14 with two fingers and slides the two fingers in opposite directions, and the terminal 100 detects that the gesture is an open application split gesture, the application split process is started for the application 14, and the application 14 is installed under the split user.
Alternatively, as the user's finger slides in the opposite direction, the icon of application 14 is copied, and the copied icon will be the icon of the separate application, which is gradually separated from the original icon. When the user lifts the finger and the application avatar process is completed, the icon for the avatar application is displayed in the home page.
Alternatively, the icon of the separate application of application 14 may be displayed behind the icon of application 14, and the icons of application 15 and the subsequent applications may be carried forward backward, as shown in fig. 3 b.
Optionally, a distinguishing mark may be added to the icon of the avatar application of the application 14 to distinguish from the main application of the application 14, for example, a mark of the avatar application may be displayed in the lower right corner of the icon of the avatar application.
Fig. 4a and 4b are schematic diagrams illustrating an operation of the application-avatar interface of the terminal 100 according to an exemplary embodiment.
As shown in fig. 4a, the main page 300 of the terminal 100 includes a first area 301, a second area 302, and a third area 303. The first area 301 is an application management area, which may include application management options (e.g., open application avatar, close application avatar, etc.), the second area 302 is used to display application icons, and the third area 303 is used to display icons of commonly used applications. The third region 303 is an optional region. Optionally, a fourth area may be further included to display information such as power level and network status of the terminal.
The area where the application split-body opening option is located in the first area 301 may be used as a trigger area for opening the application split body, and a touch operation of dragging an application icon to the area by a user is responded, so that the application split body operation is performed on the application.
The main page 300 of the terminal 100 may include a plurality of pages, and may be switched between different pages by a sliding touch operation of a user. When switching between different pages, the display contents in the first area 301 and the third area 303 do not change with the switching of the pages.
The second area 302 may include a plurality of application icons, and the application icons may be arranged according to an arrangement manner set by the system, for example, N icons are displayed in each row and M columns of icons are displayed in one page, where M and N are integers greater than 1, respectively.
When the user drags the icon of the application 14 to the area where the "open application split" option is located in the first area and lifts the finger, the terminal 100 detects that the gesture is an open application split gesture, and then starts application split processing on the application 14, so that the application 14 is installed under the split user. After the application split processing is completed, the icon of the split application is displayed in the main page.
Alternatively, the icon of the separate application of application 14 may be displayed behind the icon of application 14, and the icons of application 15 and the subsequent applications may be carried forward backward, as shown in fig. 4 b.
Optionally, a distinguishing mark may be added to the icon of the avatar application of the application 14 to distinguish from the main application of the application 14, for example, a mark of the avatar application may be displayed in the lower right corner of the icon of the avatar application.
It should be noted that, for the definition of the gesture for starting the application avatar, besides the example given in the above embodiment that the user uses two extending hands to move in opposite directions for one application icon and the example that the application icon is dragged to the trigger area for opening the application avatar, other manners may also be included, for example, pressing the application icon for a long time, popping up a menu of function options for the application, if the application supports avatar, the menu includes a function option of "opening the application avatar", and when the user selects the option, the processing operation of opening the application avatar for the application may be started; for another example, the application body-separating instruction can be recognized in a voice recognition mode, so that the application body-separating processing is performed.
Taking the first application as an example of a target application for which an application split is required to be started, in this embodiment of the application, when a desktop launcher of a terminal detects a split gesture for the first application, the first application is installed under a split user in response to the split gesture, and an icon of the split application of the first application is created in a home page of the terminal, where a specific implementation flow of the method may be as shown in fig. 5.
Fig. 5 is a flow chart illustrating an application avatar according to the present embodiment. The process may include:
at 501, a desktop launcher of a terminal detects an open application avatar gesture for a first application.
Taking the screen touch operation that the split application gesture is started as multi-finger pressing and separation as an example, in the embodiment of the present application, a touch screen event (MotionEvent) detection function may be added to the desktop launcher. When a user presses an application icon on a home page, an application icon control receives a down event, a desktop starter detects attributes and package names of the application, whether the application is a system application or not and whether the application supports split (for example, whether the application is in an application list compatible with multi-user functions or not) can be judged according to the attributes or the package names of the application, if the application supports split, the next touch screen action of the user is waited, if another down event is detected in an icon area of the current application and the down event is a separation operation, the intention of the user is judged to be to open the split function of the application, and namely, an application split gesture is detected to be opened.
At 502, a desktop launcher of the terminal installs a first application under the split user in response to the open application split gesture.
Optionally, when the affiliate of the application is opened 502, the desktop launcher may call a related interface (referred to as an interface for installing an affiliate application in this embodiment) to create an application directory, application data, and isolate the application directory and the application data from the first application host application, modify the installation state of the first application (affiliate application) to an installed state, send out a broadcast message that the application installation is successful, and simultaneously synchronously update a configuration file (packages.xml/packages.list under the data/system directory) in which the system records the installation state of the application, and add the installation information of the application to the configuration file of the device manager (the xml and db files of the application, which may be used to store an application list that the affiliate has been opened). The setting of the installation state of the application to the installed state and the sending of the broadcast are to notify other applications, so that the other applications know that a new application is installed under the split-body user, and trigger part of application update interface display in the other applications (for example, after the desktop launcher receives a message, a split-body application icon is displayed on a main page, and a corner mark for identifying the split-body application is added). The configuration file is updated to enable the state of the self-body application to be timely and accurately returned when other applications call the system interface to inquire the installation state of the application (for example, when a user opens an application program management interface in the system setting to check the installation state of the application installed in the mobile phone). The device manager's profile is updated in order to be able to mark whether the current application has opened an avatar. In the process, the installation package (APK) of the first application does not need to be analyzed again, so that the rapid installation operation is realized.
And the body-separating function of the application (related to application catalog, application data and system test application state information updating) is realized.
Optionally, the system may designate an application or service for the divided user as a device manager of the divided user, for managing the application under the divided user, for example, the device manager may install the application under the divided user, unload the application from the divided user, open or close the application under the divided user, and the like. In specific implementation, after the creation of the individual user is completed, a system service can be registered under the individual user as a device manager for managing the application of the individual user.
Specifically, the process of installing the first application under the individual user is as follows: the desktop starter directly sends a message to a device manager under the individual user to request for installing the first application, the device manager analyzes the message after receiving the message, and the first application is installed under the individual user according to the analyzed message instruction.
At 503, the desktop launcher of the terminal displays an icon of the avatar application of the first application in a home page of the terminal.
At 502, after the installation of the first application is completed, the device manager may send out a broadcast message that the installation is successful. Accordingly, in 503, after the desktop launcher receives the message by means of a system service (launcher application service), the message is parsed, the related information (such as the identifier, name, type, and the like of the first application) and the user information (such as the user identifier, user type, and the like of the individual user) of the first application in the message are obtained, and the user interface is refreshed according to the parsed information so as to load and display the icon of the individual application of the first application. Optionally, when drawing an icon of the body-divided application, a corner mark may be added in the icon area to distinguish the main application from the body-divided application.
Optionally, in some embodiments, before installing the first application under the self-identified user, the desktop launcher may first determine whether the self-identified user exists, if the self-identified user exists, install the first application under the self-identified user, and if the self-identified user does not exist, invoke the system service of the terminal to create the self-identified user, and install the first application under the self-identified user.
Specifically, after recognizing the split intention of the user who wants to open the application through the screen touch operation of the user, the desktop starter reads the user information (UserInfo) of the terminal through an interface (getUsers interface) for acquiring the user information of a user management (UserManager) service in a framework layer, and judges whether the split user exists in the terminal according to information such as a user ID, a user name, a user type and the like in the user information (UserInfo). Without loss of generality, the self-service user can be identified by the value range of the user ID, the user name or the user type, for example, the user with the type of shadow is the self-service user. For example, if the user information (UserInfo) includes a user whose ID > is 10, whose name is "avatar", and whose type is shadow, it is determined that the current terminal already has an avatar user, and if it is detected that only one user whose type is owner exists in the user information (UserInfo), it is determined that the current terminal does not have an avatar user.
If the fact that the terminal does not have the divided user currently is detected, an interface (createUser interface) used for creating the user of a user management (UserManager) service is called, and the divided user is created through a corresponding system function or system function. In the process, the installd service in the system runtime library layer can be called through the createUser interface to create application data required by the operation of a new divided user (for example, creating application data of the user 10: data/user/10/android, data/user/10/com. content. mm), calling the vold (volume data emon) service to create a directory and a mount binding relationship of the new divided user (for example, a storage space directory/data/media/10 of the new user 10), calling the sdcard service to manage a user space of the divided user (for example, application data isolation is realized by setting UID and GID modes for the application under the user 10), and the user management (UserManager) can record information such as a user ID, a user name and a user state of the newly created divided user.
Alternatively, after the creation of the divided user is completed, a user management (UserManager) service may start the divided user in the background, changing the user state from booting to unlocked. Only when the user is in an unlocked state, the application under the current user can normally respond to the operations of installation, uninstallation, starting and the like, and the current user is identified as the individual user. After the distributed user is started, a user management (UserManager) service may send out a broadcast to notify the system service and application on the terminal that the distributed application has been started, where the notified system service and application mainly include system core applications and services such as a desktop launcher (launcher), a system user interface service (systemlui), and a system setup application (settings).
Optionally, in some embodiments, before installing the first application under the self-service user, the desktop launcher may determine whether the first application supports the self-service, if the first application supports the self-service, the first application is created under the self-service user, otherwise, the opening of the application self-service is abandoned, and a prompt message may be further displayed to prompt that the application does not support the application self-service.
Optionally, the embodiment of the application also allows the user to close the split application through gestures. After the body-separating application is closed, the data of the body-separating application is permanently deleted after the body-separating application is closed.
Optionally, the gesture of closing the avatar application includes, but is not limited to, the following interaction means:
-long-pressing the icon of the avatar application, popping up a menu containing a "close avatar application" function option, the user selecting the "close avatar application" function option in the menu;
-dismissing the icon of the avatar application to a trigger area of "close avatar application" to trigger closing of the avatar application;
-the user issuing a voice instruction to instruct the closing of the avatar application.
In this embodiment of the application, after the desktop launcher detects the gesture of closing the application split body for the first application, as a response, the desktop launcher performs processing according to a flow of unloading the application, that is, invokes a relevant interface (referred to as an interface for unloading the split body application in this embodiment) to unload the split body application and synchronously clear data of the application. The system sets the installation state of the application to an uninstalled state when uninstalling the application, updates the configuration file of the system recording the installation state of the application, simultaneously triggers the device manager to update the configuration file, removes the application from the opened divided application list, and sends a broadcast message of successful division application uninstallation to other applications or services in the terminal, so that the desktop launcher deletes the icon of the divided application of the first application in the main page of the terminal. The operation of clearing the application data can clear data saved in the terminal by the self-service application (for example, account information of the social application and chat records can be cleared).
It will be appreciated that the controller, in order to carry out the above-described functions, may comprise corresponding hardware structures and/or software modules for performing the respective functions. The elements (devices, means) and algorithm steps of the various examples described in connection with the embodiments disclosed herein may be implemented in hardware or a combination of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present teachings.
In the embodiment of the present application, the controller may be divided into the functional units (devices ) according to the above method examples, for example, each functional unit (device ) may be divided corresponding to each function, or two or more functions may be integrated into one processing unit (device ). The integrated units (devices, apparatuses) may be implemented in the form of hardware, or may be implemented in the form of software functional units (devices, apparatuses). It should be noted that, in the embodiment of the present application, the division of the unit (device, apparatus) is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of using an integrated unit (device ), fig. 6 shows a schematic structural diagram of a terminal provided in an embodiment of the present application, where the terminal is configured with a protective cover, and a top cover of the protective cover is made of a transparent material relative to a screen portion of the terminal. Referring to fig. 6, the terminal 600 includes: a desktop launcher 601 and an application manager 602.
The desktop starter 601 is used for detecting a split-body opening gesture aiming at a first application and calling the application manager 602 to open the split-body in response to the split-body opening gesture;
the application manager 602, responding to the calling of the desktop launcher, installs the first application under the personal user;
the desktop launcher 601 is further configured to, in response to that the installation of the first application by the self-identified user is completed, display an icon of the self-identified application of the first application in a main page of the terminal, where the icon of the self-identified application of the first application is used to launch the first application installed by the self-identified user.
The functions implemented by the desktop launcher 601 and the application manager 602 can be referred to in the foregoing embodiments, and are not repeated here.
The embodiment of the present application further provides a computer storage medium for storing instructions, which when executed, can perform any one of the methods related to the foregoing terminal.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (8)

1. A method for application of a split, comprising:
a desktop starter of a terminal detects an application split gesture for starting a first application;
the desktop launcher responds to the application split gesture, installs the first application under a split user, and displays an icon of the split application of the first application in a main page of the terminal, wherein the icon of the split application of the first application is used for launching the first application installed under the split user;
wherein the installing the first application under the split user comprises:
the desktop launcher requests a device manager to install the first application under the self-body-divided user, and an interface for installing the self-body-divided application is called to execute the first application; creating an application catalog and application data for the avatar application, the application catalog and application data being isolated from a primary application of the first application; modifying the installation state of the personal application into an installed state; updating a configuration file of a system record application installation state; sending a broadcast message of successful installation of the self-body application to other applications or services in the terminal; adding the information of the self-body application into an opened self-body application list of a device manager under the self-body user; the device manager is appointed by the individual user and is used for managing the application of the individual user.
2. The method of claim 1, further comprising:
the desktop starter detects an application split closing gesture aiming at a first application;
the desktop launcher responds to the application split gesture, and calls an interface for unloading the split application to execute:
deleting the application catalog and the application data of the personal application;
modifying the installation state of the personal application into an uninstallation state;
updating a configuration file of a system record application installation state;
sending a broadcast message that the split application uninstalling is successful to other applications or services in the terminal, so that the desktop launcher deletes the split application icon of the first application in the main page of the terminal in response to the broadcast message;
and deleting the information of the self-body application from an opened self-body application list of a device manager under the self-body user.
3. The method of claim 1, wherein said installing the first application under a split user comprises:
the desktop starter acquires user information of the terminal and judges whether a self-service user exists according to the user information of the terminal;
the desktop starter responds to the judgment result that no self-service user exists, calls the system service of the terminal to create the self-service user, and installs the first application under the self-service user; or the desktop launcher responds to the judgment result of the presence of the individual user, and the first application is installed under the individual user.
4. The method of claim 1, further comprising:
the desktop starter acquires the information of the first application and judges whether the first application supports the split according to the information of the first application;
the desktop launcher, in response to the avatar gesture, installs the first application under an avatar user, including:
and the desktop launcher responds to the split gesture and the judgment result that the first application supports the split, and installs the first application under the split user.
5. The method of claim 1, wherein detecting an open application avatar gesture for a first application by a desktop launcher of the terminal comprises:
a desktop starter of the terminal detects touch operation of multi-finger pressing and separation on the first application icon; or
And the desktop starter of the terminal detects that the icon of the first application is dragged to an application split triggering area.
6. The method of claim 1, wherein the displaying an icon of an avatar application of the first application in a home page of the terminal comprises:
the desktop starter receives a notification sent by a device manager appointed by the self-identified user, wherein the notification is used for notifying the completion of installation of the first application under the self-identified user, and the device manager is used for managing the application under the self-identified user;
and the desktop launcher responds to the notification, creates an icon of the first application under the self-identified user, and displays the icon in a main page of the terminal.
7. A terminal, comprising:
the desktop starter is used for detecting a split-body opening gesture aiming at a first application and calling the application manager to open the split-body in response to the split-body opening gesture;
the application manager responds to the calling of the desktop starter and installs the first application under the personal user;
the desktop launcher is further used for responding to the completion of installation of a first application under the divided user, displaying an icon of the divided application of the first application in a main page of the terminal, wherein the icon of the divided application of the first application is used for launching the first application installed under the divided user;
wherein the installing the first application under the split user comprises:
the desktop launcher requests installation of the first application under the divided user for a device manager,
calling an interface for installing the body-divided application to execute; creating an application catalog and application data for the avatar application, the application catalog and application data being isolated from a primary application of the first application; modifying the installation state of the personal application into an installed state; updating a configuration file of a system record application installation state; sending a broadcast message of successful installation of the self-body application to other applications or services in the terminal; adding the information of the self-body application into an opened self-body application list of a device manager under the self-body user; the device manager is specified for the personal application and is used for managing the application under the personal user.
8. A terminal, comprising: a controller, a memory;
the memory to store computer instructions;
the controller, reading computer instructions in the memory, performing the method of any of claims 1-6.
CN201910532013.6A 2019-06-19 2019-06-19 Application body-splitting method and device Active CN112114719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910532013.6A CN112114719B (en) 2019-06-19 2019-06-19 Application body-splitting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910532013.6A CN112114719B (en) 2019-06-19 2019-06-19 Application body-splitting method and device

Publications (2)

Publication Number Publication Date
CN112114719A CN112114719A (en) 2020-12-22
CN112114719B true CN112114719B (en) 2022-02-22

Family

ID=73795673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910532013.6A Active CN112114719B (en) 2019-06-19 2019-06-19 Application body-splitting method and device

Country Status (1)

Country Link
CN (1) CN112114719B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783579A (en) * 2021-01-05 2021-05-11 北京小米松果电子有限公司 Application program control method, device and storage medium
CN114035881A (en) * 2021-11-26 2022-02-11 北京小米移动软件有限公司 Multi-account login method and device of application and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224322A (en) * 2015-09-25 2016-01-06 维沃移动通信有限公司 A kind of attend to anything else method and terminal of application program
CN106484480A (en) * 2016-10-10 2017-03-08 广东欧珀移动通信有限公司 A kind of determination method of application of attending to anything else, device and terminal
CN108228024A (en) * 2017-12-08 2018-06-29 深圳市金立通信设备有限公司 A kind of method of application control, terminal and computer-readable medium
CN108345425A (en) * 2018-02-09 2018-07-31 维沃移动通信有限公司 A kind of management method and mobile terminal of application
CN109271211A (en) * 2017-07-18 2019-01-25 阿里巴巴集团控股有限公司 Method, apparatus of attending to anything else, equipment and the medium of application program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9092527B2 (en) * 2013-01-30 2015-07-28 Quixey, Inc. Performing application search based on entities

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224322A (en) * 2015-09-25 2016-01-06 维沃移动通信有限公司 A kind of attend to anything else method and terminal of application program
CN106484480A (en) * 2016-10-10 2017-03-08 广东欧珀移动通信有限公司 A kind of determination method of application of attending to anything else, device and terminal
CN109271211A (en) * 2017-07-18 2019-01-25 阿里巴巴集团控股有限公司 Method, apparatus of attending to anything else, equipment and the medium of application program
CN108228024A (en) * 2017-12-08 2018-06-29 深圳市金立通信设备有限公司 A kind of method of application control, terminal and computer-readable medium
CN108345425A (en) * 2018-02-09 2018-07-31 维沃移动通信有限公司 A kind of management method and mobile terminal of application

Also Published As

Publication number Publication date
CN112114719A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN109101352B (en) Image processing algorithm architecture, algorithm calling method, device, storage medium and mobile terminal
EP3293607B1 (en) Electronic device and method of controlling electronic device
US8136085B2 (en) System and method for implementing a shared platform or software resource for coupled computing devices
WO2019119544A1 (en) Method and device for accessing data of embedded sim card
KR20180106231A (en) Electronic device for controlling audio output and operating mehtod thereof
CN108605220B (en) Application processing method and device for embedded universal integrated circuit card
US20090077467A1 (en) Mobile television and multimedia player key presentations
CN104281478B (en) The method and device of more new application
US20090073126A1 (en) Standardized method and systems for providing configurable keypads
US20220100490A1 (en) Firmware updating method, and electronic apparatus and storage media for same
CN109271211B (en) Method, device, equipment and medium for separating application program
US11144190B2 (en) Electronic device and method for sharing data thereof
CN112114719B (en) Application body-splitting method and device
CN107632872B (en) Desktop layout processing method, user data processing method and device and computer storage medium
WO2018058436A1 (en) Method for loading software program, user terminal and storage medium
CN114706633B (en) Preloading method, electronic device and storage medium
CN112162795A (en) Plug-in starting method and device, computer equipment and storage medium
KR20210115841A (en) An electronic device and method for partially operating a thema in the same
CN106919391B (en) Embedded system of customizable operating system component facing smart phone
CN106502732B (en) Application closing method and device and intelligent terminal
EP2307941A1 (en) Mobile television and multimedia player key presentations
CN111158735B (en) Hot patch file processing method and communication terminal
CN113190143A (en) Interface display method and device, electronic equipment and medium
KR20210046426A (en) Application optimizing method and electronic device supporting the same
CN116700552A (en) Application connection method and terminal 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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder