Search Issue Tracker
Third Party Issue
Third Party Issue in 2023.3.X
Votes
0
Found in
2021.3.32f1
2022.3.13f1
2023.1.20f1
2023.2.0b18
2023.3.0a13
Issue ID
UUM-55696
Regression
No
[Android] The value of "Screen.brightness" is always 1 when changing the device's brightness
Steps to reproduce:
1. Open the attached “TestScreenBrightness” project
2. Build And Run the project on the device
3. Observe the “Screen brightness” value on the device’s screen
4. Change the brightness of the device
5. Observe the “Screen brightness” value on the device’s screen
Expected result: At 50% of device brightness the value is 0.5, and at 100% the value is 1
Actual result: The value is always 1
Reproducible with: 2021.3.32f1, 2022.3.13f1, 2023.1.20f1, 2023.2.0b18, 2023.3.0a13
Testing environment: macOS Sonoma 14 (Intel)
Not reproducible on: No other environment tested
Reproducible with devices:
VLNQA00017 - Huawei Nexus 6P (angler), CPU: Snapdragon 810 MSM8994, GPU: Adreno 430, OS: 8.0.0
Not reproducible with devices:
VLNQA00409 - Galaxy Z Fold3 5G (SM-F926B), CPU: Snapdragon 888, GPU: Adreno 660, OS: 11
VLNQA00513 - OnePlus Nord N10 5G (BE2029), CPU: Snapdragon 690 SM6350, GPU: Adreno 619, OS: 11
VLNQA00334 - Xiaomi Mi A3 (Mi A3), CPU: Snapdragon 665 SM6125, GPU: Adreno 610, OS: 11
VLNQA00293 - OPPO R17 Pro (PBDM00), CPU: Snapdragon 710 SDM710, GPU: Adreno 616, OS: 10
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
I feel like the OS in the device or the device itself is broken.
When I tested it, I found that changing the system brightness by command or the source code doesn't change the system brightness settings on the device.
When I run this command "adb shell settings put system screen_brightness 130", it doesn't change the system brightness settings on the device.
And after changing the system brightness settings, when I ran the command "adb shell settings get system screen_brightness", I could see it didn't return the proper brightness.
As a result, when I created an app using Android Studio, it showed the same broken results as in an app created using Unity.
This issue is not caused by Unity.
Resolution Note (2023.3.X):
I feel like the OS in the device or the device itself is broken.
When I tested it, I found that changing the system brightness by command or the source code doesn't change the system brightness settings on the device.
When I run this command "adb shell settings put system screen_brightness 130", it doesn't change the system brightness settings on the device.
And after changing the system brightness settings, when I ran the command "adb shell settings get system screen_brightness", I could see it didn't return the proper brightness.
As a result, when I created an app using Android Studio, it showed the same broken results as in an app created using Unity.
This issue is not caused by Unity.