-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not obfuscate library uris when the library contains entrypoint annotation #44215
Comments
How difficult would this be to fix? We're hitting more issues with this recently in Flutter due to new plugin registration mechanics; is this something we could potentially fix in the short term instead of having to work around it? |
@jensjoha Jens, could you take a look at this to unblock Flutter? It should be doable in the Kernel transforms that computes obfuscation prohibitions. ( |
So the suggested fix works when plugged in to flutter. But for my own curiosity I couldn't figure out where the obfuscation was happening in the VM (without the proposed fix), considering the uri isn't obfuscated in kernel_loader.cc. So for future reference it happens here: sdk/runtime/vm/compiler/aot/precompiler.cc Lines 2968 to 2977 in 33c38e9
Fix in the pipeline @ https://dart-review.googlesource.com/c/sdk/+/236220. |
flutter/flutter#99477 #44215 TEST=Test was added. Change-Id: I585da436f9692d7f2e08db7f74c1a71ad09a1cb1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236220 Reviewed-by: Slava Egorov <vegorov@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Jens Johansen <jensj@google.com>
Is this fixed for master, or is there more follow-up needed? |
I am gonna close given that @jensjoha has tested with Flutter and says it works. |
Awesome, thanks for the quick fix! |
Any estimates when it will land into Flutter stable? It's a blocker, since it's preventing us from releasing obfuscated Apps since Flutter 2.10 |
Issue still exists in Flutter Channel stable 3.0.1 when APK or appbundle is obfuscated Background plugin isolate log:
|
Probably flutter_isolate plugin is affected as well. |
@absar please file a separate issue with instructions on how to reproduce. |
Still error with 2.10.5 when APK or appbundle is obfuscated, My phone shows black screen. |
If a library contains a
@pragma('vm:entry-point')
annotation we should ensure to not obfuscate library uris as well as ensure to keep library uris available to make it possible for an embedder to invoke such an entry point.The text was updated successfully, but these errors were encountered: