wz_mini_hacks/SD_ROOT/wz_mini
Leo 10dba022a5
Added 'self-hosted' iCamera patch option to fix intermittent network issues (#312)
* Added iCamera patch option to fix intermittent network issues

This commit adds a ENABLE_ICAMERA_PATCH option to wz_mini.conf which
will patch the iCamera binary on the most recent firmware version so
that the device doesn't try bouncing the wireless interface when
iCamera is unable to reach the internet.

The iCamera program will be patched as part of the boot process when
`ENABLE_ICAMERA_PATCH=true` is set in wz_mini.conf. This patch can
be undone by setting `ENABLE_ICAMERA_PATCH=false` and then rebooting.

* Updated iCamera patch boot script to uninstall patch on failure

In case of an unsupported firmware update / downgrade, the iCamera
patch will uninstall itself and revert back to the stock executable.

* Set ENABLE_ICAMERA_PATCH default to false

The iCamera patch shouldn't be enabled unless network issues are
present. The user can toggle this option if they intend to run
the Wyze Cam on an isolated network.

* Fixed wait_for_icamera pgrep when running patched iCamera

The iCamera process may not be at /system/bin/iCamera if we run
the patched version of it.

This function is used to ensure that iCamera's running before
certain things happen. A search for just 'iCamera' should be
sufficient for this use case.

* Updated the iCamera patch feature as ENABLE_SELFHOSTED_MODE

This should make it clear this option should only be used in self-hosted
scenarios as it will break functionality with the Wyze App or other Cloud
services.

* Added iCamera patch support for v2 firmware 4.9.8.1002

This iCamera patch should handle the Wyze Cam v2 firmware 4.9.8.1002
and prevent the firmware from restarting the wireless network after
being unable to connect to the Wyze servers.

* Fixed iCamera build date check

Check was grepping for 'Build' which may include the build time
instead of build date.

* Updated readme for selfhosted iCamera patch feature

* Patched LED lights for v2 firmware

After connecting to WiFi, the blue LED status light will no longer blink.

* Changed the v2 status LED to remain on when connected

Looking at Wyze's documentation, the LED is supposed to be on when
it's connected and working. The off state from the last commit was
for the powered off state only.
2022-09-27 17:48:46 -07:00
..
bin add dnsmasq and cron to backup script 2022-08-13 17:23:29 -07:00
etc Added 'self-hosted' iCamera patch option to fix intermittent network issues (#312) 2022-09-27 17:48:46 -07:00
lib fix libcallback jpeg issue on t20 2022-08-19 22:25:32 -07:00
log iptables/nfsv4 support 2022-05-08 00:56:55 -07:00
mnt iptables/nfsv4 support 2022-05-08 00:56:55 -07:00
root iptables/nfsv4 support 2022-05-08 00:56:55 -07:00
tmp missing tmp directory 2022-04-21 16:15:45 -07:00
usr Added 'self-hosted' iCamera patch option to fix intermittent network issues (#312) 2022-09-27 17:48:46 -07:00
www fixes for recent errors (#277) 2022-08-26 23:17:38 -07:00
swap.gz add swap and logic 2022-04-14 01:35:27 -07:00
wz_mini.conf Added 'self-hosted' iCamera patch option to fix intermittent network issues (#312) 2022-09-27 17:48:46 -07:00