mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-25 06:47:18 +00:00
fix night drop early boot
This commit is contained in:
parent
b2d9a693bf
commit
30c08a0f00
Binary file not shown.
2
file.chk
2
file.chk
@ -81,7 +81,7 @@ b339aee882a5d1c943ad08e4282ec3fd SD_ROOT/wz_mini/usr/bin/iCamera-dbg
|
|||||||
4c780f0455481d106d47d89f0ae04ed5 SD_ROOT/wz_mini/lib/uClibc.tar
|
4c780f0455481d106d47d89f0ae04ed5 SD_ROOT/wz_mini/lib/uClibc.tar
|
||||||
9afeb088e4cbabbe0b04033b560204d0 SD_ROOT/wz_mini/lib/libimp.so
|
9afeb088e4cbabbe0b04033b560204d0 SD_ROOT/wz_mini/lib/libimp.so
|
||||||
4100755cb6cc6e3b76da20c7e3690e16 SD_ROOT/wz_mini/lib/libalog.so
|
4100755cb6cc6e3b76da20c7e3690e16 SD_ROOT/wz_mini/lib/libalog.so
|
||||||
395c1f510f1179cc8ab4e8ffe8182c84 SD_ROOT/wz_mini/lib/libcallback.so
|
d63e45dd1a05a62ad91ef3d70eae44de SD_ROOT/wz_mini/lib/libcallback.so
|
||||||
baf8d0b7a28f2fbb49a19ae0980779da SD_ROOT/wz_mini/lib/modules/3.10.14/modules.order
|
baf8d0b7a28f2fbb49a19ae0980779da SD_ROOT/wz_mini/lib/modules/3.10.14/modules.order
|
||||||
70775da41db88e4450d910b4ee8621c0 SD_ROOT/wz_mini/lib/modules/3.10.14/kernel/crypto/md4.ko
|
70775da41db88e4450d910b4ee8621c0 SD_ROOT/wz_mini/lib/modules/3.10.14/kernel/crypto/md4.ko
|
||||||
abbaa461e044b5688814423a087fbc52 SD_ROOT/wz_mini/lib/modules/3.10.14/kernel/fs/ext4/ext4.ko
|
abbaa461e044b5688814423a087fbc52 SD_ROOT/wz_mini/lib/modules/3.10.14/kernel/fs/ext4/ext4.ko
|
||||||
|
Binary file not shown.
@ -9,6 +9,8 @@ static uint32_t (*real_local_sdk_video_set_fps)(int encChn);
|
|||||||
|
|
||||||
int local_sdk_video_set_fps(int encChn) {
|
int local_sdk_video_set_fps(int encChn) {
|
||||||
|
|
||||||
|
fprintf(stderr, "[command] [night_drop.c] local_sdk_video_set_fps called with fps value: %d\n", encChn);
|
||||||
|
|
||||||
const char *nd_enable="/opt/wz_mini/tmp/.nd";
|
const char *nd_enable="/opt/wz_mini/tmp/.nd";
|
||||||
const char *product_T31="/opt/wz_mini/tmp/.T31";
|
const char *product_T31="/opt/wz_mini/tmp/.T31";
|
||||||
const char *product_T20="/opt/wz_mini/tmp/.T20";
|
const char *product_T20="/opt/wz_mini/tmp/.T20";
|
||||||
@ -28,11 +30,16 @@ int local_sdk_video_set_fps(int encChn) {
|
|||||||
fprintf(stderr, "[command] [night_drop.c] Calling local_sdk_video_set_fps to: %d\n", encChn);
|
fprintf(stderr, "[command] [night_drop.c] Calling local_sdk_video_set_fps to: %d\n", encChn);
|
||||||
real_local_sdk_video_set_fps(encChn);
|
real_local_sdk_video_set_fps(encChn);
|
||||||
}
|
}
|
||||||
|
//If nd is disabled, pass all requests along
|
||||||
|
} else {
|
||||||
|
printf("[command] [night_drop.c] Night Drop not enabled\n");
|
||||||
|
fprintf(stderr, "[command] [night_drop.c] Requested FPS Value: %d\n", encChn);
|
||||||
|
fprintf(stderr, "[command] [night_drop.c] Calling local_sdk_video_set_fps to: %d\n", encChn);
|
||||||
|
real_local_sdk_video_set_fps(encChn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void __attribute ((constructor)) nigh_drop_init(void) {
|
static void __attribute ((constructor)) night_drop_init(void) {
|
||||||
real_local_sdk_video_set_fps = dlsym(dlopen("/system/lib/liblocalsdk.so", RTLD_LAZY), "local_sdk_video_set_fps");
|
real_local_sdk_video_set_fps = dlsym(dlopen("/system/lib/liblocalsdk.so", RTLD_LAZY), "local_sdk_video_set_fps");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user