Tag Info

Hot answers tagged

13

I just did this! /data/property/persist.sys.dalvik.vm.lib is a textfile containing one of two values: 'libart.so' or 'libdvm.so'. You can change from ART to Dalvik simply by editing this file. Ex: adb shell 'echo libdvm.so >/data/property/persist.sys.dalvik.vm.lib'


9

To make the system reconize 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 ...


9

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


8

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


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.


6

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


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

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

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


4

For what ADB backup does, you might wish to see our backup tag-wiki. Basically, depending on the command line switches used, it backs up apps (.apk) and their data. As for the second part of your question, you might wish to see Is there a way to look inside and modify an adb backup created file? Yes, it's possible extracting parts of it, and yes, Titanium ...


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


3

You don't use adb to connect to a device when it's in the bootloader menu: you need to use the fastboot command instead. That's why it's called "fastboot mode"! Not all phones support fastboot: in particular, older HTC phones use a proprietary protocol called HBOOT instead, but I think the newer ones support fastboot.


3

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


3

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


3

Not from within Android, no. Only root can mount or remount filesystems, including /system. There is another way, which is to go outside of Android completely by making the change you want from the recovery. Since the recovery doesn't use Android's permissions system, it can let you mount whatever filesystems you like, however you like. But if you're going ...


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

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

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


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

Adb sideload command just loads a zip file from the computer to the phone. The creator of the zip controls what it does (the recovery just uploads it from the computer and looks at a specific file). You can do a lot with it, but it's not a full rom, it's cannot replace a rom. Here is an example of an update.zip I once wrote and sideloaded it to a phone: ...


2

As it turns out, the issue was that my phone was no longer being recognised as a composite USB device by Windows, meaning only one of ADB, MTP or HTC Sync was capable of running at a given time. After the update, MTP was always recognised first. This explains both the 4.3 issue of MTP and ADB conflicting, and the 4.4 issue of no ADB. The solution was ...


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


2

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



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