Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsmasq fixes and giving firmware spoofing its own option. #804

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Breaking firmware spoofing out into its own setting, rather than enab…
…ling with blocking.
  • Loading branch information
sideup66 committed Oct 17, 2024
commit 8765c2e194d1f531041f59bce9623b3d0a57c6dc
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
7 changes: 7 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\C:\\Users\\Vincent\\Source\\Repos\\wz_mini_hacks",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added .vs/wz_mini_hacks/v17/.wsuo
Binary file not shown.
17 changes: 0 additions & 17 deletions SD_ROOT/wz_mini/etc/rc.d/S10firmware
Original file line number Diff line number Diff line change
@@ -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
#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 &

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"
else
echo "Firmwware updates enabled, monitor script running"
36 changes: 36 additions & 0 deletions SD_ROOT/wz_mini/etc/rc.d/S11spoofing
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions SD_ROOT/wz_mini/etc/wz_mini.conf.dist
Original file line number Diff line number Diff line change
@@ -103,6 +103,7 @@ ENABLE_USB_STORAGE="false"
ENABLE_EXT4="false"
ENABLE_CIFS="false"
DISABLE_FW_UPGRADE="true"
SPOOF_FW_VER="true"
AUDIO_PROMPT_VOLUME="50"
ENABLE_MP4_WRITE="false"
NIGHT_DROP_DISABLE="false"