Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Distributed Cloud as a Pathway to Adaptable Artificial Intelligence.

I have published a new article on Medium.com

Distributed Cloud as a Pathway to Adaptable Artificial Intelligence.


https://medium.com/@ukidlucas/distributed-machine-learning-and-gp-ai-fc2a0e3f6db


As an Amazon Associate I earn from qualifying purchases.

Distributed Cloud as a Pathway to Adaptable Artificial Intelligence.

I have published a new article on Medium.com

Distributed Cloud as a Pathway to Adaptable Artificial Intelligence.


https://medium.com/@ukidlucas/distributed-machine-learning-and-gp-ai-fc2a0e3f6db


As an Amazon Associate I earn from qualifying purchases.

AWS-Lambda-Android







As an Amazon Associate I earn from qualifying purchases.

AWS-Lambda-Android







As an Amazon Associate I earn from qualifying purchases.

android-adb


It is frustrating when you cannot connect to ADB.

Here is a list of troubleshooting items:

Developer Options - ADB

The first one is obviously enabling ADB in Settings > Developer Options

USB role


The USB role for ADB should be the "Device", your computer is the "Host".


  • Device
    • this device is powered by the USB
    • this device can send ADB data to the Host
  • Host Mode
    • this device powers the USB
    • this device sends and receives the data
  • Accesory - this device cannot be a "Host", but acts like one
    • this device powers the USB
    • this device sends and receives the data



Correct DATA USB cable (and hubs)


This one gets me the most often, once you verify that the USB cable works label it.
The same goes for any hub or USB C to USB A converter.



References




As an Amazon Associate I earn from qualifying purchases.

android-adb


It is frustrating when you cannot connect to ADB.

Here is a list of troubleshooting items:

Developer Options - ADB

The first one is obviously enabling ADB in Settings > Developer Options

USB role


The USB role for ADB should be the "Device", your computer is the "Host".


  • Device
    • this device is powered by the USB
    • this device can send ADB data to the Host
  • Host Mode
    • this device powers the USB
    • this device sends and receives the data
  • Accesory - this device cannot be a "Host", but acts like one
    • this device powers the USB
    • this device sends and receives the data



Correct DATA USB cable (and hubs)


This one gets me the most often, once you verify that the USB cable works label it.
The same goes for any hub or USB C to USB A converter.



References




As an Amazon Associate I earn from qualifying purchases.

Android Vendor Testing Suite (VTS)


Android Vendor Testing Suite (VTS)





As an Amazon Associate I earn from qualifying purchases.

Android Vendor Testing Suite (VTS)


Android Vendor Testing Suite (VTS)





As an Amazon Associate I earn from qualifying purchases.

Is the (Android) user a goat?

Is the (Android) user a goat?

A very important method to know your users. 





As an Amazon Associate I earn from qualifying purchases.

Is the (Android) user a goat?

Is the (Android) user a goat?

A very important method to know your users. 





As an Amazon Associate I earn from qualifying purchases.

ROS Droid

Creating Android ROS nodes to:
- add control UI (HMI)
- utilize existing phone sensors:
-- gyroscope
-- GPS
-- compass
-- camera
- do some data processing (flagship phones are very powerful)
- use TensorFlow AI

References:
https://github.com/rosjava/android_core

http://wiki.ros.org/rosjava/Tutorials/Create%20a%20ROS%20Android%20Node



As an Amazon Associate I earn from qualifying purchases.

ROS Droid

Creating Android ROS nodes to:
- add control UI (HMI)
- utilize existing phone sensors:
-- gyroscope
-- GPS
-- compass
-- camera
- do some data processing (flagship phones are very powerful)
- use TensorFlow AI

References:
https://github.com/rosjava/android_core

http://wiki.ros.org/rosjava/Tutorials/Create%20a%20ROS%20Android%20Node



As an Amazon Associate I earn from qualifying purchases.

HiKey 960 ver.B Single Board Computer (SBC) 4GB

Specifications:

  • Kirin 960 SOC, Big.Little architecture
  •     4 Cortex A73 CPU
  •     4 Cortex A53 CPU 
  • GPU: Mali G71 MP8 (high image processing)
  • 4GB LPDDR4 DRAM
  • 32GB UFS flash storage
  • Power: 12V@2A power supply (8v to 18V)
    • DC jack (EIAJ-3 compliant)
      • 4.75mm outer diameter
      • 1.7mm center pin (positive)
  • 2 x USB 3.0 Type-A
  • 1 x USB Type-C OTG (if anything is plugged-in the other USB stop working)
  • Audio/Video OUT: HDMI 1.4 ( Type A-full) monitor connector
  • Micro SD card
  • Wi-Fi TIWL1837MOD 2.4GHz, 5GHz (dual-band, dual antenna)
  • Bluetooth
  • PCIe Gen 2 M.2 M key connector
  • External boot switch
  • Boot mode switch
  • Auto power switch
  • Power reset button
  • 40-pin connector (low speed): 
    • I2S, 
    • 2 x UART, 
    • 2 x I2C
    • SPI
    • 12 x GPIO
    • DC power
  • 60-pin HS (high-speed) connector
    • 4L-MIPI DSI
    • I2C x2
    • SPI (48M)
    • USB 2.0
    • 2L+4L MIPI CSI
  • OS: Android / Linux

Getting Started page:
https://www.96boards.org/documentation/consumer/hikey/hikey960/getting-started/


Factory Image (latest hikey960 linaro):
~ 600MB zip
local storage: /Volumes/DATA/linaro/HiKey/image/hikey960-linaro-2018.10.04-factory-ccfcf697.zip
https://snapshots.linaro.org/96boards//hikey960/linaro/aosp-master/latest/

Good video on building AOSP for HiKey 960:
https://youtu.be/RD_NZRKiZBU


As an Amazon Associate I earn from qualifying purchases.

HiKey 960 ver.B Single Board Computer (SBC) 4GB

Specifications:

  • Kirin 960 SOC, Big.Little architecture
  •     4 Cortex A73 CPU
  •     4 Cortex A53 CPU 
  • GPU: Mali G71 MP8 (high image processing)
  • 4GB LPDDR4 DRAM
  • 32GB UFS flash storage
  • Power: 12V@2A power supply (8v to 18V)
    • DC jack (EIAJ-3 compliant)
      • 4.75mm outer diameter
      • 1.7mm center pin (positive)
  • 2 x USB 3.0 Type-A
  • 1 x USB Type-C OTG (if anything is plugged-in the other USB stop working)
  • Audio/Video OUT: HDMI 1.4 ( Type A-full) monitor connector
  • Micro SD card
  • Wi-Fi TIWL1837MOD 2.4GHz, 5GHz (dual-band, dual antenna)
  • Bluetooth
  • PCIe Gen 2 M.2 M key connector
  • External boot switch
  • Boot mode switch
  • Auto power switch
  • Power reset button
  • 40-pin connector (low speed): 
    • I2S, 
    • 2 x UART, 
    • 2 x I2C
    • SPI
    • 12 x GPIO
    • DC power
  • 60-pin HS (high-speed) connector
    • 4L-MIPI DSI
    • I2C x2
    • SPI (48M)
    • USB 2.0
    • 2L+4L MIPI CSI
  • OS: Android / Linux

Getting Started page:
https://www.96boards.org/documentation/consumer/hikey/hikey960/getting-started/


Factory Image (latest hikey960 linaro):
~ 600MB zip
local storage: /Volumes/DATA/linaro/HiKey/image/hikey960-linaro-2018.10.04-factory-ccfcf697.zip
https://snapshots.linaro.org/96boards//hikey960/linaro/aosp-master/latest/

Good video on building AOSP for HiKey 960:
https://youtu.be/RD_NZRKiZBU


As an Amazon Associate I earn from qualifying purchases.

Android screen size and dpi

Often, when working on particular device, you need to find out exact screen dimensions and dpi:


uki  08:04 ~ $ adb shell dumpsys window displays | grep dpi
    init=1440x2880 560dpi base=1440x2880 476dpi cur=1440x2880 app=1440x2737 rng=1440x1357-2737x2654



As an Amazon Associate I earn from qualifying purchases.

Android screen size and dpi

Often, when working on particular device, you need to find out exact screen dimensions and dpi:


uki  08:04 ~ $ adb shell dumpsys window displays | grep dpi
    init=1440x2880 560dpi base=1440x2880 476dpi cur=1440x2880 app=1440x2737 rng=1440x1357-2737x2654



As an Amazon Associate I earn from qualifying purchases.

Building and Installing Android AOSP

In these notes, I will document few things:

1) Building newest AOSP for the HiKey SBC
2) Installing new image in Android Studio Emulator
3) Installing Android Pie preview of Android "Tiamen" (a Siberian fish, the picture is shown below) on Pixel 2 XL.



General Info about the AOSP

read general info:

Preview Images

https://developer.android.com/preview/download.html#images

Android P (pie) image:
taimen-ppp1.180208.014-factory-8e44f67a.zip 

Emulator running preview:

Factory Images


Android Oreo image 8.1.0 (OPM1.171019.021, Mar 2018):


Hikey960 binaries for Android 8.0.0 (20171017) ARM:


Hardware specific Binaries


Pixel 2 XL binaries for Android 8.1.0 (OPM1.171019.021)

Google (Vendor Image):

Qualcomm (GPS, Audio, Camera, Gestures, Graphics, DRM, Video, Sensors)


https://dl.google.com/dl/android/aosp/google_devices-taimen-opm1.171019.021-66c50345.tgz

AOSP building


Reference AOSP Development Boards (e.g. HiKey)




Kernel:
$ git clone https://android.googlesource.com/kernel/hikey-linaro android-hikey-linaro











As an Amazon Associate I earn from qualifying purchases.

Building and Installing Android AOSP

In these notes, I will document few things:

1) Building newest AOSP for the HiKey SBC
2) Installing new image in Android Studio Emulator
3) Installing Android Pie preview of Android "Tiamen" (a Siberian fish, the picture is shown below) on Pixel 2 XL.



General Info about the AOSP

read general info:

Preview Images

https://developer.android.com/preview/download.html#images

Android P (pie) image:
taimen-ppp1.180208.014-factory-8e44f67a.zip 

Emulator running preview:

Factory Images


Android Oreo image 8.1.0 (OPM1.171019.021, Mar 2018):


Hikey960 binaries for Android 8.0.0 (20171017) ARM:


Hardware specific Binaries


Pixel 2 XL binaries for Android 8.1.0 (OPM1.171019.021)

Google (Vendor Image):

Qualcomm (GPS, Audio, Camera, Gestures, Graphics, DRM, Video, Sensors)


https://dl.google.com/dl/android/aosp/google_devices-taimen-opm1.171019.021-66c50345.tgz

AOSP building


Reference AOSP Development Boards (e.g. HiKey)




Kernel:
$ git clone https://android.googlesource.com/kernel/hikey-linaro android-hikey-linaro











As an Amazon Associate I earn from qualifying purchases.

repo reset

Sometimes you have to get back to the pristine sync with your repo, I created a function in my ~/.bash_profile for that.


# REPO HEAD updated: February 13, 2018
function repo_reset()
{
source activate py27
cd ~/REPO/my-repo-name
pwd
#repo sync
repo forall -vc "git clean -xdf"
repo forall -vc "git reset --hard HEAD"
ls -alt
}


As an Amazon Associate I earn from qualifying purchases.

repo reset

Sometimes you have to get back to the pristine sync with your repo, I created a function in my ~/.bash_profile for that.


# REPO HEAD updated: February 13, 2018
function repo_reset()
{
source activate py27
cd ~/REPO/my-repo-name
pwd
#repo sync
repo forall -vc "git clean -xdf"
repo forall -vc "git reset --hard HEAD"
ls -alt
}


As an Amazon Associate I earn from qualifying purchases.

apt quotation..