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 is for ATV only | |
alias adb-dev-options='adb shell am start -n com.android.tv.settings/.system.development.DevelopmentActivity' | |
# For mobile use: | |
#alias adb-dev-options='adb shell am start -n com.android.settings/.DevelopmentSettings' | |
# Animations | |
alias animations-off='adb shell settings put global animator_duration_scale 0' | |
alias animations-slow='adb shell settings put global animator_duration_scale 10' | |
alias animations-normal='adb shell settings put global animator_duration_scale 1' | |
alias animations-fast='adb shell settings put global animator_duration_scale 0.5' |
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
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
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
## List installed packages | |
adb shell 'pm list packages -f |
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
public class PracticalInfoFragment extends Fragment { | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
View view = inflater.inflate(R.layout.fragment_practical_info, container, false); | |
TextView practicalInfo = (TextView)view.findViewById(R.id.practical_info); | |
practicalInfo.setMovementMethod(LinkMovementMethod.getInstance()); | |
String infoString = _readStringFromAssets(); // Not detailed here, content can be seen in the other file below | |
_setTextViewLinks(practicalInfo, infoString); | |
return view; |
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
android.applicationVariants.all { variant -> | |
println "*********" + variant.description + "**********"; | |
def variants = variant.baseName.split("-"); | |
def apkName = "ricebook-"; | |
apkName += variants[0]; | |
apkName += "-v" + android.defaultConfig.versionName; | |
if (!variant.zipAlign) { | |
apkName += "-unaligned"; | |
} | |
if (variant.buildType.name == "release") { |