Skip to content

Instantly share code, notes, and snippets.

View murano500k's full-sized avatar

Artem Radchenko murano500k

View GitHub Profile
@murano500k
murano500k / gradle.properties
Created February 6, 2017 10:23
$home/.gradle/gradle.properties
# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# The Gradle daemon aims to improve the startup and execution time of Gradle.
# When set to true the Gradle daemon is to run the build.
# TODO: disable daemon on CI, since builds should be clean and reliable on servers
@murano500k
murano500k / clean-repo-help.sh
Last active March 30, 2017 14:55
aosp git gerrit help
#don't remove repo
#remove only corrupted projects dirs
http://xda-university.com/as-a-developer/repo-tips-tricks
killall python
https://orga.cat/posts/most-useful-git-commands
@murano500k
murano500k / ParcelArrayConverterFunc.java
Created February 10, 2017 13:36
Convert array of parcelables from intent
private PlayableItem[] toPlayableItems(Parcelable[] parcelables){
PlayableItem[] objects = new PlayableItem[parcelables.length];
System.arraycopy(parcelables, 0, objects, 0, parcelables.length);
return objects;
}
// usage
//playableItems = toPlayableItems( intent.getParcelableArrayExtra(ITEMS_LIST_EXTRA));
@murano500k
murano500k / fix-fastboot.txt
Last active February 23, 2017 12:56
fastboot adb minicom fix no devices
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e11", MODE="666", GROUP="plugdev"
sudo usermod -G jenkins,plugdev,dialout,sudo,plugdev,adm,tty,dip jenkins
echo "0x18d1" > ~/.android/adb_usb.ini
Bus 001 Device 007: ID 18d1:4e11 Google Inc. Nexus One
artem adm tty dialout cdrom sudo dip plugdev lpadmin sambashare docker
rm -f ~/.android/adbkey ~/.android/adbkey.pub
sudo pico /etc/udev/rules.d/51-android.rules
sudo chmod 644 /etc/udev/rules.d/51-android.rules
sudo chown root. /etc/udev/rules.d/51-android.rules
@murano500k
murano500k / terminal_window_size.sh
Created February 24, 2017 13:04
Here's a little script to really permanently set a window size, regardless of gnome-terminal profile that you are currently using. This works on all windows belonging to gnome-terminal To make it work, you need two things: 1) make sure you have wmctrl installed and 2) run this script as one of the Startup Applications. Notice that line with wmct…
#!/bin/bash
# Purpose: a script to permanently set
# terminal window, size
APP_CLASS="gnome-terminal.Gnome-terminal"
while [ 1 ]; do
WIN_ID=$(printf %x $(xdotool getactivewindow))
WM_CLASS=$(wmctrl -lx | awk -v search=$WIN_ID '{ if($1~search) print $3 }')
WMCTRL_ID=$( wmctrl -lx | awk -v search2=$WIN_ID '$0~search2 {print $1}' )
if [ $WM_CLASS = $APP_CLASS ]; then
vts: All default VTS tests (To be finalized before Android O release).
vts-camera-its: For camera ITS (Image Test Suite) tests ported to VTS.
vts-codelab: For VTS codelab.
vts-coverage: For VTS code coverage tests.
vts-fuzz: For VTS Fuzz tests.
vts-gce: For VTS tests which can be run on Google Compute Engine (GCE).
vts-hal-hidl-profiling: For VTS HIDL HAL profiling tasks.
vts-hal-hidl: For VTS HIDL HAL tests.
vts-host: For VTS host-driven tests.
vts-kernel: For VTS kernel tests.
<html><b> Programming languages </b> <br/> Java, bash, Python, C++(familiar), Kotlin(familiar) <br/> <br/> <b> Integration </b> <br/> Gradle, Git, Gerrit, Jenkins, GitHub, Repo, Google Play <br/><br/> <b> Third-party android frameworks </b><br/> RxJava2, Retrofit2, Picasso, EventBus, Gson, butterknife, leakcanary, Mapbox, ExoPlayer, aacdecoder-android, aacplayer-android, OkHttp, jsoup, simplexml, strongswan, VK, FB, Twitter <br /> <br/> <b> Google APIs </b> <br/> Awareness, Geofence, Maps, Location, Android things, Firebase (Auth, Cloud-messaging, Analytics, Database) <br /> <br/> <b> Android platform components </b> <br/> adb, Android SDK, aosp, support-lib, SQLite, Content provider, RuntimePermission, MediaPlayer, MediaSession <br /> <br/> <b> Android testing tools </b> <br/> Instrumentation, Espresso​, UiAutomator, junit​, platform testing (cts, vts, ltp, khronos) <br /> <br/> <b> General </ b> <br> cmake, expect(scripting language), Selenium, apache bench, jmeter</html>
if you change manifest, then remove all except .repo to prevent building non-existent projects
lastres=$?; echo $lastres | mailx -s "bash mail at $(date)"
@murano500k
murano500k / gradle_help.md
Created March 27, 2017 15:26
Tips for build.gradle

//You can specify JVM arguments to Gradle daemon by entering a line in ~/.gradle/gradle.properties as shown below. org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 android.enableBuildCache=true android.builder.sdkDownload=true

######################################################################3 Use alfi to find the gradle dependency statement for a library