Skip to content

alexcohn/native-camera2

 
 

Repository files navigation

Hello Camera2

Hello Camera2 is an Android Camera2 sample that takes a snapshot using libcamera2ndk.

It uses JNI to access camera2 APIs which recently becomes one of public libraries in Android N.

This fork is a POC that back ports the native camera2 API to Marshmallow and possibly to Lollipop devices.

It runs live camera preview on 6.0.1 Nexus 5 phone, but more experimental data is needed to understand whether it is worth anything beyond a little excercsise in abusing Android system headers.

BTW, the backdoor was slammed shut in Android N, and same techniques are not relevant anymore for modern platforms.

Pre-requisites

Android Studio 2.3 with NDK bundle. To avoid hassle with old system headers, this project was built with NDK r.14b.

Screenshots

screenshot

Privacy Policy

This app sends nothing, shares nothing, and will never do anything beyond being an experimental playground for Android Camera API.

About

This fork is a POC of back porting camera2ndk.so to API 23 and probably back to API 21

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 50.8%
  • C++ 47.7%
  • Java 1.1%
  • Other 0.4%