[Q] /system/media default permissions - G2 Q&A, Help & Troubleshooting

Hey guys,
Can some very nice person open a root browser and tell me what the default permissions are for /system/media/audio/ringtones, etc? The directories themselves. Then, what permissions the audio files are supposed to have?
On LS980 ota without a custom recovery so I can't reflash system, and the fix permissions shell script doesn't do the job.
Basically, I messed up the file perms for my audio so now I can't set any ringtones or notifications tones until I fix it. I thought I had backed them up to my USB stick over OTG but they aren't there.
Sent from my LG-LS980 using XDA Premium 4 mobile app

agentfusion said:
Hey guys,
Can some very nice person open a root browser and tell me what the default permissions are for /system/media/audio/ringtones, etc? The directories themselves. Then, what permissions the audio files are supposed to have?
On LS980 ota without a custom recovery so I can't reflash system, and the fix permissions shell script doesn't do the job.
Basically, I messed up the file perms for my audio so now I can't set any ringtones or notifications tones until I fix it. I thought I had backed them up to my USB stick over OTG but they aren't there.
Sent from my LG-LS980 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Well these are from my d800 the ringtones folder uses rwxr-xr-x and the ringtones inside all use rw-r-r
Sent from my LG-D800 running stock kk, rooted with philz using XDA app

XxZombiePikachu said:
Well these are from my d800 the ringtones folder uses rwxr-xr-x and the ringtones inside all use rw-r-r
Sent from my LG-D800 running stock kk, rooted with philz using XDA app
Click to expand...
Click to collapse
Thanks! Perfect!
Sent from my LG-LS980 using XDA Premium 4 mobile app

Related

Question. Deleting system files

I can't delete my gmail.API out of the system files it just respawns. And ideas?
apk?
Make sure the system is rw. Otherwise it just "pretends" to delete.
Yeah apk sorry. Switched keyboarding. root explorer says r/w at the top
Sent from my SCH-I500 using XDA App
Don't trust root explorer. It doesnt always correctly mount as rw.
How do I fix that sir?
Sent from my SCH-I500 using XDA App
You can use terminal commands, but for a fairly simple way to do it, I use "Remount /system (ro/rw)". It's a free app on the market, easily remounts system as rw at the touch of a button.
Well my idea didn't work but thanks guys
zachsx said:
How do I fix that sir?
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
Sir??? Really???
Sent from my stock 2.1
unrooted, fully bloated (for now) Fascinate

Help installing CM9 music player

I really like the CM9 player but I'm having trouble installing it. I followed a guide that said back up music.apk then delete it with root browser, then install CM9 music player. It worked, it successfully installed but I just used it and halfway thru one song my phone froze. I did a battery pull, when it rebooted, it said "sorry, music has stopped working" and it says that every time. Someone help?
Sent from my HTC MyTouch 4G using XDA
Are you on ICS?
Yes. I'm running BlackWing182's IceColdInsomnia
Sent from my HTC MyTouch 4G using XDA
A logcat would help us identify your problem.
Sent from my HTC Glacier using XDA
Could I just use Titanium Backup to force remove, without backing it up, and then installing CM9??
Salviikiddd said:
Could I just use Titanium Backup to force remove, without backing it up, and then installing CM9??
Click to expand...
Click to collapse
Cm9 is an entire ROM. If you want that, boot into recovery and format system and data, and then wipe cache and dalvik cache. Then you'll have a clean slate to install the ROM onto.
If you want just the music player, yes you can use titanium to uninstall then try putting the music player in system/app changing the permissions to rw, r, r, installing and rebooting.
Sent from my HTC Glacier using XDA
How can I change the permissions after deleting the stock app and installing cm9?
Sent from my Glacier using XDA
Salviikiddd said:
How can I change the permissions after deleting the stock app and installing cm9?
Sent from my Glacier using XDA
Click to expand...
Click to collapse
I use root explorer, but you can use terminal emulator as well. If you can't afford Root Explorer, I'd suggest you hook, steal or kill to get the money. Totally worth it.
Anyway, using Terminal Emulator, type in these lines and hit "return" between each:
su
mount -o rw,remount /system
cd /system/app
chmod 644 Music.apk
There are alternate, shorter methods, but this one is fun.
I used jrummy root explorer lite and I just replaced the file with the cm one and renamed it to music.apk after that I set permissions rebooted and set permission on cwm and it was working perfectly though I don't use it (stock ics player is awesome) it works just fine.
Sent from my HTC MyTouch 4G using XDA
Zkyfer said:
I used jrummy root explorer lite and I just replaced the file with the cm one and renamed it to music.apk after that I set permissions rebooted and set permission on cwm and it was working perfectly though I don't use it (stock ics player is awesome) it works just fine.
Sent from my HTC MyTouch 4G using XDA
Click to expand...
Click to collapse
So you didn't force remove the stock music app? you just replaced it and renamed it? then set permissions like the reply above and then again on cwm?
Salviikiddd said:
So you didn't force remove the stock music app? you just replaced it and renamed it? then set permissions like the reply above and then again on cwm?
Click to expand...
Click to collapse
Setting permissions on both seems a little redundant one or the other should suffice.
Sent from my HTC Glacier using XDA
Salviikiddd said:
So you didn't force remove the stock music app? you just replaced it and renamed it? then set permissions like the reply above and then again on cwm?
Click to expand...
Click to collapse
Correct.
Sent from my glacier using XDA
estallings15 said:
Setting permissions on both seems a little redundant one or the other should suffice.
Sent from my HTC Glacier using XDA
Click to expand...
Click to collapse
True, but I wanted to be sure so I did both. It never hurts to do both now does it?
Sent from my glacier using XDA

Can't Delete nandroid backup

Ok, never seen this before and suspect SD card corruption.
I did a nandroid backup today before I flashed a custom kernel. Everything went well. Now I am getting low space alerts (got the 8GB model). I want to delete the backup which comes in at 1.8GB. Problem is, the permissions are wacky - the folder perms are rwsrwsr-t (775 with set uid, set gid and sticky).
I can't delete or change permissions with either root explorer or from the shell as root!
Has anyone seen this before, or have a solution ?
timekillerj said:
Ok, never seen this before and suspect SD card corruption.
I did a nandroid backup today before I flashed a custom kernel. Everything went well. Now I am getting low space alerts (got the 8GB model). I want to delete the backup which comes in at 1.8GB. Problem is, the permissions are wacky - the folder perms are rwsrwsr-t (775 with set uid, set gid and sticky).
I can't delete or change permissions with either root explorer or from the shell as root!
Has anyone seen this before, or have a solution ?
Click to expand...
Click to collapse
Same here. No clue how to get rid of it.
This is what I did when I switched from CWM to TWRP
1. Get Root Explorer
2. Navigate to /data/media/clockworkmod/backup
3. Delete whatever backups
4. ?????
5. PROFIT!
Sent from my i777 using xda app-developers app
Its a common issue with some versions of CWM, but Koush has released a (radically) new version
fix is as Wiithepeng said
wiithepeng said:
This is what I did when I switched from CWM to TWRP
1. Get Root Explorer
2. Navigate to /data/media/clockworkmod/backup
3. Delete whatever backups
4. ?????
5. PROFIT!
Sent from my i777 using xda app-developers app
Click to expand...
Click to collapse
"I can't delete or change permissions with either root explorer or from the shell as root!"
If I delete with root explorer I get "delete failed". If I adb shell in and `busybox rm -fR` I get "Operation not permitted"
With those steps?
Sent from my i777 using xda app-developers app
When I tried deleting from /mnt/sdcard or /sdcard or /storage/sdcard0 it would not work until I tried /data/media
Sent from my i777 using xda app-developers app
Phonic posted a script in the "[RECOVERY] r3 (6.0.0.4) - Interim ClockworkMod recovery for Nexus 7" thread in the Android Dev forum,
when executed thru CWM will delete undeleteable backups
didnt use it myself, I used Solid Explorer to delete /data/media/clockworkmod/backup/......
Ok, I rebooted into recovery and was able to delete the files with adb shell.
wiithepeng: Sorry, didn't see the /data/media path at first glance, I was going straight to /sdcard - so it might have worked your way.
Thanks for the help.
No problem. Glad you delete those backups
Sent from my i777 using xda app-developers app
Try THIS. Common problem and fixed in the newest version of the Recovery from that thread AND apparently the newest CWM directly from Koush.
wiithepeng said:
This is what I did when I switched from CWM to TWRP
1. Get Root Explorer
2. Navigate to /data/media/clockworkmod/backup
3. Delete whatever backups
4. ?????
5. PROFIT!
Sent from my i777 using xda app-developers app
Click to expand...
Click to collapse
Thank Bro, this was bugging the crap out of me. I had no idea to navigate through data/media etc. Good fix!
wiithepeng said:
This is what I did when I switched from CWM to TWRP
1. Get Root Explorer
2. Navigate to /data/media/clockworkmod/backup
3. Delete whatever backups
4. ?????
5. PROFIT!
Sent from my i777 using xda app-developers app
Click to expand...
Click to collapse
Thanks! I was about to tear my hair out! I used ES File Explorer though.
wiithepeng said:
This is what I did when I switched from CWM to TWRP
1. Get Root Explorer
2. Navigate to /data/media/clockworkmod/backup
3. Delete whatever backups
4. ?????
5. PROFIT!
Sent from my i777 using xda app-developers app
Click to expand...
Click to collapse
Thanks bro... Root Explorer is premium so even ES File Explorer works as long as you are rooted and grant it SU access, which would be anyway as you have CWM.
Sent from my Nexus 7 using Tapatalk 2
wiithepeng said:
When I tried deleting from /mnt/sdcard or /sdcard or /storage/sdcard0 it would not work until I tried /data/media
Sent from my i777 using xda app-developers app
Click to expand...
Click to collapse
This worked for me :good:
Wahay, Fix ed
I was going to make a zip and flash as i thought all was lost but then I just fixed this via adb using the following commands, I didn't get any errors and it was successful, here is what I did,
# cd /data/media/clockworkmod/
# chmod 777 backup
# cd backup
# rm -rf <backupfilename>
Hope this helps others,

How to push an app to system?

I've seen apps that you have to "push" them to install them. What exactly does that mean and how do I do it?
Sent from my Nexus 4 using xda app-developers app
rmhumtex97 said:
I've seen apps that you have to "push" them to install them. What exactly does that mean and how do I do it?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
You need to use adb on a computer the command would be
adb push nameofapp.apk /system/app/
Or
You can use a file manager with root access and copy the app to /system/app and fix permission to rw-r--r-- and reboot
Sent from my Nexus 4
Or, alternatively you can use Titanium Backup to do the job.
ottoemezzo said:
Or, alternatively you can use Titanium Backup to do the job.
Click to expand...
Click to collapse
How do you get it to do it?
Sent from my Nexus 4 using xda app-developers app
Open TB
go to the backup/restore tab
find the app you want
Long press the app till a menu pops up
Find option to convert the app in the menu and follow directions
Sent from my Nexus 4 using Tapatalk 2
Well, I meant exactly like bobdarkside has just described. I think we might misunderstood you, because with TB you can only convert previously installed apks into system ones. So if you need to do it without installation go for adb or file manager method.
spaceman860 said:
You need to use adb on a computer the command would be
adb push nameofapp.apk /system/app/
Or
You can use a file manager with root access and copy the app to /system/app and fix permission to rw-r--r-- and reboot
Sent from my Nexus 4
Click to expand...
Click to collapse
Ok I copied the app to system/app now I just need to fix permission to rw-r--r-- but I don't know what that is and how I do it
Sent from my Nexus 4 using xda app-developers app
Never mind I figured it out
Sent from my Nexus 4 using xda app-developers app

ROOTED can't delete files off sd-ext

Was hoping someone could shine some light on my situation
Rooted using the towel root app
Verified root through a play store root checker
Superuser works fine
I use xplore file manager changed settings in the file manager for a rooted device, so i dont think it's the file manager.
so i'm wondering do i need to set permissions somewhere I haven't already
Or does this have to do with the locked bootloader?
Fyi: if i connect my phone to my computer I can delete the files through the computer but it doesn't allow me to directly on my phone.
Search "sdfix kitkat" on the play store. Try that and reboot
Sent from my SM-G900V using XDA Premium 4 mobile app
joeyrey said:
Search "sdfix kitkat" on the play store. Try that and reboot
Sent from my SM-G900V using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks man

Categories

Resources