Q. What is ADB Shell?
Adb shell is a linux command line tool (because android is based on linux) used to send commands to your android device. For S-ON devices, this is crucial for modifying files in the /system partition (where the rom sits) as you cannot modify anything in /system when the rom is running without S-OFF (e.g removing system apps).
Android Debug Bridge (adb) is a versatile tool lets you manage the state of an emulator instance or Android-powered device. It is a client-server program that includes three components:
A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.
A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.
A daemon, which runs as a background process on each emulator or device instance.
Q. What is FASTBOOT?
Fastboot is 2 things. It is a mode on the phone, which looks a little like Bootloader. You can access it by holding ‘Volume Up’ and ‘Volume Down’ whilst turning on the phone.
It is also a way of flashing radios, recovery, boot images and system images in a command line method from a PC much like adb.
Q. I flashed CWM but each time I reboot the Stock Recovery is back
There is an auto recovery restore system on Android that will reflash the Stock Recovery if you flash CWM on a Stock Rom.
Use Root Explorer to Mount the system folder as R/W (or use a free app from the Market). Delete the file recovery-from-boot.p from /system. Now when you flash CWM Recovery it will NOT be overwritten after a reboot.
Q. When would i perform a nandroid vs a titanium backup?
You would perform a nandroid backup to back up your entire system including boot image and data and system partitions so you can restore your entire system back to that particular point in the future.
You would use Titanium Backup mainly to back up your installed apps and settings so they could be reinstalled easily and quickly on any future roms. You can also choose individual apps to backup or restore on Titanium Backup whereas if you restore your boot partition via CWM Recovery you are stuck with the whole lot.
Q. How do I Update to the latest Google Stock Rom (manually)?
THE FOLLOWING PROCESS WILL ERASE YOUR INTERNAL STORAGE BACKUP ANYTHING YOU NEED.
You can use the GN ToolKit which will do everything automatically or execute the following steps.
Or you can follow the following instructions and do it manually:
These steps assume that you have set up your adb/fastboot drivers correctly.
1. Download it from *HERE*.
2. Unzip it to a folder on your pc.
3. Copy the file fastboot-windows.exe to this folder (you can find the fastboot file in many places including my ToolKit download on post#1).
4. Browse to this folder on your pc, hold the ‘shift’ key down while right clicking on a blank area of the window and select ‘Open command window here’ to open a command prompt in that folder.
5. Boot the phone into Fastboot Mode (KEEP holding the ‘Volume up’ and ‘Volume down’ buttons while pressing the ‘Power’ button).
6. Connect your device via the usb cable
7. In the command prompt type:
which should return your phones serial number and prove you are connected.
8. To flash the google images type the following:
|fastboot-windows flash bootloader bootloader-maguro-primekk15.img
fastboot-windows flash radio radio-maguro-i9250xxkk6.img
fastboot-windows -w update image-yakju-icl53f.zip
9. Press the power button to boot into pure Android and complete the setup.
Q. I want to send my phone back so I need to flash a stock rom and relock the bootloader
1. Download and run the GN Toolkit.
2. Follow instructions on the first screen to install fastboot drivers (if you havent already done so)
3. Option5 to flash a stock rom.
4. Let the phone reboot, then shut the phone down and reenter fastboot mode again (hold vol up and vol down buttons together while pressing power button).
5. Option7 to relock the bootloader.
Your internal storage will be formatted and data and cache wiped.
Q. What is the difference between Nandroid and Titanium backup?
A NANDROID will backup the whole system including boot, system, data and recovery partitions so you can restore a complete rom and all data and settings.
Essentially Titanium Backup is used to backup apps and associated user data. These could be restored AFTER a full wipe and a new Rom had been flashed on your phone.
The other option now which google added into the new adb command list is the adb backup which is in the ToolKit and can do the same job as Titanium Backup but will store the data on your PC rather than on the phone (where it takes up space and could be deleted).
Q. When I try to open the ToolKit I get a box pop up for a split second and then it goes away. My AntiVirus program says the file may be harmful.
The exe files I compiled are not digitally signed with a Microsoft certificate (as they cost money) so certain AntiVirus programs (mainly Norton) will pick it up as potentially harmful when it is not. They pick up ANY file that doesnt contain a purchased Microsoft certificate in the same way. Restore the deleted file and exclude it from further scans and it will be fine.
Q. The ToolKit recognises my phone in adb mode but not in fastboot mode (or other way round).
Open the Device Manager on your pc and then boot your phone into fastboot mode (dont plug the usb cable in yet). Make sure USB debugging is enabled on your phone in settings, developer options. Plug the cable in while watching the Device Manager and determine which item is added to the list with the device plugged in. If the driver isnt installed then it should say ‘Android 1.0’ (or something similar) in the list. Once you have found it right click on the item and select update driver. Select ‘browse my computer’ from the list and then browse to the ‘drivers’ folder in the ToolKit (wherever you installed the ToolKit to). Make sure sub folders is ticked and click next. Hopefully the driver will be picked up and installed.
You can check if a driver has been installed by looking at the top of the Main Menu in the ToolKit while in fastboot mode and adb modes. If a serial number is displayed then it should work fine.
Q. I get the message – exec ‘/system/bin/sh’ failed: No such file or directory (2) when attempting any adb root commands
There is something wrong in your /system folder and the shell won’t work. On testing I got this message on certain methods to update to Jelly Bean (may have been my fault when flashing) but most methods are fine. Users who got the phone with this pre-installed should not get this message but if you updated from ICS by flashing a Stock Update then you need to get it via a different method.
Q. I have a GSM Nexus build 4.0.4 IMM76K and I dont know which number to type in the Model Selection Screen
Builds that are very close usually share a boot image if they are compatible so if you dont see your build in the list you can choose the next build up (as long as it is the same version i.e. dont choose a 4.1 build when you have 4.0.4 on your phone). If you have a GSM 4.0.4 IMM76K build on your phone that isnt in the list then you can select the 4.0.4 IMM76I build which will work perfectly.