This file contains hidden or 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 -> | |
// replace output apk name to <product>-<version>-<buildtype>-<githash>.apk | |
def versionSuffix = variant.buildType.versionNameSuffix ? variant.buildType.versionNameSuffix : "" | |
def versionName = variant.mergedFlavor.versionName + versionSuffix + "-${gitHash}"; | |
if (variant.zipAlign) { | |
def apkFinal = variant.outputFile; | |
variant.outputFile = new File(apkFinal.parentFile, apkFinal.name.replace(variant.buildType.name, versionName)); | |
} |
This file contains hidden or 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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.5.6' | |
} | |
} | |
task wrapper(type: Wrapper) { |
This file contains hidden or 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
configurations { | |
provided | |
} | |
dependencies { | |
provided files('libs/xxxx.jar') | |
} | |
android.applicationVariants.all { variant -> | |
variant.javaCompile.classpath += configurations.provided |
This file contains hidden or 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
dependencies { | |
compile files('libs/xxxx.jar') | |
} | |
android.applicationVariants.all { variant -> | |
if (variant.buildType.name.equals("release")) { | |
variant.dex.libraries = variant.dex.libraries - files('libs/xxxx.jar') | |
} | |
} |
This file contains hidden or 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 | |
adb wait-for-device > /dev/null 2>& 1 | |
read IP PORT GARBAGE <<< $(adb devices | awk -F"[:\t]" ' NR > 1 && NF { print $1; print $2; print $3 } ') | |
adb -s $IP:$PORT root | |
adb connect $IP:$PORT |
This file contains hidden or 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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
if (gradle.gradleVersion.startsWith("1.8")) { | |
classpath 'com.android.tools.build:gradle:0.6.0' | |
} else { | |
classpath 'com.android.tools.build:gradle:0.5.6' | |
} |
This file contains hidden or 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 | |
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/Dropbox/Screenshots/`date +"Screenshot_%Y-%m-%d-%H-%M-%S.png"` |
This file contains hidden or 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 -d shell "am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///sdcard/folder/" |
This file contains hidden or 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
# begin build properties | |
# autogenerated by buildinfo.sh | |
ro.build.id=JDQ39 | |
ro.build.display.id=wing_k70-eng 4.2.2 JDQ39 20140207 test-keys | |
ro.build.version.incremental=20140207 | |
ro.build.version.sdk=17 | |
ro.build.version.codename=REL | |
ro.build.version.release=4.2.2 | |
ro.build.date=五 2月 7 13:01:22 CST 2014 | |
ro.build.date.utc=1391749282 |
This file contains hidden or 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
==================== [ T00F TW version ] ==================== (Newest version: 1021 2.20.40.9) | |
(給 1003 套用的更新檔案) | |
http://fota.asus.com/delta_package/phone/TW_a500cg/formal/TW_user_2.19.40.18_20141003_8008-user-TW_a500cg-TW_user_2.20.40.9_20141021_4378-user-TW_a500cg-20141021/TW_500_1003_1021_20141021.zip | |
(給 0925 套用的更新檔案) | |
http://fota.asus.com/delta_package/phone/TW_a500cg/formal/TW_user_2.19.40.6_20140925_5363-user-TW_a500cg-TW_user_2.20.40.9_20141021_4378-user-TW_a500cg-20141021/TW_500_0925_1021_20141021.zip | |
http://fota.asus.com/delta_package/phone/TW_a500cg/formal/TW_user_2.19.40.6_20140925_5363-user-TW_a500cg-TW_user_2.19.40.18_20141003_8008-user-TW_a500cg-20141003/TW_500_0925_1003_20141003.zip | |
(給 0903 套用的更新檔案) (4.4) | |
http://fota.asus.com/delta_package/phone/TW_a500cg/formal/TW_user_1.18.40.10_20140903_9870-user-TW_a500cg-TW_user_2.20.40.9_20141021_4378-user-TW_a500cg-20141021/TW_500_0903_1021_20141021.zip |