dpavlin / android-command-line

Bunch of helper scripts to use Android from command line
http://blog.rot13.org/2010/09/android_for_command-line_users.html
117 stars 32 forks source link

How to use... #1

Open OlivierDupre opened 12 years ago

OlivierDupre commented 12 years ago

Hi !

I'm sorry to ask what may look like a dumb question but... where should I run these scripts ?

Typically, I'm running Linux on my laptop, and I'd like to pull my CWM backups. Looks like you have a script to do this. I can copy it on my computer and run it from my computer's shell... but it does not appreciate it ;)

adb is in my PATH, but when the script is trying to list (ls) the content of the backup folder, it complains that there is no such file or folder. Thus, I assume I'm doing something wrong... and I'm asking you this question.

In advance, thanks for your reply, Olivier.

dpavlin commented 12 years ago

You are absolutely right. It seems that -1 isn't supported in recent busybox installations. Switching to find does help, so can you please test if it works for you also?

OlivierDupre commented 12 years ago

Thanks for your reply.

By the way, it does not really looks better. The first problem is that I don't have permissions on /sdcard/clockworkmod

$ adb shell find /sdcard/clockworkmod/backup/ error: insufficient permissions for device

dpavlin commented 12 years ago

You might try enabling root for adb if you are using recent cyanogen.