Jasonxgw / Android_Native_Surface

Android Native Surface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Screenshot

  • Screen record

    image
  • Native Surface

    image

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

License:MIT License


Languages

Language:C++ 66.8%Language:C 23.1%Language:Python 3.1%Language:Java 1.9%Language:CMake 1.8%Language:Objective-C++ 0.6%Language:HTML 0.6%Language:Cuda 0.6%Language:Swift 0.5%Language:JavaScript 0.4%Language:Objective-C 0.2%Language:TeX 0.1%Language:Shell 0.1%Language:C# 0.1%Language:Makefile 0.0%Language:Perl 0.0%Language:PowerShell 0.0%Language:Batchfile 0.0%Language:NASL 0.0%Language:Scala 0.0%Language:Kotlin 0.0%Language:CSS 0.0%Language:HLSL 0.0%Language:QMake 0.0%Language:AIDL 0.0%Language:Clojure 0.0%Language:Prolog 0.0%Language:Dockerfile 0.0%