Inside the android os building customizing managing and operating android system services

Inside the Android OS: Building, Customizing, Managing and Operating Android System Services

English | 2021 | ISBN: 978-0134096346 | 272 Pages | PDF, EPUB | 21 MB

The Complete Guide to Customizing Android for New IoT and Embedded Devices

Inside the Android OS is a comprehensive guide and reference for technical professionals who want to customize and integrate Android into embedded devices, and construct or maintain successful Android-based products. Replete with code examples, it encourages you to create your own working code as you read–whether for personal insight or a professional project in the fast-growing marketplace for smart IoT devices.

Expert Android developers G. Blake Meike and Larry Schiefer respond to the real-world needs of embedded and IoT developers moving to Android. After presenting an accessible introduction to the Android environment, they guide you through boot, subsystem startup, hardware interfaces, and application support–offering essential knowledge without ever becoming obscure or overly specialized.

Reflecting Android’s continuing evolution, Meike and Schiefer help you take advantage of relevant innovations, from the ART application runtime environment to Project Treble. Throughout, a book-length project covers all you need to start implementing your own custom Android devices, one step at a time.

  • Assess advantages and tradeoffs using Android in smart IoT devices
  • Master practical processes for customizing Android
  • Set up a build platform, download the AOSP source, and build an Android image
  • Explore Android’s components, architecture, source code, and development tools
  • Understand essential kernel modules that are unique to Android
  • Use Android’s extensive security infrastructure to protect devices and users
  • Walk through Android boot, from power-on through system initialization
  • Explore subsystem startup, and use Zygote containers to control application processes
  • Interface with hardware through Android’s Hardware Abstraction Layer (HAL)
  • Provide access to Java programs via Java Native Interface (JNI)
  • Gain new flexibility by using binderized HAL (Project Treble)
  • Implement native C/C++ or Java client apps without bundling vendor libraries

Homepage

Источник

Inside the Android OS: Building, Customizing, Managing and Operating Android System Services

The Complete Guide to Customizing Android for New IoT and Embedded Devices

Inside the Android OS is a comprehensive guide and reference for technical professionals who want to customize and integrate Android into embedded devices, and construct or maintain successful Android-based products. Replete with code examples, it encourages you to create your own working code as you read–whether for personal insight or a professional project in the fast-growing marketplace for smart IoT devices.

>Expert Android developers G. Blake Meike and Larry Schiefer respond to the real-world needs of embedded and IoT developers moving to Android. After presenting an accessible introduction to the Android environment, they guide you through boot, subsystem startup, hardware interfaces, and application support–offering essential knowledge without ever becoming obscure or overly specialized.

Reflecting Android’s continuing evolution, Meike and Schiefer help you take advantage of relevant innovations, from the ART application runtime environment to Project Treble. Throughout, a book-length project covers all you need to start implementing your own custom Android devices, one step at a time.

  • Assess advantages and tradeoffs using Android in smart IoT devices
  • Master practical processes for customizing Android
  • Set up a build platform, download the AOSP source, and build an Android image
  • Explore Android’s components, architecture, source code, and development tools
  • Understand essential kernel modules that are unique to Android
  • Use Android’s extensive security infrastructure to protect devices and users
  • Walk through Android boot, from power-on through system initialization
  • Explore subsystem startup, and use Zygote containers to control application processes
  • Interface with hardware through Android’s Hardware Abstraction Layer (HAL)
  • Provide access to Java programs via Java Native Interface (JNI)
  • Gain new flexibility by using binderized HAL (Project Treble)
  • Implement native C/C++ or Java client apps without bundling vendor libraries
Читайте также:  Маршруты транспорта для андроид

Источник

Litgu.ru — Литературный Гуру

Inside the Android OS: Building, Customizing, Managing and Operating Android System Services (Android Deep Dive)

Автор: TRex от 8-10-2021, 21:14, Коментариев: 0

Название: Inside the Android OS: Building, Customizing, Managing and Operating Android System Services (Android Deep Dive)
Автор: G. Blake Meike, Larry Schiefer
Издательство: Pearson Education
Год: 2022
Формат: True PDF, ePUB
Страниц: 272
Размер: 10 Mb, 15,9 Mb
Язык: English

The Complete Guide to Customizing Android for New IoT and Embedded Devices
Inside the Android OS is a comprehensive guide and reference for technical professionals who want to customize and integrate Android into embedded devices, and construct or maintain successful Android-based products. Replete with code examples, it encourages you to create your own working code as you read–whether for personal insight or a professional project in the fast-growing marketplace for smart IoT devices.
Expert Android developers G. Blake Meike and Larry Schiefer respond to the real-world needs of embedded and IoT developers moving to Android. After presenting an accessible introduction to the Android environment, they guide you through boot, subsystem startup, hardware interfaces, and application support–offering essential knowledge without ever becoming obscure or overly specialized.
Reflecting Android’s continuing evolution, Meike and Schiefer help you take advantage of relevant innovations, from the ART application runtime environment to Project Treble. Throughout, a book-length project covers all you need to start implementing your own custom Android devices, one step at a time.

Assess advantages and tradeoffs using Android in smart IoT devices
Master practical processes for customizing Android
Set up a build platform, download the AOSP source, and build an Android image
Explore Android’s components, architecture, source code, and development tools
Understand essential kernel modules that are unique to Android
Use Android’s extensive security infrastructure to protect devices and users
Walk through Android boot, from power-on through system initialization
Explore subsystem startup, and use Zygote containers to control application processes
Interface with hardware through Android’s Hardware Abstraction Layer (HAL)
Provide access to Java programs via Java Native Interface (JNI)
Gain new flexibility by using binderized HAL (Project Treble)
Implement native C/C++ or Java client apps without bundling vendor libraries

Источник

Inside the Android OS: Building, Customizing, Managing and Operating Android System Services

Explore a preview version of Inside the Android OS: Building, Customizing, Managing and Operating Android System Services right now.

O’Reilly members get unlimited access to live online training experiences, plus books, videos, and digital content from 200+ publishers.

Book description

Inside the Android OS is the first comprehensive guide and reference for developers who want to customize and integrate Android into their own embedded devices. Replete with code examples, it encourages you to create your own working code versions as you read — whether for your own personal insight or for a workplace project in the fast-growing marketplace for non-phone Android devices.

G. Blake Meike responds to the real-world needs of embedded and IoT developers moving to Android, providing indispensable information without becoming obscure or too specialized. Meike teaches through a book-length project that covers everything developers need to know to create their own custom Android service. You’ll find approachable yet precise coverage of:

Why Android is becoming a pervasive embedded platform

Using Android’s four-tier architectural model in embedded devices

Читайте также:  Google play unity ads 2d android

Setting up a build platform, downloading the AOSP source, and building an Android image

Walking through system startup on a running Android system

Running native services on embedded systems

Using Android’s Native Development Kit (NDK) and HAL to link interpreted Java with native C/C++ code

Taking a deep dive into the seminal Zygote application and its Dalvik interpreter

Quickly building Java system services

Working with Binder, Android’s heart and the root of its security and access control models

Establishing permissions and access control

Enabling apps to use the services you’ve created

Building SDKs that allow third-party developers to code for your device

If you’re a software professional who wants to construct or maintain a successful Android-based product, this is the book you’ve been searching for.

Источник

Inside the Android OS: Building, Customizing, Managing and Operating Android System Services

Best Value Purchase

Book + eBook Bundle

  • Your Price: $53.99
  • List Price: $89.98
  • Includes EPUB, MOBI, and PDF
  • About eBook Formats

This eBook includes the following formats, accessible from your Account page after purchase:

EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

PDF The popular standard, used most often with the free Adobe® Reader® software.

This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

More Purchase Options

  • Your Price: $39.99
  • List Price: $49.99
  • Usually ships in 24 hours.

eBook (Watermarked)

  • Your Price: $31.99
  • List Price: $39.99
  • Includes EPUB, MOBI, and PDF
  • About eBook Formats

This eBook includes the following formats, accessible from your Account page after purchase:

EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

PDF The popular standard, used most often with the free Adobe® Reader® software.

This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

About

Features

  • A well-thought-out, start-to-finish approach to building Android into other products — the first guide to serve the fast-growing market of engineers and software developers doing just that
  • Unprecedented coverage of remote procedure calls, AIDL, and related security issues: crucial information for embedded Android
  • Illuminates the underexploited Services capabilities from Android, including both architecture and implementation
  • All code downloadable from companion GitHub site
  • By one of the most respected experts in the field, G. Blake Meike

Description

  • Copyright 2022
  • Dimensions: 7″ x 9″
  • Pages: 272
  • Edition: 1st
  • Book
  • ISBN-10: 0-13-409634-7
  • ISBN-13: 978-0-13-409634-6

The Complete Guide to Customizing Android for New IoT and Embedded Devices
Inside the Android OS is a comprehensive guide and reference for technical professionals who want to customize and integrate Android into embedded devices, and construct or maintain successful Android-based products. Replete with code examples, it encourages you to create your own working code as you read—whether for personal insight or a professional project in the fast-growing marketplace for smart IoT devices.
Expert Android developers G. Blake Meike and Larry Schiefer respond to the real-world needs of embedded and IoT developers moving to Android. After presenting an accessible introduction to the Android environment, they guide you through boot, subsystem startup, hardware interfaces, and application support—offering essential knowledge without ever becoming obscure or overly specialized.
Reflecting Android’s continuing evolution, Meike and Schiefer help you take advantage of relevant innovations, from the ART application runtime environment to Project Treble. Throughout, a book-length project covers all you need to start implementing your own custom Android devices, one step at a time.You will:

  • Assess advantages and tradeoffs using Android in smart IoT devices
  • Master practical processes for customizing Android
  • Set up a build platform, download the AOSP source, and build an Android image
  • Explore Android’s components, architecture, source code, and development tools
  • Understand essential kernel modules that are unique to Android
  • Use Android’s extensive security infrastructure to protect devices and users
  • Walk through Android boot, from power-on through system initialization
  • Explore subsystem startup, and use Zygote containers to control application processes
  • Interface with hardware through Android’s Hardware Abstraction Layer (HAL)
  • Provide access to Java programs via Java Native Interface (JNI)
  • Gain new flexibility by using binderized HAL (Project Treble)
  • Implement native C/C++ or Java client apps without bundling vendor libraries
Читайте также:  No context actions available at this location android studio

Sample Content

Table of Contents

Preface xiii
Chapter 1 Why Android? 1
Adopting Android 1
Full Stack 2
Broad Acceptance 2
Beautiful UI 2
Linux Based 2
Powerful Development Environment 3
Open Source 3
AOSP and Google 5
Other Choices 6
Micro-Controllers 6
Other RTOSs 7
Summary 8
Chapter 2 Booting Acme 9
Setting Up a Build Machine 10
Downloading the Code 11
Repo 11
Forking the Source 15
Android Version Selection 16
Local Mirror 17
Hosted Git Repositories 18
Tree Snapshot 19
Repository Commit Pinning 19
Example: Local Mirror of Forked Repositories 19
Building an Image 24
Device Tools 27
fastboot 28
adb 29
Flashing the Device 30
Summary 33
Chapter 3 Getting Started 35
Putting Android in Its Place 35
Hardware 36
The Linux Kernel 36
System Libraries 37
Applications 38
The Android Framework 39
The Android Service Model 40
Exploring the Source 43
Other Sources 44
Whats in the Box? 44
Summary 48
Chapter 4 The Kernel 49
The Linux Kernel 49
Kernel Process Management 50
Kernel Memory Management 51
The Android Kernel 53
Android Kernel Features 54
Building a Kernel 62
The Build System 63
Downloading the Source 63
Summary 66
Chapter 5 Platform Security 67
Types of Security 67
Verified Boot 68
Operational Security 69
Android Software Layers 70
The Process Sandbox 70
SE Linux for Android 72
SE Policy Definition 73
Android Permissions 76
File Systems 79
User Protections 82
Customizing Permissions 83
Sample Custom Permission-Protected App 83
Sample Custom Permission Client App 88
Summary 92
Chapter 6 System Startup: Installing and Booting the System 93
The Boot Process 93
Bootloader 95
Fastboot 99
Kernel 100
The File System 102
init 104
Recovery 106
Building a Daemon 107
Creating the Acme Device 107
Repo Again 110
Starting the Daemon 111
Summary 114
Chapter 7 Android Startup: Dalvik and Zygote 115
Dalvik 116
ART 120
ART Basics 120
Hybrid ART 122
Zygote 123
Zygote Memory Management 123
Zygote Startup 127
Runtime Initialization 128
System Service Startup 129
Summary 131
Citations 131
Chapter 8 Getting to Android: The HAL 133
Why a HAL? 133
Is a HAL Necessary? 135
Designing the HAL 136
Building a HAL 137
Code Structure 138
Implementing the HAL 140
Summary 151
Chapter 9 Getting to Java: The JNI 153
Code Structure 154
Using the Device 155
Using the HAL 157
Using the Java Native Interface 159
Executing Native Code 160
JNI: The Java Side 161
JNI: The Native Side 162
A Java Proximity Application 165
JNI: Some Hints 176
Summary 182
Chapter 10 Project Treble: Binderized HAL 183
HIDL Architecture 183
hwservicemanager 185
HIDL Services 185
HIDL Client Applications 186
Hardware Interface Definition Language (HIDL) 186
HIDL Types 191
HIDL Services 194
HIDL Clients 197
Summary 198
Chapter 11 Creating a Custom Binderized HAL 199
Acme Custom HIDL 199
Summary 217
Chapter 12 Clients for a Custom Binderized HAL 219
Native C++ Aproximity Client 219
SE Linux for Android Changes for aproximitycl 224
Build aproximitycl into Acme 225
Java/Kotlin Aproximity Client 226
SE Linux for Android Changes for AproximityClient 229
Build AproximityClient into Acme 229
Summary 231
Index 233

Источник

Оцените статью