Skip to content

Instantly share code, notes, and snippets.

View cnevinc's full-sized avatar

Nevin cnevinc

View GitHub Profile
| Event | category | method | object | value | extra |
| ---- | ---- | ---- | ---- | ---- | ---- |
|App is launched from Private Shortcut|action|launch|app|"private_mode"|"from=[launcher|external_app],"
|Show private shortcut prompt|action|show|private_shortcut|""|"mode=private_mode,"
|Click private shortcut prompt|action|click|private_shortcut|"[positive|negative|dismiss]"|"mode=private_mode,"
|Users clicked on a Setting|action|click|setting|"pref_private_shortcut"|""
|Exit private mode|action|click|private_mode|"exit"|"from=[system_back],mode=private_mode,"
|Private shortcut created|action|pin_shortcut|private_shortcut|""|"mode=private_mode,"
|Kill app|action|kill|app|""|"mode=private_mode,"
|Show TabTray from Toolbar|action|show|tab_tray|"toolbar"|"version=2,mode=[webview|menu],position=[0-4],"
## Privacy Policy
built the AAB Sample app as an Open Source app. This SERVICE is provided by 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 AAB Sample unless otherwise defined in this Privacy Policy.
@cnevinc
cnevinc / gist:7de29e9b4bbee37643b70880c6d98ce9
Created June 1, 2018 03:55
Could not launch intent Intent
java.lang.RuntimeException: Could not launch intent Intent { flg=0x14000000 cmp=org.mozilla.rocket.debug.mozilla/org.mozilla.focus.activity.MainActivity } within 45 seconds. Perhaps the main thread has not gone idle within a reasonable amount of time? There could be an animation or something constantly repainting the screen. Or the activity is doing network calls on creation? See the threaddump logs. For your reference the last time the event queue was idle before your activity launch request was 1527824863949 and now the last time the queue went idle was: 1527824863961. If these numbers are the same your activity might be hogging the event queue.
at android.support.test.runner.MonitoringInstrumentation.startActivitySync(MonitoringInstrumentation.java:419)
at android.support.test.rule.ActivityTestRule.launchActivity(ActivityTestRule.java:332)
at org.mozilla.focus.telemetry.TelemetryWrapperTest.settingsClickEvent(TelemetryWrapperTest.java:109)
at java.lang.reflect.Method.invoke(Native Method)
at org.junit.runn
curl -i -H 'Content-type: application/json' -H 'Authorization: key=<your_server_key>' -XPOST https://fcm.googleapis.com/fcm/send -d '{
"registration_ids":["registration_ids", "of the", "target", "devices as array"],
"notification": {
"title":"Title of your notification",
"body":"content of your notification"
},
"data": {
"key1" : "value1",
"key2" : "value2",
"key3" : 23.56565,
# Build Firefox for Android:
ac_add_options --enable-application=mobile/android
ac_add_options --target=arm-linux-androideabi
# With the following Android SDK:
ac_add_options --with-android-sdk="/Users/<user name>/.mozbuild/android-sdk-macosx"
# Enable artifact building:
ac_add_options --enable-artifact-builds
@cnevinc
cnevinc / mozconfig @ work
Last active September 11, 2017 02:11
mozconfig
## Build Firefox for Android Artifact Mode:
ac_add_options --enable-application=mobile/android
ac_add_options --target=arm-linux-androideabi
ac_add_options --enable-artifact-builds
#
## With the following Android SDK:
ac_add_options --with-android-sdk="/Users/nechen/.mozbuild/android-sdk-macosx"
#
## Write build artifacts to:
mk_add_options MOZ_OBJDIR=./objdir-frontend
@cnevinc
cnevinc / fennec_qc_git
Last active September 26, 2017 05:29
Firefox for Android Quick Start for Git Users -v20170905
# Install git-cinnabar
git clone https://github.com/glandium/git-cinnabar
git -C git-cinnabar submodule update --init
make -C git-cinnabar
# Add git-cinnbar to PATH
echo 'PATH=$(pwd)/git-cinnabar:$PATH' >> ~/.bash_profile
echo 'PATH=$(pwd)/git-cinnabar/git-core/bin-wrappers:$PATH' >> ~/.bash_profile
# Install Xcode ( Please use stable version. After download you'll need to start Xcode mannually and accept the license.)
https://developer.apple.com/xcode/
#fennec
export ANDROID_SDK_ROOT=/Users/nechen/.mozbuild/android-sdk-macosx
#export ANDROID_SDK_ROOT=/Users/nechen/.android-sdk
#export ANDROID_SDK=/Users/nechen/.android-sdk
export ANDROID_HOME=/Users/nechen/.mozbuild/android-sdk-macosx
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/build-tools/23.0.3:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=/Users/nechen/Desktop/github/git-cinnabar:$PATH
export VCT=~/.mozbuild/version-control-tools/git/commands
@cnevinc
cnevinc / .travis.yml
Created April 19, 2016 00:06
for Android Studio 2.0
language: android
jdk:
- oraclejdk8
env:
matrix:
- ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
global:
- ADB_INSTALL_TIMEOUT=8
android:
components:
@cnevinc
cnevinc / genymotionwithplay.txt
Created April 7, 2016 15:44 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)