Questions tagged [toybox]

Toybox is a Free and open source software implementation of some Unix command line utilities for embedded devices.

Toybox is a free and open source software implementation of some Unix command line utilities for embedded devices. It has become a viable BSD-licensed BusyBox alternative.

8 questions
8
votes
0 answers

IOException: error=13, permission denied

I am trying to run some LINUX like commands from an android application, I want my application to run some custom commands like pkg, dpkg etc. basically I need my application to act as a terminal app, for this, I created a Linux file structure with…
Shahbaz Ali
  • 1,262
  • 1
  • 12
  • 13
7
votes
4 answers

how to use find command in adb shell

I want to check if there is a certain file inside a directory in my android device. I use the following line in my windows batch adb shell find /mnt/sdcard/koinoxrista -name Bill.txt I want to do something if the file exists and something else if…
kosbou
  • 3,919
  • 8
  • 31
  • 36
3
votes
1 answer

How is /dev/block/bootdevice/by-name created?

I'm switching from busybox to toybox in a customized Yocto. After the switch I no longer have /dev/block/ populated. I'd like to learn how /dev/block/bootdevice/by-name is populated? Is this done by mdev? The toybox mdev command is still in…
3
votes
3 answers

ADB copy the newest file

I am using the following command to copy the most recently added file from a connected device into the directory that I want: adb pull sdcard/Robotium-Screenshots/filename.jpg D:\jenkins\jobs\ But it can copy only the file that I specify. How can…
vTad
  • 309
  • 2
  • 13
1
vote
0 answers

od output format on Android phone

I'm trying to inspect a binary on my Android handset. The handset is rooted and I'm talking to it through adb. The first few bytes of the file in question show as 37777776620 042577 043114 000401 000001 000000 000000 000000 …
Anbaric
  • 11
  • 4
1
vote
2 answers

Using "printf" for hex values in android shell

I am porting my shell script (quite big shell script) from bash to android shell (mksh shell). In Android, printf does not seem to be working the same way as it works in other Linux systems. Sample code : $ cat sample.sh ... func1() { A=100 …
Sandeep
  • 18,356
  • 16
  • 68
  • 108
0
votes
0 answers

How to speed up communication between android and a Garmin Watch App?

I developed an AndroidApp (using ConnectIQ) that sends messages to a WatchApp I also developped (on a fenix 6x pro, with Monkey C). The WatchApp makes my watch rings when a message is received. The AndroidApp uses…
mike
  • 55
  • 6
0
votes
1 answer

find: combining multiple "-exec" statements not working with toybox / Android?

I am trying to figure this out on an Android phone running Oreo / 8.0, with toybox 0.7.3-android. I am trying to get a list of files inside a folder and their respective mtime. I am running this command: find . -type f -exec stat -c %n {} \; -exec…
TJJ
  • 155
  • 10