In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .
Agree

Chat

[Off-Topic] [Device Team] [Tech Class] Chapter 30: All about USB Debugging

2017-10-24 11:54:15
21817 358
Hi MI Fans,
We all have heard a term USB Debugging and to enable it we need to connect our phone to PC via USB cable. Most of us know how to enable USB debugging. But some doubts still come to our mind before enabling the USB debugging-

  • What Is USB Debugging?
  • What’s USB Debugging Used for?
  • How Do I Enable USB Debugging?
  • Is USB Debugging Safe?

The term "USB debugging" is very simple and I would like to share all about to know USB debugging".
Then, Let's start with a Tech Class,
What Is USB Debugging?
  • USB Debugging is a way for an Android device to communicate with the Android SDK (Software Developer Kit) over a USB connection. It allows an Android device to receive commands, files, and the like from the PC and allows the PC to pull crucial information like log files from the Android device. And all you have to do is tick a button to make it happen.

What’s USB Debugging Used for?
  • The most common reason for enabling USB Debugging is developers pushing apps to their devices to test.Without USB Debugging, you can’t send any advanced commands to your phone via a USB cable.
  • Whenever you create a new build of your app and want to test it, you can push it to your connected device with just a few clicks. After building, it will run and pop up on your device right away. This is way faster than downloading the APK file and installing it manually!
  • Non-developers commonly enable USB debugging to root their phones. Rooting varies by device, but most methods involve some program that you run from your desktop. Once you enable USB debugging and connect your phone, you can use a root tool to send the root instructions to your device without even touching it. Installing a custom ROM involves a similar process.

How Do you Enable USB Debugging?
- To Enable USB Debugging in MIUI you have to go to Setting.
  Tap 7 times on MIUI version, which will turn on USB Developer option.

- On the other case, You have to tap 7 times on Build number.
   In this way, you can enable this feature on that device which runs except MIUI.

Is USB Debugging Safe?
  • In theory, with USB Debugging enabled, plugging your phone into a public charging port could cause problems. If someone had access to the port, they could potentially steal information off your device or push malicious apps to it. This is why Android displays a confirmation prompt, so you don’t connect to a PC you don’t trust. However, an unsuspecting user could accept the prompt without realizing what it’s for.
  • Additionally, leaving USB Debugging enabled makes your device open to attack if you were to lose it. Someone who knew what they were doing could connect your device to their computer and issue commands to it over ADB without knowing your PIN. That’s scary, and a good reason you should have Android Device Manager set up so you can remotely wipe your device.
  • Unless you regularly use ADB and connect your Android device to your PC all the time, you shouldn’t leave USB Debugging enabled all the time. It’s fine to leave on for a few days while you’re working on something, but there’s no need to have it enabled when you’re not regularly using it.

Some common reasons to Turn on Developer mode :
  • Rooting and installing other OSes
  • Speed up device animations
  • Fake your device’s GPS location
  • Speed up high-end games
  • Record screen activity

Summary :
  • We’ve taken a tour of what USB Debugging does and what you can use it for. In summary, this feature allows you to access advanced Android features when connected to a PC. USB Debugging is vital for developers but still holds some useful tricks for power users. While you should feel free to enable it when needed, we recommend keeping it turned off when you’re not using it to increase the security of your device.


A Tech Class Recap
Class 15:All CPU Cores
Class 17:All About RAM
Class 28:All About IP(Ingress Protection)Ratings


-/- Thanks, all to be here -/-

Rate

Number of participants 5 Experience +47 Pack Reason

View Rating Log

2017-10-24 11:54:15
Favorites375 RateRate
Nice explained!
2017-10-24 13:24:52
Ex, Device team & Spam Hunter Team member

Advanced Bunny

1584774528 | from Mi A1

#2

thanks for sharing
2017-10-26 00:40:01
nice
2017-10-26 00:40:11

Pro Bunny

saleem sk | from Redmi 4

#4

thanks for sharing
2017-10-26 00:40:58

Master Bunny

!mvikash | from Redmi Note 3

#5

well done..
2017-10-26 00:49:57

Techie Team

Sourav Giri | from Redmi Note 3

#6

Nice thread
2017-10-26 00:53:16

Master Bunny

Kukun Mishra | from mobile

#7

Great explanation
2017-10-26 00:54:23

Device team

VaSu Gupta | from app

#8

thanks for sharing the information
2017-10-26 00:55:21
Mi Community Device Team
RN7Pro | Mi Max 2 | Mi A1

Master Bunny

1715889003 | from Mi 4i

#9

Suppppppeeeeeerbbbbbb
2017-10-26 00:56:49

Advanced Bunny

1738131592 | from Mi A1

#10

fabulous just explained all the device activities in a simple way
2017-10-26 00:59:58
please sign in to reply.
Sign In Sign Up

_iamRaja_

Master Bunny

  • Followers

    370

  • Threads

    57

  • Replies

    3488

  • Points

    19420

3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
70 Days Check-In
100 Days Check-In
1 Year Check-In
New Home
June-100 replies in a month
July-100 replies in a month
Aug-100 replies in a month
Sep-100 replies in a month
Oct-100 replies in a month
Nov-100 replies in a month
Dec-100 replies in a month
100 ответов в декабре
Columnist
71st Independence Day
MIUI 9
MIUI 7th Anniversary
2 million registered members
Newbie Member
Diwali
Twitter Medal
Device Team Member
Christmas 2017
2018 New Year Medal
ThrowBackWithMiCommunity
MIUI Instagram
5K
Mi Community Updater
Mi Community Update Medal
500K
The Motivator
50К
MIUI 10
#RaiseTheCup
Newbie Member
MIUI Subscriber
MIUI 8th Anniversary
Eid Mubarak
5 Million Registered Users
2019

Read moreGet new
Copyright©2016-2019 Xiaomi.com, All Rights Reserved
Content Policy
Quick Reply To Top Return to the list