Free Sample
+ Collection

Instant Android Systems Development How-to

Earlence Fernandes

Get your hands dirty with Android Systems Development through carefully thought-out source code examples
RRP $14.99

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849519762
Paperback100 pages

About This Book

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • A gentle introduction to Android Platform Internals and how to make changes to the system
  • Gain the skills necessary for building high quality systems code for the Android Platform
  • Code examples are provided in a manner that facilitates the “Learning-by-doing” paradigm

Who This Book Is For

This book is for seasoned Android SDK programmers. Knowledge of Java, Linux, and C is assumed. Certain Operating System concepts like processes, threads, shared memory, and inter process communication is also assumed, but the book provides necessary background before any obscure topics are introduced.

Table of Contents

Chapter 1: Instant Android Systems Development How-to
Building Android (Must know)
Analyzing the source structure (Must know)
System booting sequence (Must know)
Creating a basic interface file (Must know)
Creating a system service skeleton (Must know)
Adding a custom service to the SystemServer process (Must know)
Testing the PacktCrypto service (Must know)
Analyzing Android system partitions (Must know)
Compiling for a specific device (Must know)
Flashing with Fastboot (Must know)
Building a system image with your custom server for Nexus S (Should know)
Creating the class library (Must know)
Building an Android application against the custom SDK (Should know)
Testing the class library (Should know)
Writing the platform library source code (Must know)
Creating the platform client (Should know)
Writing the native method and registration with the JNI Onload event (Should know)
Writing the Java driver (Should know)
Analyzing the ActivityManagerService class (Should know)
Adding a custom method to the Activity Manager service (Should know)
Adding custom permissions to the framework (Must know)
Using the custom method (Should know)
Analyzing the PackageManagerService class (Should know)
Analyzing the Internet infrastructure (Should know)
Learning the functions of various system applications (Must know)
Modifying the search widget application (Should know)
Using the CCACHE (Should know)
Selectively compiling modules (Should know)
Building command tricks (Should know)

What You Will Learn

  • Learn to correctly obtain the Android Platform sources and android kernel sources
  • Gain knowledge about the Android boot process and new concepts introduced by Android into the Linux world
  • Build custom system services and secure these using the correct security mechanisms
  • Flash built OS images to several Google Developer phones and learn the concepts behind various flashing procedures
  • Expose custom system services to SDK applications through user application linked libraries
  • Understand the platform library mechanism and how this helps build platform extensions without changing the core system
  • Modify the core Android system services and get knowledge about the rules to be kept in mind while doing so
  • Gain tips and Tricks to shorten the build-test cycle

In Detail

Android is by far the most popular open source mobile operating system. Learning to write high quality code at the platform level and learning how the systems works internally is a vital skill. This book teaches you these skills with clear and concise explanations and code examples.

Instant Android Systems Development How-to provides a gentle introduction to the platform internals without sacrificing depth. Source code examples are designed to be meaningful, but at the same time, do not disguise their real purpose, which is to illustrate systems development techniques and common design patterns in android systems programming. Readers will be guided through several examples that give a hands-on experience.

Readers begin by downloading the android source code, which is a topic of much discussion on android forums. They are then guided through the android boot process, and later on learn various common android systems development paradigms. More importantly, the book provides advice on when to use certain techniques which is often a mystery for the novice developer. Readers who complete the book will have high confidence in developing good systems code for Android.

The book discusses how to setup a development machine and how to obtain the android source code and kernel code. It describes the source code organization and how the system boots up with precise references to various points in the source code. It highlights the common systems design patterns followed and how to create a custom system service. It then covers the all important flashing of phones. This is a topic of much confusion and the book provides direct steps to achieve safe flashing of developer phones. It describes the user application library mechanism and the platform library mechanism. Native code is needed for certain operations and an example service utilizing native code is explained. Modification of core system applications is explained and useful tips are provided on how to speed up the build-test cycle. The book concludes with a case study of two real world android platform extensions which give the user a reference while developing their own extensions.

Instant Android Systems Development How-to is a well rounded book on platform internals that provides simple explanations without sacrificing depth and rigor.


Read More