Repository navigation
Android: auto-grant MANAGE_EXTERNAL_STORAGE for faster dev testing - #14366
Conversation
|
@benoit-pierre As an aside, I see this comment here says something about not recreating the archive from scratch, but I always get archive creation even if I didn't change anything. Lines 90 to 92 in d71d134 |
| # install | ||
| adb install $(ADB_INSTALL_FLAGS) '$(ANDROID_APK)' | ||
| # speed up testing, auto-grant permission | ||
| adb shell appops set --uid $(ANDROID_APP_ID) MANAGE_EXTERNAL_STORAGE allow |
There was a problem hiding this comment.
This would matter an awful lot less if newer Android (15 and 16, possibly older as well) didn't get into a state where you couldn't grant the permission in the dialog with the way this is scripted. I suspect something about the uninstall may have been made asynchronous? But simply adding in a sleep 2 or something doesn't change the situation.
Screen_recording_20250927_122815.webm
|
The comment was copied from the old code, but #11798 added those lines that always remove it: Lines 93 to 94 in d71d134 The issue is the misleading comment more than anything, though I wouldn't object to saving a few seconds. In theory changing things in Kotlin shouldn't affect the resource bundle after all. :-) But hey, it's still faster than all the other Gradle stuff anyway. |
It's not the same directory: that command remove the old in-tree build artifacts (in |
If your 7z version support it, you can change the compression method, e.g. I use: |
And the diff is always the same? |
|
Yes, it's always identical. |
|
Wait, is that |
|
Yep, that's the issue, I can reproduce locally after: |
This change is