Android SSL and Wif Security in Marshmallow 6.0


Android is moving away from OpenSSL to the BoringSSL library. If you’re using the Android NDK in your app, don’t link against cryptographic libraries that are not a part of the NDK API, such as and These libraries are not public APIs, and may change or break without notice across releases and devices. In addition, you may expose yourself to security vulnerabilities. Instead, modify your native code to call the Java cryptography APIs via JNI or to statically link against a cryptography library of your choice.

Access to Hardware Identifier

To provide users with greater data protection, starting in this release, Android removes programmatic access to the device’s local hardware identifier for apps using the Wi-Fi and Bluetooth APIs. The WifiInfo.getMacAddress() and the BluetoothAdapter.getAddress() methods now return a constant value of 02:00:00:00:00:00.

To access the hardware identifiers of nearby external devices via Bluetooth and Wi-Fi scans, your app must now have the ACCESS_FINE_LOCATION orACCESS_COARSE_LOCATION permissions:

Note: When a device running Android 6.0 (API level 23) initiates a background Wi-Fi or Bluetooth scan, the operation is visible to external devices as originating from a randomized MAC address.



Using Genymotion android emulator with Meteor

This is very important.

Cordova sees emulators as real devices so any commands you use must be as though you are connecting to a physical device.

This command will load your android app into your Genymotion instance and point it to your local IP. (substitute your own LAN IP in your case).

meteor run android-device –mobile-server=http://192.168.1.x:3000


meteor run android-device

Running multiple instances

Initially you may only have one instance running at a time.To work around this minor limitation you can load your app on many emulated instances and then turn them all on concurrently to simulate multiple cordova users.

Within your meteor project root directory using this command line to deploy more instances:


This will install the compiled app onto the device that is connected. Repeat for each device.

Then you can run a development instance of meteor with a mobile-server that all the clients will be connected.

Whenever you want to test, open up  your instances and fire up a meteor server instance.

meteor run android-device

Tips on running more than one emulator concurrently:


Ensure you have USB debugging enabled

Ensure that you can connect to your instance using ADB

Ensure that you your device shows up as connected via ADB, check with ‘adb devices’ and ‘adb connect IP’

Ensure that you are using the latest version of ADB 1.0.32 (verify with ‘adb version’ in command line)

Ensure that you have configured Genymotion to use the same ADB as your system instance.

Other reading:

Adding Google Apps (gapps) to Genymotion 2.6 +

Follow this instructional video.

Grab the Gapps signed packages here

Tested April 2016


Alt solution, (untested)

1) genymotion 2.6.0
2) device emulator PREVIEW – Google Nexus 5X – 6.0.0 – API 23 – 1080×1920
3) flash then restart.
4) flash (
5) sign in into your google account.
6) flash ( and restart.


Alt solution, tested

  1. Install a latest Genymotion (version 2.6.0 in my case). Make sure the previous old (preview) Android 6.0 images are removed (Genymotion -> Settings -> Misc -> Clear cache).
  2. Add a new virtual device, select Google Nexus 5X and Android 6.0 image. It should download a new image from Genymotion website.
  3. Start created Google Nexus 5X – 6.0.0 – API 23 – 1080×1920 virtual device.
  4. Flash (drag&drop the zip file to virtual device window) and then restart the virtual device.
  5. Flash and restart the virtual device again.
  6. Now add Google account in the virtual device via Settings -> Accounts -> Add account. 
  7. Do not start Google Play! Ignore any crashes in sign in process.
  8. Flash and restart the virtual device.
  9. Open Google Play in virtual device, update all installed applications.
  10. Now the device is prepared with working Google Play and Google Play Services.


Alt downloads for Gapps


Notes: It seems you cannot use the open_gapps packages as they are not signed. Perhaps there’s a workaround but the method above works out of the box.



Android, Androidx86 Virtualbox, adb, Chrome Inspector

Use a bridged connection and follow this short guide

Android Debugging with VirtualBox & Androidx86

Androidx86 install guide (


To connect Android virtual machine with adb follow these step

  1. On Android home screen, press ALT+F1 (Left alt). This will open a terminal with root access.

  2. Inside the terminal, type dhcpcd eth0. Execute the command twice, if you get an error or no result. This will give you an IP address. Now press ALT+F7 for close the terminal.

  3. Verify your IP address using the command ping <your IP Address>

  4. From the android terminal, type adb tcpip 5555. This will restart adb in tcpip mode.

  5. From your main OS terminal, type adb connect <your IP address>




Try these steps if you encounter any connection issues.

adb kill-server

sudo adb tcpip 5555

adb connect

Android Drawables

How it works


What are the drawable assets that can be replaced


What is the problem we are solving


What do to


How to solve the problem efficiently


Meteor cordova integration notes


Sometimes you might need to override parts of the Cordova project that Meteor generates for you in the project/.meteor/local/cordova-build directory. For example, you might need to add some files to the build process in an ad-hoc way.

For these and other advanced purposes we have created a special top-level folder calledcordova-build-override. The whole file tree of this directory will be cp -R (copied overwriting existing files) to the Cordova project right before the build and compilation step.

For example: if you want to have a customized config.xml, you can put it in project/cordova-build-override/config.xml.



Best place to install , and how to install Android SDK for OSX MAC


The easiest way to install Android SDK under OS X is to use brew.

brew install android-sdk

 After installation,

Now run the ‘android’ tool to install the actual SDK stuff.



The Android-SDK location for IDEs such as Eclipse, IntelliJ etc is:




You will have to install the platform-tools and docs EVERY time this formula

updates. If you want to try and fix this then see the comment in this formula.


You may need to add the following to your .bashrc:

  export ANDROID_HOME=/usr/local/opt/android-sdk