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?
adb root command doesn't gain root on this device
adb pullin root mode, the adb daemon on the device must be running in root mode (which is what ADBInsecure does).
adb rootto work either). Worth a separate question, maybe?