zemotacqy / commander Goto Github PK
View Code? Open in Web Editor NEWAccess your local system's Terminal through your android device in Real time.
Access your local system's Terminal through your android device in Real time.
With Android >= 9, there is an issue.
Let us call the supporting command argument like sudo password as Text.
Now, this text is sent on Main thread - Java, with higher SDK's problem is that it doesn't allow you to do, network-intensive tasks on the main thread.
So an alternative solution is that run it in the background, however, JSch API does not allow one to do that in a clean way.
There error msg on Android Studio Logs:
W/System.err: java.io.IOException: android.os.NetworkOnMainThreadException W/System.err: at com.jcraft.jsch.Channel$1.flush(Channel.java:301) at com.example.myapplication.MainActivity$1$1.onClick(MainActivity.java:95) at android.view.View.performClick(View.java:6597) at android.view.View.performClickInternal(View.java:6574) at android.view.View.access$3100(View.java:778) at android.view.View$PerformClick.run(View.java:25889) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6746) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) I/System.out: EXIT-STATUS : -1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.