An example to hook android camera preview
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
gradle/wrapper
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

CameraHook

CameraHook is an example to hook and modify android camera preview.

It is just a protype and the code may be ugly.

Supported platform

Android 2.3 - 4.4

Tips

To use this tool, devices must be root.

If you want to make any change to hook.c while libhook.so has already been installed in /system/lib/, please comment a 'if' condition in mainActivity.java as follow:

//if(result.length()<10) {

    String copySoToSystem = "cat " + so_path + " > " + "/system/lib/libhook.so \n" +
    
            "chmod 777 /system/lib/libhook.so \n";
            
    runLocalRootUserCommand(copySoToSystem);
    
//}

If you have any question about this project, feel free to contact me.

Email: limm.hq@gmail.com