Skip to content

AntonioShare/Android_Native_Surface

 
 

Repository files navigation

Android_Native_Surface

This is a Demo for Android Native Surface
Made by SsageParuders(泓清)
Had supported for Android 10~12

If you had used code from this repository.
I hope you can show this repository's address.
Please maintain basic respect for open source.
如果你有使用到这个仓库的代码
希望你能标明仓库的开源地址
请对开源保持最基本的尊重


libs

  • All dynamic libraries can be used for NDK without AOSP environment.
  • All dynamic libraries are built from AOSP.
  • Just support for Android 10 ~ 12

res/aosp_native_surface

  • Sources for AOSP

    • You can build dynamic libraries from AOSP,and use it for NDK
  • How To Build


outputs

The out file for Demo.
Can be executed by

  chmod +x NativeSurface
  ./NativeSurface

Then you can see a surface without any Java Api
Had supported for Android 10 ~ 12


src && include

Example For How To Use This Project

How to build

First Way
  • By command line with CMake and Ninja

    Change The NDK PATH for CMakeLists.txt
    Make sure you can use cmake and ninja on your path.

    mkdir build
    cd build
    cmake ../
    cmake --build .
    image
Second way
  • Open this Project with CLion

    • Then Make Sure Your Toolchains is right for NDK. image
    • Change The NDK PATH for CMakeLists.txt
    • Just build it.

ToDo List

  • Hidden from recording screen.
  • Hide from the screenshot.
  • Update the touch for Native Surface

As I didn't get much expectant followers and stars from this repository.
I won't continue to open source the rest of the repository.
Just will support for Android 10 and above, such as Android 13.

中文点击此处


LICENSE

MIT License

MIT License is uncontrolled License
I really like Open Sources Project
But, please.
Don't change my signature for this Project if you had used it.
Please maintain basic respect

MIT 协议是一个不受约束的宽松协议 我很喜欢开源项目
但是 如果你使用了我的项目 请最基本的 不要修改我的署名&签名
请保持最基本的尊重

Donate

  • USTD

    TRC20 : TNsRvFsLZzbf5EL9buzpAKKJn757obstEa

  • ZFB & WX

    image image

Connect

TG Chat Group

TG Channel

About

Android Native Surface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 75.5%
  • C++ 24.5%