[HowTo] Install cURL and OpenSSL on Android - Android General

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

Screenshot!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my Amazon Kindle Fire HD using xda app-developers app

I'm surprised I was the first person to post about this.
Sent from my Amazon Kindle Fire HD using xda app-developers app

r3pwn said:
I'm surprised I was the first person to post about this.
Sent from my Amazon Kindle Fire HD using xda app-developers app
Click to expand...
Click to collapse
Since you did, you are an idol. Cheers!

Nicely done.

GoLfWRC said:
Nicely done.
Click to expand...
Click to collapse
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

If anyone cares, the link to the app is http://forum.xda-developers.com/showthread.php?t=2366638.
Enjoy checking checksums!
Sent from my Amazon Kindle Fire HD using xda app-developers app

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 said:
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.
Click to expand...
Click to collapse
I just installed adbd insecure. Should that help with the install?

heytcass said:
I just installed adbd insecure. Should that help with the install?
Click to expand...
Click to collapse
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/2010/05/porting-of-libcurl-to-android-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?

No help on this?

heytcass said:
No help on this?
Click to expand...
Click to collapse
Have you tried running it from Android Terminal Emulator or via an adb shell? That is how it's intended to run.
Sent from my iPod touch using Tapatalk

r3pwn said:
Have you tried running it from Android Terminal Emulator or via an adb shell? That is how it's intended to run.
Sent from my iPod touch using Tapatalk
Click to expand...
Click to collapse
I was of the understanding that the terminal within SL4A was a proper terminal emulator. I'll try it with a standalone emulator and see what result that gets me.
Thanks.

heytcass said:
I was of the understanding that the terminal within SL4A was a proper terminal emulator. I'll try it with a standalone emulator and see what result that gets me.
Thanks.
Click to expand...
Click to collapse
Okay.
You're welcome.
Sent from my iPod touch using Tapatalk

I reinstalled everything again, and did the dropbox curl test, which worked no problem. But when I run the script through SL4A, I still get the curl_init fatal error. And when I try to run it through either adb shell or terminal emulator, I get a permission denied error. I seem to be doomed in getting this thing going.

heytcass said:
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.
Click to expand...
Click to collapse
seem like your php not have curl extension.
use this method
PHP:
$html = shell_exec('/system/bin/curl --url your_target_URL');
echo $html;
for other parameters please follow the curl --help

will the cURL / openssl binaries survive ROM updates ? ie, cyanogenmod nightly --> cyanogenmod nightly ?

since you put in /system and /data folder, they will gone if you update the rom

Hi! I managed to install curl, and put the /data/local/ssl folder
in /data/local/ssl in my phone, but when I tried to do
curl to an https site, the following error appears:
So, I'm trying to guess what's going wrong. Any hint that can
help me get rid of this error will be appreciated.

jose_ramirez said:
Hi! I managed to install curl, and put the /data/local/ssl folder
in /data/local/ssl in my phone, but when I tried to do
curl to an https site, the following error appears:
View attachment 2885033
So, I'm trying to guess what's going wrong. Any hint that can
help me get rid of this error will be appreciated.
Click to expand...
Click to collapse
Do what it says,
Run "curl -k yoururlhere"

Related

Sideloading Samsung Captivate

How to sideload for samsung captivate?
1. Download Terminal Emulator from android market (or any terminal).
2. Go to this post on your samsung captivate.
3. Copy this Below
su cd /dbdata/databases/com.android.providers.settings
sqlite3 settings.db
update secure set value = "1" where name = "install_non_market_apps";
.quit
reboot
4. Your phone will reboot and you can sideload. try to download an app from pandaapp.com.
5. Success!!!!!!!!!! Made very easy compared to using Android SDK.
-I dont claim to find this. But i havent seen this on youtube or any where else-
Hope You Luck!
-Jordan5555
Thanks for the info!
Sent from my GT-I9000 using XDA App
It's explained Tip: Enable Non Market App Installs on the Samsung Captivate]here[/url, I used a little variation on that method:
Can I suggest an even easier way of editing and manipulating the settings.db file? I used a combination of Root Explorer, SQLite Editor and Dropbox, modified from this link. You zip and copy settings.db from your Captivate to Dropbox, then you can edit it in Firefox, zip it, copy it back, and manipulate it from there - or I found I could copy the file to another folder I created (modified market), edit the file in there with SQLite, save the file and then copy it back to the original folder following their directions. The one thing you have to be careful of is making sure you're mounted R/W instead of R/O in Root Explorer or you'll get errors, something like 'permission denied'.
The Sideload Wonder Machine is nice, but I'm not always at my computer when I find something I want to try, this method made sideloading totally contained on the Captivate. Works a charm
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i tried the first method by copying the code and i got "Permission Denied" so then i just typed in the first line. got the same "Permission Denied"
is there a step i need to do first?
sorry if there is something obvious i should do first, i'm a bit of a noob
gisxer said:
i tried the first method by copying the code and i got "Permission Denied" so then i just typed in the first line. got the same "Permission Denied"
is there a step i need to do first?
sorry if there is something obvious i should do first, i'm a bit of a noob
Click to expand...
Click to collapse
What are you using, Root Explorer? You have to click the r/w at the top of the screen to enable writing. If it's r/o, that means read only.
Root Explorer? no, just Terminal Emulator and pasted the code into the Terminal window. i take it that's not what it meant
gisxer said:
Root Explorer? no, just Terminal Emulator and pasted the code into the Terminal window. i take it that's not what it meant
Click to expand...
Click to collapse
Ah, no, I see, you're referring to the first method. I dunno, I used what I posted, and it worked well.
nevermind lol
sorry should have mentioned that. the method posted by jordan5555 got the error
Permission denied (Jordans mthd)
Sent from my SAMSUNG-SGH-I897 using Tapatalk
While the process described here isn't technically sideloading, it is enabling installation of non-market applications without being attached to a computer, a.k.a. De-crippling . I have already simplified this process into one click, with no need for running any console commands or downloading the android SDK. Check out One Click De-Cripple for Captivate here.
BTW, your phone will need to be rooted before this process will be successful.
rafter109 said:
While the process described here isn't technically sideloading, it is enabling installation of non-market applications without being attached to a computer, a.k.a. De-crippling . I have already simplified this process into one click, with no need for running any console commands or downloading the android SDK. Check out One Click De-Cripple for Captivate here.
BTW, your phone will need to be rooted before this process will be successful.
Click to expand...
Click to collapse
Having to be rooted is why I went wit the method I posted above - because at the time I wasn't ready to root. What that method did do is force me to learn a bit about Android file structure and how to 'fiddle around' with the innards of the system. Eventually, of course, I got brave, rooted, and it's been all customizing from then on.
Of course, once you've rooted and gone to a custom ROM you never have to worry about all this again
Cant you just use the sideload wonder machine? Worked for me when I didn't have the "install_non_market_apps" file changed.
yentlequible said:
Cant you just use the sideload wonder machine? Worked for me when I didn't have the "install_non_market_apps" file changed.
Click to expand...
Click to collapse
Sure, but then I have to be at my computer to load anything. I far prefer what I did, so it's just plain done. Plus I don't want the constant reminder that AT&T has crippled my phone - a phone I'm paying way too much for monthly.
reinbeau said:
Sure, but then I have to be at my computer to load anything. I far prefer what I did, so it's just plain done. Plus I don't want the constant reminder that AT&T has crippled my phone - a phone I'm paying way too much for monthly.
Click to expand...
Click to collapse
Good point... The only reason I used the sideload wonder machine in the first place was to get root explorer on my phone since the market was not working. After that I just modified the database file.

[DEV][UPDATE] Backtrack 5 - Multi-Device Linux Chroot Solution - Debdroid Beta V2

Mods: I'm not sure where this thread belongs as it has evolved to support all Android Devices, please move accordingly.
Debdroid is a fully functional Linux-Android chroot solution. With the ability to set what img file is looped, you are able to run any distro built for ARM.
Update 05/14/11
Backtrack 5 Support!
Backtrack 5 on Android - http://www.youtube.com/watch?v=nYShFr0foS8
Debdroid supports any Android device with loopback devices and ext2.
Succesfully tested on Motorola Atrix, HTC EVO, HTC Incredible.
Release Page: http://gititbit.ch/bt5
All mirrors are provided by gitbrew.org, check out http://gitbrew.org/android/ for more android mirrors. Please contact me if you would like free secure file-hosting.
very interesting!!! i'll give it a shot tomorrow.
Tight work.....finally something fun to play with.
Lol "open sores community" that can't be a typo..........lmao, if it was sorry..hehe
Swyped from a galaxy far far away......
I love sniffing. This means free wifi on my EVO from my EVO hacking abilities.
Here is a song for this hack.
They see me sniffin';
They hatin'.
Patrollin'
And tryin. to catch me sniffin dirty.
catch me sniffin dirty.
Jimdog420 said:
Tight work.....finally something fun to play with.
Lol "open sores community" that can't be a typo..........lmao, if it was sorry..hehe
Swyped from a galaxy far far away......
Click to expand...
Click to collapse
I've already checked my post for spelling mistakes.
and thanks everyone!
It's good to finally see a dev who cares to do a project like this. I wish I had the time to contribute. Maybe after I'm done with univ and fail at trying to find a job I will. Thanks for all the hard work anyways.
So I'm running CM7...
sh debian.sh seemed to complete just fine. (I even went step by step to confirm since there's a 'clear' in there).
but...
sh debdroid gives me:
# debdroid
function: not found
modprobe: chdir(2.6.37-cyanogenmod-01174-gaa3cf65): No such file or directory
debdroid: 47: Syntax error: "}" unexpected
#
I'm decent with linux but a noob with bash (or any coding). It seems like a function is missing (or I did something wrong).
Any help would be appreciated. Thanks.
Do I see gentoo around ther corner?
Sent from my PC36100 using XDA App
easy1600, from the way your output is, it looks like you're not in a bash shell, but just the su sh shell. exec the command bash then exec debdroid. Thank you for trying it out.
As for Gentoo, I've been using Debian for years and never messed about too much in other distros other than arch. Though if you can get an ARM Gentoo img this method can be tweaked to work with any ARM img really.
Update: Here's a WIP of the Debtop software which will allow basically the same functionality of the Motorola Atrix Webtop software.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This vnc session is all through USB with no interaction over the wlan though it has the ability to work with vnc over ssh tunnel.
Sweet! It works and I get tab completion in android (that bugged the hell out of me). Thanks!
easy1600 said:
So I'm running CM7...
sh debian.sh seemed to complete just fine. (I even went step by step to confirm since there's a 'clear' in there).
but...
sh debdroid gives me:
# debdroid
function: not found
modprobe: chdir(2.6.37-cyanogenmod-01174-gaa3cf65): No such file or directory
debdroid: 47: Syntax error: "}" unexpected
#
I'm decent with linux but a noob with bash (or any coding). It seems like a function is missing (or I did something wrong).
Any help would be appreciated. Thanks.
Click to expand...
Click to collapse
Same exact problem here. =/
Aerodynamix: Type 'bash' then try again.
OP: What is the simplest way to copy a .cap file from debian to anywhere I can access it from my laptop? If I can just get it to android /sdcard/ I'm golden. Or if I can just send it anywhere that I can reach it...
Well, you can utilize the unionfs script which is supposed to mount the sdcard and debdroid or you can open up a file manager on your phone like astro and nav to /data/local/debian while debdroid is running.
The problem i am having is that when I type Bash im getting "bash: not found"
grzzer2 said:
The problem i am having is that when I type Bash im getting "bash: not found"
Click to expand...
Click to collapse
Do you have bash installed?
easy1600 said:
It's good to finally see a dev who cares to do a project like this. I wish I had the time to contribute. Maybe after I'm done with univ and fail at trying to find a job I will. Thanks for all the hard work anyways.
Click to expand...
Click to collapse
dasmoover said:
Do you have bash installed?
Click to expand...
Click to collapse
No I dont think I do, is it in the market. Sry I am a noob with Linux
You should grab the BusyBox tools from the market if you haven't already, I'm almost positive it comes with bash.
Yes I just installed busybox from the market on my phone and still getting the "bash: not found"
I got everything working, thank you for your help
dasmoover said:
Well, you can utilize the unionfs script which is supposed to mount the sdcard and debdroid or you can open up a file manager on your phone like astro and nav to /data/local/debian while debdroid is running.
Click to expand...
Click to collapse
My /data/ directory is empty (debian is running). Unionft script doesn't seem to work at all.
I got it done by running /sbin/sshd and using winscp though. Thanks, I got lots to play with now!

[MOD][How to] CWM On Every Boot w/GPS Working

CWM ON EVERY BOOT WITH GPS WORKING
What Is This??
This is a mod to achieve ClockWorkMod Recovery on Every reboot/boot with a fully functioning GPS. So far this is the only method to have CWM On boot without breaking GPS.This methos uses IBMc PowerBoost 2.0.​
Things you will need:
1. Jrummy16's BusyBox Installer (download on market)
2. Download PB-2dot0_final.zip and place on sdcard
3. Terminal Emulator (download on market)
INSTRUCTIONS:
Step 1. Reboot into CWM using Atrix Bootstrapper and
Step 2. flash PB-2dot0_final.zip and reboot
Step 3. Once rom loads up , uninstall AtrixBootstrapper or set permissions in SuperUser for it to "denied" (i would uninstall AtrixBootstrapper after quickly setting to deny,you wont need it)
Step 4. Download Jrummy16's Busybox Installer from market,open it,and click install. You want to install latest 1.19 Busybox over 1.17 that you probably have. looks like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 5. Open Terminal emulator and type the following one line at a time,hitting ENTER after each line is typed:
su
mount -o rw,remount /dev/block/mtdblock3 /system
chmod 755 /system/xbin/powerboost
powerboost
now you should see this:
Step 6. It will ask you if you want it to install Jrummy16's BusyBox Installer,just type N for "No" and hit enter as we already installed this.
Step 7. Now it will Prompt you to select a number. type in 5. "CWR On Every Boot"
Step 8. After "Installation Complete" only takes about 2 seconds, you will type 8 for a Reboot,and type Y for yes.
Step 8. Enjoy!
If you like my work,hit the thanks button,if not,hit the back button : P
If you plan on using this in your projects all i ask is for you to simply credit me in your OP.
CREDITS: BMc08GT (creator of the PowerBoost Script)
You are the man!
Thanks....cant hit the button on my mobile app but will when i get to my pc.
So terminal emulator, can that always be used to push adb commands?
Sent from my MB865 using XDA App
916x10 said:
You are the man!
Thanks....cant hit the button on my mobile app but will when i get to my pc.
So terminal emulator, can that always be used to push adb commands?
Sent from my MB865 using XDA App
Click to expand...
Click to collapse
yes and no, for apks i run adb from pc otherwise u run into problems.
Does this also fix the battery issue where it won't turn on or charge from 0%?
Sent from my MB865 on lfaber06's Supercharged ROM V 5, Update 2
You're my hero today. Ha! Thanks for this...
Out of curiosity... Does this work with PB 2.5 as well?
This is great, thanks a lot rdavisct!
Edit: Nevermind, figured it out.
Sent from my MB865 using xda premium
Question
Question. Does the bug still exist wherein the battery discharges completely and the phone is unable to regain a charge with CWM on Recovery script installed? I haven't personally experienced this because I've never let my battery drain. I've seen it posted in another thread.
http://forum.xda-developers.com/showthread.php?t=1543792&page=12
KEB64 said:
Question. Does the bug still exist wherein the battery discharges completely and the phone is unable to regain a charge with CWM on Recovery script installed? I haven't personally experienced this because I've never let my battery drain. I've seen it posted in another thread.
http://forum.xda-developers.com/showthread.php?t=1543792&page=12
Click to expand...
Click to collapse
Yea thats his phone.not a roms doing
Sent from my MB865 using XDA
rdavisct said:
Yea thats his phone.not a roms doing
Sent from my MB865 using XDA
Click to expand...
Click to collapse
So to answer ur question no,u have nothing to worry about
Sent from my MB865 using XDA
Oh I thought it was a cwm on recovery exclusive bug. BTW, congratulations on inheriting ifaber's work. I'm looking forward to V6. V5 is one of my favorites.
Sent from my MB865 using XDA
I can't get the script to stick. After I do the setup and reboot, I boot into CWM like it should, but once I power off and boot again it just boots normally. I followed the directions exactly, and tried the process again, but the same results.
I assume it's because I'm not creating this script where it wants to go. Any advice or help? Thanks
I should note that I'm on stock 3.6 and have only rooted and installed the bootstrapper previously.
41rw4lk said:
I can't get the script to stick. After I do the setup and reboot, I boot into CWM like it should, but once I power off and boot again it just boots normally. I followed the directions exactly, and tried the process again, but the same results.
I assume it's because I'm not creating this script where it wants to go. Any advice or help? Thanks
I should note that I'm on stock 3.6 and have only rooted and installed the bootstrapper previously.
Click to expand...
Click to collapse
Sounds like you are not mounting the /system first. Make sure u type it exactly in terminal emulator as i posted before running powerscript like so "mount -o /dev/block/mtdblock3 /system" without the quotes
Sent from my MB865 using XDA
Does the removal script work with this setup?
Sent from my MB865 using XDA
rdavisct said:
Sounds like you are not mounting the /system first. Make sure u type it exactly in terminal emulator as i posted before running powerscript like so "mount -o /dev/block/mtdblock3 /system" without the quotes
Sent from my MB865 using XDA
Click to expand...
Click to collapse
I typed it just as it is, and even done it in adb shell with copy and paste, but it would never create the init.d folder or the 99cwr script. So I opened root explorer to see what was going on. The system was mounted as rw, but it just wouldn't create it. So I made the init.d folder myself and ran powerboost again and it created the 99cwr script, but still, normal bootup. I guess it needs to be called during boot or whatever, but idk where to set that. Any suggestions or advice? Thanks
41rw4lk said:
I typed it just as it is, and even done it in adb shell with copy and paste, but it would never create the init.d folder or the 99cwr script. So I opened root explorer to see what was going on. The system was mounted as rw, but it just wouldn't create it. So I made the init.d folder myself and ran powerboost again and it created the 99cwr script, but still, normal bootup. I guess it needs to be called during boot or whatever, but idk where to set that. Any suggestions or advice? Thanks
Click to expand...
Click to collapse
It's because the stock ROM doesn't have init.d support. Flash this then try again.
Nice! That was it. Everything works as it should now. Thanks
cogeary said:
It's because the stock ROM doesn't have init.d support. Flash this then try again.
Click to expand...
Click to collapse
Sorry. Read too fast.assumed you were already had init.d support
Sent from my MB865 using XDA
i still can't get it to work..me also have the same problem as @41rw4lk,but after i flash the init.d file I still cannot get it to work:'(
stock rooted 2.3.6
---------- Post added at 07:00 PM ---------- Previous post was at 06:33 PM ----------
sorry a noob question, where do i need to install the busybox? system/bin or system/xbin

[Help] terminal not granting su access

I'm having trouble trying to run scripts in terminal. When I enter terminal, hit su> enter , I'm not gaining access to root. Seemed to happen after I flashed the latest beans Rom because I was able to run scripts while in wicked.
At first I was trying with Rom toolbox pro and it wasn't working. Then I downloaded terminal emulator from the play store and that didn't work. Su app shows it has root access and I even made it reprompt me to reallow access. That didn't work. Tried installing busy box from the market and that didn't work either. Out of idea plus I googled the hell out of it too. Thanks!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my SCH-I535 using Tapatalk
aypeeootrek said:
I'm having trouble trying to run scripts in terminal. When I enter terminal, hit su> enter , I'm not gaining access to root. Seemed to happen after I flashed the latest beans Rom because I was able to run scripts while in wicked.
At first I was trying with Rom toolbox pro and it wasn't working. Then I downloaded terminal emulator from the play store and that didn't work. Su app shows it has root access and I even made it reprompt me to reallow access. That didn't work. Tried installing busy box from the market and that didn't work either. Out of idea plus I googled the hell out of it too. Thanks!
Sent from my SCH-I535 using Tapatalk
Click to expand...
Click to collapse
I saw you have # prompt meaning you do have root access, but when you tried to execute another command and it said command not found, sounds like there's an issue with your other app, but not root. If you download root checker from the market and verify you have root then the issue is not with root.
buhohitr said:
I saw you have # prompt meaning you do have root access, but when you tried to execute another command and it said command not found, sounds like there's an issue with your other app, but not root. If you download root checker from the market and verify you have root then the issue is not with root.
Click to expand...
Click to collapse
Hey thanks for replying. And I kinda figured that with the root issue. Just really unsure how else to describe my issue. Any suggestions?
Sent from my SCH-I535 using Tapatalk
aypeeootrek said:
Hey thanks for replying. And I kinda figured that with the root issue. Just really unsure how else to describe my issue. Any suggestions?
Sent from my SCH-I535 using Tapatalk
Click to expand...
Click to collapse
Do you have SuperSu app on the phone? if not download it, if you do open up the app and check see if will update (if it update it should fixed your issue) and what version do you have, should be 1.93
buhohitr said:
Do you have SuperSu app on the phone? if not download it, if you do open up the app and check see if will update (if it update it should fixed your issue) and what version do you have, should be 1.93
Click to expand...
Click to collapse
Believe it's up to date
Sent from my SCH-I535 using Tapatalk
Not the biggest deal but there are a few scripts I want to run like operation killjoy and the crystal clear
Sent from my SCH-I535 using Tapatalk
aypeeootrek said:
Not the biggest deal but there are a few scripts I want to run like operation killjoy and the crystal clear
Sent from my SCH-I535 using Tapatalk
Click to expand...
Click to collapse
give this a try, uncheck re-authentication and default access change from Prompt to Grant. Run the script command and let me know the error. The issue maybe with the scripts not Su.
buhohitr said:
give this a try, uncheck re-authentication and default access change from Prompt to Grant. Run the script command and let me know the error. The issue maybe with the scripts not Su.
Click to expand...
Click to collapse
Same thing. Also, when terminal gains su access, isn't there another line that gets displayed in terminal and then you're allowed to type command. Like it pretty much tells you that you now have access. And the scripts worked previously on w wicked 4.3 tw and some 4.4 roms too
Sent from my SCH-I535 using Tapatalk
aypeeootrek said:
Same thing. Also, when terminal gains su access, isn't there another line that gets displayed in terminal and then you're allowed to type command. Like it pretty much tells you that you now have access. And the scripts worked previously on w wicked 4.3 tw and some 4.4 roms too
Sent from my SCH-I535 using Tapatalk
Click to expand...
Click to collapse
Try another terminal app..
I did lol. Tired rom toolbox and terminal emulator. When I get some time, I'm going to restore a nano and see if it works. I'll backup this rom as well and try a fresh install. Thanks for taking the time to try and help
Sent from my SCH-I535 using Tapatalk

Install kali nethunter no root termux

Nethunter-In-Termux
This is a script by which you can install Kali nethunter (Kali Linux) in your termux application without rooted phone
Steps For Installation
Download script in HOME curl -LO https://raw.githubusercontent.com/Hax4us/Nethunter-In-Termux/master/kalinethunter
Give execution permission chmod +x kalinethunter
Run script ./kalinethunter
Now just start kali nethunter startkali
Compulsory Steps For First Time Use (Only for Fisrt Time After Installation)
So after startkali, execute this command apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
Now its time to update apt-get update
Example
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just installed ternux
If you are starting from scratch and just installed termux make sure to install curl
pkg install curl
Where is the forum to post problems with this method?
Hi,
I installed Kali net hunter in Samsung galaxy j7 prime , zip files gone extracted successfully and given exe permission to Kali hunter but when I exec
./Kali hunter the the Kali net hunter folder with files gets deleted
Everytime I tried but nothing changed.
Although other folders are fine and other modules work fine.
Mandeep Hundal said:
Hi,
I installed Kali net hunter in Samsung galaxy j7 prime , zip files gone extracted successfully and given exe permission to Kali hunter but when I exec
./Kali hunter the the Kali net hunter folder with files gets deleted
Everytime I tried but nothing changed.
Although other folders are fine and other modules work fine.
Click to expand...
Click to collapse
The command is ./kalinethunter and after run this command you type startkali in termux that should work.
lucki1000 said:
The command is ./kalinethunter and after run this command you type startkali in termux that should work.
Click to expand...
Click to collapse
I tried as you told
I gave exec permission to kalinethunter
Then exec ./kalinethunter
and used startkali command
proot warning can't sanitinze "/data/data/home dir/ kali-armhf no such file or directory fatal error : see proot --help
I checked in data/data/home folder kali-armhf gone deleted again.
---------- Post added at 07:42 AM ---------- Previous post was at 07:09 AM ----------
Mandeep Hundal said:
I tried as you told
I gave exec permission to kalinethunter
Then exec ./kalinethunter
and used startkali command
proot warning can't sanitinze "/data/data/home dir/ kali-armhf no such file or directory fatal error : see proot --help
I checked in data/data/home folder kali-armhf gone deleted again.
Click to expand...
Click to collapse
Worked
need commands
need commands for kali linux in termux
pavanpardhu said:
need commands for kali linux in termux
Click to expand...
Click to collapse
Explain commands, what do you need?
Sent from my Motorola Moto G (5) using XDA Labs
Hi I have problems on my Honor 8x android 8.1
ktl20 said:
Hi I have problems on my Honor 8x android 8.1
Click to expand...
Click to collapse
Which command gives the error ?
Now i have this only ...before everywere were dpkg warnings and problems with upgrading packages
ktl20 said:
Now i have this only ...before everywere were dpkg warnings and problems with upgrading packages
Click to expand...
Click to collapse
Do you have give termux the storage permission?
Sent from my Motorola Moto G (5) using XDA Labs
Yes i did
termux-setup-storage
ktl20 said:
Yes i did
termux-setup-storage
Click to expand...
Click to collapse
did you simply execute the above commands or how did the error occur?
Sent from my Motorola Moto G (5) using XDA Labs
After termux-setup-storage command I have no errors..... I have installed kali from Hax4us git hub like always with no errors or problems and after apt update apt upgrade dpkg warrnings shows up and after setting up man-db and dpkg - - configure - a i had proot error like on screenshots... On my ze520kl everything was fine
ktl20 said:
After termux-setup-storage command I have no errors..... I have installed kali from Hax4us git hub like always with no errors or problems and after apt update apt upgrade dpkg warrnings shows up and after setting up man-db and dpkg - - configure - a i had proot error like on screenshots... On my ze520kl everything was fine
Click to expand...
Click to collapse
Okay then you can uninstall termux and do it again maybe it works.
Sent from my Motorola Moto G (5) using XDA Labs
I did that many times and I have the same problem :-/
ktl20 said:
I did that many times and I have the same problem :-/
Click to expand...
Click to collapse
Oh okay. Have you too little space on your internal storage?
Sent from my Motorola Moto G (5) using XDA Labs
This model has 128GB and termux is my one of the first install... Why you think that the problem is in storage? Maybe it's because it's android 8.1? On my ze520kl I had 8.0

Categories

Resources