use nginx to spoof update traffic, wan connection to pc. adapt install.sh use phone connect to gdock wifi and attempt update
update 20201220: this is how it works from firmware 2.0 stock
- attempt official system upgrade to 2.5. If not possible, use json spoof method (aka openwrt host method)
- for openwrt host method for system upgrade, use nginx+php. Probably apache2 could work too. Just remember to run the iptables hack inside install.sh to redirect all port 80 traffic to localhost. Then, run the update_time function (adapt from install.sh) to ensure the timestamp inside json is correct all the time, or else system upgrade won't work. Then use a phone to connect to router and perform the upgrade. No openwrt required, profit.
- Stock 2.5 allows unsigned flashing. After update to official openwrt (aka stock 2.5), flash the -unlock- version of openwrt inside webui. My guess is that this -unlock- version includes an unlocked bootloader. It is a nand-factory file so can't really inspect it.
- Next reboo