Skip to content
Win_7 edited this page Jan 24, 2024 · 12 revisions

HFS on Android

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

You need to run this: arm64: cp ./.npm/_npx/1d161b7f838b78f9/node_modules/fs-extended-attributes/build/Release/fs_extended_attributes.node ./.npm/_npx/1d161b7f838b78f9/node_modules/fs-x-attributes/prebuilds/android-arm64.node

arm: cp ./.npm/_npx/1d161b7f838b78f9/node_modules/fs-extended-attributes/build/Release/fs_extended_attributes.node ./.npm/_npx/1d161b7f838b78f9/node_modules/fs-x-attributes/prebuilds/android-arm.node

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

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

Contributors: W-i-n-7

Clone this wiki locally