A release APK is not DEBUGGABLE, so Capacitor never enables web-contents debugging and the devtools socket is never opened. page_loaded waited for that socket regardless, so it reported "renderer denied" three times for a healthy app, force-stopping and restarting it on each retry. It now branches: debug builds still wait for the page to parse; release builds check the process survived with no denial against our package, and say the page load is assumed rather than claiming a verification that is not possible over adb. The failure diagnostic was unfiltered and unbounded, so it printed other apps' denials from minutes earlier. It is now scoped to our package and to the current launch. Also fixes keep-awake, which still ran the "usb" form that CLAUDE.md had already recorded as ineffective on this AC-charging phone, and corrects the documented value: "true" measures as 15 here, not 7. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
5.9 KiB
Executable File
5.9 KiB
Executable File