Initial commit

This commit is contained in:
2026-05-08 11:45:15 +02:00
commit e5471b5fa0
120 changed files with 8938 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#define REAL_CAMERASERVER "/data/adb/modules/camera-hook/cameraserver-real"
#define HOOK_LIB "/data/local/camera_magic/libcamera_hook.so"
int main(int argc, char *argv[]) {
setenv("LD_PRELOAD", HOOK_LIB, 1);
execv(REAL_CAMERASERVER, argv);
fprintf(stderr, "CameraHook: execv(%s) failed: %s\n", REAL_CAMERASERVER, strerror(errno));
return 1;
}