-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeviceinfo
More file actions
executable file
·29 lines (26 loc) · 1.33 KB
/
deviceinfo
File metadata and controls
executable file
·29 lines (26 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/system/bin/sh
# Device info properties and various device environment variables
# Device Information
# If the device's values from default.prop aren't correct or don't make sense,
# it might make more sense to just fill this out by hand.
export DEVICE_MANUFACTURER=`getprop ro.product.manufacturer`
export DEVICE_MODEL=`getprop ro.product.model`
export DEVICE_NAME="$DEVICE_MANUFACTURER $DEVICE_MODEL"
export DEVICE_CODENAME=`echo $DEVICE_MODEL | tr "[:upper:]" "[:lower:]"`
# Device screen configuration
# Screen rotation (in 90°CW increments): 1 for 90°CW, 2 for 180°CW, or 3 for 270°CW
export SDL_SCREEN_ROTATION=0
# Skip the SDL encoder ID check (Unisoc devices report invalid encoder IDs)
export SDL_SKIP_ENCODER_ID_CHECK=1
# Tell SDL to blacklist unwanted joysticks
export SDL_JOYSTICK_DEVICE_BLACKLIST=unwanted:inputdevice:names
# Override the ALSA default period size
export ALSA_DEFAULT_PERIOD_SIZE=1024
# Force ALSA to use MMAP
export ALSA_FORCE_MMAP=1
# The location of the brightness control
export LCD_BRIGHTNESS_PATH=/sys/devices/platform/sprd_backlight/backlight/sprd_backlight/brightness
# The location of the maximum brightness control value or the value itself
export LCD_BRIGHTNESS_MAXIMUM=/sys/devices/platform/sprd_backlight/backlight/sprd_backlight/max_brightness
# The minimum brightness value
export LCD_BRIGHTNESS_MINIMUM=1