HFS on Android - rejetto/hfs GitHub Wiki
First download and install Termux:
https://github.com/termux/termux-app/releases
Alright now in Termux install the required packages:
pkg update
pkg install busybox termux-services nodejs git python python3
Now lets get the dependencies:
npm install fs-extended-attributes
npm install fs-x-attributes
Install hfs:
stable:
npx install hfs@latest
beta:
npx install hfs@beta
Run hfs:
stable:
npx hfs@latest --port 8080
beta:
npx hfs@beta --port 8080
You need to run this:
cp ./.npm/_npx/YOUNEEDTOFINDTHISFOLDERNAMEYOURSELFSORRY/node_modules/fs-extended-attributes/build/Release/fs_extended_attributes.node ./.npm/_npx/SAMEPATHASBEFOREHERE/node_modules/fs-x-attributes/prebuilds/android-arm64.node
may also be called "node_modules" in your home folder instead of "./.npm/_npx/randomstring/node_modules"
to run it in the background:
pkg install tmux
tmux new -s hfs
now run hfs as normal
to exit do ctrl + b and quickly hit d
to re-enter going forward tmux a -t hfs
to stop hfs just type quit
you dont need to remove the session but if you want to anyway then tmux kill-session -t hfs
optionally to get ssh access to termux:
passwd
pkg install openssh
sshd -p 2222
ssh root@PHONELOCALIP -p 2222
This should be it the website should now be accessible in lan.
Keep in mind that android wont allow port numbers less than a 1000 without root access! (do su in termux)
If you have any issues contact me on discord: win_7 or post comment/issue on Github somewhere
it is really really tricky to get working and ARM64 is required
Contributors:
W-i-n-7