SSH-Server Library for Android [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
for a project I need a possibility to log in into a bash on an android device over the internet.
At first I thought about ADB over TCPIP, but from what I read it doesn't seem like a secure solution.
The first alternative that came to my mind was SSH. I know that there are many Apps out there which can host a SSH-Server, but I need a solution in an own app, because I would need more control over that server.
So the go-to solution would be an own SSH-Server via a library.
As far as I understand, libraries like JSch are just for connecting to other servers, but not for hosting them.
Is there any open-source library, that can host a SSH-Server and supports Password-Auth? (Some Apps son't support that)
Or is there another alternative path to the solution of that problem?
Thanks for the help.

Given the updates by the OP, the answer is: you are going down the wrong rabbit hole.
A simple app can't just open a ssh server, and allow you to take full control from remote.
You rather have to design a real MDM solution, for example relying on the Samsung Knox technology. But of course, knox only exists for Samsung devices.
A truly robust solution to control arbitrary Android devices is a very advanced undertaking.
A starting point with more information:
https://www.zdnet.com/article/mdm-for-android-devices-what-your-business-needs-to-know/
Given the specific requirements of the OP, the answer might be to install a "regular" ssh server, such as dropbear. When all the devices are rooted anyway, why not simply add a ssh server by itself, relying on a unified password for example. See here for a list of products:
https://android.stackexchange.com/questions/9905/is-there-some-ssh-server-for-android

Related

GCP: can one VM be on different networks with the same address? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Question related to GCP (Google Cloud Platform):
can one VM be in different networks with one address?
I work with cloud providers (AWS, GCP, Azure) and use libraries for java (aws.sdk, azure.sdk, google.sdk).
In short: virtual machines are created in my application. Also, additional software is installed on these virtual machines.
This software runs on the same network.
I want to realize that this software can work in different networks.
For example, a security group (rules) is created for Azure.
Azure, like AWS, does not allow you to connect network interfaces from different VPCs to the same virtual machine instance.
To implement this approach, I had to create an additional security group using the azure.sdk library and the NetworkSecurityGroupInner class.
Nowhere can I find something similar for java for GCP.
Can you share some examples or interesting links or articles? I'll be very grateful.
Thanks.
Can one VM be in different networks with one address? the answer is yes. BUT you have to set two way network peering as this diagram:
Learn more about network peering:
https://cloud.google.com/vpc/docs/vpc-peering
for quick tutorial to get this see this good hands-on lab
https://www.qwiklabs.com/focuses/964?catalog_rank=%7B%22rank%22%3A6%2C%22num_filters%22%3A0%2C%22has_search%22%3Atrue%7D&parent=catalog&search_id=3929793

Best tool to use to "convert" Android apk into runnable web app(let)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I recently wrote a very simple apk app for a client - that runs nicely on their Android devices. They have since asked for it to be a runnable in web browser app (preferably phone and desktop). What would the best idea for this be?
As it's already in Java- perhaps a web applet? Are there any considerations here?
Or is there anything else that I can use? I've also heard to stay away from emulating the app within a web browser as it can be slow...
Sorry for asking a "unorthodox" question, but I know that SO people normally have a few suggestions that can put me on the right path...
What would the best idea for this be?
Tell the client to go pound sand.
Or, rewrite the entire app in a hybrid app framework, such as Apache Cordova/PhoneGap, so your mobile and Web implementations are similar.
Or, rework your Android app to be a (small) pure-Java JAR of business logic, wrapped in an Android app. Then, implement a server-side Java Web app (e.g., WAR) that leverages that same JAR.
perhaps a web applet?
Not all browsers support those, including roughly 0% of mobile browsers.

Creating a server side for android application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm currently making an android application that will be used by a certain number of clients. Each client will have an account and will access information from the server. This information is stored in a DB.
My question is what is the best way to create a server side that will, later on, be compatible with other platforms (iOS, Windows, etc.)?
Can I use sockets on different platforms? Or should I create a Web Service?
I found a certain tutorial that I think is explaining a similar thing, but I think it demands a certain amount of knowledge, and I'm totally new to this, and haven't learned this at faculty (I'm good with sockets but I never had much confidence in them, and the idea of sending HTTP requests to the server looks much better).
Can someone divert me to a tutorial or lectures of how this is supposed to be done?
Connection between Android and a server would most easily be done with http requests.
There are several libraries available who make this easy like Retrofit.
For server-side applications you can take a look at Jersey in combination with a tomcat server.
There are of course many applications who can do these... so it comes down to a matter of preference.
There are many web development frameworks that works on many platforms such as spring, vertx, play and many others to name. You can you create rest like api for this purpose. Give all the low level works to the framework. You should not worry about low level details as most off them are handled by frameworks today.

Open Source web based Screen Sharing [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 months ago.
Improve this question
Is there any open source screen sharing (or desktop sharing) software that I can use to integrate into my web site? Any flash/java based solutions?
Flash does not have public / documented APIs to make this work. Adobe Connect even needs an additional plugin for screen sharing.
I believe Adobe has been working on APIs to help make screen sharing a reality. I believe such features were rolled into LiveCycle Collaboration Service; however I thought that was only available as a hosted service. [And I don't see the screen sharing feature documented on that page]. Here is more info from when the feature was announced; it also confirms that this is part of LCCS.
Beyond that, you can look at some tools like these, which allow you to broadcast your web cam feed. And then tie them into something like Flash Media Server or Red5 to stream that out to someone else.
BigBlueButton is an open Java based web conferencing software.
It's not open source, but I have had many very favorable reviews on XSplit.
As for integrating a flash/java app on your site, I would actually recommend just streaming your screen to a site such as Justin.tv. Here's a good guide on how to set up XSplit and start streaming to justin.tv. (I am into the video game starcraft and the streaming scene behind it)
From there, you just have to embed it on your site. No server-side stuff needed!
Hope this helped, and good luck!

SMS message filter application in Java for Nokia Symbian S60 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Want to write a small message filtering application (filter incoming SMSes based on their content to a specific folder) for Nokia E51. Java seems to be the easier route.
Is it possible via Java API for Symbian series 60 phone?
If yes, what exact SDK and tools do I need?
PS: app will be for personal use.
This is not possible using Java-ME; you can't access the SMS inbox in this way.
However as your target is S60 you have the option of using native Symbian APIs, or Qt (really not too hard). Check out this link for a description of manipulating SMS with Qt.
If you want to read the inbox SMS, unfortunately it's not possible with j2me. But you can possible to read the incoming SMS. Run your application and wait for incoming SMS. Then only it's possible. If your application is not running then it means you can't read the incoming SMS.
For more info see this discussion.
Refer this Nokia forum discussion.
And see this topic also.
Basically, you have two path to choose.
Use some third party library for SMS processing (sending/receiving)
Write your own library, which will communicate with device using I/O (most GSM modems can communicate with PC via serial port of some sort - physical or virtual)
For obvious reasons, I recommend choosing the first part. If you look for recommendation, I can strongly recommend using SMSlib. I've been using it in one of my projects with great success, although some skills were needed to make it all work. After tedious process of installation was over, the rest (sending, receiving, creating callback services) was extremely simple and easy.
If you would like to try the second possible choice, than have a look at Nokia developers forum and Java Communications API.

Categories