Tag Info

Hot answers tagged

13

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


7

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

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


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

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

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

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 ...


4

There are a few methods how you can mount your /system directory RW or RO but 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/


3

Rebooting the phone and setting it to connect via USB as Internet Connection -> Ethernet worked for me. LG also has drivers on their site (http://www.lg.com/us/support-mobile/lg-VS415PP) but I'm not sure they're necessary for this to work, and even with them installed ADB only works when in Ethernet mode. You're not wrong to be frustrated, though - I've ...


3

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


3

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


3

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


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

Great and detailed answer from Nikolay Elenkov. However I should added that somebody already develop a software that do just that and package it here: http://sourceforge.net/projects/adbextractor/ The package contains both Java and Perl tool. I myself prefer Perl over Java any day, so I extracted the Perl codes, make sure they are executable, installed the ...


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

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

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

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

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 ...


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.


2

May have been USB power management. This would have affected recently updated Windows 7 and Windows 8.x. This issue can come from both the Windows OS and the Android OS. For Windows, try http://superuser.com/q/749982/ For Android, try using the developer option "Stay awake", and turn off screen timeout. However, none of the options will keep USB powered up ...


2

Though not directly related to your question, this does answer it in a very round-about way. I found this blog which gives directions on how to open the file and modify contents. My reasoning is that if the file opens then it should probably be ok. Here's the link: http://nelenkov.blogspot.in/2012/06/unpacking-android-backups.html I'd really love if anyone ...



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