Android Platform Developer's Guide


点击打开链接


 

Android Platform Developer's Guide

Welcome to the Android Platform Dev Guide! This guide provides an under-the-hood introduction to the Android platform, and is designed for platform developers and manufacturers building Android-powered devices.

If you're a software developer interested in developing applications for Android, please visit the Android Developers site.

About this Guide

This guide is divided into sections by logical platform component (see the table of contents on the left). Android is a complex project under constant development, and the level of detail, as well as the rate of change, may vary from section to section. This guide will be updated regularly as more content becomes available.

Intended Audience

This guide is intended for engineers who are proficient with building and running Linux on embedded devices. It aims to provide explanation of the Android platform rather than Linux or embedded development in general.

Getting Started with Android

If you are new to Android, start with the platform documentation on the following sites:

When you are ready to start customizing the platform or porting to your target hardware, start in this guide with the Build System overview.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
目录如下: Android Platform Developer's Guide 4 About this Guide 4 Intended Audience 4 Getting Started with Android 4 Android Build System 4 In this document 4 Building the Android Platform 6 Building the Android Kernel 8 Build Variants 9 Configuring a New Product 10 In this document 10 Detailed Instructions 11 New Product File Tree 13 Product Definition Files 14 Build Cookbook 15 In this document 15 Building a simple APK 16 Building a APK that depends on a static .jar file 16 Building a APK that should be signed with the platform key 16 Building a APK that should be signed with a specific vendor key 17 Adding a prebuilt APK 17 Adding a Static Java Library 18 Android.mk Variables 18 Creating Release Keys and Signing Builds 26 In this document 26 Introduction 27 Generating keys 27 Signing a build for release 28 Customization 29 In this document 29 Boot Screen Customization 29 Network Customization Platform 30 Customizing pre-loaded applications 31 Customizing browser bookmarks 32 Email Provider Customization 34 Platform Themes 37 Bring Up 38 1. Confirm a Clean Installation of a Basic Linux Kernel 38 2. Modify Your Kernel Configuration to Accommodate Android Drivers 38 3. Write Drivers 38 4. Burn Images to Flash 39 5. Boot the kernel and mount the RAMdisk. 39 6. Debug Android-specific init programs on RAMdisk 39 7. Verify that applications have started 40 8. Pulling it all together 40 Android Init Language 41 Display Drivers 46 In this document 46 Functionality 46 Implementing Your Own Driver (Driver Template) 47 Troubleshooting 54 Keymaps and Keyboard Input 54 In this document 54 Functionality 55 Key Layout Map 56 Key Character Map 58 Implementing Your Own Driver (Driver Template) 61 Sample Implementation 64 Lights 65 In this document 65 Building a Lights Library 66 Interface 66 light_state_t Struct Reference 69 Data Fields 69 Detailed Description 69 Field Documentation 69 Audio 70 In this document 70 Building an Audio Library 71 Interface 72 Camera 78 In this document 78 Building a Camera Library 79 Sequence Diagrams 80 CameraHardwareInterface.h File Reference 82 Namespaces 82 Data Structures 82 Typedefs 83 Functions 83 Power Management 83 Introduction 84 Wake Locks 85 Driver API 87 User-space API 87 Types of Wake Locks 88 Exploring a Wake Lock Example 88 PowerManager class 89 Registering Drivers with the PM Driver 89 Early Suspend 90 Sensors 90 In this document 90 Building a Sensor Library 91 Interface 91 sensors.h File Reference 91 Data Structures 91 Radio Layer Interface 92 In this document 92 RIL Initialization 94 RIL Interaction 94 Implementing the RIL 96 RIL Functions 97 Dalvik 100 In this document 100 Core Libraries 100 JNI Call Bridge 101 Interpreter 102 Mterp Interpreter Structure 102 Getting Started With Mterp 103 Replacing Stubs 105 Interpreter Switching 106 Testing 106 Testing and Debugging 107 Instrumentation Testing 107 In this document 107 Instrumentation Framework 108 Platform Test Suites 109 Running Tests 110 Writing Tests 114 Debugging with GDB 116 In this document 116 Debugging 117 Just-In-Time Debug Feature 119 Debugging Native Code 120 In this document 120 Capturing logs 120 Debug Scenarios 121 Debugging with tcpdump and other tools 128 Installing tcpdump 128 Running tcpdump 129 Other network debugging commands 130

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值