mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-07-04 02:09:48 +00:00
Breaking firmware spoofing out into its own setting, rather than enabling with blocking.
This commit is contained in:
parent
547b2d5d56
commit
8765c2e194
3
.vs/ProjectSettings.json
Normal file
3
.vs/ProjectSettings.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"CurrentProjectSetting": null
|
||||||
|
}
|
7
.vs/VSWorkspaceState.json
Normal file
7
.vs/VSWorkspaceState.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ExpandedNodes": [
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"SelectedNode": "\\C:\\Users\\Vincent\\Source\\Repos\\wz_mini_hacks",
|
||||||
|
"PreviewInSolutionExplorer": false
|
||||||
|
}
|
BIN
.vs/slnx.sqlite
Normal file
BIN
.vs/slnx.sqlite
Normal file
Binary file not shown.
Binary file not shown.
0
.vs/wz_mini_hacks/FileContentIndex/read.lock
Normal file
0
.vs/wz_mini_hacks/FileContentIndex/read.lock
Normal file
BIN
.vs/wz_mini_hacks/v17/.wsuo
Normal file
BIN
.vs/wz_mini_hacks/v17/.wsuo
Normal file
Binary file not shown.
@ -18,23 +18,6 @@ case "$1" in
|
|||||||
#echo -e "127.0.0.1 localhost \n127.0.0.1 wyze-upgrade-service.wyzecam.com" > /opt/wz_mini/tmp/.storage/hosts
|
#echo -e "127.0.0.1 localhost \n127.0.0.1 wyze-upgrade-service.wyzecam.com" > /opt/wz_mini/tmp/.storage/hosts
|
||||||
#mount --bind /opt/wz_mini/tmp/.storage/hosts /etc/hosts
|
#mount --bind /opt/wz_mini/tmp/.storage/hosts /etc/hosts
|
||||||
/opt/wz_mini/bin/busybox inotifyd /opt/wz_mini/usr/bin/watch_up.sh /tmp:n > /dev/null 2>&1 &
|
/opt/wz_mini/bin/busybox inotifyd /opt/wz_mini/usr/bin/watch_up.sh /tmp:n > /dev/null 2>&1 &
|
||||||
|
|
||||||
if [ -f /opt/wz_mini/tmp/.WYZE_CAKP2JFUS ]; then
|
|
||||||
# v3
|
|
||||||
printf "[VER]\nappver=4.36.13.0416\n" > /opt/wz_mini/tmp/patched_app.ver
|
|
||||||
elif [ -f /opt/wz_mini/tmp/.WYZEC1-JZ ]; then
|
|
||||||
# v2
|
|
||||||
printf "[VER]\nappver=4.9.9.3006\n" > /opt/wz_mini/tmp/patched_app.ver
|
|
||||||
elif [ -f /opt/wz_mini/tmp/.WYZECP1_JEF ]; then
|
|
||||||
# pan v1
|
|
||||||
printf "[VER]\nappver=4.10.9.3006\n" > /opt/wz_mini/tmp/patched_app.ver
|
|
||||||
elif [ -f /opt/wz_mini/tmp/.HL_PAN2 ]; then
|
|
||||||
# pan v2
|
|
||||||
printf "[VER]\nappver=4.49.13.0653\n" > /opt/wz_mini/tmp/patched_app.ver
|
|
||||||
fi
|
|
||||||
|
|
||||||
mount --bind /opt/wz_mini/tmp/patched_app.ver /system/bin/app.ver
|
|
||||||
|
|
||||||
echo "Firmware updates disabled"
|
echo "Firmware updates disabled"
|
||||||
else
|
else
|
||||||
echo "Firmwware updates enabled, monitor script running"
|
echo "Firmwware updates enabled, monitor script running"
|
||||||
|
36
SD_ROOT/wz_mini/etc/rc.d/S11spoofing
Normal file
36
SD_ROOT/wz_mini/etc/rc.d/S11spoofing
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides:
|
||||||
|
# Short-Description: FW Version Spoof
|
||||||
|
# Description: Spoofs firmware version of ICamera
|
||||||
|
### END INIT INFO
|
||||||
|
|
||||||
|
. /opt/wz_mini/wz_mini.conf
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
echo "#####$(basename "$0")#####"
|
||||||
|
|
||||||
|
if [[ "$SPOOF_FW_VER="true" ]]; then
|
||||||
|
if [ -f /opt/wz_mini/tmp/.WYZE_CAKP2JFUS ]; then
|
||||||
|
# v3
|
||||||
|
printf "[VER]\nappver=4.36.13.0416\n" > /opt/wz_mini/tmp/patched_app.ver
|
||||||
|
elif [ -f /opt/wz_mini/tmp/.WYZEC1-JZ ]; then
|
||||||
|
# v2
|
||||||
|
printf "[VER]\nappver=4.9.9.3006\n" > /opt/wz_mini/tmp/patched_app.ver
|
||||||
|
elif [ -f /opt/wz_mini/tmp/.WYZECP1_JEF ]; then
|
||||||
|
# pan v1
|
||||||
|
printf "[VER]\nappver=4.10.9.3006\n" > /opt/wz_mini/tmp/patched_app.ver
|
||||||
|
elif [ -f /opt/wz_mini/tmp/.HL_PAN2 ]; then
|
||||||
|
# pan v2
|
||||||
|
printf "[VER]\nappver=4.49.13.0653\n" > /opt/wz_mini/tmp/patched_app.ver
|
||||||
|
fi
|
||||||
|
mount --bind /opt/wz_mini/tmp/patched_app.ver /system/bin/app.ver
|
||||||
|
fi
|
||||||
|
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
@ -103,6 +103,7 @@ ENABLE_USB_STORAGE="false"
|
|||||||
ENABLE_EXT4="false"
|
ENABLE_EXT4="false"
|
||||||
ENABLE_CIFS="false"
|
ENABLE_CIFS="false"
|
||||||
DISABLE_FW_UPGRADE="true"
|
DISABLE_FW_UPGRADE="true"
|
||||||
|
SPOOF_FW_VER="true"
|
||||||
AUDIO_PROMPT_VOLUME="50"
|
AUDIO_PROMPT_VOLUME="50"
|
||||||
ENABLE_MP4_WRITE="false"
|
ENABLE_MP4_WRITE="false"
|
||||||
NIGHT_DROP_DISABLE="false"
|
NIGHT_DROP_DISABLE="false"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user