Project

General

Profile

Actions

Issue #2120

open

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

Added by Denis 'GNUtoo' Carikli over 3 years ago. Updated about 3 years 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:
Type of work:
Any programming languages (scripts, C, etc), Unknown
Actions #1

Updated by Denis 'GNUtoo' Carikli over 3 years 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.

Actions #2

Updated by _I3^ RELATIVISM about 3 years ago

  • Type of work Any programming languages (scripts, C, etc), Unknown added
Actions

Also available in: Atom PDF