Search Issue Tracker
Fixed
Fixed in 6.3.0-pre.1
Votes
0
Found in [Package]
6.2.0
Issue ID
ARCB-61
Regression
No
[Android] Permission window is not shown when using a Build App Bundle (Google Play) with Minify set to Release
How to reproduce:
1. Open the “ReproProject.zip“ project
2. In the “Edit > Project Settings > Player > Publishing Settings“ enable Release Minify
3. In the “File > Build Settings“ enable Build App Bundle (Google Play)
4. Upload the “.abb“ file on Google Play Store for internal testing
5. Download the app and open it
6. Press the “New Game“ button
Expected result: The application asks for Camera permissions and the AR Camera shows the Camera view
Actual result: The application does not ask for Camera permissions and the AR Camera shows a black screen
Reproducible with: 6000.0.53f1, 6000.1.11f1, 6000.2.0b9, 6000.3.0a1
Could not test with: 2021.3.53f1, 2022.3.64f1 (Gradle issue I could not resolve preventing from building)
Reproducible environment: macOS 15.4.1 (M4 Max)
Not reproducible environment: No other environment tested
Reproducible with these devices:
VLNQA00319, Google - (Pixel 4), Android 13, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640 (“.abb“ + Build and Run)
VLNQA00334, Xiaomi - (Mi A3), Android 11, CPU: Snapdragon 665 SM6125, GPU: Adreno (TM) 610 (Only Google Play Store)
VLNQA00511, Samsung Galaxy S8 (SM-G950F), Android 9, CPU: Exynos 9 Octa 8895, GPU: Mali-G71 (“.abb“ + Build and Run)
VLNQA00335, Samsung Galaxy S20+ 5G (SM-G986B), Android 10, CPU: Exynos 990, GPU: Mali-G77 (“.abb“ + Build and Run)
VLNQA00640, Samsung - (SM-S938B), Android 15, CPU: Snapdragon 9 Elite (SM8750), GPU: Adreno (TM) 830 (“.abb“ + Build and Run)
Notes:
- Disabling “Release“ Minify, makes the issue not reproducible
- With some devices, the issue reproduces when locally uploading the “.abb“ file with the Build and Run function
- Does not reproduce on iOS according to the original reporter
A few lines of the error:
Error Unity AndroidJavaException: java.lang.ClassNotFoundException: com.unity3d.plugin.UnityAndroidPermissions
Error Unity java.lang.ClassNotFoundException: com.unity3d.plugin.UnityAndroidPermissions
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Render Graph Viewer Capture button plays the click animation but does not do anything when the Capture button is pressed with the “Enter” key on the keyboard
- UI Builder Scrollview is unable to scroll all the way down when the window is downsized vertically
- Celestial bodies order remains unchanged when the Distance setting is modified
- A memory leak occurs with massive terrain when camera position changes occur.
- No valid hits are returned when using RaycastCommand
Resolution Note (fix version 6.3.0-pre.1):
Ok, I have confirmed that when I add a custom proguard-user.txt file to the project – as seen in the screenshots that I have attached – and put in the directives to "keep" the permissions related classes, they show up in the "classes.dex" file (found within the /base/dex of the generated .ABB file) which you can see using dexdump.
This will alleviate the missing java class due to it being stripped in the mini-fication process, and not found until the runtime JNI call is issued from the permission request.
See the attached *proguard-user.txt* file as a reference if other classes get stripped that are needed by the runtime JNI calls when testing. It contains the "-keep" directives. Consult the proguard reference for more information:
https://minimum-viable-product.github.io/marshmallow-docs/tools/help/proguard.html