A method and device for counting power consumption of Android applications
A statistical method and Android technology, applied in the computer field, can solve problems such as inability to access power statistics related information, abnormal reminders, and cumbersome operation processes
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] refer to figure 1 , which shows a flow chart of the steps of an embodiment of a method for counting power consumption of Android applications according to an embodiment of the present invention, which may specifically include the following steps:
[0061]In step 110, the first process accesses the system power consumption service for an application, and triggers a call to a permission verification function.
[0062] The applications (APP, Application) include applications that can run in the Android system, such as 360 Security Guard, 360 Security Browser, and the like.
[0063] The existing Android system itself has a power consumption service, which can separately count the power consumption of each hardware component by each application in the system in real time. The Android power consumption service will read the power consumption of each hardware component, and then record it in the power_profile.xml configuration file. This configuration file stipulates in the A...
Embodiment 2
[0086] refer to figure 2 , which shows a flow chart of the steps of an embodiment of a method for counting power consumption of Android applications according to an embodiment of the present invention, which may specifically include the following steps:
[0087] Step 210, inject the hook function into the first process, and register the private class with the system.
[0088] In the embodiment of the present invention, the hook function is used to intercept the authority verification result returned by the authority verification function, and at the same time execute the logical process of returning the authority verification result indicating that the verification has passed to the system. Therefore, the embodiment of the present invention needs to inject the hook function into each first process first.
[0089] In the embodiment of the present invention, in order to record the power consumption of different APPs respectively, a private class can be registered in the Androi...
Embodiment 3
[0131] refer to image 3 , which shows a structural block diagram of an embodiment of an Android application power consumption statistics device according to an embodiment of the present invention, which may specifically include the following modules:
[0132] The triggering module 310 is adapted to allow the first process to access the system power consumption service for an application, and trigger the calling of the authority verification function.
[0133] The interception module 320 is adapted to intercept calls to the authority verification function through a hook function.
[0134] The power consumption obtaining module 330 is adapted to call a preset private class of power consumption statistics to obtain the power consumption of the application.
[0135] In the embodiment of the present invention, the first process can access the system power consumption service for an application, trigger the call to the permission verification function, and intercept the call to th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



