72644

How can I pull a file in /data/data/ from a rooted android device in one click using a windows'

Question:

I wrote the following .bat file, but it did not work for me. Could anybody help me?

adb shell su cd /data/data cp -r com.example.myapp /sdcard exit adb pull /sdcard/com.example.myapp

The .bat stop in the first command and did not go ahead. Just as this <a href="http://i.stack.imgur.com/s4rni.png" rel="nofollow">snapshot</a> show. I would be greatly appreciated if someone could help me.

Answer1:

You can run adb as root

adb root

then you can just do

adb pull /data/data/com.example.myapp/ .

Recommend

  • How to screen record iOS-real device with command?
  • unable to connect with remote debugger unexpected end of stream on connection issue in react-native(
  • What caused this Ada compilation error “ambiguous character literal”?
  • Fix pixman_region_init_rect bug
  • adb pull file in Arabic Language(UTF-8) encoding
  • Can I install android app on Google TV Development box?
  • Un-/Install System apps without rooting the device
  • communication between Android devices from different computer
  • mkdir() fails with SD card although there is permission
  • Ionic:Android Emulator Error
  • Android Maps API2 release key working locally but not through Play Store
  • Logging broadcast Intents and manually trigger them (Android)
  • Capture android screen [duplicate]
  • How to debug playbook simulator?
  • Using grep to read a log for pattern1 in the file and print only lines containing pattern1. Stop sea
  • Android wearable emulator can't connect with usb connected phone
  • ActionBar with appcompat library v7 (ava.lang.IllegalStateException: You need to use a Theme.AppComp
  • How to get all use statements declared in PHP class file
  • angularjs - ng-show doesn't update class when $interval triggers
  • SvcUtil.exe vs Add Reference
  • Delete file in internal memory from Android device?
  • adb device not listed for Gionee E7 mini
  • docker-compose: connection refused between containers, but service accessible from host
  • C Program Compiled with Cygwin and Called from Python Hangs
  • How do you create a Fuseki SPARQL server using the Apache Jena Java API?
  • .NET video play library which allows to change the playback rate?
  • Android Database Error - getWriteableDatabase
  • Detecting null parameter in preprocessor macro
  • jQuery: add elements until a particular height is reached
  • Run multiple queries from 1 SQL file showing result in multiple tables
  • Sony Xperia Z Tablet not found by adb
  • Javascript convert timezone issue
  • How do I rollback to a specific git commit
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • coudnt use logback because of log4j
  • embed rChart in Markdown
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • How can I use `wmic` in a Windows PE script?
  • Unable to use reactive element in my shiny app