In Android 8 (API level 26), the upcoming release of Oreo, they have implemented a hardware buffer shell . I compared the HardwareBuffer and GraphicBuffer classes, providing an interface for creating and accessing a shared buffer object, where the new HardwareBuffer is a generic version of GraphicBuffer. Therefore, you will no longer need to reference non-public libraries from API 26+.
The only alternative I've seen for Android 7 is to manually provide all the necessary libraries for the apk project.
We will have to wait for Android 8 to be released after the beta phase. The roadmap for the release can be found here , the expected release is some time until the end of 2017. If you plan to update your project using the new API before the release date and want to check it out, you can use the Android O preview version on your Google device.
source share