Skip to content

Instantly share code, notes, and snippets.

@kanchudeep
Created July 21, 2018 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanchudeep/87108a1f5d29d093dd8466fa1d97e3bf to your computer and use it in GitHub Desktop.
Save kanchudeep/87108a1f5d29d093dd8466fa1d97e3bf to your computer and use it in GitHub Desktop.
Buttons:
• GTi9105 / s2ve / Samsung S2+
Recovery mode: Home + Volume Up + Power
Download mode: Home + Volume Down + Power
• Nakasig / Tilapia / Nexus 7C 2012
Nicki / Sony Xperia M C1905
Osprey / Motorola Moto G3:
Recovery mode:
On the Bootloader/Fastboot select Recovery mode.
While holding down the Power button, press the Volume Up button.
• Flo / Razor / Nexus 7 2013
Bootloader/Fastboot mode: Volume Down + Power
• OnePlus 5
Recovery mode: Volume Down + Power
Bootloader/Fastboot mode: Volume Up + Power
Safe mode: Reboot device. As shoon as it shows text/logo press and hold
Volume Up + Volume Down and keep pressed till home screen
Capture Screenshot:
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png
...or...
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
Odin - Flashing ROM, Custom Recovery:
1. Open Odin.
2. Put your phone into 'Download Mode' (Power button+Home button+Volume down
button).
3. Connect phone with your PC (USB Cable).
4. When you enter in Download Mode, wait for your PC to install drivers.
5. Odin will mark your Box with blue colour and there should be something like
COM:1 (Example).
6. Uncheck 'Auto Reboot' option.
7. Click 'PDA' (or 'AP') and find the .tar/.md5 file of your recovery/rom.
8. After you checked everything click on 'Start'.
9. When Odin says 'RES OK' take out battery, put it again and go to you
Recovery (Power button+Home button+Volume up button).
Get signature of APK:
keytool -list -printcert -jarfile app.apk
...or...
keytool -printcert -file <RSA File>
* <RSA File> is 'ANDROID_.RSA' or 'CERT.RSA' under '/META-INF/' in the APK.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment