If you really want to dig into the Android system, you may find that some apps require root access. Rooting has become less necessary over the years, but it's still useful if you want to run certain types of apps. Here's the most widely supported method for rooting your device, and why you might want to.

Devices: Samsung Galaxy TabS - Android 4.4.2 HTC M8 - Android 5.0.1 The two devices have the same problem. Stack Exchange Network Stack Exchange network consists of 177 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. [FIX]Command su not working in Android terminal/shell - SuperSu problems. Here is the how to fix it. sudo command not found fix in Linux (Debian 9 GNU/Linux ) - Duration: 1:40. Nice catch, Now with command "android" just open the app, but with "sudo android" still get "sudo: android: command not found" - Aby Nov 11 '15 at 9:40. Don't use sudo for that. But to explain the behavior: Command not found when executed as sudo, but works after "sudo su" Sometimes even after you add your android_sdk/ dir path from command line it still doesn't work and gives the command not found error, in that case follow these steps. I ran through this issue myself and i tried all the above steps and none worked so i thought i should share and perhaps that might help somebody. You might wonder why sudo isn't available on Android, while every Linux distribution has it. Well, sudo is equivalent to su on Android, which you use to execute commands that require root access. SuperSU application - is NOT installed. System File Properties for Root Access: Standard Location Check Command: ls -l /system/bin/su: Result: /system/bin/su: No such file or directory Analysis: File /system/bin/su does not exist. Standard Location Check Command: ls -l /system/xbin/su: Result: /system/xbin/su: No such file or directory Analysis

[FIX]Command su not working in Android terminal/shell - SuperSu problems. Here is the how to fix it. sudo command not found fix in Linux (Debian 9 GNU/Linux ) - Duration: 1:40.

(nevermind about my specific location of su binary, any location is okay as long there is no white space) note: To figure out bin or xbin do in console before: > adb shell, > ls /system/xbin/su. If this fails try this pushing to this directory instead /system/xbin/su. Also for emulators running android 5.1 and below use the su and not su.pie Unzip the SuperOneClick .zip and pull out the su-v3, busybox, Superuser.apk, psneuter, and GingerBreak files. Rename su-v3 to su, and place the files in your ADB Platform-tools directory, which is contained in the Android SDK folder on your computer. If you are on Windows, you will also need to have proper drivers for your phone installed.

I'd like to chnage it to something else but am not able to locate it anywhere… have found it in other distros like ubuntu/debian - they have it in /etc/bash.bashrc and they even have such package by name command-not-found… and I was able to replace it with desired content… so, is there a way to perform the same on centos?

Top 4 Quick Methods to Fix No Command Android [Users Verified] Method 1. Remove the Battery to Fix Android Says No Command . The first method is to remove the battery if your phone has a removable battery. This is the easiest way to fix any stuck or errors on Android phone and tablet. Method 2. Android No Command Fix through Force Restart 2. Fastboot device command: Fastboot is a diagnostic and engineering protocol that you can boot your Android device into. ADB does not work in the bootloader. If you have to boot into Android and the debugging tools are not active to communicate then you can use the fastboot command. Type fastboot devices in the prompt and you get the serial xda-developers HTC Thunderbolt Thunderbolt Q&A, Help & Troubleshooting Terminal 'SU' Command not working by tazman19 XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. The sdkmanager is a command line tool that allows you to view, install, update, and uninstall packages for the Android SDK. If you're using Android Studio, then you do not need to use this tool and you can instead manage your SDK packages from the IDE. The sdkmanager tool is provided in the Android SDK Tools package (25.2.3 and higher)