DotFiles/Android is also relevant.
Hide the storage notification:
adb shell pm hide com.sonymobile.storagechecker
Force reboot if unresponsive
Hold down Power and Volume Up keys simultaneously.
On boot, once you feel device vibrate and while seeing the green LED burn:
- Press Volume Up for PhilZ Touch Recovery
- Press Volume Down for TWRP
LEDs for Xperia XZ Premium:
- Green light: flash mode
- Blue light: fastboot
Enable Night Light on Android Oreo 8.0. Modifies framework-res.apk. https://forum.xda-developers.com/crossdevice-dev/sony-themes-apps/oreo-enable-night-light-tile-t3713021/page3. On some Oreo devices after the March update, can also run:
adb shell cmd overlay enable --user 0 android.res.night