nsig solver: solve with js instead of v8 - #28
Conversation
|
Thanks for the efforts, friend. Why "The minSdkVersion had to be set to 26 so that the webview is available"? |
|
In specific there is the ability to override:
But I haven't tried that, not sure if its a good idea. |
|
The alternative is to not rely on androidx and just use the minimum APIs |
|
Got it. This looks like a good solution for API 26+, but the standalone V8 is still needed for older devices and for cases where the JavaScript Sandbox service is not supported. |
|
WebView itself is available since SDK version 1. So it should be possible to use it in any Android version. The sandbox is also not strictly required; it's provided to isolate YouTube's proprietary VM from the main process as an optional security consideration. I assume V8 does this implicitly. |
|
I also noticed cronet, however the only line that actually makes use of cronet in MediaServiceCore is actually commented out:
We can therefore reduce the size even more by removing cronet |
|
Got it. Let me know if test this code on old api (e.g. 19) |

The challenge test passes. I replaced usages of v8s provider and made the dependency compile only. project compiles and works fine over the system webview.
Considerations: