RRZishe I suggest reading this thread here: https://twitter.com/GrapheneOS/status/1643976700219502597
Our next release includes a toggle for users to choose whether Google apps they install can directly use Pixel hardware accelerators. This controls direct access to Tensor TPU on both 6th/7th generation Pixels and also direct access to the GXP for Google Camera on 7th gen Pixels.
Tensor's hardware accelerators are isolated components respecting app sandboxing. Every app can use TPU via Neural Networks API (https://developer.android.com/ndk/guides/neuralnetworks). Apps using Camera2 API in a certain way or using CameraX get hardware accelerated HDR+ taking advantage of TPU and/or GXP.
Android Neural Networks API needs to abstract across different Android hardware including the Snapdragon DSP and Tensor TPU. Multiple Google apps directly use TPU to provide more acceleration. This is currently allowed but it adds extra attack surface so we're making it optional.
Google Camera uses the TPU on 6th generation Pixels which already works fine on GrapheneOS. On 7th generation Pixels, it uses both the TPU and the new GXP accelerator. It needs a special SELinux domain to access the GXP and we didn't have it set up so post-processing was slower.
Since access to TPU/GXP doesn't provide access to any additional data and the apps able to use them aren't installed by default, we'll be enabling this toggle by default for ease of use. By default, only difference will be faster Google Camera on Pixel 7 and 7 Pro via GXP access.