Slide 1

Slide 1 text

Erik Hellman hellsoft.se

Slide 2

Slide 2 text

Slides available at speakerdeck.com/erikhellman

Slide 3

Slide 3 text

In 2009…

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

🧑💻 You Android hardware and suppliers SoC Manufacturer SoM Manufacturer Integration Partner

Slide 8

Slide 8 text

🧑💻 You Android hardware and suppliers Integration Partner

Slide 9

Slide 9 text

Hardware setup

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Display

Slide 12

Slide 12 text

Bench Power Supply Unit

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

Configurable WiFi Bridge GL.iNet recommended!

Slide 15

Slide 15 text

CAN Adapter

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Working with AOSP

Slide 19

Slide 19 text

🧑💻 You The way of the source… Integration Partner

Slide 20

Slide 20 text

Build server • As many cores as you can • Plenty of RAM • Fast SSDs (PCIe gen 3 NVMe)

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

repo init

Slide 23

Slide 23 text

repo init / create a mirror

Slide 24

Slide 24 text

repo init / use your local mirror

Slide 25

Slide 25 text

repo init / avoid —repo-url

Slide 26

Slide 26 text

repo sync

Slide 27

Slide 27 text

Slow or bad network? Update your .gitcon fi g

Slide 28

Slide 28 text

Proprietary binaries

Slide 29

Slide 29 text

Start your build…

Slide 30

Slide 30 text

lunch targets / AndroidProducts.mk

Slide 31

Slide 31 text

Build variants and common lunch targets

Slide 32

Slide 32 text

AOSP build variants

Slide 33

Slide 33 text

updated lunch targets / AndroidProducts.mk

Slide 34

Slide 34 text

Updated common lunch targets

Slide 35

Slide 35 text

Guidelines for userdebug, source.android.com/docs/setup/create/new-device#build-variants Don't include features that are enabled/disabled by default based on the build type. Developers are discouraged from using any form of logging that affects battery life, such as debug logging or heap dumping.

Slide 36

Slide 36 text

Guidelines for userdebug, source.android.com/docs/setup/create/new-device#build-variants You should enable debugging features only on a limited-time basis until the issue you're trying to debug is resolved.

Slide 37

Slide 37 text

Building and parallel tasks

Slide 38

Slide 38 text

Signing system apps

Slide 39

Slide 39 text

Using the AOSP test certificates

Slide 40

Slide 40 text

Using the AOSP test certificates

Slide 41

Slide 41 text

Calling Hidden System APIs

Slide 42

Slide 42 text

Using Reflections - Slow!

Slide 43

Slide 43 text

Using fake interface - hard to maintain

Slide 44

Slide 44 text

Modify Android SDK • Copy framework.jar from AOSP build • Rename to android.jar • Replace with the android.jar in your local Android SDK

Slide 45

Slide 45 text

Build a custom Android SDK

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

Build app with AOSP / Android.bp

Slide 50

Slide 50 text

Soong build system https://source.android.com/docs/setup/build?hl=en

Slide 51

Slide 51 text

Build with AOSP / device/xyz/mydevice/device.mk

Slide 52

Slide 52 text

Chrome Remote Desktop https://remotedesktop.google.com/

Slide 53

Slide 53 text

Android Studio for Platform

Slide 54

Slide 54 text

AOSP Code Search https://cs.android.com

Slide 55

Slide 55 text

Product Definition in AOSP

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

aosp_bramble.mk

Slide 59

Slide 59 text

aosp_bramble.mk

Slide 60

Slide 60 text

aosp_bramble.mk

Slide 61

Slide 61 text

aosp_bramble.mk

Slide 62

Slide 62 text

aosp_bramble_64.mk

Slide 63

Slide 63 text

System properties / device-bramble.mk

Slide 64

Slide 64 text

System properties / device-.mk

Slide 65

Slide 65 text

Resource overlays / device-bramble.mk

Slide 66

Slide 66 text

bramble/overlay/frameworks/base/core/res/res/values

Slide 67

Slide 67 text

Resource overlays / config.xml

Slide 68

Slide 68 text

AOSP framework resources

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

Thank you for listening! :) speakerdeck.com/erikhellman