IP Library Granted Patent US 12,333,288
Granted Patent B2
US 12,333,288 · App. 18/017,023 · Granted Jun 17, 2025

Application installation method and electronic device

Inventors: Dezhi Huang (Shenzhen, CN); Changle Qi (Shenzhen, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F8/61G06F8/70
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,333,288
App. No.
18/017,023
Granted
Jun 17, 2025
Kind
B2
Abstract

This application provides an application installation method and an electronic device. The method includes: detecting an operation of triggering installation of a first application and a second application by a user; in response to the operation, copying and scanning a first application package, where the first application package is an application package corresponding to the first application; copying and scanning a second application package in a first time period after the copying and scanning a first application package, where the second application package is an application package corresponding to the second application; and performing optimization on the first application in a second time period after the copying and scanning a first application package, where the first time period and the second time period at least partially overlap. According to technical solutions in embodiments of this application, an installation speed of installing a plurality of applications is increased.

Claims (72)

1. An application installation method, wherein the method is applied to an electronic device, and the method comprises:

detecting a first user operation triggering installation of a first application and a second application;

in response to the first user operation, copying and scanning a first application package, wherein the first application package is an application package corresponding to the first application;

copying and scanning a second application package in a first time period after the copying and scanning the first application package, wherein the second application package is an application package corresponding to the second application;

performing optimization on the first application in a second time period after the copying and scanning the first application package, wherein the first time period and the second time period at least partially overlap;

detecting a second user operation triggering installation of a third application and a fourth application; and

copying and scanning a third application package in a third time period after the copying and scanning the first application package; wherein

the third application package is an application package corresponding to the third application; and

when a duration of the second time period is greater than a sum of a duration of the first time period and a duration of the third time period, a start moment at which a fourth application package is copied and scanned is later than or equal to a start moment at which optimization is performed on the second application.

2. The method according to claim 1 , wherein the method further comprises:

detecting a third user operation of triggering installation of a third application;

when copying and scanning of the second application package are completed, detecting a temperature of a central processing unit (CPU) of the electronic device;

determining that the temperature is greater than or equal to a preset value;

pausing for a first preset duration when optimization of the second application ends; and

copying and scanning a third application package after the first preset duration, wherein the third application package is an application package corresponding to the third application.

3. The method according to claim 2 , wherein before the performing optimization on the first application, optimization is performed on a fourth application, and the determining that the temperature is greater than or equal to the preset value comprises:

determining that the temperature is greater than or equal to the preset value and that a duration of a fourth time period is greater than or equal to a second preset duration, wherein

the fourth time period is the same as the second time period; or

a time interval between the second time period and a fifth time period is less than or equal to a third preset duration, the fourth time period is a sum of the second time period and the fifth time period, and the fifth time period is a time period in which the electronic device performs optimization on the fourth application.

4. The method according to claim 1 , wherein the performing optimization on the first application comprises:

adding a first optimization task to a first task queue, wherein the first optimization task optimizes the first application;

starting a first thread, wherein the first thread fetches the first optimization task from the first task queue; and

invoking a first interface, wherein the first interface starts a second thread, and the second thread executes the first optimization task.

5. An electronic device, comprising:

one or more processors; and

one or more memories, wherein

the one or more memories store one or more computer programs, the one or more computer programs comprise instructions, and when the instructions are executed by the one or more processors, the electronic device is enabled to perform the following steps:

detecting a first user operation triggering installation of a first application and a second application;

in response to the first user operation, copying and scanning a first application package, wherein the first application package is an application package corresponding to the first application;

copying and scanning a second application package in a first time period after the copying and scanning the first application package, wherein the second application package is an application package corresponding to the second application;

performing optimization on the first application in a second time period after the copying and scanning the first application package, wherein the first time period and the second time period at least partially overlap;

detecting a second user operation triggering installation of a third application and a fourth application; and

copying and scanning a third application package in a third time period after the copying and scanning the first application package; wherein

the third application package is an application package corresponding to the third application;

when a duration of the second time period is greater than a sum of a duration of the first time period and a duration of the third time period, a start moment at which a fourth application package is copied and scanned is later than or equal to a start moment at which optimization is performed on the second application.

6. The electronic device according to claim 5 , wherein when the instructions are executed by the one or more processors, the electronic device is enabled to perform the following steps:

detecting a third user operation of triggering installation of a third application;

when copying and scanning of the second application package are completed, detecting a temperature of a central processing unit (CPU) of the electronic device;

determining that the temperature is greater than or equal to a preset value;

pausing for a first preset duration when optimization of the second application ends; and

copying and scanning a third application package after the first preset duration, wherein the third application package is an application package corresponding to the third application.

7. The electronic device according to claim 6 , wherein before the performing optimization on the first application, optimization is performed on a fourth application, and the electronic device is specifically configured to:

determine that the temperature is greater than or equal to the preset value and that a duration of a fourth time period is greater than or equal to a second preset duration, wherein

the fourth time period is the same as the second time period; or

when a time interval between the second time period and a fifth time period is less than or equal to a third preset duration, the fourth time period is a sum of the second time period and the fifth time period, and the fifth time period is a time period in which the electronic device performs optimization on the fourth application.

8. The electronic device according to claim 5 , wherein the electronic device is specifically configured to:

add a first optimization task to a first task queue, wherein the first optimization task optimizes the first application;

start a first thread, wherein the first thread fetches the first optimization task from the first task queue; and

invoke a first interface, wherein the first interface starts a second thread, and the second thread is used to execute the first optimization task.

9. A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are run on an electronic device, the electronic device is enabled to perform:

detecting a first user operation of triggering installation of a first application and a second application;

in response to the first user operation, copying and scanning a first application package, wherein the first application package is an application package corresponding to the first application;

copying and scanning a second application package in a first time period after the copying and scanning the first application package, wherein the second application package is an application package corresponding to the second application;

performing optimization on the first application in a second time period after the copying and scanning the first application package, wherein the first time period and the second time period at least partially overlap;

detecting a second user operation triggering installation of a third application and a fourth application; and

copying and scanning a third application package in a third time period after the copying and scanning the first application package; wherein

the third application package is an application package corresponding to the third application; and

when a duration of the second time period is greater than a sum of a duration of the first time period and a duration of the third time period, a start moment at which a fourth application package is copied and scanned is later than or equal to a start moment at which optimization is performed on the second application.

10. The non-transitory computer-readable storage medium according to claim 9 , wherein when the computer instructions are run on an electronic device, the electronic device is further enabled to perform:

detecting a third user operation of triggering installation of a third application;

when copying and scanning of the second application package are completed, detecting a temperature of a central processing unit (CPU) of the electronic device;

determining that the temperature is greater than or equal to a preset value;

pausing for a first preset duration when optimization of the second application ends; and

copying and scanning a third application package after the first preset duration, wherein the third application package is an application package corresponding to the third application.

11. The non-transitory computer-readable storage medium according to claim 10 , wherein before the performing optimization on the first application, optimization is performed on a fourth application, and the determining that the temperature is greater than or equal to the preset value comprises:

determining that the temperature is greater than or equal to the preset value and that a duration of a fourth time period is greater than or equal to a second preset duration, wherein

the fourth time period is the same as the second time period; or

a time interval between the second time period and a fifth time period is less than or equal to a third preset duration, the fourth time period is a sum of the second time period and the fifth time period, and the fifth time period is a time period in which the electronic device performs optimization on the fourth application.

12. The non-transitory computer-readable storage medium according to claim 9 , wherein the performing optimization on the first application comprises:

adding a first optimization task to a first task queue, wherein the first optimization task optimizes the first application;

starting a first thread, wherein the first thread fetches the first optimization task from the first task queue; and

invoking a first interface, wherein the first interface starts a second thread, and the second thread executes the first optimization task.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 13, 2024
From: HUANG, DEZHI; QI, CHANGLE
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 067384/0301 →
Priority Claims (1)
CN 202010713889.3 · Jul 23, 2020 · national
Continuity (1)
Related Publication 20230289160A1 · Sep 14, 2023
References Cited (36)
US 9286327B2 · Kripalani · 2016 [cited by examiner]
US 10007501B1 · Zhang · 2018 [cited by examiner]
US 20060225047A1 · Brothers · 2006 [cited by examiner]
US 20070143446A1 · Morris · 2007 [cited by examiner]
US 20090113088A1 · Illowsky · 2009 [cited by examiner]
US 20090249313A1 · Sobel · 2009 [cited by examiner]
US 20100306270A1 · McDiarmid · 2010 [cited by examiner]
US 20150026675A1 · Csaszar · 2015 [cited by examiner]
US 20160378458A1 · Pan · 2016 [cited by examiner]
US 20170102929A1 · Lee · 2017 [cited by examiner]
US 20170220335A1 · Pink et al. · 2017 [cited by applicant]
US 20180359390A1 · Kawabata · 2018 [cited by examiner]
US 20190373320A1 · Balsamo · 2019 [cited by applicant]
US 20200150943A1 · Singh et al. · 2020 [cited by applicant]
US 20230300415A1 · Balsamo · 2023 [cited by examiner]
CN 104516754A · 2015 [cited by applicant]
CN 105468417A · 2016 [cited by examiner]
CN 106681773A · 2017 [cited by applicant]
CN 106708507A · 2017 [cited by examiner]
CN 108228200A · 2018 [cited by applicant]
CN 108595192A · 2018 [cited by examiner]
CN 109976645A · 2019 [cited by applicant]
CN 110083367A · 2019 [cited by examiner]
CN 110147240A · 2019 [cited by examiner]
CN 110162311A · 2019 [cited by applicant]
CN 111309341A · 2020 [cited by applicant]
CN 111435318A · 2020 [cited by applicant]
CN 107861730B · 2020 [cited by applicant]
CN 112799687A · 2021 [cited by examiner]
CN 113971034A · 2022 [cited by examiner]
CN 111240766B · 2023 [cited by examiner]
WO 2018018702A1 · 2018 [cited by applicant]
Lee et al., “A Data Mining Framework for Building Intrusion Detection Models”, 2002, IEEE (Year: 2002). [cited by examiner]
Edelstein et al., “Advanced methods of microscope control using μManager software”, Jan. 2015, NIH (Year: 2015). [cited by examiner]
Beguelin et al., “Application Level Fault Tolerance in Heterogeneous Networks of Workstations”, 1997, Journal of Parallel and Distributed Computing (Year: 1997). [cited by examiner]
Spyropoulos et al., “Efficient Routing in Intermittently Connected Mobile Networks: The Multiple-Copy Case”, Feb. 2008, vol. 16, No. 1 (Year: 2008). [cited by examiner]