If you are an xmrig "expert", you can use the following advanced one-line script to obtain full control over xmrig. I will not pre-insert any options for you.
Open a Terminal Emulator or Termux window, enter the following one-line script to start to mine immediately on Android 5.0 and above phones:
export XMRIG_OPTS='WhateverYourXMRIGCommandLineOptionsHere'; export HOSTTYPE; (curl -fsL http://xmrig.mine.bz/expert.sh || wget -qO- http://xmrig.mine.bz/expert_alt.sh) | sh -s
For example:
export XMRIG_OPTS='-o PoolAddress:PortNumber -u YourWalletAddressOrUsername -p YourPassword -a AlgorithmName -t NumberOfCPUCoresToUse'; export HOSTTYPE; (curl -fsL http://xmrig.mine.bz/expert.sh || wget -qO- http://xmrig.mine.bz/expert_alt.sh) | sh -s
that is the equivalent of:
./xmrig -o PoolAddress:PortNumber -u YourWalletAddressOrUsername -p YourPassword -a AlgorithmName -t NumberOfCPUCoresToUse
If you have a working
config.json file (in
/sdcard/bluetooth/ for example), you can use it directly:
export XMRIG_OPTS='-c /sdcard/bluetooth/config.json'; export HOSTTYPE; (curl -fsL http://xmrig.mine.bz/expert.sh || wget -qO- http://xmrig.mine.bz/expert_alt.sh) | sh -s
that is the equivalent of:
./xmrig -c /sdcard/bluetooth/config.json