cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Install cURL in Android using binary

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Wed, 17 Oct 2012 13:13:28 -0400

On Wed, Oct 17, 2012 at 12:57 PM, Joe Cabezas <joe.cabezas_at_gmail.com> wrote:

> not working :(
>
> here's what i did
>
> /storage/sdcard0/0Joe $ ./curl www.google.cl
> /sbin/sh: ./curl: Permission denied
>
> /storage/sdcard0/0Joe $ chmod +x curl
> chmod: curl: Operation not permitted
>
> /storage/sdcard0/0Joe $ chmod 755 curl
> chmod: curl: Operation not permitted
>
> /storage/sdcard0/0Joe $ su -
> root_at_android:/storage/sdcard0/0Joe # chmod +x curl
>
> root_at_android:/storage/sdcard0/0Joe # ./curl www.google.cl
>
> sh: ./curl: can't execute: Permission denied
>
> 126|root_at_android:/storage/sdcard0/0Joe # chmod 755 curl
>
> root_at_android:/storage/sdcard0/0Joe # ./curl www.google.cl
>
> sh: ./curl: can't execute: Permission denied
>
> 2012/10/17 Ralph Mitchell <ralphmitchell_at_gmail.com>
>
>> missions: chmod 755 /some/fol
>
>
It's probably your mount point. I just tried this on my phone:

     mount | grep sdcard0

and got this back:
     /dev/block/vold/179:18 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,*
noexec*,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
0 0

See that "noexec" in the flags? The OS stops you executing any binary on
the card. This is a security measure, to slow down any virus that might be
downloaded. You could drop the binary into somewhere under /data. Be
aware that it will probably go away if you do a reset or data wipe.

Ralph Mitchell

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-10-17