Android Front-End Process Termination via Pixel Threshold
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Android applications can keep front-end processes alive maliciously by starting activities with a view size of one pixel, leading to issues like battery consumption and user experience degradation, as existing systems do not actively kill such processes.
Innovation Solution
A method and apparatus that utilize a first operating system and a second operating system sharing a kernel to obtain activity information, determine the pixel size of a view, and shut down the front-end process if it is deemed a keep-alive process based on a predetermined pixel threshold, specifically one pixel.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If Android applications start activities with a view size of one pixel to keep front-end processes alive, then the processes remain alive and can be accessed, but battery consumption increases and user experience deteriorates
Solution Approach 1:
The patent changes the pixel size parameter of the activity view from 1x1 pixel to a larger dimension, thereby transforming the process from a keep-alive state to a normal operational state that can be properly managed and terminated by the system
2Reliability
If Android applications start activities with a view size of one pixel to keep front-end processes alive, then the processes remain alive, but malicious applications can exploit this to cause stuck phenomena and privacy leakage
Solution Approach 1:
By changing the view size parameter from 1x1 pixel to a larger dimension, the patent eliminates the exploit condition that malicious applications rely on, thereby preventing stuck phenomena and privacy leakage while maintaining legitimate process functionality
3Stability of the object's composition
If the system does not actively kill front-end activities with small view sizes, then process stability is maintained, but device performance degrades due to resource consumption
Solution Approach 1:
The patent changes the view size parameter to eliminate the distinction between normal and keep-alive processes, allowing the system to uniformly manage and terminate processes based on their actual operational needs rather than their creation method, thereby improving device performance
Data Source
AI summary
The disclosure relates to a method, apparatus, electronic device, storage medium, computer program product and computer program for searching and killing a front-end process at an electronic device. The electronic device includes a first operating system and a second operating system. The second operating system shares a kernel with the first operating system and is deployed in the first operating system. In the method, the electronic device obtains activity information sent by an activity of a front-end process of the second operating system. The electronic device obtains a pixel size of a view for the activity based on the activity information. The electronic device determines, based on the pixel size and a predetermined pixel threshold, whether the front-end process is a keep-alive process. In accordance with a determination that the front-end process is the keep-alive process, the electronic device shuts down the front-end process.

