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
a.call === Function.prototype.call | |
//test |
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 | |
function choose_device() { | |
./adb start-server >/dev/null | |
./adb devices | tail -n+2 | head -n 1 | { while read dev_id dev_name; do | |
dev_model="$(./adb -s $dev_id shell cat /system/build.prop | grep ro\.product\.model | cut -d= -f2)" | |
printf "%s\n%s\n%s\n" "$dev_id" "$dev_name" "$dev_model" | |
done } | zenity --list --title="Select device" --column="ID" --column="デバイス名" --column="モデル名" |tr -d '\r' | |
} |
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 | |
# I put all my dev stuff in here | |
export DEV_PREFIX=$HOME/Dev/ | |
# Don't forget to adjust this to your NDK path | |
export ANDROID_NDK=${DEV_PREFIX}/android-ndk-r8d/ | |
export CROSS_COMPILE=arm-linux-androideabi |