Part 1(Installing Adb and rooting Xperia X10 mini)
Lot of tutorial is available on XDA-Forums for installing custom Rom. Here are the ways which I followed.
1) Install Adb on Ubuntu machine
===================================================================
1. Download android-sdk (not the adt-bundle).
http://developer.android.com/sdk/index.html
2. Place the downloaded file in your home folder and then extract it and you should get a folder named android-sdk-linux (do not rename it).
3. If you’re on a 64bit machine run these commands in terminal to make sdk compatible with 64bit (if you’re on 32bit machine then skip this step)....
sudo apt-get update
sudo apt-get install ia32-libs-multiarch
4. Run this command in terminal to install jdk if you don’t have it already....
sudo apt-get install openjdk-6-jdk
5. Navigate to the home folder where you extracted android-sdk-linux and open the folder then open the folder named tools
6. Inside the tools folder there will be a file named android... double click it and select run then android sdk manager will open.
7. In the center pane deselect everything... Now only select the following....
Android SDK Tools
Android SDK Platform-tools
Android Support Library
8. Once selections have been made click on install packages and wait till finished.
9. Upon completion of step 8 in terminal run this command....
sudo gedit ~/.bashrc
When the file opens, go to the very bottom and copy/paste the following 3 lines (make sure they’re each on separate lines)....
# Android tools
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
10. Now reboot your computer.
11. Set your phone to usb debugging then plug it to your pc after pc is done booting
12. Open a terminal on your pc and enter....
adb devices
If all went well, you should see your phone’s serial number and you’ll be ready to go.
2) You need to root your phone, here are the steps.
==========================================================
a) Open synaptic and install the package eclipse.
b) Install sdk tools, which will enable you to install adb (emulator shell), which will help you to issue the commands from ubuntu in order to root your phone, e.g. your android version might be froyo go here: http://developer.android.com/sdk/installing.html and download the SDK Tools, r18 on the left hand side of the page (mind that the number 18 might not be the same).
c) Unzpip the file, go into the folder tools and execute ./android
a graphical environment will open and from there install all those packages (click them) which are specific to your phone.
d) Go then into platform tools and initiate the adb like ./adb
e) follow this guide here: blog.mx17.net/2011/08/howto-root-your-xperia-x10-mini-pro.html which explains what you do after you have installed the sdk package with the adb emulator shell.
ATTENTION
i) Connect your phone, do not mount it (I did not)
ii) The first two parts of the provided guide (step 5) should be accomplished from your terminal and NOT from the adb shell
iii) In the end, while rebooting, your phone might not actually reboot, yet just shut down, just open it yourself.
f) Get rid of the unnecessary apps that eat your memory
follow this: http://ot-990.blogspot.in/2012/03/how-to-uninstall-system-apps-alcatel-ot.html
and install the packages from here:
http://www.apktops.com/es-file-explorer-1-6-1-3.html
http://www.apktops.com/link2sd-2-0-3.html
it is better to move the apps you do not need under /sdcard/backups/apps.
to be continued.................