MultiROM Makes its Way Over to the HTC One (M8)

While browsing our forum, you will undoubtedly find more than a few enticing ROMs available … more

Welcome to the New XDA-Developers Portal!

You may recall that a few weeks ago, we opened up the XDA-2015 forum themesto intrepid users … more

An Android Enthusiast’s Apple iPhone 6 Challenge

The media has gone batty again over Apple “revolutionizing” smartphones. … more

Sony to Extend its AOSP Program to Other Devices

Sony will be offering its users the possibility to use AOSP ROMs as an alternative to the … more
Post Reply

[HowTo] Install cURL and OpenSSL on Android

13th July 2013, 06:04 PM   |  #1  
r3pwn's Avatar
OP Recognized Contributor
Thanks Meter: 1,121
 
1,016 posts
Join Date:Joined: Jul 2012
More
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
Last edited by r3pwn; 15th July 2013 at 06:50 PM.
The Following 10 Users Say Thank You to r3pwn For This Useful Post: [ View ]
13th July 2013, 06:20 PM   |  #2  
r3pwn's Avatar
OP Recognized Contributor
Thanks Meter: 1,121
 
1,016 posts
Join Date:Joined: Jul 2012
More
Screenshot!

Sent from my Amazon Kindle Fire HD using xda app-developers app
Last edited by r3pwn; 13th July 2013 at 06:37 PM.
The Following 2 Users Say Thank You to r3pwn For This Useful Post: [ View ]
13th July 2013, 10:13 PM   |  #3  
r3pwn's Avatar
OP Recognized Contributor
Thanks Meter: 1,121
 
1,016 posts
Join Date:Joined: Jul 2012
More
I'm surprised I was the first person to post about this.

Sent from my Amazon Kindle Fire HD using xda app-developers app
Last edited by r3pwn; 14th July 2013 at 03:13 AM.
The Following User Says Thank You to r3pwn For This Useful Post: [ View ]
15th July 2013, 04:17 AM   |  #4  
kenshinta's Avatar
Senior Member
Thanks Meter: 57
 
313 posts
Join Date:Joined: Dec 2004
Quote:
Originally Posted by r3pwn

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!
16th July 2013, 08:10 AM   |  #5  
GoLfWRC's Avatar
Member
Flag Bangkok
Thanks Meter: 11
 
41 posts
Join Date:Joined: Nov 2012
More
Nicely done.
16th July 2013, 01:45 PM   |  #6  
r3pwn's Avatar
OP Recognized Contributor
Thanks Meter: 1,121
 
1,016 posts
Join Date:Joined: Jul 2012
More
Quote:
Originally Posted by GoLfWRC

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
Last edited by r3pwn; 16th July 2013 at 05:46 PM.
17th July 2013, 01:16 AM   |  #7  
r3pwn's Avatar
OP Recognized Contributor
Thanks Meter: 1,121
 
1,016 posts
Join Date:Joined: Jul 2012
More
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
1st November 2013, 06:53 AM   |  #8  
Member
Thanks Meter: 5
 
39 posts
Join Date:Joined: 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.
2nd November 2013, 12:39 AM   |  #9  
Member
Thanks Meter: 5
 
39 posts
Join Date:Joined: May 2013
Quote:
Originally Posted by heytcass

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?
2nd November 2013, 06:36 PM   |  #10  
Member
Thanks Meter: 5
 
39 posts
Join Date:Joined: May 2013
Quote:
Originally Posted by heytcass

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?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android General by ThreadRank