Tag Info

Hot answers tagged

15

If it helps, I found ADB.exe here in a new Android Studio 1.0.2 install: C:\Users\USERNAME\AppData\Local\Android\sdk\platform-tools


8

Android Studio does not contain ADB, you need Android SDK for it (it is installed on first run of Android Studio 0.9.x and newer). ADB is located in sdk\platform-tools. It's possible to add to PATH in Windows and use Terminal inside Android Studio only by command: "adb shell" and after use "su" get root shell. locate SDK platform tools folder (eg: ...


5

I made something for OS X, this may be exactly what you are looking for: Quick ADB/Fastboot installer: ADB and Fastboot binaries with installer


5

Linux/OSX Run fastboot as root or with sudo. Other OS: credits


5

Based on the platform/system/core repository you linked above, I think the key is in libcutils/android_reboot.c. And important definitions are in include/cutils/android_reboot.h; namely: /* Commands */ #define ANDROID_RB_RESTART 0xDEAD0001 #define ANDROID_RB_POWEROFF 0xDEAD0002 #define ANDROID_RB_RESTART2 0xDEAD0003 Usually in normal ...


5

As for the first part: Yes, that definitely means your device is rooted. For the second part of your question, IMHO it's close to impossible to figure the exact timestamp of rooting (apart from yourself noting it in some document). Though there seem to be tools reporting it, as mentioned in this answer1, I'm afraid that timestamp is not much reliable ...


4

here is an another method, go to android shell then shutdown the phone! adb shell shutdown


4

I have not tried this myself, but there's an app named ADB Wireless (no root) which, as the name suggests, claims to make this possible without involving root: This app is for developers wanting adb access over WiFi without rooting your phone. … *** NO ROOT REQUIRED *** Usage instructions can be found on the app's playstore page – looks pretty easy ...


4

If your device is rooted, as it probably is with CM, you can also do this via adb: adb shell rm /data/misc/adb/adb_keys Depending on your build you probably have to run adb as root(1) or call the su binary(2). (1) adb root or adb kill-server; sudo $(which adb) start-server --> adb shell rm /data/misc/adb/adb_keys (2)adb shell --> su --> rm ...


4

I tried the "StorageManager.enableUsbMassStorage" and the "StorageManager.disableUsbMassStorage" to enable and disable the mass storage and its works. Thanks. That methods are private method. So, If you want to use them, You shoud do it by reflection. To get that Storage Manager, you might use getSystemService(java.lang.String) method that included in ...


4

Looks like there is a way: adb shell dumpsys location > dumpsys.txt This will give you a file with all location service information. In this file search for 'Last Known Locations' and you should see something like: passive: Location[network 92.915479,55.610965 acc=22 et=+1d4h10m34s255ms {Bundle[{noGPSLocation=Location[network 92.915479,55.610965 ...


4

According to this XDA thread it's an issue with the bootloader file. You could try downloading a different factory image for your device and try the bootloader from there instead (the recent images have all had the same 4.23 version, although different files). Does anyone else get a "invalidState" and "signature mismatch" message when trying to flash ...


4

There are a few methods how you can mount your /system directory RW or RO. However, it will require root. Method 1: Connect your phone to the computer. (Make sure USB debugging is enabled on your phone) Open CMD/Terminal on your PC. Windows: CTRL + R, then type cmd. Ubuntu: CTRL + ALT + T. Mac: Navigate to /Applications/Utilities/ and double-click on ...


4

From DavisNT answer on Stack Overflow, There exist a simple workaround on rooted devices. To enable Airplane Mode the following root shell commands can be used: settings put global airplane_mode_on 1 am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true To disable Airplane Mode these root shell commands can be used: settings ...


4

Samsung devices can usually be forced into download mode using a JIG. They are pretty simple and cheap to make. If your device has been soft-bricked this will almost always work. http://www.xda-developers.com/need-a-samsung-usb-jig-build-your-own/


4

I got it to work :) NOTE: This also requires your device to be rooted. (Thankfully, mine was rooted) Connect the device to Mac or PC in recovery mode. (I had to map the process in my mind as the screen was broken). Now open terminal/CMD in computer and go to platform-tools/. type and enter ./adb devices to check if the device is connected in recovery ...


3

Running the following command as root should enable USB tethering: service call connectivity 32 i32 1 on Ice Cream Sandwich (4.0) service call connectivity 33 i32 1 on Jelly Bean (4.1 to 4.3) service call connectivity 34 i32 1 on KitKat (4.4) service call connectivity 30 i32 1 on Lollipop (5.0) The first number you see in the commands is the ...


3

Sdk: adb shell getprop ro.build.version.sdk Complete list: adb shell getprop Through the package manager: adb shell pm list features


3

well wait-for-device, as you already realized only waits until the adb daemon properly started. This is already at init time. In order to check for a complete boot you cann ad to your script something like: in pseudo: 1) wait-for-device 2) as long as getprop sys.boot_completed != 1 sleep some seconds check getprop sys.boot_completed again 3)shell input ...


3

If the ADB daemon is not running in root mode, you cannot push to /system/app even with /system mounted read-write, due to not be given the permission. As you correctly pointed out, adb root is no option on non-development-devices ("adbd cannot run as root in production builds"). To fix this up, take a look at chainfire's adb Insecure. This app requires ...


3

The trick is to add /. to the name of the folder you want to copy: adb pull /sdcard/. backup This copies the whole directory recursively.


3

There is no fastboot mode on Samsung. You must use the ODIN mode, which is an alternative to fastboot. On Linux there is a client application called Heimdall which talks to phones via Odin mode. So the answer to your question is ODIN or Heimdall. ODIN is the proprietary Samsung PC application, Heimdall is multiplatform open source alternative. ...


3

Basically speaking: You can't. At least not without rooting. The main reasons Android does not allow you to install an application to your external SD card are: Security: It's the main reason for that restriction. Basic file systems like NTFS or FAT (any version of it) do not allow for Unix-like permission management. This means: any application would be ...


3

it means, the device, haven't any PIN password. just do this : Goto Settings > LockScreen > Screen Lock and set the password for PIN and after this, try again for backup and it showing you for enter the PIN password and then, Backup process will be starting. Edit : after Set the PIN, use this Command : adb backup -all this command will ...


2

I used this methodology, and it worked fine in 4.x, but failed for me in lollipop. While looking for alternative solution, I found this: http://stackoverflow.com/questions/3391160/paste-text-on-android-emulator it is not exactly as you wanted it, but for myself, most time I want to copy text to clipboard is because I want to paste it into password field. ...


2

Is it possible to enable Location Services(GPS or Google NetworkLocation) via ADB or Terminal Emulator? The command is: adb shell settings put secure location_providers_allowed gps where, settings would makes changes into settings.db (part of com.android.providers.settings) put is to update key location_providers_allowed with value gps in table ...


2

adb logcat outputs the BackupManager activities, so you can monitor if the process is running or stalled. Since adb logcat produces lots of logs from other processes, it is not easy to watch BackupManager logs. The easy way to watch BackupManager output is to use grep. adb logcat | grep BackupManager will filter only BackupManager logs.


2

Well, since the FileManager.apk package resides in a /system/app/ directory it is a system app. So the general way to remove it is: adb shell su mount -o rw,remount /system rm -rf /system/app/FileManager.apk rm -rf /data/data/org.openintents.filemanager mount -o ro,remount /system exit exit


2

If you are on Android 4.2.2 there is a way of unlocking the bootloader without wiping the device. Use towelroot to root your device. (It works on a neuxs 7 as long as you have a kernel build < Jun 3). Afterwards you can use the following app to unlock the bootloader (It doesn't wipe the device). Then you can use titanium backup to backup everything on ...


2

If you have a rooted phone with a custom recovery, you can do it: Reboot to recovery Go into Sideload (might be under advanced - if your recovery doesn't have this feature, then you need to update your recovery. On your computer, run adb sideload <gapps-version.zip> Reboot.



Only top voted, non community-wiki answers of a minimum length are eligible