Unlock the Secrets of Android Security and Boost Your Device's Performance Via ADB!

Unlock the Secrets of Android Security and Boost Your Device's Performance!

We usually forget our passwords or the pattern of our Android phones, which is so annoying. But if you know about Android Debug Bridge (ADB), you should not worry about that.

This hack is for educational purposes only; you should not try it on other people's phones without their permission.


Method 1

The Android device must have USB debugging enabled, and adb should be installed on the device; if you have not enabled USB debugging, you can run this command in the recovery.

It would help to have a computer running a Linux distro or Windows + Cygwin. A USB cable to connect your phone to the computer and ADB is installed on your computer.

Now open ADB and write:

adb devices

adb shell

cd data/system

su rm *.key

Process completed; now you can easily reset your phone.

Note: If you see any type of password or pattern after restarting your phone, don't worry; just try any random password or pattern.


Method 2

If method no 1 doesn't work, then you can try the second method, Open adb and write

adb devices

adb shell

cd /data/data/com.android.providers.settings/databases

sqlite3 settings.db

update system set value=0 where name=’lock_pattern_autolock’;

update system set value=0 where name=’lockscreen.lockedoutpermanently’; .quit

Now reset your phone and try any random password, pin or pattern.


Method 3

If none else works, then try this:

adb devices

adb shell rm /data/system/gesture.key

Reset and enjoy.


What Is ADB:

Adb is the abbreviation of Android Debug Bridge. It's a command line like Windows, which helps users connect and communicate with Android devices. Through Adb, one can easily modify the settings of an android like installing or removing apps, flashing a custom rom, root android and removing bloatware of any android.


Why Do Android Phones Have Bloatware:

The main reason Android phones have bloatware is that sponsors or advertisers are affiliated with the mobile companies or manufacturers from whom you purchased the mobile, i.e. If you purchase an Infinix,tecno or Xiaomi mobile, you will find it full of bloatware like palm store, scooper, car care, AHA games, Phoenix browser etc.

You will always find more bloatware in budget phones because sponsors and advertisers pay manufacturers. Hence, they recover their amount by advertisement and sell their phones at very reasonable prices, unlike Samsung, iPhone and Htc. They did not allow third-party sponsors or advertisers, so their phones became costlier.


How To Remove Bloatware From An Android Without Root:

Android bloatware is not easy to remove because the affiliated companies do not want you to remove their apps or advertisements. If you remove them by any chance, they will not be happy with you, and that's why they put restrictions on uninstalling their apps and advertisements.

There is a saying that "Nothing Is Impossible", so techy geeks find a solution to this problem through adb.

Adb is a way to alter the phone settings or customization without hassle. Don't worry if your phone is not rooted; adb requires only a USB cable and a Pc.

Just follow these simple steps:


1. Install ADB on Windows:

  1. Enable developer mode: developer mode can be enabled by just tapping 5-7 times on "build number" in "System>About>Build number"

  2. Now find and enable "USB Debugging" in developer Options.

  3. Download the Android SDK Platform Tools Zip File For Windows

  4. Extract the contents of the zip file into an easily accessible folder like C/Platform-tools

  5. Now open the folder where you have extracted the zip file.

  6. Open up a command prompt in the directory where you have extracted the zip.

  7. Note: This can be done by holding the "Shift button" and "Right click" within the folder and clicking on "Open Command Window Here" OR "Open PowerShell Window Here"

  8. Connect your smartphone or tablet by USB Cable and change the mode to "File Transfer Mode" OR "MTP."

  9. Type "adb devices" to run the ADB Daemon in the Command Prompt Window.

  10. After running the command, you will see a prompt on your phone to Allow or Deny the "USB Debugging Access" Just tap on Allow and check the box "Always allow from this computer."

  11. Now re-enter the command from step 9; if everything goes successfully, you will see a serial number with the device.

Congratulation! You have successfully installed ADB; Now you can run any adb command and start modding your phone. Remember to uninstall only bloatware apps; if you mistakenly uninstalled the system application, you will be in a boot loop.


Unlock the Secrets of Android Security and Boost Your Device's Performance!




2. Install Third Party App To Check the Package Name:

  1. To remove the apps from your phone, you should know the application's Package Name. For this purpose, you must install a third-party app from Google Play Store named "App Inspector" or "Package name viewer".

  2. After installing the App, find your desired unwanted application and copy the name.

  3. Type "adb shell" in your terminal and hit enter

  4. To uninstall an app, type:

pm uninstall -k –user 0 <package-name>

(Type your package name, i.e. pm uninstall -k –user 0 com.music player)

Congratulations! You have successfully removed a pre-installed app which was taking your ram and memory and slowing down your mobile phone.

Now change and uninstall other apps by simply changing their package name.


Also Read: Unleash the Power of Your Android

Q: What is ADB?

A: ADB stands for Android Debug Bridge. It's a command line tool that allows you to communicate with an Android device for debugging and other advanced tasks. It comes bundled with the Android SDK.

Q: How do I install ADB?

A: ADB is included in the Android SDK Platform Tools package. Just download the latest SDK Platform Tools from the Android Developers website and extract the platform-tools folder. The adb executable will be in platform-tools/adb.

Q: What can I do with ADB?

A: Some common tasks with ADB include:

  • Installing/uninstalling apps

  • Copying files to/from device

  • Viewing logs

  • Remotely executing shell commands

  • Taking screenshots

  • Rebooting device

  • Accessing developer options like USB debugging

Q: How do I connect my Android device to ADB?

A: First enable USB debugging in your device's Developer options. Connect your device to your computer via USB. On the computer, run "adb devices" to verify connection. You may need proper drivers installed.

Q: I get an "Unauthorized" message in adb devices. How can I fix this?

A: This means you haven't authorized your computer to connect to your device. On the device, check the "Always allow from this computer" checkbox in the connection dialog. Then disconnect and reconnect the device.

Q: How do I install an APK with adb?

A: Use the "install" command. For example:

adb install myapp.apk

This will install myapp.apk onto the connected device.

Q: How can I view the adb log?

A: To see the adb log, use:

adb logcat

This will show useful debugging messages including crashes, network requests, etc.

Q: How do I grant root permissions with adb?

A: You can grant adb root access with:

adb root

Then to execute commands as root, prepend "adb shell" commands with "su".

Q: How do I reboot my device into recovery over adb?

A: Use:

adb reboot recovery

This will reboot the device into recovery mode.



Post a Comment

0 Comments