Open main menu

CDOT Wiki β

Changes

MAP524/DPS924 Lecture 2

1,510 bytes added, 15:59, 2 July 2015
Rooting and unlocking
* An unrelated thing you can unlock is the boot loader. Devices have a locked boot loader by default which means you will be unable to boot an alternate operating system or make any changes to the system image. This is accomplished with public key cryptography. The process for unlocking the boot loader is different for every device.
* A rooted phone has the "su" command, which will let you run commands as root on the phone. You need to unlock the boot loader before you can root a phone. A rooted phone is great for development if you do more system-level programming rather than just writing apps.
 
= More command-line tools =
 
These commands are used a lot in the real world. While developing a simple test app you may not need them - they are critical when used together with automated deployment systems and various development/QA setups.
 
= android =
 
This command works with the SDK Manager and the AVD Manager. Note that even though later you'll be doing all of your work from Android Studio - the SDKs and AVDs are separate from it and can be used also with Eclipse or with just the command-line.
 
== SDK Manager ==
 
This application lets you download and delete parts of the Android development system. Specifically if you want to develop against a specific API (e.g. API 10 which is Android 2.3.3) you can download the development libraries and emulator images from that version.
 
Theoretically newer versions of the libraries can be used to develop against older APIs but that will give you more trouble than benefits.
 
== AVD Manager ==
 
This application will let you create, modify, and start AVDs. These are virtual machines, the same idea as a desktop virtual machine, but specialized for phones. You can create an AVD of any Android version, and choose various hardware configurations for your virtual machine.
 
== Project templates ==
 
You can also use the "android" command to create new projects (instead of doing it all manually as you have in the last lab).
 
Run this command to see the available options, you should be able to understand all the options listed:
 
<pre>android help</pre>