fastboot is a small tool in the Android SDK, used to re-flash partitions on your device. It is an alternative to the recovery mode: fastboot mode is useful for updating the firmware quickly, without having to use a recovery mode.
Boot to the "fastboot mode" on the device. On your computer, run the fastboot tool to issue commands.
Some Samsung devices use heimdall, which offers functionality similar to fastboot.
(If applicable) Enable OEM unlock: Go to Settings - About phone - and tap Build number seven times to enable Developer options. Go back to main Settings page, scroll to bottom and select Developer options from there. Under Developer options, look for Enable OEM unlock checkbox/toggle and enable it.
Boot your device into Download mode: Switch off your device. Press and hold “Home + Power + Volume down” buttons for a few seconds until you see a warning screen. Press Volume Up on the warning screen to accept it and boot into Download mode.
Once your device is in download mode, connect it to the PC with a USB cable. The Odin window on PC should detect the device and show an “Added!!” message.
Now click on the "AP" tab on Odin window and select the TWRP recovery .tar file that you downloaded for your device.
wcfNote： 如果显示“签名错误”之类的，那是因为还在用官带的rec刷补丁。在odin刷的时候把工具的自动重启关了，刷好pass后，手动按着音量加和减，HOME以及电源按键，7秒左右屏幕一熄就可以松开音量减，这样就进入rec（twrp界面）。To get into TWRP after reboot instead of Samsung's own recovery: In "Options", unselect "auto-reboot". After the next step when "pass" msg shows on Odin, press "HOME+Power+UP+DOWN" for 7 seconds, if the phone reboots, release DOWN, hold still "HOME+Power+UP", then you will get into TWRP.
Click the Start button on Odin and wait for it to finish the process. Once it has finished successfully, you’ll see a pass message on the Odin screen. Your device will automatically reboot when Odin is done flashing. You can then disconnect your device.
How to boot into TWRP recovery on a Samsung Galaxy device: Switch off your device. Press and hold “Home + Power + Volume Up” buttons for a few seconds and as soon as you see your device’ logo on-screen, release three buttons altogether. Your device will boot into TWRP recovery.
Root samsung S5
first have to turn developer mode on for your Galaxy S5. Here's how to do it.
Go to the settings menu on your GS5.
Scroll down to the "System section and tap "About Device."
Now scroll down to "Build number."
Tap the "Build number" section seven times. (You'll see a warning that you're about to unlock developer options.)
Now back out to the main settings menu, and you'll see "Developer options" listed.
To root my Samsumg S5 G9008W, refer to Androidxda.
Root android 5.0
VolumeDown+Power+Home: download mode.
wcfNote: when installing Gapps, I came across "failed to veryfy whole file signature". It seems that Samsung only allows packages/roms to be installed signed by itself. So I have to switch to CM rom.
WCF note: I just copy the app, priv-apps from the zip file to according locaitons under /system with x-plorer.
1. Download the KitKat official signed package from Cyanogen gapps-kk-20140105-signed.zip - 83.1 MB
2. Copy gapps-kk-20140105-signed.zip on your External SD Card
3. Boot the phone into recovery mode (shutdown the phone, then start it pressing Volume+/up, home button and power for several seconds)
4. Select "install zip" and then "choose zip from /storage/extSdCard", locate gapps-kk-20140105-signed.zip on your phone and proceed with the installation.
5. Reboot your phone and you're done.
To remove/hide bloatware I suggest to use Titanium Backup.
Erase data before selling
Keep the serial number of the phone or tablet on file for your records.
Remove your SIM card. It's still possible for contacts or call logs to be kept on your SIM card.
Remove your micro SD card. Or erase and format your SD card.
Device's internal storage. For iOS, "Settings - General - Reset - Erase all Content and Settings". For Android, encrypt your phone first and then do a factory reset (under "Backup & reset").
Remove google account. If you have a Samsung Galaxy, then you should remove your Samsung account, too.
Remove any bindings. Deactivate your phone with your carrier (e.g. China Mobile) before handing it off. To remove devices from your Google account, head to myaccount.google.com, click on "Sign-in & security," then under "Device activity & notifications," find the model you have wiped.
Internal and External storage. Why the division? The key reason is security: apps installed to "Internal storage" have pieces that cannot be modified by the user or other apps. That's key for apps that have tricky internals, but even more necessary for apps that require a paid license, offer in-app purchases, or authenticate you with an online account.
The reason most apps choose not to install in External storage by default is that when you do plug your device in and access its storage (with a computer, in a car, or anywhere else), those apps are no longer accessible, because the storage has been "mounted" elsewhere.
Create a partition and move apps over yourself. Carve up your phone's SD card into app space, swap space, and storage, and you can install any app you want outside the core system.
Preinstalled applications are in /system/app folder. User installed applications are in /data/app. Good thing is that for un-rooted ones, not only the files are "listable", they're also readable.
There is also an application called "AirDroid" for fetching your downloaded apks.