[Q] SSH server and Android (SSHelper) - Android Q&A, Help & Troubleshooting

I've tried a couple different SSH apps but the only ones that work "out-of-the-box" are the closed source ones with ads. I've tried DigiSSHD and SSHelper, but can't get either to start a server. SSHelper gives me an error saying "Could not load host key" and "sshd: no hostkeys available". DigiSSHD doesn't seem to start the server either, there is a bar that just says "NO" at the top and the dropbear/openssh icons have hourglass icons on them as if something isn't quite right.
I'm using Android 4.4.2 on a Dell Venue 8. I saw that there's a support thread for SSHelper, but i don't have permission to post there.

Any ideas what i need to do? Do i need to create the host key myself? It seems like not all of the components were installed correctly for SSHelper (on the site it lists "OpenSSH, Busybox, Rsync and others") since i assume it would create the key for you the first time you run it.
I'd really appreciate any help. Thanks

Related

[Q] Is anybody running Privoxy?

I am trying to get Privoxy running on my Samsung Galaxy S II. I tried installing Privoxy (BETA 1) from the market, but could not get it to run.
First, I noticed that when starting the app, it copies the binaries and config files to the /data/data/com.galoula.Privoxy directory. But apparently it didn't set the directory permissions correctly, because all the files ended up being 0 bytes. I re-created all the directories with full permissions, and then the binaries and configs seemed to copy correctly.
However, when I try to start the app, I still get the message "Unable to start Privoxy. Please try again!"
I also tried installing Orbot / Tor from the market, which uses a Privoxy/Tor combo. Privoxy seems to run just fine there. But I don't want to run Tor, just Privoxy. I thought maybe I could just edit the files so only Privoxy would load and not Tor, but I can't figure it out.
Anybody have Privoxy running successfully and can share some tips? Thanks in advance.
claimui said:
I am trying to get Privoxy running on my Samsung Galaxy S II. I tried installing Privoxy (BETA 1) from the market, but could not get it to run.
First, I noticed that when starting the app, it copies the binaries and config files to the /data/data/com.galoula.Privoxy directory. But apparently it didn't set the directory permissions correctly, because all the files ended up being 0 bytes. I re-created all the directories with full permissions, and then the binaries and configs seemed to copy correctly.
However, when I try to start the app, I still get the message "Unable to start Privoxy. Please try again!"
I also tried installing Orbot / Tor from the market, which uses a Privoxy/Tor combo. Privoxy seems to run just fine there. But I don't want to run Tor, just Privoxy. I thought maybe I could just edit the files so only Privoxy would load and not Tor, but I can't figure it out.
Anybody have Privoxy running successfully and can share some tips? Thanks in advance.
Click to expand...
Click to collapse
I have updated the application, now it's supported.
If you have one error, please send mail at support(a)galoula(.)com.
Regards.
not work without tor
FukTheRegister said:
I have updated the application, now it's supported.
If you have one error, please send mail at support(a)galoula(.)com.
Regards.
Click to expand...
Click to collapse
Plz help me
Privoxy not work in my phone galaxy s2
" unable to start "
Download Privoxy
Where can I download a copy from Privoxy Beta 3.
I have found some obsure internet corner that first wants me to install Aptoide client.
No thanks!
Anyone having a copy of Privoxy?
Please also help privoxy not working on my Sony Z5

[Q] Howto HTTP Post/Perl Command Line shortcut for Android.... please help

Hey all, I've had this issue for quite awhile and have looked around extensively on the internet before coming here. So if you don't wanna read what I've already found out, just skip to the last paragraph for a summary of my problem.
So I have a home automation system setup for my house and I'm loving everything about it. I already have an app on my Galaxy S that will let me control the devices. I took it a step farther and delved into how to send commands using the HTTP post commands. I've already created perl scripts that can activate and deactivate the devices, but as you know Android doesn't have perl inbuilt.
I want to be able to make a shortcut on my Android device to start the devices. The reason why I want to do this is simply because I want an alarm on my android device to trigger a shortcut which turns on everything I want in the morning without me having to actually touch my phone. I already have the Alarm app that can open the shortcut, but I need a script that will work.
I need a shortcut that would enable the devices. So my first thought would be a bash script (and make a shortcut using Gscript for the Alarm App). But there's the problem, because I don't know how to send a http command from the Android terminal. I know (and have tested) perl commands, but perl isn't available for Android. That was the only way I know how to do this. I know you can use java, but then you're creating other files and to me it seems too much of a hassle. I just need something that can access the http page without opening an internet browser or anything else.
Summary:
I need a shortcut on my android device that accesses an http page without opening an internet browser or any other program. The http page has a standard username/password prompt, but can be easily worked around.
What's the easiest way of going about this? If a shell script is needed, what would be the command to open the webpage without opening a browser?
Things to know:
- Weblink only needs to be opened (no interaction required) for the specific device to be turned on
- Website is password protected using standard http protocol (but can be worked around if there is a problem)
- In perl, all I would need to do is issue the following command to get the devices to turn on or off:
perl -u username : password h-t-t-p-whatever.com/device_3_on
Sorry for the drawn out post, but I really wanted to explain my situation as best as I could. I'm sure there is probably an easier way that I'm missing here, so I need help from any and all people that would know about these things. Any [helpful] advice is welcome

Help With Eclipse Running an Android App (First Post)

Hi all I am a noob when it comes to this, I just started to make my phone app and I have it completed with html javascript and jquery. I have been having some trouble when running it in Eclipse. Well thats the problem Im not sure what to do to get it to work in Eclipse. It runs on the browser but i cant get it to work on my phone and not sure where to start and what files I should keep when starting a new project? Any Help would be greatly appreciated. Thanks
More on question
Ok i have it down to one error i keep getting when i run it. I am trying to connect to the html file and i get an error saying "Network error, "files:///android_asset/www/index.html" Im not sure how to fix this and have been looking everywhere. My code works perfectly in a browser but this error keeps popping up when testing it. Please help
i think you mean webkit view
Normally with eclipse, java applications are compiled with the provided android sdk.
With html / javascript you can bypass this (as I'm assuming you have done)..
when you are creating your android project in eclipse, in your main activity's layout xml file,
make sure you have the webkitview declared..
Code:
<WebView android:id="@+id/web_engine"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
This would inform eclipse that you are going to need a web display view,
now in your mainactivity.java.. find your webkitview
Code:
browser=(WebView)findViewById(R.id.web_engine);
to enable javascript stuff
Code:
browser.getSettings().setJavaScriptEnabled(true);
and to load the actual page,
Code:
webView.loadUrl("file:///android_asset/filename.html");
and also remember google is your friend : search for "android webkit loading local javascript assets" there are tons of queries in stackoverflow too..

[Q] ADB files will push to phone but will not open.

Hey Guys,
I am currently trying to modify Instagram.apk using adb transfer to my Android Galaxy S4 i505. The program is Apk_manager and I am on mac os x 10.8.5
My problem is that, after i upload the Instagram.apk, I receive the error
"Incompatible Device. Unfortanatley this device doesnt seem to meet minimum camera requirements. For more infomation please visit http: (space) //bit.ly/igdevices"
I have tried multiple Instagram.apk files of the latest version (5.05) and they say the same.
I have found that if I compile as non-system app and sign with batch file the app will run and work perfectly, however if I want to modify the app I am certain it needs to be compiled as system app.
I then say "yes" to transfer additional files and hit remove resources.arsc and hit enter. Then I press 9 to abd push and file into:
system/app/Instagram.apk
It installs but every time comes up with the error message mentioned above:
(Incompatible Device. Unfortanatley this device doesnt seem to meet minimum camera requirements. For more infomation please visit http: (space)//bit.ly/igdevices[/url])
I know that my device is supported by the app version.
Please help!!!!
Sorry bit of a noob.

[APP][MOD] Remove device/OS check

Hi i've been browsing the forum trying to find a solution but however i'm limited by my knowledge.
Basicly there is an Game/app made built by GameMaker but the target system was not meant to support AndroidTV. I'm trying to run this game on my nvidia shield.
I sideloaded the app and whenever i launch it i see the background of the game as if it was going to work and then the app crash and i get the following error message :
Incorrect android target. This executable targets android TV devices. This build is for android".
I've download Apk Studio / Apk tool and i tried to find out in the code where would that check happen and how i can allow AndroidTv devices to run this app. However i don't see much in the manifest file that would stop the app from running in AndroidTv.
Anyone out there with more knowledge can chime in and give some ideas ?
Here is a link to the app i'm trying to modify.
https://drive.google.com/open?id=1LrddBPcAK9Ufs9Eo8Jl5Z_zTTDvKzzHO
Thank you

Categories

Resources