Need one-line adb shell su push & pull to access /data from Windows batch file
11
votes
6
answers
60362
views
I wrote a Windows batch file that replaces Amazon lockscreen ads with user images on _rooted_ kindle fire hd 7", 2013 (kfsowi). Just learned I botched the adb commands because I was running "adb insecure" so was getting su access without writing it into the adb commands.
**What I need:** To run in batch file, I need one-line adb shell su commands to pull from/push to
/data
on this device. (Or I could use adb -d shell su -c "mount -o remount rw, /data
on one line followed by the pull or push)
I have fixed an ls command like this:
- this worked with adb insecure: adb ls "/data/securedStorageLocation"
- what I needed was: adb shell su -c "ls ./data/securedStorageLocation"
Now I need same for pull and push. The problem:
- With adb insecure, this works fine: adb pull "/data/securedStorageLocation" "C:/destination"
- Without adb insecure I get: remote object '/data/securedStorageLocation/' does not exist
Above happens even if I first run: adb -d shell su -c "mount -o remount rw, /data
Can someone tell me how to do the pull and push with adb shell and su?
EDIT: adb root
command doesn't gain root on this device
Asked by sjoy
(211 rep)
Oct 23, 2014, 05:05 AM
Last activity: Jul 28, 2024, 05:37 AM
Last activity: Jul 28, 2024, 05:37 AM