Change the permissions read/write - General Questions and Answers

1. I'm using an app.
2. My device has been rooted, i'm using root explorer
3. I want to change the permissions (revoke "write" access) of file A in root/data/user/0/com.app name/cache
4. Open the app.
5. File A is still being modified.
6. I revoked write permissions of the parent folder.
7. Open the app.
8. File A is still being modified.
What should I do? I cannot delete that file, or the app will crash. I only want the app to read file A, without being able to modify it.

To change file permissions use Androids shell command CHMOD.

xXx yYy said:
To change file permissions use Androids shell command CHMOD.
Click to expand...
Click to collapse
I'm using the root explorer app. If I use chmod to revoke a file's permission, will it be granted again when I open the app?

NO

xXx yYy said:
NO
Click to expand...
Click to collapse
I have tried it, only read permission, but the file still gets modified when I open the app.

Related

how to push a file using terminal emulator

Ive temporarily rooted my device to push a file to system/app and ive followed the instruction from the widgetpicker app from xda and it keeps telling me 'permisson denied' from typing "c:\android-windows\tools> adb remount
can someone please help me get this file into the system app folder
Symondo said:
Ive temporarily rooted my device to push a file to system/app and ive followed the instruction from the widgetpicker app from xda and it keeps telling me 'permisson denied' from typing "c:\android-windows\tools> adb remount
can someone please help me get this file into the system app folder
Click to expand...
Click to collapse
1.Put the app in the root of your internal sd.
2.Open root explorer and scroll to sdcard and click to open.
3.Scroll to the app and long press,which gives you the options and click copy or move.
4.Click your back button,which will take you back to "Mounted as r/w.
5.Scroll to and click on system and click app and then paste.
6.Press and hold the installed app and change permission to rw-r-r
Hit home and your done.
i dont have root explorer at the moment and would like to try n do this without paying for an additonal app just now.
i dont understand how its so difficult to move a file into a folder
cd /sdcard/somewhere
su
cp file.apk /system/app
exit
Sent from a piece of ginger bread
K900 said:
cd /sdcard/somewhere
su
cp file.apk /system/app
exit
Sent from a piece of ginger bread
Click to expand...
Click to collapse
tried this it states "sd card not found" in terminal emulator.
Ive got it granted super user access and a temporary root. do i need to do with without the temp root?
The other code ive tried which i cant get to work is:
c:\android-sdk-windows\tools>adb remount
c:\android-sdk-windows\tools>adb push AppWidgetPicker.apk /system/app

Ota sideload error (debuggerd has unexpected contents)

hello,
i want to update my nexus 5 from 4.4.1 to 4.4.2, but i get this error "system/bin/debuggerd has unexpected contents"
can somebody give me a original depuggerd file from KOT49E
and a short explanation how i replace it
is this because of stick mount?
heartbeat.rulez said:
hello,
i want to update my nexus 5 from 4.4.1 to 4.4.2, but i get this error "system/bin/debuggerd has unexpected contents"
can somebody give me a original depuggerd file from KOT49E
and a short explanation how i replace it
is this because of stick mount?
Click to expand...
Click to collapse
I had the same issue, i used this >> https://app.box.com/s/z0a12rt18gm3dtfqqndl
I got it from stock odexed 4.4.2 rom here on xda and please check the sha1sum of the file, it should be 1A008709F0945E8EACA2166D143622EB8D94C3D0
Otherwise the updater script wont install the update, also use es file explorer or any root explorer to replace the file and set permissions to chmod 755 and shell access, more info here - http://forum.xda-developers.com/showthread.php?p=48333174#post48333174
imrock said:
I had the same issue, i used this >> https://app.box.com/s/z0a12rt18gm3dtfqqndl
I got it from stock odexed 4.4.2 rom here on xda and please check the sha1sum of the file, it should be 1A008709F0945E8EACA2166D143622EB8D94C3D0
Otherwise the updater script wont install the update, also use es file explorer or any root explorer to replace the file and set permissions to chmod 755 and shell access, more info here - http://forum.xda-developers.com/showthread.php?p=48333174#post48333174
Click to expand...
Click to collapse
i can not replace the file
efs explorer permission denied
i will push the file with wugs tool kit
im to stupid for adp
and root explorer doesn´t work
heartbeat.rulez said:
i can not replace the file
efs explorer permission denied
i will push the file with wugs tool kit
im to stupid for adp
and root explorer doesn´t work
Click to expand...
Click to collapse
Just use es file Explorer, cut the file in ur system/bin/debuggerd and take its backup on sdcard, then paste the given file, change the permissions to the one's like given in the second post here - http://forum.xda-developers.com/showthread.php?p=48353992#post48353992
You should be having root access in es file Explorer with partition mounted as r/w
imrock said:
Just use es file Explorer, cut the file in ur system/bin/debuggerd and take its backup on sdcard, then paste the given file, change the permissions to the one's like given in the second post here - http://forum.xda-developers.com/showthread.php?p=48353992#post48353992
You should be having root access in es file Explorer with partition mounted as r/w
Click to expand...
Click to collapse
this was the fault i had to delet the efs in supersu and to reactivate the root for efs.
after this i get showed up the second image, before only the switch was moved from right to left and back

Why does Adaway not work with su folder in bin folder?

So I setup my phone and had Adaway working fine. Then, in order to get Secure Settings to work with a systemless root, I had to add a folder called su in my system/bin directory. When I do that, Adaway immediately stops working and says it does not detect root, basically. See attached screenshot. Why does this happen by adding that empty folder? Has anyone found a way to get Adaway and Secure Settings to coexist on their Pixel?
You don't want to add a folder called su but rather a blank file called su. Ran into this same problem before and this fixed it.
tacofart said:
You don't want to add a folder called su but rather a blank file called su. Ran into this same problem before and this fixed it.
Click to expand...
Click to collapse
I just tried this and now neither work. How did you make the blank file and did you put it in the root of the system/bin folder?
PsiPhiDan said:
I just tried this and now neither work. How did you make the blank file and did you put it in the root of the system/bin folder?
Click to expand...
Click to collapse
I did it with Solid Explorer but you should be able to do it with any root file explorer. navigate to /bin. Delete the su folder. then press new and create a new file named su. Restart. After I did that, I haven't had any issues with SS, adawy or any other root apps working
tacofart said:
I did it with Solid Explorer but you should be able to do it with any root file explorer. navigate to /bin. Delete the su folder. then press new and create a new file named su. Restart. After I did that, I haven't had any issues with SS, adawy or any other root apps working
Click to expand...
Click to collapse
Thank you so much! The reboot was all I was forgetting. It all works now! ?
PsiPhiDan said:
Thank you so much! The reboot was all I was forgetting. It all works now! ?
Click to expand...
Click to collapse
Awesome, glad it worked out!

I'm rooted, trying to install Xposed Framework, how do I delete a file from /system/?

I tried installing it with both Flashify and Magisk, but both methods failed.
When I tried installing it via the included Xposed Installer, it also failed, but gave me the message:
> Error: Xposed_Framework.jar already exists in /system/framework
I'm guessing a previous installation failed, but left the file there.
My next idea is to delete that file from /system/framework and try again, but since it's in an RO directory I don't have permission.
I tried using a terminal emulator to mount the drive in rw mode, and also tried using a root file explorer, but either both methods don't work, or I just couldn't figure it out.
Anyone have an idea of how to remove or rename that file so I can try to install the .zip ?
-Thanks
Highfiverobot said:
I tried installing it with both Flashify and Magisk, but both methods failed.
When I tried installing it via the included Xposed Installer, it also failed, but gave me the message:
> Error: Xposed_Framework.jar already exists in /system/framework
I'm guessing a previous installation failed, but left the file there.
My next idea is to delete that file from /system/framework and try again, but since it's in an RO directory I don't have permission.
I tried using a terminal emulator to mount the drive in rw mode, and also tried using a root file explorer, but either both methods don't work, or I just couldn't figure it out.
Anyone have an idea of how to remove or rename that file so I can try to install the .zip ?
-Thanks
Click to expand...
Click to collapse
In the Xposed app you should be able to just run the uninstaller script. If that doesn't work, boot TRWP and delete it from there.
D3RP_ said:
In the Xposed app you should be able to just run the uninstaller script. If that doesn't work, boot TRWP and delete it from there.
Click to expand...
Click to collapse
Unfortunately, the uninstaller also fails.
It says it can't remove that file from a read only directory..
Highfiverobot said:
Unfortunately, the uninstaller also fails.
It says it can't remove that file from a read only directory..
Click to expand...
Click to collapse
flash installer or uninstaller through TWRP
wmcdrugs said:
flash installer or uninstaller through TWRP
Click to expand...
Click to collapse
Root Explorer....
This app does wonders, it allows you to modify directories in /system and other root folders. You can even change permissions of specific folders/files from read/write/read-only....etc. I've had this app since the earliest of android days and it has been my go to file explorer. Root Explorer of course requires root....but it completely unlocks your phone and allows you to modify any system file that is set to any permission. Of course there are other file explorers that allow you to modify system files, but this is the one that i have the most experience with. You should be able to access the system folder where the Xposed file remains and modify it so it can fix your problem.
djer34 said:
Root Explorer....
This app does wonders, it allows you to modify directories in /system and other root folders. You can even change permissions of specific folders/files from read/write/read-only....etc. I've had this app since the earliest of android days and it has been my go to file explorer. Root Explorer of course requires root....but it completely unlocks your phone and allows you to modify and system file that is set to any permission. Of course there are other file explorers that allow you to modify system files, but this is the one that i have the most experience with. You should be able to access the system folder where the Xposed file remains and modify it so it can fix your problem.
Click to expand...
Click to collapse
This!. I've used it for years. Not muss no fuss. It's not bloated like a certain couple others I know of. It just does what it does and does it well. Manages files. No extra garbage.Give it a try. I'd be surprised if you can't delete it with Root Explorer. If you do try it, go to the folder you want to delete the file from. Once in there, look at the top right of the screen. Somewhere up there It will say MOUNT R/W. Touch that and you should be able to do whatever you want to within that folder.
Do you have the magisk DNSCrypt module installed? If so, thats why you cant modify anything in /system. Not sure why or how it breaks it, but it does. Took me for ever to figure out what was causing it. Now that i removed the module, i can modify anything i want again.
Sent from my [device_name] using XDA-Developers Legacy app

Android: How do I Get Read-Only Access to System & Data Partition Without Rooting?

Android: How do I Get Read-Only Access to System & Data Partition Without Rooting?
Hi everyone. I have an Android 7 device. It's not rooted. I need a file manager/utility that allows me to view the files & folders of the root directory; specifically the System and Data partitions. I don't need 'Write' permissions, just Read-Only. I want to copy some files. In other words, I don't want to root the device. I just need read-only access. I would prefer a file manager type app but I'm open to other methods.
I have tried Solid Explorer. It shows the System Partition but not the Data partition. Thanks.
TheoFitchner said:
Hi everyone. I have an Android 7 device. It's not rooted. I need a file manager/utility that allows me to view the files & folders of the root directory; specifically the System and Data partitions. I don't need 'Write' permissions, just Read-Only. I want to copy some files. In other words, I don't want to root the device. I just need read-only access. I would prefer a file manager type app but I'm open to other methods.
I have tried Solid Explorer. It shows the System Partition but not the Data partition. Thanks.
Click to expand...
Click to collapse
Try root browser:
https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree
@RaiZProduction
Thanks for your comment. However, I have tried Root Browser as well as FX File Explorer but still no success. I want to copy some files from an app's folder in /data/data/app folder
Both apps simply list the folders in /data/data but when I open the folder of any app, its contents are not displayed in Root Browser and in FX Browser, I get the message Access Denied. See the attached images.
I don't know how to use ABD. I'm searching for a command manual.
TheoFitchner said:
I don't know how to use ABD. I'm searching for a command manual.
Click to expand...
Click to collapse
https://www.google.co.uk/search?q=a.....69i57j0l5.2270j0j1&sourceid=chrome&ie=UTF-8

Categories

Resources