Skip to main content
1 of 2
Firelord
  • 25.3k
  • 21
  • 126
  • 292

If you are using Android Lollipop or above, install Termux, install grep (if not already installed) by typing apt install grep, give Storage permission to Termux from Settings app so that Internal Storage can be accessed. And that's it. Enjoy your grep. You can also install busybox the same way in Termux and use its utilities. Installation and usage doesn't require elevated privileges.

If you are using Android version before Lollipop, Robert's answer is the way to go if you must need busybox. I just want to add that instead of doing chmod later (which you cannot because Android didn't have chmod back than with toolbox), you set the permission correctly on the binary before pushing it in /data/local/tmp/.

While I have not tried them, some grep based apps are available in Play Store and can be found here.

Firelord
  • 25.3k
  • 21
  • 126
  • 292