Showing posts with label Pixel. Show all posts
Showing posts with label Pixel. Show all posts

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


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









Why developers should use Google Nexus / Pixel devices

It is January 2018. I sitting in front of two 2017 FLAGSHIP phones from Huawei and Samsung and the sample code app that I am trying will not run on neither of them (Android 7, API 24), but it does run on the Google Pixel C tablet that is 3 years old and discontinued but has been already updated to Android 8, API 26.

This really teaches me a lesson, get Pixel phone as a next phone.