I have built a CM's vold exec and push it to my phone.
The logcat shows that vold has no permission to mount by the selinux so I set the selinux to permissive.
Then it can mount. But All my apps cannot write any thing to the sdcard by the permission denied
Related
the file system on internal SDcard is fuse
when i mount it as rw i can read and write to the SDcard
but i cannot change the permission at all
maybe there is a way to change the permission without change the filesystem
but i now the ext4 so i prefer to change to ext4
the question i how i can do that without lose data
thanks
Hi guys,
I tried since the v0.1 to v0.8 of CM 11 by kashifmin to install driver of VIPER4ANDROID and everytimes this apps said me "driver installed, please reboot" (or something like that). After rebooting my phone the driver was not installed even after some try.
Then i try to change my build.prop to add this line (found this tip in the official page of V4A)
lpa.decode=false
tunnel.decode=false
lpa.use-stagefright=false
But I couldn't with Root Browser, Total commander etc. Then i found on google that i had to mount /system in RW, here also, with all application possible I could not. I tried with Mount /system (rw / ro) and terminal command ( mount -o rw,remount /system ) and some other.
The only possible way for me is to create a file to flash the driver with the recovery but I don't know how to make it.
Is it a bug of cyanogen mod 11?
Sorry for my bad English
Ideas?
I have liliopop CM12 installed on my Note3, I have a encrypted partition, which I mount using luks, I have the mount working now with out issues so the encrypted part can be ignored, if any one is interested I can explain how I did what I did and post the actual scripts used.
The problem is that if I su - from juicessh and then mount the partition the partition is mounted, but only the juice su'ed user can see it. I can log this user out and back in and still see it, but only this users sees it.
For instance
$whoami
10211
#su -
0
#exit
$whoami
10211
now if I run:
$su -l --shell /system/bin/sh -c 'mkdir /storage/sdcard2 ; chmod 777 /storage/sdcard2 ; mount -t ext4 /dev/sda1 /storage/sdcard2 ; df ; exit' ; df
Now this will show that /storage/sdcard2 is mounted when I'm root
when I'm non-root (AKA not ID 0) then I do not see the mount.
Now I login as root using sshdroid:
#whoami
root
#df
does not show sdcard2
Lastly via "Root explorer":
does not see anything mount in /storage/sdcard2 either.
So the issue I'm facing is that I can mount a partition as root and access it, but only as the user I mounted it as, in fact what even makes less sense is that root via sshdroid and root via juicessh can not see what the other user did (mount wise), though if I create a root accessible file that is fine. I used to do this is CM11 using the same commands (different mount points do to the OS change) without any issue. It is as if each root user is unique which is fine on the surface, but since I need access to this encrypted partition, only when accessing documents for work, which normally it is not mounted, but once mounted I need it to be accessible as any other sdcard. Any suggestions?
Thanks,
ERIC
Partly working
I got it partly working if I disable "Mount namespace separation", however I still have an issue that /storage/emulated/0 does not exist, until I use a program like Root Explorer, I mean it exists, but the shell script can not change to it (mount point not found exception), I'm assuming this is also something to do with Lilipop, but I'm not sure what or how to resolve it.
ERIC
Hi,
I state that they are not very knowledgeable about linux commands.
I have installed on my SM-G900F ROM cm12 and it works!
I created a second user, but it does not have root privileges.
I would like, however, to know how you can create a secono user with root privileges?
Thanks for the reply
Hi there!
Situation:
- A device on Android 4.1.1 *without Kernelsources*
- ro.secure set already to 0,
- superuser.apk and su in the correct places with correct permissions (tried version 2.4, 2.45 and also 0.96 for fun)
- Rootchecker tells "rooted", Titanium too
- id returns root(0):root(0)
- mount -o rw,remount /system returns permitted
After a lot of reading I think thats the new kernel which prevents /system mounted rw (before the last update it worked perfectly as it should).
Is it correct in your eyes that my options are:
- downgrade
- decompile the kernel somehow and patch the /system mounting
- ? your idea here ?
What else could make /system beeing protected?
Reasons:
0.) You know, apps like messing up internal storage.
1.) I have installed dozens of ROMs flashed with DualBoot Patcher(It's a great tool), and all of them share the same /sdcard path( /data/media/0, actually it's /raw/data/media/0 ), it's a terriable mess.
2.) Android Nougat does NOT have xposed yet, so I cannot use xposed module XInternalSD to do this.
Due to /sdcard being linked to /storage/emulated/0, I should mount -o bing $another_path to /storage/emulated/0.
What I want to do is:
remount $data_partition_mount_point/media/$my_path to /storage/emulated/0 when the phone is booting, so my system can use another path for internal storage
I want to unmount the default /storage/emulated and only to mount /storage/emulated/0 to keep /storage/emulated clean.
CAN I ?
But after too many times failed, I failed again. I CANNOT mount $my_path as Internal Storage again. It ends up with "Access Denied",or "cross-device link", or seperated permissions(not as a sdcard)
Also, I tried to modify install-recovery.sh to let my scripts execute when booting, but sepolicy denied my orders (like mkdir, mount, setenforce ). So, I run my scripts via APP "Boot Shell".
Is there anyone who know how to do this? Or, can a script change the default Internal Storage path?