Tag Info

Hot answers tagged

11

The answer can be found in the backup tag-wiki. In short: ADB Backup is the newer file based backup scheme introduced in Android 4.0. It creates a backup of the file system tree and files. Better explanation would be it's a logical backup, as files are mainly grouped by apps. Side-effect is that files not having a clear relation might be missing from such ...


10

Yes. The command is pm disable <package name>. You must be root in order to do this: PC> adb shell shell@hammerhead:/ $ su root@hammerhead:/ # pm list packages -e | grep 'calculator' package:com.android.calculator2 root@hammerhead:/ # pm disable com.android.calculator2 Package com.android.calculator2 new state: disabled root@hammerhead:/ # pm list ...


8

What fixed it for me was clicking on the "Connected as a media device" up at the top left corner, de-selecting Media Device (MTP) and then checking Camera (PTP). This essentially made it show up as a different kind of USB device with different options and allowed the process to work perfectly.


7

There is no way to get Gingerbread to prompt the host to verify RSA key as that is found in newer versions of Android (Jellybean 4.1 and upwards). The only true method of hardening ADB in the sense of prevention of communicating over the USB is to modify the kernel for that appropriate device and disable the USB functionality within it in such a way that ...


6

What makes this easy is using tab-completion to complete the device ID. Type adb -s D0 and press Tab. The plugin in your shell will run adb devices to find the full device ID and complete it on the command line for you. You can then type in the rest of the command. adb is a tool for developers, and even developers don't usually run it by hand from the ...


6

Chor WaiChun mentioned this on a locked question you posted on StackOverflow: I've seen somewhere stated that this behaviour is because both android and linux run on same kernel, and same situation goes to developing android on mac. Both OS runs in very similar OS kernel with Android, that is why they don't need any drivers. These are just ...


5

From http://stackoverflow.com/users/119895/macarse: You might need to activate adb root from the developer settings menu. If you run adb root from the cmd line you can get: root access is disabled by system setting - enable in settings -> development options root access is disabled by system setting - enable in settings -> development options Once you ...


5

Izzy’s answer is misleading. Two unrelated things were mixed up (the vendor ID list in adb on one side and the permission setup in Linux on the other side). 1) devices considered by adb: Adb has a hard-coded list of USB vendor IDs it tries. E.g. HTC mobile phones use 0xbb4, which is listed (source file usb_vendors.c), while 0x2207 is not. The only way to ...


5

You don't have to uninstall, when you install an app already installed, you have to use adb install -r. (for more help, juste type adb) To uninstall an app, you have to use adb uninstall package-name (e.g. adb uninstall com.example.app).


5

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'


4

I have exactly the same device as you, down to the Android version and build number. I discovered that it was necessary to change my USB transfer mode. You can do this on the Nexus 7 by going to Settings > Storage, clicking on the strange menu icon in the top right hand corner and selecting "USB computer connection". I then changed the storage mode to ...


4

Alas, the UsbStorageActivity doesn't use an intent to enable and disable USB mass storage, so there's no way to achieve this using am. It instead calls the functions StorageManager.enableUsbMassStorage and `StorageManager.disableUsbMassStorage to do its work. As these functions are hidden in the framework, it's not possible to write an app to do this, ...


4

There are two ways. The simpler one is to use a legacy market://details?id=com.shadowburst.showr URL instead of https://play.google.com/store/apps/details?id=com.shadowburst.showr. No browser will offer to open a market:// URL, but it's still possible that another installed app will do so. The more complex way is to explicitly specify what activity you ...


3

It's not possible. The settings code is specifically written to prevent this. The closest you can come is to bring up the Device administration settings page in the Settings app. You can do this with: adb shell am start -S "'com.android.settings/.Settings\$DeviceAdminSettingsActivity'"


3

It's not enough to make the Developer options page appear in the settings menu (by repeatedly tapping the build number). On that page, there's an option USB debugging, which defaults to off. When USB Debugging is enabled, connecting your device to a PC using USB makes the "USB debugging connected" notification appear, regardless of whether adb is currently ...


3

Quite easy: find / starts exploring at the file system root (i.e. the very top). So it comes to places you have no access to as normal user, and runs into permission issues. It sees a directory called /proc/19619 and, knowing this is a directory, wants to traverse into it. But it is not permitted to (most likely the permission of that directory is something ...


2

You won't find anything about this in the man page on your desktop, nor the usage information for adb because this isn't an adb command. Remember that adb shell foo starts a shell on the device and runs the command foo there. It would be like looking in the ssh man page to find out what ssh myserver rm -rf * does. The command you want help with is ime list, ...


2

As described in Configuring ADB for Nexus 4 on Ubuntu 11.10, under Linux it is important to be listed in either ~/.android/adb_usb.ini (user based) or /etc/udev/rules.d/51-android.rules. Syntax for both files differs: while in the first case it's sufficient to simply add the vendor id (echo 0x18d1 >> ~/.android/adb_usb.ini for a Nexus 4), the entry for ...


2

Good question. While it's technically feasible (mount /system rw, unpack the zip, install the apks), I don't think that it is currently possible. The gapps are usually installed with help of the recovery. For more information see "How can I install the Google Apps Package (Play Store, …) on my Android device?"


2

Got the same issue, and fixed it by updating the driver from the ASUS usb_driver_r06_windows.zip driver pack. The issue is that this driver does not report properly the supported devices (at least mine were not listed) My device is reported as a PID 4EE2 which is not part of the supported devices. I had to add the following lines in the android_winusb.inf ...


2

To uninstall the package using adb, you need to use the package name listed in the manifest, for example: adb uninstall com.shadowburst.showr You might also want to use the -k option to avoid deleting the app's data when uninstalling. You can also uninstall apps from the Settings app: click Apps, find your app in the list, then click Uninstall. This ...


2

You could check whether there's a way to disable Keyguard (there must be some intent to use, as many apps like e.g. Tasker support that). That would turn any keylock off. One example how to do that I just found at Google Groups. First, that thread says the keycode should be 59 (keycode.KEYCODE_SHIFT_LEFT), but then also offers alternatives like: $ adb shell ...


2

If the device in question is rooted, you can write to the system settings directly from a shell command in adb shell. The name of the setting to write depends on which Android version you have. If your device isn't rooted, you can't change the USB debugging setting from adb or any non-system app.


2

Try to switch the device into PTP mode (under Settings -> Storage -> USB Computer Connection and manually select the connection mode...) and connect to computer. Let it install, switch back to USB mode and plug in again. Update: XDA tread


2

You probably need to root it to gain access to the protected "/system" file system. XDA Developer's has a (probably) outdated thread how to do it here. After you suceeded, you can take the usual steps to mod it (remount /system read-write, copy your edited file over, etc.)


2

You can't install a ROM using adb install, just like you can't install a fresh Ubuntu system with apt-get. You use fastboot to install new ROMs, when the device is in fastboot mode. Instructions are different for each device, and the ROM you downloaded should come with them. Regardless, from the symptoms you describe, it doesn't sound like installing a new ...


2

You wont be able to pull a "protected app" without root, sorry. This has nothing to do with the app being payed, except that usually only payed apps are "protected" (theoretically, free apps could be "protected" as well); think of it rather as a kind of "DRM". Once your device is rooted, you can use "root powers" to pull those .apk files. This can be done ...


2

Logcat displays Android's logs. This is by definition information about things that happened in the past. Android's logs are stored in a ring buffer and if full, the then oldest entries are overwritten. It depends on how much is being logged, when that happens. Besides this, the buffer is reset when you restart the phone, so logs cannot be older than the ...


2

If you can get to recovery you should be able to flash the full factory image which will restore your phone to completely stock. Download the full occam factory image, which includes the full system, bootloader, recovery, kernel (boot.img), and radio. It's a clean slate for these components - they'll flash cleanly over anything you have now. You can run ...


2

You can't set the lock screen PIN or password from the command-line or from an app. There are three reasons for this:- The logic behind setting a PIN is quite complicated, because a security policy installed on the device might prevent the use of a PIN (and require a more secure locking method). Setting the PIN would therefore fail in some cases. For ...



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