Coder Social home page Coder Social logo

rclone-mount-magisk's People

Contributors

geofferey avatar jasonsyoung avatar piyushgarg avatar power78 avatar yujincheng08 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rclone-mount-magisk's Issues

How were the rclone binaries compiled?

Hi,

Ive written a fork of rclone that implements a new remote (for real-debrid.com). Sadly, the rclone staff does not want to implement this remote as its relying on a lot of workarounds, so I need to compile the fork myself.
I would like for this fork to work on android aswell.
My plan is to simply replace the rclone binaries in your /common folder with binaries that im compiling myself. Ive noticed that the size of your binaries is a lot smaller than the ones ive compiled for android.

Here are the go settings ive used to compile for android (just the arm64 version, the others look similar to this):

CC=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android
CC_FOR_TARGET=$CC
GOOS=android
GOARCH=arm64
CGO_ENABLED=1

which go build configuration are you using?

Cant save rclone remote

getting this error when adding new remote :

Failed to save config after 10 tries: Failed to create temp file for new config: open /.rclone.conf268707756: read-only file system

/system/bin/rclone[130]: /dev/GEVKCv/.magisk/modules/rclone.mount/rclone-wrapper.sh: inaccessible or not found

rclone not found on WSA (Android 11 x64)

redfin:/ $ su
redfin:/ # rclone config
Using 'rclone' binary: /dev/wsa-magisk/.magisk/modules/rclone.mount/rclone
/system/bin/rclone[130]: /dev/wsa-magisk/.magisk/modules/rclone.mount/rclone: inaccessible or not found

This comes up when I run rclone config. And indeed it does not exist there:

redfin:/ # ls /dev/wsa-magisk/.magisk/modules/rclone.mount/
CHANGELOG.md  module.prop  service.sh  syncd.sh  system  uninstall.sh

when I search for rclone this comes up:

redfin:/ # find / -name "rclone" -type f
/dev/wsa-magisk/.magisk/modules/rclone.mount/system/bin/rclone
find: '/dev/wsa-magisk/.magisk/mirror/system_root': loop detected
/dev/wsa-magisk/.magisk/mirror/data/adb/modules/rclone.mount/system/bin/rclone
/system/bin/rclone
/data/adb/modules/rclone.mount/system/bin/rclone

and none of them work.

Am I doing something wrong?

.*.param file line break

.*.param requires LF for line breaks, and CRLF will go wrong. This problem has bothered me for too long.
In addition, the http service cannot be used. Is it a problem with rclone?

The downloaded file is corrupt

Hi, I use the software 1DM+ to browse video websites and download videos from video websites with the sniffing function of the software.My download location is the mount location of RClone, but most of the downloaded videos are damaged, and only some small video files can play normally(about 100m),some large video files cannot be played(about 500m)

When I changed the downloaded files to mobile storage, everything became normal

The software will combine many small files into a complete video file when downloading the video. I guess this is the reason why the video file is damaged

This is the address of the softwarehttps://play.google.com/store/apps/details?id=idm.internet.download.manager.plus

I hope the author reads it at his leisure

failed to mount FUSE

this module installed correctly and there isn`t nothing wrong with all config files , but when i look up log , it says

2022/10/30 19:01:40 Fatal error: failed to mount FUSE fs: fusermount: exec: "fusermount": executable file not found in $PATH
panic: runtime error: invalid memory address or nil pointer dereference

Android version is 10

Suggestion: Compatibility with adoptable storage

i have adoptaable storage and the remotes were not mounting in /sdcard/Cloud or /storage/emulated/Cloud
as it create folder and set permissions in DATA_MEDIA=/data/media which is device's real internal storage and lates tries to bind it on /mnt/runtime/emulated/0/ which is internal storage (Adopted sdcard) for rom.

however changing DATA_MEDIA=/data/media to DATA_MEDIA=/storage/emulated fix the problem and mount show up properly in sdcard.

if you could add a check for device to see if it has adopted storage or not than set the value of DATA_MEDIA accordingly, it will hopefully solve the problem.

Cannot create rclone config in device

It seems to have issues creating or recognizing the config.

y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
2021/12/01 17:03:23 ERROR : Failed to save config after 10 tries: Failed to create temp file for new config: open /.rclone.conf550278168: read-only file system
Current remotes:

Name                 Type
====                 ====
dav                  webdav

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q

130|redfin:/ # rclone config
Using 'rclone' binary: /dev/wsa-magisk/.magisk/modules/rclone.mount/rclone
2021/12/01 17:06:49 NOTICE: Config file "/.rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q>

Since it didn't want to create it itself, I created a config file on my PC now and copied it to /sdcard/.rclone/rclone.conf like it says in README.md but it doesn't recognize it either:

redfin:/storage/emulated/0/.rclone # ls /sdcard/.rclone/
rclone.conf  rclone.log
redfin:/storage/emulated/0/.rclone # cat /sdcard/.rclone/r
rclone.conf  rclone.log
redfin:/storage/emulated/0/.rclone # cat /sdcard/.rclone/rclone.log
2021/12/01 17:11:42 NOTICE: webdav root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
redfin:/storage/emulated/0/.rclone # cat /sdcard/.rclone/rclone.conf
[dav]
type = webdav
url = https://website.com/dav/
vendor = other
user = AAAAAA
pass = AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
redfin:/storage/emulated/0/.rclone # rclone config
Using 'rclone' binary: /dev/wsa-magisk/.magisk/modules/rclone.mount/rclone
2021/12/01 17:12:40 NOTICE: Config file "/.rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q>

Unexplained bandwidth usage ?

Screenshot_20220829-172157_Pixel Launcher
This is network usage as seen after accessing one of my remotes in MiXplore and closing it
Something is using all my bandwidth and still using it even after closing MiXplore
This behavior wasn't seen until I flashed your rclone module with rclone file in place
It did connect remotes successfully but I face this problem where everytime I close file explorer something is using all my bandwidth

sdcard mount weird cache behaviour

Hope someone sees this. This is my param file:

CACHEMODE=off
BINDSD=1
DIRCACHETIME=0

Basically I'm mounting a FTP remote to "/sdcard/cloud/" with no cache whatsoever in order to always read and write directly to the remote. At least that's what I want. And for the most part that's what I get. If I delete or move a file on the FTP server using my PC, the Android device picks up the change instantly. But there is a problem. If I replace a file with another having the same name, say I overwrite a video file with one bearing the same name (again this being done with my PC), then the Android device will somehow keep the old version and play that instead of the new one. What is mind boggling is that this only happens if I access the remote from "/sdcard/cloud/". If I go to "/mnt/cloud/" everything works perfectly.

I've toyed around with the other parameters as well to no avail. Anyone knows if I'm missing something or is this a bug?

Please help. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.