Project

General

Profile

Issue #2120

Research FLAG_HARDWARE_ACCELERATED in frameworks/base/core/java/android/content/pm/ApplicationInfo.java

Added by Denis 'GNUtoo' Carikli about 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Graphics
Target version:
Start date:
09/01/2020
Due date:
% Done:

0%

Estimated time:
Resolution:
Device:
Unknown
Grant:
#1

Updated by Denis 'GNUtoo' Carikli about 2 months ago

The frameworks/base/core/java/android/content/pm/ApplicationInfo.java code can be used to understand the /data/system/packages.xml file format.

Inside that file there is the following:

    /**                                                                                                                                                       
     * Value for {@link #flags}: {@code true} when the application's rendering                                                                                
     * should be hardware accelerated.                                                                                                                        
     */
    public static final int FLAG_HARDWARE_ACCELERATED = 1<<29;

Since:
  • Several SOC that can run free software bootloaders have a powerVR GPU
  • The PowerVR GPU have no free driver (the kenrel part is just a shim and not a proper driver)
  • The hardware is extremely complex to reverse engineer and the nonfree driver also requires a nonfree firmware
  • There is leaked source code available furthurer complicates the matter as it would require to get lawyers advice before starting to even make a plan on how to approach the reverse engineering. We might also want/need clean room reverse engineering here.
  • Some smartphones and tablets that already have a free bootloader have a PowerVR GPU.

It could be interesting to make some applications faster when lacking 3D acceleration.

If clearing this flag brings speedups or other advantages we could simply ignore it or patch packages.xml at the first boot.

Also available in: Atom PDF