Using LINUX commands in App Inventor. Extension

Yes curl is not there and also some other commands that I'm missing. So what to do?
Does it depend on my adb.exe (I have no clue of that)?

No it is just about the device and what was installed as default by the phone provider.
Worth having a look in some of your other devices?
Need to be rooted to be able to install other packages to the busybox

1 Like

Really useful extension, @Juan_Antonio!

Can we get ping result like this?

KIO4_Terminal.Run
commandLine ping -c 1 google.com

or

ping -c 1 https://www.google.com

1 Like

I meant to say that currently we get result after executing all the command.
Can we get result asynchronously? Like in shell or cmd.

not possible with this extension, this is a workaround:
pingg

1 Like

I am finding on my Android 10 & 11 devices that there is nothing reported back with

ls /system/bin

System command files are there though. If you type:

which ls

you should get back

/system/bin/ls

Thanks Google :wink:

1 Like

Hello i Tried it but nothing happend...must i be rooted to use it ?

yes, as already mentioned

Taifun

Hi,
Is there an option to call this two commands in app inventor when button is clicked?

1) adb shell settings put global private_dns_mode off
2) adb shell settings put global private_dns_specifier some.dns

With this extension you cannot call ADB when you press a button in the application.

It is possible but not easy to set up ADB like that. Instead, I suggest you set up Termux-ADB and use an ActivityStarter to run the command in Termux. You may need to root your device or unlock it's bootloader.

@easrng

Do you have any details on how to access termux using Activity Starter ?

Actually I was wrong, I don't think it will work with ActivityStarter, but it should be fairly simple to make an extension to run things in termux. See this comment for info on how to do it.

Yes, that is where I have been looking. Most things make sense for Activity Starter, but not sure about this one:

  • Third-party program must declare com.termux.permission.RUN_COMMAND permission and it should be granted by user.

Screen1.requestPermission maybe?

How can I install curl 7.58.0 on my phone? Thanks.

You will probably need a rooted device.

Alternatively, if you have the patience, you could use Termux.....

I love the Ping Command,
I wanted to check the ping between 2 servers to know what one was faster.

Hello everyone!!! :wave: :wave: :wave:

  • I wanted to know (roughly) what is possible and what is not possible through this extension and commands.

  • I saw that many have problems with the issue of asynchronicity of functions and calls, but that can be fixed using the extension Async Procedures and Background Tasks also with View Pager and Dynamic Components

  • Added to the Web Component to make calls to APIs such as FireBase and Supabase; you will have tons of options that can only be limited by your knowledge and imagination.

    • Descarga de archivos JS, XML, HTML, <Scripts>, even an entire code or procedures.
  • For this reason, I need to know what the scope of this extension is and if it depends on whether the phone is rooted or connected by USB, Bluetooth, Wi-Fi, etc.

  • Because if it's "up to your imagination"... this is going to get crazy!!!.

I'm working on an App where security is crucial, to the point that the USB issue is driving me crazy.

With some friends we were doing some security analysis (penetration, injection, sniffing, memory scan, etc.)

And for reading the forum in search of ideas, techniques, etc. I came across this post, which automatically caught my attention.

Well, as Tony Stark said:

if-we-cant-protect-the-earth-we-will-avenge-it

  • And:

is-it-better-to-be-feared-or-respected

So I would like to know (based on your experience and knowledge), how much can be done with this extension.