Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,490 Members 40,980 Now Online
XDA Developers Android and Mobile Development Forum

[HowTo] Install cURL and OpenSSL on Android

Tip us?
 
r3pwn
Old
(Last edited by r3pwn; 15th July 2013 at 06:50 PM.)
#1  
r3pwn's Avatar
Senior Member - OP
Thanks Meter 888
Posts: 810
Join Date: Jul 2012
Default [HowTo] Install cURL and OpenSSL on Android

NOTE: YOU MUST BE ROOTED WITH BUSYBOX INSTALLED TO INSTALL cURL AND OpenSSL.
Recently, when looking to see if it was possible to get cURL on Android, I found something posted on June 22nd of 2013 on http://curl.haxx.se/. What was it, you may ask? It was an announcement of the curl binary version 7.31.0. This also came with a nice little surprise. cURL and openssl binaries for android! If you want, you can download them by going to http://curl.haxx.se/download.html and scrolling down until you see Linux - Android. Download the ".tar.gz" file and extract it. Inside, you will see a folder called data. To install, copy the data/local/ssl to /data/local/ssl on the device. Also, push the curl and openssl binaries from data/local/bin to /system/bin on the device. Be sure to chmod them to 0755. Once all that is done, have fun using curl!

I have confirmed this to be working on my Kindle Fire HD running android 4.2.2.

EDIT: Root is needed in order to run OpenSSL, but not cURL.

Sent from my Amazon Kindle Fire HD using xda app-developers app

Need help?
Hit me up on Twitter or Google+ or, you know, just send me a PM.

Like what I do?
Send me your Bitcoins. 1EQMaazk3DmBvSFJmWXzhFWbMiZ3SpUj5Z
The Following 10 Users Say Thank You to r3pwn For This Useful Post: [ Click to Expand ]
 
r3pwn
Old
(Last edited by r3pwn; 13th July 2013 at 06:37 PM.)
#2  
r3pwn's Avatar
Senior Member - OP
Thanks Meter 888
Posts: 810
Join Date: Jul 2012
Screenshot!

Sent from my Amazon Kindle Fire HD using xda app-developers app

Need help?
Hit me up on Twitter or Google+ or, you know, just send me a PM.

Like what I do?
Send me your Bitcoins. 1EQMaazk3DmBvSFJmWXzhFWbMiZ3SpUj5Z
The Following 2 Users Say Thank You to r3pwn For This Useful Post: [ Click to Expand ]
 
r3pwn
Old
(Last edited by r3pwn; 14th July 2013 at 03:13 AM.)
#3  
r3pwn's Avatar
Senior Member - OP
Thanks Meter 888
Posts: 810
Join Date: Jul 2012
I'm surprised I was the first person to post about this.

Sent from my Amazon Kindle Fire HD using xda app-developers app
The Following User Says Thank You to r3pwn For This Useful Post: [ Click to Expand ]
 
kenshinta
Old
#4  
kenshinta's Avatar
Senior Member
Thanks Meter 55
Posts: 310
Join Date: Dec 2004
Quote:
Originally Posted by r3pwn View Post
I'm surprised I was the first person to post about this.

Sent from my Amazon Kindle Fire HD using xda app-developers app
Since you did, you are an idol. Cheers!
 
GoLfWRC
Old
#5  
GoLfWRC's Avatar
Member
Thanks Meter 11
Posts: 41
Join Date: Nov 2012
Location: Bangkok
Nicely done.
 
r3pwn
Old
(Last edited by r3pwn; 16th July 2013 at 05:46 PM.)
#6  
r3pwn's Avatar
Senior Member - OP
Thanks Meter 888
Posts: 810
Join Date: Jul 2012
Quote:
Originally Posted by GoLfWRC View Post
Nicely done.
Thanks. And in-progress is a MD4, MD5 checksum verifier app that will require OpenSSL.

Sent from my Amazon Kindle Fire HD using xda app-developers app

Need help?
Hit me up on Twitter or Google+ or, you know, just send me a PM.

Like what I do?
Send me your Bitcoins. 1EQMaazk3DmBvSFJmWXzhFWbMiZ3SpUj5Z
 
r3pwn
Old
#7  
r3pwn's Avatar
Senior Member - OP
Thanks Meter 888
Posts: 810
Join Date: Jul 2012
If anyone cares, the link to the app is http://forum.xda-developers.com/show....php?t=2366638.
Enjoy checking checksums!

Sent from my Amazon Kindle Fire HD using xda app-developers app

Need help?
Hit me up on Twitter or Google+ or, you know, just send me a PM.

Like what I do?
Send me your Bitcoins. 1EQMaazk3DmBvSFJmWXzhFWbMiZ3SpUj5Z
 
heytcass
Old
#8  
Member
Thanks Meter 5
Posts: 39
Join Date: May 2013
Just tried to install this and didn't seem to get it running.

My purpose for getting curl on Android is so I can have SL4A run a script launched by tasker, but every time I run the script I get "Fatal error: Call to undefined function curl_init() in storage/emulated/0/sl4a/scripts/nest.class.php (a PHP script for controlling my Nest thermostat).

I followed all your steps to install, although I seemed to have to do most through Root Explorer, by pushing to a folder through adb, copying from there into /data/local/ssl (which I had to mkdir for) and /system/bin, then using Root Explorer to change the permissions. Could this install process be the issue? If not, any other tips on getting cURL installed so it can be used?

Thanks.
 
heytcass
Old
#9  
Member
Thanks Meter 5
Posts: 39
Join Date: May 2013
Quote:
Originally Posted by heytcass View Post
Just tried to install this and didn't seem to get it running.

My purpose for getting curl on Android is so I can have SL4A run a script launched by tasker, but every time I run the script I get "Fatal error: Call to undefined function curl_init() in storage/emulated/0/sl4a/scripts/nest.class.php (a PHP script for controlling my Nest thermostat).

I followed all your steps to install, although I seemed to have to do most through Root Explorer, by pushing to a folder through adb, copying from there into /data/local/ssl (which I had to mkdir for) and /system/bin, then using Root Explorer to change the permissions. Could this install process be the issue? If not, any other tips on getting cURL installed so it can be used?

Thanks.
I just installed adbd insecure. Should that help with the install?
 
heytcass
Old
#10  
Member
Thanks Meter 5
Posts: 39
Join Date: May 2013
Quote:
Originally Posted by heytcass View Post
I just installed adbd insecure. Should that help with the install?
Alright, so I followed the steps to a T on a freshly formatted phone, and I am still getting the "Call to undefined function curl_init()" Fatal error within sl4a's terminal. In my searching to get this problem resolved by my Nexus 5 getting here, I found this page: http://thesoftwarerogue.blogspot.com...-os-using.html.

It's a bit dated, but it seems like it should work. Is there a better chance that method will work better than this one?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes