XDA Developers Android Hackers Toolkit
The Complete Guide to Rooting, ROMS and Theming
Jason Tyler with Will Verduzco
This work is a co-publication between XDA Developers and John Wiley & Sons, Ltd.
This edition first published 2012
2012 John Wiley and Sons, Ltd.
Registered office
John Wiley & Sons Ltd, The Atrium, Southern Gate, Chichester, West Sussex, PO19 8SQ, United Kingdom
For details of our global editorial offices, for customer services and for information about how to apply for permission to reuse the copyright material in this book please see our website at www.wiley.com.
The right of the author to be identified as the author of this work has been asserted in accordance with the Copyright, Designs and Patents Act 1988.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, except as permitted by the UK Copyright, Designs and Patents Act 1988, without the prior permission of the publisher.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books.
Designations used by companies to distinguish their products are often claimed as trademarks. All brand names and product names used in this book are trade names, service marks, trademarks or registered trademarks of their respective owners. The publisher is not associated with any product or vendor mentioned in this book. This publication is designed to provide accurate and authoritative information in regard to the subject matter covered. It is sold on the understanding that the publisher is not engaged in rendering professional services. If professional advice or other expert assistance is required, the services of a competent professional should be sought.
Trademarks : Wiley and the Wiley logo are trademarks or registered trademarks of John Wiley and Sons, Inc. and/ or its affiliates in the United States and/or other countries, and may not be used without written permission. Android is a trademark of Google, Inc. All other trademarks are the property of their respective owners. John Wiley & Sons, Ltd. is not associated with any product or vendor mentioned in the book.
XDA, XDA Developers is a trademark of JB Online Media, LLC
A catalogue record for this book is available from the British Library.
ISBN 978-1-119-95138-4 (paperback); ISBN 978-1-119-96154-3 (ebook); 978-1-119-96155-0 (ebook); 978-1-119-96156-7 (ebook)
Set in 9.5/11.5 Minion Pro Regular by Indianapolis Composition Services
Printed in the United States by Courier Westford
Publishers Acknowledgements
Some of the people who helped bring this book to market include the following:
Editorial and Production
VP Consumer and Technology Publishing Director: Michelle Leete
Associate DirectorBook Content Management: Martin Tribe
Associate Publisher: Chris Webb
Assistant Editor: Ellie Scott
Development Editor: Shena Deuchars
Copy Editor: Shena Deuchars
Technical Editor: Akshay Dashrath
Editorial Manager: Jodi Jensen
Senior Project Editor: Sara Shlaer
Editorial Assistant: Leslie Saxman
Marketing
Associate Marketing Director: Louise Breinholt
Senior Marketing Executive: Kate Parrett
Composition Services
Compositor: Indianapolis Composition Services
Proofreader: Linda Seifert
Indexer: Estalita Slivoskey
About the Authors
Jason Tyler has been an IT instructor and is currently Director of Technology for Typefrag.com. An avid Android hacker, Jason has been rooting and ROMing every Android phone he can get his hands on since the OG Droid.
Will Verduzco is a Johns Hopkins University graduate in neuroscience and is now currently studying to become a physician. He is also Portal Administrator for XDA-Developers, and has been addicted to mobile technology since the HTC Wizard. Starting with the Nexus One, however, his gadget love affair has shifted to Googles little green robot.
Foreword
The XDA Developers (XDA) website was opened in 2003. Nine years may not seem like that long ago, but Facebook wasnt even a thing then. The iPhone and the first Android handset werent released until 2007. So, in Internet time, XDA is old. In smartphone time, were ancient.
xda-developers.com
is a strange URLnot as imaginative, short or catchy as most high-traffic sites. Theres a simple reason for this: the site wasnt created for you. We never envisioned a smartphone revolutionor if we did, we never envisioned that millions would care so much about what was happening on our little developer-focused forum.
XDA was created for developers and it is still a site for developers. They are incredibly smart, generally selfless, and hard-working individuals who share their creations (for free) with the world. When they see a book like this, they get concerned that their site will be overrun (more than it already is) by newbs with annoying questions and demands. They see the title of this bookwith that overused H-wordand roll their eyes.
So, why did XDA lend its name to this guide? Honestly? Its because we cant stop you all from coming and wed rather you be a bit better educated when you arrive. People spend more time touching their phones than their spouses and many of those people want their phones to be completely customizable (even as their spouses are generally not). They want to remove restrictions placed on the devices by carriers and OEMs and make the phone theirs .
This book was written by a member of XDA. His goal was to share his enthusiasm about what he found on the site and across the Internet about the customizability of the Android operating system, to get you just as excited, and to show you the tools you need to put that excitement into action. As with most tech-related books, much of the text herein is outdated by the time it hits the shelves. But thats OK. Even if the content is slightly stale, even if you dont have any of the devices listed in the tutorial chapters, we still urge you to read it carefully so that you are better prepared to understand as you explore XDA for your device.
As a site for developers, XDAs goal is to make sure you have you respect for all those who have blazed the trail to make all this good stuff possible. We want you to use XDA responsiblyread everything before posting, understand the risks of rooting and customizing your device, and, as you learn, become a helpful, contributing member of the community.
The XDA Admin Team
Introduction
Theres a reason most Android geeks have such disdain for the other major smartphone operating system. The iPhone shackles the user, with its closed source code and ecosystem ruled with an iron fist. Android, on the other hand, frees developers to tear apart and rebuild nearly every aspect of the users experience with the operating system. Beyond the world of developer-created applications (apps), there is a vast universe of deeper customizationscustom kernels and ROMs, themes, CPU overclocks, and more.
In most cases, these tasks begin with gaining root access to your device. The goal of this book is to get you comfortable with the tools and vocabulary of Android hacking, to get you in the root mindset, and to point you towards the best online resources for expanding your knowledge even further.