mirror of
https://github.com/WSA-Installer/wsa-webdav.git
synced 2026-07-29 11:24:16 -07:00
1.5 KiB
1.5 KiB
Root Access
WSA WebDev supports root filesystem access via Magisk.
Requirements
- WSA installed
- Magisk installed and configured in WSA
- Root access granted to WSA WebDev
Setup
1. Install Magisk in WSA
Follow the WSA Installer's Play Store installation process, which includes Magisk.
2. Grant Root Access
- Open Magisk app in WSA
- Go to Superuser tab
- Grant root access to WSA WebDev
3. Enable Root Mode
Start the server in root mode:
adb shell su -c "sh /data/data/com.wsa.webdav/files/app.sh start"
Root Filesystem Structure
When root access is enabled, the following paths are available:
http://127.0.0.1:8088/
files/ # User storage (/storage/emulated/0)
root/ # Root filesystem (/)
data/ # App data
system/ # System files
vendor/ # Vendor files
Security Considerations
- Root access provides full filesystem control
- Be careful when modifying system files
- The server runs as root — any vulnerability could compromise the system
- Consider disabling root access if not needed
Troubleshooting
Permission denied
- Ensure Magisk is installed
- Check Magisk Superuser tab for permissions
- Try:
adb shell su -c whoami— should return "root"
Root commands fail
- Check Magisk version (30.6+ recommended)
- Reinstall Magisk in WSA
- Check SELinux mode:
adb shell su -c getenforce
Cannot access /data/data
This is expected — app data directories have restricted permissions. Use the WebDAV server to access files instead.