I have a Galaxy S3 L710, Rooted, using the PAC Man v19.9.0 ROM and a certain kernel. I am having trouble obtaining write access over root/system files. Basically, I am trying to edit init.d files, but whenever I try to save them within Script Manager or ES File Explorer, I get "Permission Denied."
I have enabled Root Explorer in ES File Explorer and I checked the "Mount File System" box but I still cannot properly save system files. Can anyone help? Has anyone experienced this before and found a way around it?
Check to make sure ES has been granted SU permissions in your SU app.
flonker said:
Check to make sure ES has been granted SU permissions in your SU app.
Click to expand...
Click to collapse
Yup, it has SU permissions.
Well you could work around it...
Copy the init.d file to your sdcard, change it, and then replace the original init.d file
Sent from my PG06100
You can long press whatever file your trying to edit and you'll get this.
Random file of mine btw.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Scroll to the bottom and hit properties, and you get this.
Click on change, and you'll get this.
You can select read, write, execute.
Sent from a planet far far away.
Well I have kind of the same Problem, Please bare over with me im a n00b at this. I have file i need to get into Init.d folder and when i try and copy to it, it allso comes with the Permission Denied. What i did was I installed ES Exploere and Universal init.d. I then vent into ES anc Clicked Root and accepted SU request. then i vent to my Download folder and log pressed on the file i wanted to copy into the init.d folder and pick copy to and showed the location of the Folder and clicked OK it comes with Permission denied!. Then i check the Permission on the Init.d folder and it has RWX RWX RWX in the Permissions so i guess its OK. so can someone please explain me what i do wrong, I allso tried to make a folder or a file in the init.d same Problem permission denied. I dont have a spare SSD card or anything so i cant try and move it around as someone explained above.
Es file explorer doesn't come with write authority enabled it is set to default read only. You have to go into the settings of ES File Explorer and set the 'write' option on.
I prefer Root Explorer but ES will do the job when set up correctly.
Remember search is your best friend, Have a great day!
Extensions and Permissions
edfunkycold said:
Es file explorer doesn't come with write authority enabled it is set to default read only. You have to go into the settings of ES File Explorer and set the 'write' option on.
I prefer Root Explorer but ES will do the job when set up correctly.
Remember search is your best friend, Have a great day!
Click to expand...
Click to collapse
Thank you i have just bought the Root Explorer and have copied into /etc/init.d/ and what kind of extension should the file have to be come executed when the system startsup? and whats the Permissions required?
Related
This is a handy little shell script I wrote today that I used to copy files to /system/app folder. This is the first thing I ever wrote for Android so I don't know if anyone has any use for this but there ya go.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
To use simply download the shellpaste.txt from below and rename it to shellpaste.sh. Put the file in the root of your SD card then go to android terminal and type the following:
Code:
sh /sdcard/shellpaste.sh
Changelog:
Code:
shellpaste v0.4
-now supports all folders not just /system.
-added chmod to actually make it useful. Thanks Tigger31337.
shellpaste v0.3
-cleaned up the code a bit.
shellpaste v0.2
-first release.
Thanks man this is very helpful for the things I do. Cheers.
-rezo609
Awesome! Hope it serves you well.
small scripts, medium tricks, big handy
Does this address permissioning after the file(s) are copied?
No offense, but yours seems like a rather convoluted method when you've got things like adb push or just drag and drop from the PC. If the apk is already on your phone, then you need only do a cut and paste to /system (with, say, Root Explorer) and then set permissions. Done.
Also, it's not very flexible. What if I want to copy to /data? Another script??
None taken. The script changes the permissions to r/w, copies the file, then changes it back to read-only. As I said, this was just a script I wrote to help me with what I needed to do at the time. Maybe I'll write a new version that supports any folder the user chooses.. I agree, it's not exactly an elegant solution but I'm a complete noob at this. You gotta start somewhere, right?
Edit: Also, I am completely open to feature suggestions. So if there's anything more advanced you guys would like to see in newer versions feel free to post. I'm using this as a tool to learn as much as possible.
Sent from my htc wildfire s a510e using XDA
I don't mean permissions at the f/s mount level, I mean permissions at the file level (i.e. chmod).
If you're copying an apk to /system/app, then eventually you'll need to chmod it to 644 before it will execute properly. Maybe I'm missing something, but copying an apk from SD card to /system isn't going to do this for you automatically.
I have a suggestion to your script
Example: I pushed a systemUI.apk in system/app folder through adb now when you look at your phone the statusbar dissappears, of course because of push, now can you make a script to rerun the apk or execute it, like mounting it dunno the exact word, so that you won't have to reboot your phone to see your statusbar again, instead just run it like windows run. This is usefull if your modding the APK.
Gotcha. Completely forgot about chmod.
I'll try to make it reinstall the systemui.apk without rebooting but could use some pointers on how to achieve this.
Edit:
Made a new version that supports mounting of all folders and added chmod into the mix. Should work properly now.
einstein.frat said:
I have a suggestion to your script
Example: I pushed a systemUI.apk in system/app folder through adb now when you look at your phone the statusbar dissappears, of course because of push, now can you make a script to rerun the apk or execute it, like mounting it dunno the exact word, so that you won't have to reboot your phone to see your statusbar again, instead just run it like windows run. This is usefull if your modding the APK.
Click to expand...
Click to collapse
I've never used android scripts before but I'm guessing you could just do
exec /system/app/whatever.apk
But idk on that one.
Sent from my HTC Wildfire S A510e using xda premium
einstein.frat said:
I have a suggestion to your script
Example: I pushed a systemUI.apk in system/app folder through adb now when you look at your phone the statusbar dissappears, of course because of push, now can you make a script to rerun the apk or execute it, like mounting it dunno the exact word, so that you won't have to reboot your phone to see your statusbar again, instead just run it like windows run. This is usefull if your modding the APK.
Click to expand...
Click to collapse
I do exactly this on the WildChild ROM, using pm disable/enable.
It's a method I came up with by myself (so, it's not very elegant but it gets the job done ). There might be other ways of doing it, but I haven't seen any yet.
Does anyone know how to change the default for MMS pictures to not show in slideshow? I had it set that way on my GS3, but it was a ROM feature (the devils reject). Is there any way to do this on a note2?
Thanks in advance.
Edit: Thank you enewman17 for the answer!
Adding this into system/csc/feature does the trick.
<CscFeature_Message_EnableMmsOnePageViewer>true</CscFeature_Message_EnableMmsOnePageViewer>
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
boothcr79 said:
Edit: Thank you enewman17 for the answer!
Adding this into system/csc/feature does the trick.
<CscFeature_Message_EnableMmsOnePageViewer>true</CscFeature_Message_EnableMmsOnePageViewer>
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Click to expand...
Click to collapse
Do you add a text file to the folder or do I need to figure out how to open the system in a terminal? I am familiar with terminal in Ubuntu, but have not taken the time to root or learn android particulars as all the features I want are already available. Maybe I need to learn to get rid of bloatware.
A quick step by step would be great if you have the time. With thousands of people trying to get rid of the slide show mms why the hell is it still around? I hate it on the Note 2 and my Atrix didn't have it.
stewbuntu said:
Do you add a text file to the folder or do I need to figure out how to open the system in a terminal? I am familiar with terminal in Ubuntu, but have not taken the time to root or learn android particulars as all the features I want are already available. Maybe I need to learn to get rid of bloatware.
A quick step by step would be great if you have the time. With thousands of people trying to get rid of the slide show mms why the hell is it still around? I hate it on the Note 2 and my Atrix didn't have it.
Click to expand...
Click to collapse
You will need a program like Root Explorer to find the xml file in the OP. When he says "Adding this into system/csc/feature does the trick.", feature is actually feature.xml and it's located in the /system/csc directory. With root explorer you can browse to this directory and mount it as R/W to edit the feature.xml file. Once mounted as R/W, open feature.xml in a text editor (integrated in Root Explorer).
Once editing feature.xml, just scroll down to the message options and add the line in the OP. I did this by copying the text on my PC, sending myself a hangouts message, and then copying the message text on my phone. Then I pasted the copied text into the Root Explorer text editor window, menu->save and exit, then Mount R/O in root explorer. Reboot and you should be able to open MMS in non-slideshow mode.
See attached screenshots for reference.
GFunkOfLex said:
You will need a program like Root Explorer to find the xml file in the OP. When he says "Adding this into system/csc/feature does the trick.", feature is actually feature.xml and it's located in the /system/csc directory. With root explorer you can browse to this directory and mount it as R/W to edit the feature.xml file. Once mounted as R/W, open feature.xml in a text editor (integrated in Root Explorer).
Once editing feature.xml, just scroll down to the message options and add the line in the OP. I did this by copying the text on my PC, sending myself a hangouts message, and then copying the message text on my phone. Then I pasted the copied text into the Root Explorer text editor window, menu->save and exit, then Mount R/O in root explorer. Reboot and you should be able to open MMS in non-slideshow mode.
See attached screenshots for reference.
Click to expand...
Click to collapse
Worked for me.
Sent from Note 2.
Hey sorry to revive this thread, I am on Verizon with a Galaxy S4 and have this same issue... see below -- adding that text ( i am rooted ) did not solve the issue.
Do others have this issue?
MMS messages with text/image come in as a slideshow. Instead of showing the picture and text inside the messaging thread it displays a PLAY (
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
) icon and then starts a slideshow.
When I use the root explorer and check the /system directory I don't see a csc folder. Is the folder hidden?
I ve unlocked and root my htc one v primoU, but unable to delete or write on device memory in system folder, as if I want to delete any inbuilt notification sound file from system/media it says access denied, or read only file. please help me.
ive turned on es file manager's root explorer too. what would be the reason?
Puckish said:
I ve unlocked and root my htc one v primoU, but unable to delete or write on device memory in system folder, as if I want to delete any inbuilt notification sound file from system/media it says access denied, or read only file. please help me.
ive turned on es file manager's root explorer too. what would be the reason?
Click to expand...
Click to collapse
Have you mounted system readwrite? You can do that in ES File Explorer.
MameTozhio said:
Have you mounted system readwrite? You can do that in ES File Explorer.
Click to expand...
Click to collapse
there isn't any option in es file manager 3.5.5 to mount system...
this problem is created when I've rooted my device it was working fine, but after factory rest its not working, even though ive unrooted it using supers v1.65 then again root it back. now its not working, although I can uninstall system apps but cant write or delete in system folder. please tell me how to mount system read write.
Puckish said:
there isn't any option in es file manager 3.5.5 to mount system...
this problem is created when I've rooted my device it was working fine, but after factory rest its not working, even though ive unrooted it using supers v1.65 then again root it back. now its not working, although I can uninstall system apps but cant write or delete in system folder. please tell me how to mount system read write.
Click to expand...
Click to collapse
Go into ES File Explorer and hold the recent apps button until the sidebar shows up, then click root explorer.
Root explorer is on
Sent from my HTC One V using xda app-developers app
@Puckish After turning on root
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
then you must press just left of the on/off toggle and it will bring up this
Drop down list is not appearing
Hi Team,
I have a HTC One V, is already rooted and loaded with 4.2.2 Sphongle, Hellboy kernel. Now the problem is, the drop down list is not appearing in my device. Please help.
Thanks
Subhasish
pochakaka said:
Hi Team,
I have a HTC One V, is already rooted and loaded with 4.2.2 Sphongle, Hellboy kernel. Now the problem is, the drop down list is not appearing in my device. Please help.
Thanks
Subhasish
Click to expand...
Click to collapse
press menu/recent apps button?
Maybe, you need to flash gapps?
Thanks buddy
Sent from my HTC One V using xda app-developers app
MameTozhio said:
press menu/recent apps button?
Click to expand...
Click to collapse
Got it..Is there any one who can kick my ass....somehow I have enabled the 'Expanded Desktop'. after disabling it I got the drop down list...
Thanks
Hi all,
some people dont know how to set file permission after push the file/apk etc.. so i share this guide to all...
Big thanks to Sun90 because let me to share his guide...
Sun90 said:
Hey Guys i have often seen lot of Question regarding the same "How to set the file permission,sorry i am a noob please explain?"
well this we come across on all threads, at some given point of time.
Reason being simple that we suggest some people to do as said below:
Hey,
1) copy the file XXXX to your Internal or External sd-card.
2) push the file XXXX to sytem/xxxx folder.
3) set permissions to rw-r--r-- blah blah blah.
4) reboot your phone and see.
Then comes the question again from the same people as below:
Hey,
1) I have done accordingly, but really confused regarding File permission though please explain?
2) How to set File Permission?
3) what is rw-r--r-- blah blah i cannot get it? etc.
So this Simple Guide will defenetly help the people with the same.
Let me not go in depth regarding the same,Since this excellent Tutorial from Matt Doyle explain's in more detail about it
Understanding File Permissions- by Matt Doyle
In order to set the file permission all you need is to have Root explore/Browser or similar type of File manager app been installed on your phone, with Root access.
when you open the File manager you see all your files and folder listed there, thats not our main concern, but something below each one of those file's or folder's, what we are really interested in like:
under say Data folder you see something like 'rwxrwx--x' which is of real concern here.
when you long press on the same Data Folder a pop appears as below
Fig 1
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and when you select Permissions in that pop up menu it appears as below.
Fig 2
as you can see in the pic above the permission is set to 'rwxrwx--x' (771 according to Table below)
So in order to set the right Permission for a file, after you have copied the file to the relavent folder, all you have to follow is the below steps and also the Table guide below it.
1)Any File Manager app like Root Explorer/Browser,Es-file explorer installed with root access (Do ensure to Mount as R/W (Read/Write)).
2)Find the File which you have copied to the appropriate Folder for which you have to set Permissions with the above installed file manager app.
3) Long press on the file to open a pop up menu as shown in Fig 1 above.
4)Set Permission accordingly ( been suggested by people for you) using the table guide below as reference.
5) Then reboot your phone for the same (Permission set) to take effect.
Table Guide for Reference
----------------------------------
No- Box is Unchecked, Yes- Box Checked
So, for example:
777 is the same as rwxrwxrwx
755 is the same as rwxr-xr-x
666 is the same as rw-rw-rw- and so on.
I do hope this Guide will come in handy to all those people who want to set filepermission, but need some clarity upon the same.
All Credit to Matt Doyle for his Excellent Tutorial on 'Understanding File Permissions' which being an inspiration for me to make this Guide.
And also like to Thank the XDA for this wonderfull Knowledge based Site.
All constructive Comments to improve the same by my fellow Member's are Welcome
Click to expand...
Click to collapse
Credits:
Sun90
Matt Doyle
Even this needs a tutorial?
Sent from my GT-I9500 using Tapatalk
All files permissions will be automatically Set after a Reboot
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
All files permissions will be automatically Set after a Reboot
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Sometimes that doesn't work. You can always use fix permission in cmw
Sent from my GT-I9500 using Tapatalk
xXx~~~SHLOK~~~xXx said:
Even this needs a tutorial?
Sent from my GT-I9500 using Tapatalk
Click to expand...
Click to collapse
Sometime it needed ..
at least we must respect him as he already share this to some of beginner members
Hello,
On ES File Explorer
https://play.google.com/store/apps/details?id=com.estrongs.android.pop (BETA version - 4.0.1)
Yesterday, befor go to sleep, i has correct admin right, if i wanted i could editing any file in system folder, i was the toast admin notification when i opened the app but this morning, i take my phone and re-open ES but i hasn't the toast notification of ES so i have uncheck the root option, close the app, re-check the root option but nothing..
I have uninstall this app via Tiatnium Backup, reboot in TWRP and wipe cache & dalvik but it was not fix my problem..
Anyone have this issue too ? (i have make no one modifications before uninstalling the app so i have no idea ..)
Thanks.
Rom said:
Hello,
On ES File Explorer
https://play.google.com/store/apps/details?id=com.estrongs.android.pop (BETA version - 4.0.1)
Yesterday, befor go to sleep, i has correct admin right, if i wanted i could editing any file in system folder, i was the toast admin notification when i opened the app but this morning, i take my phone and re-open ES but i hasn't the toast notification of ES so i have uncheck the root option, close the app, re-check the root option but nothing..
I have uninstall this app via Tiatnium Backup, reboot in TWRP and wipe cache & dalvik but it was not fix my problem..
Anyone have this issue too ? (i have make no one modifications before uninstalling the app so i have no idea ..)
Thanks.
Click to expand...
Click to collapse
Have you opened the log section in supersu and checked the entry for ES? and do you have re-authentication enabled in supsu settings?
Will_Xda said:
Have you opened the log section in supersu and checked the entry for ES? and do you have re-authentication enabled in supsu settings?
Click to expand...
Click to collapse
Yes, there is no entry foe ES and i always enable the re-authentication option :good:
Rom said:
Yes, there is no entry foe ES and i always enable the re-authentication option :good:
Click to expand...
Click to collapse
Have you enabled root explorer in the es settings?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
startswithPendswithOOH said:
Have you enabled root explorer in the es settings?
View attachment 3447190
Click to expand...
Click to collapse
Yes i have enable it.
Any others ideas ?
Rom said:
Yes i have enable it.
Any others ideas ?
Click to expand...
Click to collapse
My bad. I think you mentioned that you did enable it in your 1st post. Try an older version of es and/or also try to reflash superuser zip in twrp. Weird how it just stopped working though
startswithPendswithOOH said:
My bad. I think you mentioned that you did enable it in your 1st post. Try an older version of es and/or also try to reflash superuser zip in twrp. Weird how it just stopped working though
Click to expand...
Click to collapse
Personaly, i think that this bug come from ES apk file, i am on a beta version so it can come from a bug that will be fix in next version..
Rom said:
Personaly, i think that this bug come from ES apk file, i am on a beta version so it can come from a bug that will be fix in next version..
Click to expand...
Click to collapse
Yeah...that's why I mentioned trying an older, more stable version of ES. BETA can do weird things. (The link you provided brings me to 3.2.5.5...where is 4.0.1?) I'm on 3.2.5.5 and all is well...maybe try 3.2.5.4?
Good luck. Sorry I couldn't help.