Skip to content

Instantly share code, notes, and snippets.

@tahl
tahl / ads.sh
Created Aug 23, 2012
Android Download Script
View ads.sh
#!/bin/bash
while :
do
wget -O - http://ipv4.download.thinkbroadband.com/512MB.zip
done
@tahl
tahl / andadb.sh
Created Apr 13, 2012
andadb2.2 for Ubuntu and Arch Linux
View andadb.sh
#!/bin/bash
#
#Android ADB Installer 2.1 for Ubuntu 11.10 and Arch Linux.
#Version 2.2 adds multi-distro support for Arch Linux. Ability to compile AOKP from source.
#Script written by @ArchDukeDoug and parts of @_CorCor67's scripting code used with permission as well.
#ADB Push script adapted to work from MappaM and pietro_spina's code on the xda-developer's forums.
#Thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script.
#Script version: 2.2
OS=`lsb_release -i | grep Distribu | awk {'print $3}'`
menu=
View andadb.sh
#!/bin/bash
#
#Android ADB Installer 2.1 for Linux Mint 11 and Ubuntu 11.04
#New: MTP Support and adb right click to push support
#Script written by @ArchDukeDoug and parts of @_CorCor67's scripting code used with permission as well.
#ADB Push script adapted to work from MappaM and pietro_spina's code on the xda-developer's forums.
#Thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script.
#Script version: 2.1
menu=
@tahl
tahl / andadb.sh
Created Jan 22, 2012
andadb2.0 modified script (Ubuntu)
View andadb.sh
#!/bin/bash
#
#Android ADB Installer 2 for Linux Mint 11 and Ubuntu 11.04
#This version is intended to be an improvement on previous version and give the user more installation options and bring more ease to people that want to develop,
#theme, or just whatever other purpose you may want to use something that is in my script for.
#Script written by @ArchDukeDoug and parts of @_CorCor67's scripting code used with permission as well.
#Thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script.
#Script version: 2.0.0
menu=
@tahl
tahl / rules.sh
Created Dec 5, 2011
99-Android Rules Update
View rules.sh
#!/bin/bash
#
#Automatically updates the 99-android.rules file
i=$(cat /proc/$PPID/cmdline)
if [[ $UID != 0 ]]; then
echo "Please type sudo $0 $*to use this."
exit 1
fi
#Create and update the etc/udev/rules.d/99-android.rules file
@tahl
tahl / antipaper.sh
Created Oct 7, 2011
Antipaper Notes HD Backup Script -> SD Card (ASUS Transformer)
View antipaper.sh
#!/bin/bash
#Script for ASUS Transformer
#Moves Antipaper Notes HD notebooks to the SD Card and sets the storage up a symbolic link on the device to move all future notebooks to the SD Card.
#Script created by @ArchDukeDoug
cd /
mkdir /Removable/MicroSD/Antipaper
mkdir /Removable/MicroSD/Antipaper/Notebooks
cp -f /data/data/com.pancerola.and.antipaper.notes/files/* /Removable/MicroSD/Antipaper/Notebooks
rm -R /data/data/com.pancerola.and.antipaper.notes/files/
@tahl
tahl / andadbarch.sh
Created Sep 30, 2011
Android SDK + NDK + Eclipse and ADB Installer (Pacman)
View andadbarch.sh
#!/bin/bash
#PACMAN VERSION <.......@....
#This script is designed to install the Android SDK, NDK, and Eclipse in Linux Mint 11 (and now revised for Arch Linux) and make it easier for people that want to develop for Android using Linux.
#Script written by @ArchDukeDoug with special thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script.
#I can be reached at dougw@uab.edu, twitter, or linuxrandomly.blogspot.com
#Script version: 1.0.5
#Changelog: 1.0.5 - Fixed the Android SDK search parameters to fit the new naming scheme on http://developer.android.com/sdk
i=$(cat /proc/$PPID/cmdline)
if [[ $UID = 0 ]]; then
echo "Please execute this script by typing only $0 $*because it cannot be run as the root user."
@tahl
tahl / androidsdk.sh
Created Jun 20, 2011
Android SDK + NDK Installer
View androidsdk.sh
#!/bin/bash
#
#Installer for Android SDK and NDK
#Twitter: @ArchDukeDoug
i=$(cat /proc/$PPID/cmdline)
if [[ $UID != 0 ]]; then
echo "Please type sudo $0 $*to use this."
exit 1
fi
@tahl
tahl / installer.sh
Created Jun 15, 2011
Android SDK + NDK + Eclipse and ADB Installer
View installer.sh
#!/bin/bash
#
#This script is designed to install the Android SDK, NDK, and Eclipse in Linux Mint 11 and make it easier for people that want to develop for Android using Linux.
#Script written by @ArchDukeDoug with special thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script.
#I can be reached at dougw@uab.edu, twitter, or linuxrandomly.blogspot.com
#Script version: 1.0.5
#Changelog: 1.0.5 - Fixed the Android SDK search parameters to fit the new naming scheme on http://developer.android.com/sdk
i=$(cat /proc/$PPID/cmdline)
if [[ $UID != 0 ]]; then
echo "Please type sudo $0 $*to use this."