Tag Info

Hot answers tagged

12

Or with a one-liner: ( printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 backup.ab ) | tar xfvz -


12

One more option is to use bash, cat and gunzip (gzip). The full process could be this (with an unencrypted backup): backup one app's data (for example "Override DNS for KitKat"): $ adb backup -f net.mx17.overridedns.ab -noapk net.mx17.overridedns Now unlock your device and confirm the backup operation. extract the compressed data $ dd ...


12

To make the system recognize the Android device, in their several modes, one needs to set permissions for his user in udev. You need to repeat this process of loading Android udev IDs, for every mode the phone has (operating system, bootloader or recovery) because they have different USB IDs # reboot into fastboot mode adb reboot bootloader # grab you ...


7

You need to include the port number. adb -s 192.168.60.69:5555 shell If you're using a sensible shell with configurable tab-completion (i.e. not Windows), then you can type adb -sTab to get a list of devices.


7

and the answer is pretty simple, use cp instead of mv)


6

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


6

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

Most superuser apps don't allow adb su access by default. Depending on the app you used the option may vary in location, but basically you need to go to settings in the superuser app and change it from "apps only" to "apps and adb." This should allow you to use su in an adb shell.


5

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


5

Files and directories below /data/data are protected from the "average user", so you cannot simply "pull" them unless the ADB daemon is running in root mode. Other than the file you were referring to (/system/buildprop is at least readable by all apps), folders below /data/data are "invisible" (except for root), so they cannot even be read. To be able to ...


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

Check if you can connect a mouse (or Keyboard) through USB OTG port (and microUSB-to-USB converter cable)... I'm not sure whether your device supports OTG or not... Just give a try...


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


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

From the sources, it looks like it's printing out the contents of the SignalStrength object: private SignalStrength mSignalStrength = new SignalStrength(); ... pw.println("last known state:"); ... pw.println(" mSignalStrength=" + mSignalStrength); ... This object is described in detail on the Android Developers ...


3

You cannot pull data folder directly since adb doesn't have file listing access to it. If you want to pull the /data folder you can do it via recovery ([Custom recovery, CWM/TWRP] run adb while device is in recovery mode, hopefully a custom recovery). Or as root, copy /data to another directory (sdcard) and pull it from there.


3

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


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

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

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

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


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

On the SDK emulators and virtual machines like Genymotion, adbd starts up as root and provides a root shell. Short of modifying the source code to do otherwise and rebuilding your VM images, I think you will have to use the su approach suggested above. su shell does indeed work on both SDK emulators as well as the Genymotion VMs. Specifically: ubuntu$ adb ...



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