execute shell commands by app

461 views
Skip to first unread message

perry

unread,
May 1, 2019, 4:15:51 PM5/1/19
to comp.mobile.nokia.8110
Hello,

#rootedPhones

I write an app to execute shell commands for example to
 reboot your phone
 or pull or push photos on a ftp-server with curl
or what you want but be careful with the commands

before you use the command make test with adb-shell
--dry-run is your friend

- install the app
- create the file cmd.json on your sd-card with the content:

for example to reboot your phone

[
{"cmd_name":"reboot","cmd":"reboot"},
]


cmd_name is the title for the command
cmd is the command



@speeduploop thank your helping!!



shell_command.zip


Sylvain D

unread,
May 1, 2019, 5:11:06 PM5/1/19
to comp.mobile.nokia.8110
Awesome! This should be available right now in B-Hackers store! 
Just a minor issue with icons 112

The last command entry of the cmd.json file should't be followed by a ','  
 
Can we get a manual implement pushing 'O' key? I start to get used to it!

Thank you Perry, great job! 

perry

unread,
May 1, 2019, 5:54:54 PM5/1/19
to comp.mobile.nokia.8110
thank you for reporting.

I add the -man
fixed the 112x112 icon 

which terminal commands can be helpfull ?

perry

unread,
May 1, 2019, 6:34:23 PM5/1/19
to comp.mobile.nokia.8110
funny stuff can be to download the wheater forecast: https://github.com/chubin/wttr.in

Sylvain D

unread,
May 4, 2019, 6:45:58 AM5/4/19
to comp.mobile.nokia.8110
Is there a way to toggle tether settings via adb command?
like usb-tether on/off
wifi tether on/off

perry

unread,
May 4, 2019, 7:45:44 AM5/4/19
to comp.mobile.nokia.8110

Sylvain D

unread,
May 4, 2019, 8:31:58 AM5/4/19
to comp.mobile.nokia.8110
yes, could also be a shortcut app for the launcher, do you think it's better?
Sorry, I don"t know how to write the 'tethering toggle' app!

perry

unread,
May 4, 2019, 9:56:10 AM5/4/19
to comp.mobile.nokia.8110
#modSettingShortcut

Please try to add:

launcher.app -> app.bunddle.js 
line 4309

{
                        name: "tethering",
                        icon: "wifi-32px",
                        iconInactived: "wifi-off-32px",
                        title: "tethering",
                        observerSetting: "tethering.enabled",
                        removed: !0,
                        order: {
                            portrait: 0,
                            landscape: 0
                        },
                        cskType: "toggle"
                    },

after the wifi section

maybe it works

Sylvain D

unread,
May 4, 2019, 2:55:19 PM5/4/19
to comp.mobile.nokia.8110
#modSettingShortcut (should be discussed in this thread!)

it works with observerSetting: "tethering.wifi.enabled", and "tethering.usb.enabled".
Thank you!

7ravens

unread,
Dec 26, 2019, 1:35:03 PM12/26/19
to comp.mobile.nokia.8110

works amazing! I use curl to retrive weather forecast and store the .PNG on the sdcard

Best Regards team!
nano.png
IMG_20191226_202430.jpg
IMG_20191226_202414.jpg
IMG_20191226_202329.jpg
IMG_20191226_202255.jpg
IMG_20191226_202227.jpg
IMG_20191226_202204.jpg
IMG_20191226_202119.jpg

perry

unread,
Dec 26, 2019, 2:17:37 PM12/26/19
to comp.mobile.nokia.8110
oh someone already uses this app :-) if you are interested in a weather app you can try my custom launcher.

7ravens

unread,
Jan 14, 2020, 5:06:03 PM1/14/20
to comp.mobile.nokia.8110
hi

I got it thanks perry, after try I post something.
best regards
Reply all
Reply to author
Forward
0 new messages