Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Available Linux commands across Android versions

Tags:

android

shell

I want to write some basic Linux commands in my Android app (namely ls, rm, cp, chmod with recursive -R option) but I am not sure whether they are available across different versions of the OS and whether they support "-R" or not. From my experience, cp seems to be added to Jelly Bean 4.2. The rest are all available in earlier versions.

May I ask if there is a source or reference for this? (Nothing seems to be available on the official Android site.)

like image 620
An Hoa Avatar asked Jan 31 '26 09:01

An Hoa


1 Answers

You can always fire up a avd and in adb shell run ls /system/bin and ls /system/xbin, it will show all the commands present.

like image 77
nandeesh Avatar answered Feb 02 '26 23:02

nandeesh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!