Skip to content

Instantly share code, notes, and snippets.

@tahl
tahl / ads.sh
Created August 23, 2012 18:07
Android Download Script
#!/bin/bash
while :
do
wget -O - http://ipv4.download.thinkbroadband.com/512MB.zip
done
@tahl
tahl / andadb.sh
Created April 13, 2012 08:34
andadb2.2 for Ubuntu and Arch Linux
#!/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=
@tahl
tahl / andadb.sh
Created March 11, 2012 11:08
andadb2.1
#!/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 January 22, 2012 19:33
andadb2.0 modified script (Ubuntu)
#!/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 December 5, 2011 10:21
99-Android Rules Update
#!/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 October 7, 2011 22:13
Antipaper Notes HD Backup Script -> SD Card (ASUS Transformer)
#!/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 September 30, 2011 21:10
Android SDK + NDK + Eclipse and ADB Installer (Pacman)
#!/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 June 20, 2011 11:30
Android SDK + NDK Installer
#!/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 June 15, 2011 06:56
Android SDK + NDK + Eclipse and ADB Installer
#!/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."