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
import android.provider.Settings; | |
import android.service.quicksettings.Tile; | |
import android.service.quicksettings.TileService; | |
import android.widget.Toast; | |
import java.util.concurrent.TimeUnit; | |
import static android.provider.Settings.System.SCREEN_OFF_TIMEOUT; | |
/** |
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
# Script to add back comments removed from source code | |
# Example use case: comments stripped out of HTC kernel releases | |
# | |
# Copyright (C) 2016 Sultan Qasim Khan | |
# | |
# Usage: | |
# 1. Find the closest upstream source release with comments (eg. CAF) | |
# 2. After checking out the closest upstream release, create a git | |
# commit overlaying the OEM modifications. Do this by replacing | |
# all files with the OEM versions and committing the change. |
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
#!/bin/sh | |
set -e | |
# First we are going to make sure that you understand this is sort of experimental and we will be compiling stuff. | |
# by default CONTINUE will be false | |
CONTINUE=false | |
echo "" | |
echo "You are about to download, compile, and install stuff on your computer." |