Skip to content

Instantly share code, notes, and snippets.

@laithnurie
laithnurie / emulator-install-using-avdmanager.md
Created August 11, 2022 16:42 — forked from mrk-han/emulator-install-using-avdmanager.md
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For generic skin emulator with default apis (without google apis):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-29;default;x86"

@laithnurie
laithnurie / squaa_policy.md
Last active May 11, 2020 12:03
Squaa Privacy Policy

Privacy Policy

Laith Nurie built the Squaa app as an Ad Supported app. This SERVICE is provided by Laith Nurie at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Squaa unless otherwise defined in this Privacy Policy.

big O cheatsheet
Android ADB `adb shell input keyevent` Codes
public static final int KEYCODE_UNKNOWN = 0;
/** Key code constant: Soft Left key.
* Usually situated below the display on phones and used as a multi-function
* feature key for selecting a software defined function shown on the bottom left
* of the display. */
public static final int KEYCODE_SOFT_LEFT = 1;
/** Key code constant: Soft Right key.
@laithnurie
laithnurie / laith_cv.json
Last active May 28, 2019 22:27
laith_cv_json
{
"name": "Laith Nurie",
"summery": "Another robot that does codey things",
"skills":[{
"name": "Android",
"level": 5
},{
"name": "Java",
"level": 5
},{
@laithnurie
laithnurie / Kotlin scoping functions
Last active January 9, 2019 19:30
Kotlin scoping functions
Kotlin scoping functions
ssh-keygen -t rsa -b 4096 -C "[email protected]"
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Breakpoints
@laithnurie
laithnurie / android zshrc
Last active June 27, 2024 15:40
android zshrc
export ANDROID_HOME=/Users/$USER/Library/Android/sdk
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
export PATH=$PATH:${ANDROID_HOME}/platform-tools/
export PATH="$JAVA_HOME/bin:$PATH"
@laithnurie
laithnurie / PIP.java
Created February 21, 2018 10:33
Picture in Picture PIP Android
@Override
public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode, Configuration newConfig) {
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig);
if (isInPictureInPictureMode) {
updatePictureInPictureState(true);
broadcastReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
if (intent == null || ACTION_MEDIA_CONTROL != intent.getAction()) {