Requirments:-
1: Termux app (from playstore)
2: 500mb storage (recommended 800MB
3: Insternet connection (Good).
4: Android 5.0 +

If you have these things in your phone.
Then m4 hack has a solution for this.

Run the following commands:-
1:- apt update
2:- apt upgrade
3:- pkg install unstable-repo
4:- pkg install metasploit

These commands will definately work if not then comment i will tell you the solution.
Subscribe :: m4 hack

source