Sony Xperia tipo

From Random Projects
Jump to: navigation, search

The Sony Xperia tipo is an Android smartphone.

Overview

TODO.

Android info

  • Model number: ST21i
  • Android version: 4.0.4
  • Baseband version: 7x25A_M:2045.40.00.60.001.002_A: 2045.40.00.60.001.039
  • Kernel version: 3.0.8-perf user@PC2-desktop #1
  • Build number: 11.0.A.0.16

Hardware

TODO.

System info

See Sony Xperia tipo/System info.

Android SDK setup on Debian/Linux

SDK

Download and extract the Android SDK (for Linux, in this case).

$ wget http://dl.google.com/android/android-sdk_r20.0.3-linux.tgz
$ tar xfvz android-sdk_r20.0.3-linux.tgz

Start the Android "SDK Manager" tool, which allows you to download the rest of the SDK components:

$ cd android-sdk-linux
$ tools/android update sdk

Select/enable "Android SDK Platform-tools" and "Android Support Library" additionally to the already selected components, then click "Install packages" to download and install the respective SDK components. You can use the same GUI later to upgrade components as needed.

Eclipse

You can use Eclipse as IDE for Android development together with the SDK and the ADT plugin. This is not a strict requirement though, you can also use the SDK tools from the command-line and work without Eclipse if you want.

Eclipse via Debian package

This is the simplest method, but you need Eclipse >= 3.6 (older versions won't work). If your distro has a recent enough version:

$ apt-get install eclipse


On 64-Bit Linux you might need to install the ia32-libs package:

$ apt-get install ia32-libs

Manual Eclipse download

If your distro has an Eclipse version that's too old, you can download a recent tarball from the upstream developers.

Download the Eclipse IDE >= 3.6 (the "Eclipse IDE for Java Developers" variant), then extract it somewhere:

$ tar xfvz eclipse-java-juno-SR1-linux-gtk.tar.gz

If you haven't already installed the Java JDK (>= 6.x) and ant (>= 1.8), you can do that now, e.g. like this (on Debian):

§ apt-get install openjdk-7-jdk ant

Note: According to the Android docs, the "GNU Compiler for Java" (gcj) does not work for Android development, use the Sun/Oracle JDK.

On 64-Bit Linux you'll also need to install the ia32-libs package:

$ apt-get install ia32-libs

Eclipse setup

Start Eclipse and configure it for Android development use by installing the ADT plugin.

When asked, tell Eclipse the location of your Android SDK (e.g. $HOME/android-sdk-linux).

adb setup

See here.

For the Sony Xperia tipo you can use a file like this (on recent Debian distros):

$ cat /lib/udev/rules.d/51-android.rules
ACTION!="add|change", GOTO="android_rules_end"
SUBSYSTEM!="usb|usb_device", GOTO="android_rules_end"

# "Sony Ericsson Mobile Communications AB" (e.g. Sony Xperia tipo)
ATTRS{idVendor}=="0fce", ATTRS{idProduct}=="5170", MODE="664", GROUP="plugdev"

LABEL="android_rules_end"