ADB Mode Practical

📌 ADB Mode Practical – Step-by-Step Guide

1️⃣ Required Tools & Setup

PC Requirements:
🔹 Windows/Linux/Mac (Windows Recommended)
🔹 ADB & Fastboot Tools Installed
🔹 ADB Drivers Installed
🔹 Original USB Cable

Phone Requirements:
🔹 USB Debugging Enabled (Developer Options se)
🔹 Battery 30%+ (Avoid sudden power off)


2️⃣ ADB Mode Enable Karne Ka Tariqa

📌 Step 1: Developer Options Enable Karna

  1. SettingsAbout PhoneBuild Number par 7 bar tap karein.
  2. Ab Developer Options active ho jayega.

📌 Step 2: USB Debugging Enable Karna

  1. SettingsDeveloper OptionsUSB Debugging ko ON karein.
  2. USB Debugging Enable karne ke baad, USB cable se phone ko PC se connect karein.

📌 Step 3: ADB Connection Check Karna

  1. PC par CMD (Command Prompt) open karein.
  2. Ye command likhein: adb devices
  3. Agar device ka serial number show ho jaye to connection sahi hai.
  4. Agar “unauthorized” likha ho to phone par Allow USB Debugging ka popup accept karein.

3️⃣ ADB Mode Practical Commands & Functions

📍 ADB Shell Access

adb shell

🔹 Ye command phone ka Linux shell open karti hai, jahan se hum system-level commands run kar sakte hain.


📍 ADB FRP Bypass (Factory Reset Protection)

adb shell am broadcast -a android.intent.action.MASTER_CLEAR

🔹 Is command se Google FRP remove kiya ja sakta hai (har device pe kaam nahi karega).


📍 ADB Screen Lock Remove (Pattern/PIN)

adb shell rm /data/system/gesture.key
adb shell rm /data/system/password.key

🔹 Ye command lockscreen file delete kar ke phone unlock kar sakti hai.
🔹 Restart karne ke baad device unlock ho jaye ga.


📍 ADB Mode Se Bootloader Unlock

adb reboot bootloader
fastboot oem unlock

🔹 Ye command phone ko fastboot mode me le jati hai, jahan bootloader unlock kiya ja sakta hai.


📍 ADB Mode Se Recovery Mode Boot

adb reboot recovery

🔹 Recovery Mode open karne ke liye use hoti hai (Stock & Custom Recovery dono).


📍 ADB Mode Se Firmware Flash Karna (Sideload Update)

adb sideload update.zip

🔹 OTA Updates ya Custom ROM install karne ke liye.


📍 ADB Data Backup & Restore

🔹 Complete Data Backup:

adb backup -apk -shared -all -f backup.ab

🔹 Backup Restore:

adb restore backup.ab

📌 Note: Backup sirf authorized devices pe kaam karega.


📍 ADB Mode Se System Logs & Debugging

🔹 Logcat (Live Debugging Logs):

adb logcat

🔹 Installed Apps Ki List:

adb shell pm list packages

4️⃣ Precautions & Troubleshooting

ADB Commands Sirf Authorized Devices Pe Kaam Karte Hain.
⚠ Bootloader Unlock Se Data Wipe Ho Sakta Hai.
⚠ FRP Bypass Har Phone Pe Work Nahi Karega.


ADB Mode Practical – Step-by-Step Guide & Quizzes (Roman Urdu)

ADB Mode Practical – Step-by-Step Guide

ADB (Android Debug Bridge) Mode practical mein aap apne Android device ko PC se connect karke debugging, file transfer, FRP bypass, screen lock removal, custom ROM flashing, aur data backup & restore jaise functions perform kar sakte hain. Neeche step-by-step guide di gayi hai.


1️⃣ Required Tools & Setup

PC Requirements:

  • Windows/Linux/Mac (Windows Recommended)
  • ADB & Fastboot Tools Installed
  • ADB Drivers Installed
  • Original USB Cable

Phone Requirements:

  • USB Debugging Enabled (Developer Options se)
  • Battery at least 30% (Avoid sudden power off)

2️⃣ ADB Mode Enable Karne Ka Tariqa

Step 1: Developer Options Enable Karna

  1. Settings → About Phone → Build Number par 7 bar tap karein.
  2. Developer Options activate ho jayega.

Step 2: USB Debugging Enable Karna

  1. Settings → Developer Options → USB Debugging ko ON karein.
  2. USB cable se phone ko PC se connect karein.

Step 3: ADB Connection Check Karna

  1. PC par Command Prompt (CMD) ya Terminal open karein.
  2. Command likhein: adb devices
  3. Agar device ka serial number show ho jaye to connection sahi hai.
  4. Agar “unauthorized” dikhe to phone par Allow USB Debugging ka popup accept karein.

3️⃣ ADB Mode Practical Commands & Functions

📍 ADB Shell Access

adb shell

Ye command phone ka Linux shell open karti hai jahan system-level commands run kiye ja sakte hain.


📍 ADB FRP Bypass

adb shell am broadcast -a android.intent.action.MASTER_CLEAR

Is command se Google FRP lock remove karne ki koshish ki jati hai (har device pe kaam nahi karta).


📍 ADB Screen Lock Remove

adb shell rm /data/system/gesture.key
adb shell rm /data/system/password.key

Ye commands lockscreen file delete kar ke pattern ya PIN remove kar deti hain. Restart ke baad device unlock ho jata hai.


📍 ADB Mode Se Bootloader Unlock

adb reboot bootloader
fastboot oem unlock

Phone fastboot mode me boot ho jata hai jahan bootloader unlock kiya ja sakta hai.


📍 ADB Mode Se Recovery Mode Boot

adb reboot recovery

Stock ya Custom Recovery mode ko boot karne ke liye use hota hai.


📍 ADB Mode Se Firmware Flash Karna (Sideload Update)

adb sideload update.zip

OTA update ya custom ROM install karne ke liye.


📍 ADB Data Backup & Restore

Complete Data Backup:

adb backup -apk -shared -all -f backup.ab

Backup Restore:

adb restore backup.ab

Note: Backup sirf authorized devices pe kaam karta hai.


📍 ADB Mode Se System Logs & Debugging

Logcat (Live Debugging Logs):

adb logcat

Installed Apps Ki List:

adb shell pm list packages

4️⃣ Precautions & Troubleshooting
  • ADB Commands sirf authorized devices pe kaam karte hain.
  • Bootloader unlock se data wipe ho sakta hai; isliye pehle backup lein.
  • FRP bypass har phone pe work nahi karta.

Aapke Questions?

Agar aap kisi specific ADB command ya practical tutorial chahte hain, to please bataiye!


Quizzes

Yeh quizzes ADB Mode ke key concepts ko test karne ke liye hain.


Quiz 1: Short Q&A (5 Questions)
  1. Q1: ADB Mode kya hai?
    A: ADB ek command-line tool hai jo Android device aur PC ke darmiyan bridge ka kaam karta hai.
  2. Q2: Developer Options activate karne ke liye Build Number par kitni dafa tap karte hain?
    A: 7 dafa.
  3. Q3: USB Debugging enable karne ke baad device list check karne ka command kya hai?
    A: adb devices.
  4. Q4: ADB shell access ke liye kaunsi command use hoti hai?
    A: adb shell.
  5. Q5: Bootloader unlock karne ke liye kaunsa command use hota hai?
    A: adb reboot bootloader (phir fastboot commands).

Quiz 2: Fill in the Blanks (5 Questions)
  1. Q1: ADB ka full form hai ______ Debug Bridge.
    Jawab: Android
  2. Q2: Developer Options activate karne ke liye Build Number par ______ dafa tap karein.
    Jawab: 7
  3. Q3: ADB Mode se custom ROM flashing ke liye command adb sideload ______.zip use hota hai.
    Jawab: update
  4. Q4: Bootloader unlock ke liye pehle device ko adb reboot ______ mode me le jate hain.
    Jawab: bootloader
  5. Q5: Complete device backup ke liye command adb backup -apk -shared -all -f ______.ab use hota hai.
    Jawab: backup

Quiz 3: Short Answer Questions (5 Questions)
  1. Q1: Describe the steps required to enable ADB Mode on an Android device.
    A: Activate Developer Options by tapping the Build Number 7 times, enable USB Debugging, and then connect the device to a PC with ADB drivers installed.
  2. Q2: What is the function of the adb devices command?
    A: It lists the connected devices, verifying that ADB is working correctly.
  3. Q3: How does the adb sideload command function?
    A: It installs OTA updates or custom ROMs by transferring the update package to the device.
  4. Q4: Why is it important to back up data before unlocking the bootloader using ADB?
    A: Unlocking the bootloader can wipe the device data, so a backup ensures data is not lost.
  5. Q5: What ADB command is used for FRP bypass in some devices?
    A: adb shell am broadcast -a android.intent.action.MASTER_CLEAR.

Quiz 4: True/False (5 Statements)
  1. T/F 1: ADB Mode is used to bridge an Android device with a computer for debugging and file transfer.
    Jawab: True
  2. T/F 2: Enabling USB Debugging is not required for ADB Mode.
    Jawab: False
  3. T/F 3: The command adb shell opens a command-line interface on the Android device.
    Jawab: True
  4. T/F 4: Unlocking the bootloader using ADB does not risk data loss.
    Jawab: False
  5. T/F 5: ADB Mode supports both firmware flashing and data backup & restore operations.
    Jawab: True

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top