forked from LineageOS/android_device_oneplus_sdm845-common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdm845-common: Fix restoring default LiveDisplay mode
* Call DisplayModes::setDisplayMode(modeID, false) in the constructor * Move sysfs nodes chown/chmod to from 'on boot' to on init' so that they have proper perms right away. Change-Id: I51ee19136688f83703e85b76d5219e5a567bbaa3
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
on post-fs-data | ||
mkdir /data/misc/display 0770 system graphics | ||
|
||
on boot | ||
on init | ||
chmod 0660 /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/display_mode | ||
chmod 0660 /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/hbm | ||
chown system system /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/display_mode | ||
chown system system /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/hbm | ||
|
||
on post-fs-data | ||
mkdir /data/misc/display 0770 system graphics | ||
|
||
service livedisplay-hal-2-0 /system/bin/hw/[email protected]_sdm845 | ||
class hal | ||
user system | ||
|