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 Debug Bridge (adb) udev definition file | |
# | |
# This rules file will add a /dev/android_adb symlink when an Android phone with | |
# an identified idVendor:idProduct appears on the USB port. Then it will run the | |
# Android adb program (located in specified RUN+ statement below). | |
# | |
# Copy this file to /etc/udev/rules.d/51-android.rules then run the following lines | |
# sudo chmod a+r /etc/udev/rules.d/51-android.rules | |
# sudo /etc/init.d/udev restart |
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
#!/usr/bin/env bash | |
# git bash prompt | |
# Based on twolfson's sexy bash prompt (https://github.com/twolfson/sexy-bash-prompt) | |
# If we are on a colored terminal | |
if tput setaf 1 &> /dev/null; then | |
# Reset the shell from our `if` check | |
tput sgr0 &> /dev/null | |
# If you would like to customize your colors, use |
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 | |
# | |
# usage : | |
# adb-debug-over-wifi [SERIAL OF THE DEVICE] | |
device_serial=$1 | |
devices_attached=`adb devices -l | grep -c "device:"` | |
# check the device | |
if [ -z "$device_serial" ]; then |
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/bash | |
## get the folders | |
folder1=$1 | |
folder2=$2 | |
empty="..." | |
# check we have two folders | |
if [ -z "$folder2" ]; then | |
echo " Missing folders to diff " |
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
package fr.xgouchet.androidlib.common; | |
import android.util.Log; | |
/** | |
* A utility class to insert logs in Android Log Cat, with link to the line calling it (much like in an exception stack trace). | |
* | |
*/ | |
public final class LogUtils { |
NewerOlder