4 ms·
I think that iOS does block this.[0] Unfortunately, preventing loading executable code on Android would break many useful apps (e.g. Termux[1]). Also, arguably
by gnomewascool 8y ago
I think that iOS does block this.[0]
Unfortunately, preventing loading executable code on Android would break many useful apps (e.g. Termux[1]). Also, arguably, it would mean that third-party browsers couldn't exist, since javascript is code, after all (iOS doesn't have this problem, as no third-party browser engines are permitted — all browsers are just skins over Safari).
OTOH, perhaps there could be a "permission-like"[2] flag on Android where an app would have to declare that it loads external executable code. Apps that did not use this flag, but were detected as updating executable code (even if not malicious), would be banned from Google Play. Diligent users could then check whether an app used this flag, if it seemed as if it shouldn't need it and be careful.
[0] https://developer.apple.com/app-store/review/guidelines/#software-requirements https://developer.apple.com/app-store/review/guidelines/#sof... (§2.5.2)
[1] https://termux.com/ https://termux.com/
[2] it wouldn't be an actual OS permission, just informational