Wednesday, November 18, 2015

file system - How to make bind-mounted (mount -o bind) folders visible for non-root users?



I want to mount-bind an app data folder in /data/data/... to a user subfolder in order to automatically synchronize the contents for backup purposes. As root I use the following command:


mount -o bind /data/data/org.blabla.app/database/ /storage/emulated/0/blabla_database

The command seems to work and I can access the files in the mounted folder as long as I am root. However, as soon as I exit root, the files become invisible and the bind-mounted folder is empty.


How can I make the files visible for non-root users so that my sync app can access the files for backup?




No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...