Hi I need to run things in the form of adb shell <command>
When I test everything out inside adb shell, it works because I was able to set some aliases in .bashrc
.
However, when I do adb shell <command>
, nothing works because .bashrc
is not used when you run adb shell <command>
, because it's in the non-interactive mode.
How can I work around this? Can I adb push
some files to the filesystem so that the alias will be there when adb shell
is run?
If your android device is rooted you can add your aliases for adb shell
into the /system/etc/mkshrc
file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With