Lost access to media - ringtones, alarms, notifications and other media files - Sony Xperia Z Ultra

I have also posted this issue on another general forum, so apologies if this is deemed cross-posting!
My smartphone is running a stock Lollipop C6833_14.5.A.0.242_Customzied Germany.ftf ROM flashed using Flashtool, but is rooted with KingRoot and I have a dual recovery flashed and working properly.
Following that downgrade I found that my phone no longer had either a phone or alarm tone. When I try and change the alarm tone or ringtone or even notifications in settings I am presented with the file explorer. The sound selector shows nothing. File Commander is able to see and access the files, and they do not appear to be corrupted and I also tested them in my media player.
They were not in the SD card media folder, but were in tact in the system/media/audio folder in their respective folders. So I copied all the individual folders within the audio folder across to the corresponding media folder on the SD card. But that did not work either...
After searching various sites for help I managed to find instructions to download and flash Xperia Lollipop Media Sounds.zip, which I tried to do with TWRP recovery, but this failed with an error message I could not read.
I wondered whether if I were to just flash the system file from the same ROM it would restore the media file settings? Any help would be very much appreciated, as I have no way of hearing when I receive incoming calls, and my alarm does not work either. The audio seems to function fine in third party apps, so there is no physical issue as far as I know.
I also read a recommendation to copy the files across while connected to a PC, via USB, but my computer is a Mac and it does not seem to be able to access the SD cards as external drives in the same way as they appear in a PC.
Sony technical support basically told me that the only solution is to use repair within the Sony Bridge for Mac app, but I don't want to lose root, as the latest firmware upgrade is impossible to root. I really need help on this please!

Be aware that you have to set the correct file permissions after moving them to the /audio folder. The ringtones and alarm tones should be in the folder you just wrote, meaning they're on the system partition.
Just long-press or something on the audio-folder (depending on the file explorer you're using), tap "properties", and then set the permissions to 6-4-4, which is RW-R-R, or:
[x] [x] [ ]
[x] [ ] [ ]
[x] [ ] [ ]
Then reboot.

Hi Klaoss, many thanks for replying. However I have checked the permissions. The permissions for the actual files are RW-R-R, but in fact the folder permissions seem to be even more open: drwxr-xr-x, does that sound correct? I am talking about/system/media/audio/alarms, camera, notifications, ringtones and ui, which all have the same permissions.
Uh Oh! I just checked the permissions in the /storage/emulated/0/media/audio folder are non existent! Maybe this is why it is necessary to use the PC to copy the files, in order to retain the file and folder permissions? Is it also something to do with the actual formatting of the SD partition? Thanks for your patience

Just checked mine (on 5.1.1) and it does indeed look like the folders are drwxr-xr-x, while the files themselves are rw-r-r.
Also, yeah you could try that. That might actually work. Just remember to reboot after each change.

Thanks, but to be clear, do the files need to also be in /storage/emulated/0/media/ as well as in the /system/media/audio, or are they superfluous? Because if they are not needed, then I am not going to achieve anything by going to the trouble of copying the files within a PC environment.

Also, is there no way of copying files within Android without losing the permissions?

No idea, but I've always added and removed audio files from the system partition, but I know apps like Zedge and stuff adds them to the list when downloaded, so I'm guessing that 3rd party apps use the media folder on the internal memory, and not on the system partition, which requires root. So I would probably just let that folder alone, and concentrate on the system folder. Check the permissions and see what happens.
Change the permission on one or two files (incl. the folder), reboot and see if the file/files you just edited are showing up in the ringtone list. If yes, then change the permissions on the rest of them.

I have no idea what to change the system folder permissions to...remember that they were set to drwxr-xr-x. I think it is more important to be able to provide access to third party apps, that way I could temporarily choose ringtones etc using those. However I cannot access the permissions for the folder of the internal memory via my file explorer apps, even with full root access. That has to be a contributory factor to the problem. I wonder, would you mind having a look at the permissions for these folders on your device and telling me what they are compared to the system version?
Also, I would like someone else's take on this, would anyone else care to comment please?

OK, same problem, different tack: can anyone please tell me which partition I would need to reflash from a ROM or TWRP backup to restore the system media sounds and settings to original without losing my data or root? Also does it need to be the same ROM version, or can I flash a different ROM, but still a version of Lollipop? For example, could I simply extract the relevant partition from the recent 5.1.1. ROM, or would I then lose root too, or could it come from a 5.0.1 ROM, but slightly different from the one presently installed? I have several TWRP backups, but unfortunately for some reason they included the TA information (ta.mmc.win) which causes a bootloop when I try and reboot the system after flashing, and I have yet to find a way to exclude them from the restore process.

Related

[Q] How to delete default files

I hate those default Pics, music etc ASUS or whoever have put them and now I can't delete them from Filemanager...
How to delete any of the files I want ?
use root explorer to delete them. don't go deleting system/stock apps or your future OTA updates will fail.
I tried but says on those 17 default pics, "delete failed"...
BTW, why in file manager there is so bunch of stuff listed there, not organized... and you have no idea what is for what...
I tried FileManager HD - much better look/organization, also reports same error, failed to delete. Now in this app you can see next to file this: -rw
Are those files protected or something? pics and mp3's by default which I can't delete have that.
Thanks!
PS - Android -ICS, has folders listed totally wrong, you have system files listed with normal other folders which confuses normal people what is what and finding what they need to find. They should put ALL system files under 1 folder and make a tree of folders there and not in root put all folders there and leave up to us to manage in that bush
is your device rooted? and did you put it in read/write mode? otherwise it wont be able to delete the files
Sent from my Transformer Prime TF201 using XDA Premium HD app
You must set your file explorer to mount system files in read/write mode, by default they are set to read only. See in preferences menu.

Unwanted Ringtones solved

In my rooted Samsung Galaxy Tab I put my own preferred ringtone into the system/media/audio/ringtones folder and rebooted and it was selectable in the list which was good albeit a long search throught the list of junk.
Then I thought why can't I delete all the rubbish ringtones in that folder which I would never want, so I just deleted about 27 ringtones but not the numbered tones. Then when I go to settings-sound, notifications ringtone, call ringtone and Feedback settings are all buggered (as in greyed out). Rebooting didn't fix it so I had to reboot into recovery and reinstall system from Overcome_7_Series_v4.1.0_NoWipe.zip and everything was back to normal.
One question remains, what if I delete the unwanted ringtones from the Overcome_7_Series_v4.1.0_NoWipe.zip and try again. Surely there is nothing in the system that would need these useless files. I had to prepare the zip file on the PC and use WIFI File Explorer to get it into the SdCard (my preferred ringtone included).
Reinstalled from recovery with the modified zip and BINGO; it worked.
Now I wonder if I can do the same with the numbered .ogg files as most of them are also useless. I'm sure it will work and it would be nice to just have two or three real ringtones in the selection list.
I suppose I'm making a big job of it but I have not discovered a simpler way to delete these unwanted files. There is an app called RingDroid but it is for unrooted phones and doesn't address the real problem which is the buggy system that prevents us from simplifying the system for personal use.

A mod to allow 3rd party apps to write to SD has screwed up my tablet, please help!!

Hi, I have a Digiland DL1010Q tablet with kitkat 4.4.2
Apologies in advance if this post is a little long, but I wanted to be thorough in my explanations in order to better my chances of getting the problem solved.
Kitkat 4.4.2 apparently doesn't allow 3rd party programs to write on an external SD card and since I wanted that functionality back (and I have root access), I decided to do the "Sdfix" modification. It has an app for it in the play store but I decided to do it the manual way as described in many threads online.
The modification is basically to edit the /system/etc/permissions/platform.xml file and add in the WRITE_EXTERNAL_STORAGE category the line "<group gid="media_rw" />". This is supposed to give back write permission on sd card to 3rd party apps.
Now the issue is that the particular instructions I was looking at didnt mention reeditting this file's permission after making the edit so the permissions might have not been at 644 (rw- r-- r--) after I made this edit...
Once I rebooted the tablet it booted up fine but once on the desktop, I started getting a bunch of messages that apps were crashing in the background. The tablet came from factory with 2 partitions, one for the OS and the main part of the user apps, and a secondary partition called "INTERNAL STORAGE" with the extra install files for the largest user apps and some settings, etc... The issue seems to be that this secondary partition now cannot be accessed unless i use es file explorer with root access and navigate to the mnt/media_rw/sdcard0 folder (the internal storage has always been referred as sdcard0 before, so the name isnt new). So basically without root, the apps cant access that data partition and load their settings,etc and load properly. At least thats what I think is happening but I could be wrong.
The weird part is that even with root, I can only access the content of the internal storage through es file explorer if I go through the mnt/media_rw/ folder, if I go through other folders, I can't seem to access the content. Without root explorer access, es file explorer can't even access the content of the mnt/media _rw folder. If I go through the "sd card analyst" tool in es file explorer, it would normally display the content of the internal storage, but it now fails and say that it doesnt have the right permission (even if es file explorer has root explorer access).
I have since edited the platform.xml file permissions to make sure they were at 644, reboot, no luck.
I then reverted the changes to platform.xml and made it identical to what it was at the beginning, permissions 644, reboot, no luck and es file explorer navigation was identical.
Through my many googling attempts I found a few other people who had this issue and one user's recommended fix involved deleting the file /data/system/packages.xml (which he said gets modified when platform.xml changes), clearing the cache and delvik cache, then rebooting. I actually tried this and the delvik cache got repopulated normally during bootup but the issue persisted. (the packages.xml file reappeared but I am not sure how identical it is to the one I deleted)
Does anyone have any suggestion on how I could fix my issue without doing a facory reset? I would greatly appreciate any help in solving this short of a full wipe.
Have you tried wiping the userdata?
What is the userdata? You mean all my apps, settings, etc? Like a factory reset? If so, no, I'm trying to avoid having to resort to that.
Or you mean some sort of cache? I manually deleted the content of the delvik cache folder, and I have used the "clear cache" option in the recovery menu I can access at bootup if i hold power and volume up.
Or do you mean something else entirely?
bump

Question Advice (what do you not know?)

I can't change the system files.
I have root privileges and also root file manager.
At most it will let me delete a file, but I can't add another one.
Even TWRP recovery won't let me do that.
I only noticed this problem here on Android 11.
On Android 10 (even on the A/B system) I still managed.
Does anyone have a proven working procedure?
I noticed that many file managers have problems reading and modifying files on /system partition since Android 11 update.
for instance Solid Explorer is showing corrupt filenames in /system, is unable to change files. The same with other root file explorers.
SOME filemanagers however seem to be working, like X-plorer and maybe in your case Total Commander (i didn't test). maybe they have been updated recently for some changes in Android 11 filesystem, or were built to handle it correctly from the beginning.
This is defenitely something that needs to be fixed on file explorer apps sides.
some more information https://android.stackexchange.com/q...t-see-contents-of-android-data-even-with-root
It's true. With the advent of Android 11, we need to get the file managers updated with the new environment.
So far my favorite thing to use is Root Explorer, and I also had to update it to the current version. It can then handle the new environment. Total Commander is similar.
EDIT: Appearances are deceiving. Even the latest versions of these tools won't actually insert a file into the system, at least not a working one. They can only create an empty file. So it's true that I don't know how to use it yet.
After further testing, I haven't found a file manager that has no problem adding anything to the system.
Even the X-plore didn't help.
The problem is not in the rights, but in the fact that the system folders show 0 free bytes!
So there is nowhere to store the data.
hm when there is 0 bytes free I think it's actually read-only (super)partition. it's still kinda tricky to handle things like this on A11.
what about: enable USB debugging + USB root debugging and then: adb push /system/stuff?
We have to try different ones. But as I wrote, it's not a rights issue. I copy the file to the system, but then it has size 0b and is empty.
File Manager on F-droid (com.github.axet.filemanager) seems to be very lightweight but functional root explorer. give it a try. maybe it works better than others. at least I could browse root stuff correctly

Media Folders Creation

Hello,
I have a Asus ROG Phone 3 and have a few questions.
Anytime I reboot my phone and go to check my internal storage, Android is automatically creating the following folders ASUS, Movies, Music, TwinApps, and Subtitles folder.
I assume this is just the default Behavior but does anyone know of a way to disable that or just to keep those folders deleted forever?
My phone is rooted, and I'm tech savvy as hell but I can't figure it out.
Anyone have a clue if the service/app that is remaking these folders is Android itself or somerhing from Asus?
I also recently switched to Android 12 and I noticed something strange, anytime I try to edit or access /sdcard/Android/OBB folder I can't edit anything in it, I can't copy or paste anything into that folder if I can even view it.
Mind you this is with root and using a file manager I've been using for years that I know works. Did something change in the background of A12?
Lastly does anyone know if there is a way to change the default save location for screenshots and/or DCIM camera folder?
Thanks
[
https://imgur.com/RuRm9hr
1) most of the folders are created by android Media scanner but at least one is Asus specific. in theory any app can create own folders, if allowed in permissions.
2) you need file explorer that is updated to support scoped storage so it can view media files from other apps, for example SD Maid.
3) in camera app itself one can switch storage location to MicroSD card. not sure about screenshots, though.

Categories

Resources