GBBGo

     -- Why should i learn how to write, everything is already written?
     -- But you should learn how to read!
     -- I can't learn reading from something written, this is nonsense:)

I. Android-x86 6.01 and VirtualBox
----------------------------------

1. Install bridged Marsmallow (6.01rc).

  http://rwthaachen.dl.osdn.jp/android-x86/65890/android-x86_64-6.0-r1.iso

2. Check for IP

  ALT-F1, # ifconfig, ALT-F7

3. Install adb & fastboot

  http://www.stechguide.com/how-to-install-adb-and-fastboot-on-windows/
  http://forum.xda-developers.com/showthread.php?t=2588979

4. Sample session with host (Android Debug Bridge aka adb).
   (apk downloaded from http://www.soft9.us/download.php?app_id=106337)

  C:\adb>adb kill-server

  C:\adb>adb connect 192.168.1.161:5555
  * daemon not running. starting it now on port 5037 *
  * daemon started successfully *
  connected to 192.168.1.161:5555

  C:\adb>adb install -r com.geekyouup.android.newton.apk
  14285 KB/s (71797 bytes in 0.004s)
          pkg: /data/local/tmp/com.geekyouup.android.newton.apk
  Success

5. Run Newton Balls on android.

II. ADB ON Xenial 16.10*1
-------------------------

Switch Android VM to NAT network. In XUbuntu VM install:

  # apt-get install software-properties-common python-software-properties *2
  # add-apt-repository ppa:phablet-team/tools && sudo apt-get update
  # apt-get install android-tools-adb android-tools-fastboot

View available devices:

  adb devices

Connect to Android device:

  adb connect <IP-addr>

To copy a file from the computer to an android device connected via usb:

  adb push /path/to/local/file /mnt/sdcard/path/to/file

Directories can be created on the device via the shell:

  adb shell

and using the usual shell commands to navigate around and create directories.

-------------

*1) http://lifehacker.com
    /the-easiest-way-to-install-androids-adb-and-fastboot-to-1586992378

*2) http://android-er.blogspot.com.ee/2015/10
       /install-android-studio-on-64-bit-ubuntu_24.html


III. ANDROID STUDIO on XUbuntu 16.10*1
--------------------------------------

  General:  Basic:       Name: Xubuntu1610x64
                         Type: Linux
                         Version: Ubuntu (64 bit)
            Advanced:    Shared Clipboard: Bidirectional

  System:   Base Memory: 2048 MB

  Storage:  XUbuntu1610-16GB.vhd

  Network:  Adapter 1. NAT Network

To install Android Studio on Ubuntu:

  - Add the Ubuntu Make ppa:
  # add-apt-repository ppa:ubuntu-desktop/ubuntu-make
  # apt-get update

  - Install Ubuntu Make:
  # apt-get install ubuntu-make

  - Install android-studio:
  # umake android

Choose installation path (default):

  /home/virtu/android-studio

To install Oracle JDK8:

  sudo apt-add-repository ppa:webupd8team/java
  sudo apt-get update
  sudo apt-get install oracle-java8-installer

--------

*1) http://android-er.blogspot.com.ee/2015/10
       /install-android-studio-on-64-bit-ubuntu_24.html

Example: Install modified app to Android VM
-------------------------------------------

1. Clone Eclipse project using git:

  cd ~
  sudo apt-get install git
  git clone https://github.com/mefernandez/android-snake-example

2. Import project into Android Studio. tip: Set some empty directory as Eclipse Workspace (~/Music was used)

3. Build project, Build debug apk

4. Install x-debug-unaligned.apk via

  adb connect 10.0.2.X
  adb install x-debug-unaligned.apk

5. Test installed app on Android.

Links
-----

1. Minimal ADB and FastBoot

    http://forum.xda-developers.com/showthread.php?t=2317790
    http://imgur.com/a/r3Sdd

2. https://github.com/gen2brain/go-sdl2-android-example

I also found this links useful during this lesson:
--------------------------------------------------

1. Learn on Android device
   (Java, HTML, Python, C++, JavaScript, PHP, SQL, CSS, C#, Swift,..):

  https://apkpure.com/developer/SoloLearn

2. Servers bundle on Android (LAMP+):

  https://play.google.com/store/apps/details?id=com.icecoldapps.ultiserver

3. Run Android-x86 Marsmallow from live USB

  https://www.youtube.com/watch?v=WRID7XkU62U

4. Shut down VM gently. (As root (Alt-F1) type "reboot -p").

  https://groups.google.com/forum/#!topic/android-x86/pEI7xAnOpNY

5. Try disabling keyboard auto-capture:

    In the main window press File|Preferences
    Select the "Input" tab
    Uncheck "Autocapture keyboard"

  This also disables mouse-autocapture.

  http://superuser.com/questions/214414
  /how-to-permanently-disable-mouse-integration-in-virtualbox

6. How to turn off Software updater? (Xubuntu)

    Go to Settings > Session and Startup > App Autostart

  and uncheck Update Notifier.

    http://askubuntu.com/questions/446395
    /how-to-turn-off-software-updater-xubuntu
