- 19 Apr 2014
- 3,557
- 332
Hello together,
I have a MI11 Ultra (weekly 21.5.20 - clean install) and I am not able to setup AND play a custom ringtone (*.mp3 and *.ogg)
I can choose a custom ringtone (locale & online) but the phone is not playing it when I get a call. Its playing an old default tone.
Same for alarms & notifications. If I choose / add the ringtone, I can play & hear the ringtone
The default ringtones from MIUi are stored in "\system\media\audio\...\" -> folder: rwxr-xr-x and file: rw-r--r--
The online or custom ringtones are stored in "\sdcard\MIUI\...\" -> folder: rwx------ and file: rw-------
[Edit] - with the help from @Poney70 I have corrected the permissions -> the problem exists already.
The system table looks quiet good, the entries are there but they are not playing:
<k>ringtone</k><v>file:///storage/emulated/0/MIUI/.ringtone/mark.mp3</v>
<k>ringtone_sound_slot_1</k><v>file:///storage/emulated/0/MIUI/.ringtone/mark.mp3</v>
<k>ringtone_sound_slot_2</k><v>file:///storage/emulated/0/MIUI/.ringtone/2011techno.1.mp3</v>
Nothing is working for a custom ringtone. If I choose one of the internal default ringtones from miui, it is working
But after some logcat investigations, here we go ...
The permissions of "/data/system/theme_magic" is the issue.
So I have manually deleted the folder "theme_magic".
While setup a custom ringtone the folder will be recreated with correct permissions.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[Fix]: TWRP Module
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Run this TWRP Module and you should be able to choose your own ringtones.
Credits for the cool ScriptBody goes to @Poney70 -> Thank you very much ! Mount data in twrp if it is not mounted already!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[Workaround]: MagiskModule
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Copy ringtomes to "\system\media\audio\ringtones"
Now I can choose the ringtones from the miui default ringtones AND the phone is playing them if I get a call / alarm / notification
Here is the link for the MagiskModule
To use yours and not my ringtones copy your tones into the zip-file and install with magisk
Use the Tool "Zedge" from Playstore to set a custom ringtone:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
choose your ringtone and set it
Happy weekend, regards Kater
I have a MI11 Ultra (weekly 21.5.20 - clean install) and I am not able to setup AND play a custom ringtone (*.mp3 and *.ogg)
I can choose a custom ringtone (locale & online) but the phone is not playing it when I get a call. Its playing an old default tone.
Same for alarms & notifications. If I choose / add the ringtone, I can play & hear the ringtone
- First it was not possible to choose a custom ringtone with filemanager, so I have downloaded "mi file manager" from playstore (now I have two of them)
- and now I can choose filemanager while setup a custom ringtone
- I have selected in settings ringtones and activated them (music, filemanger, audio files, recorder, tones) I have tried all of them
- I have copied the ringtones in the folder "ringtones"
- I have cleared the cache / data in themes / phone
- I have selected other themes
- I have configured in themes the custom ringtone
- I have checked the permissions of the folders (rwx) / apps (storage)
- I have deletet the data / cache of the Permission app
The default ringtones from MIUi are stored in "\system\media\audio\...\" -> folder: rwxr-xr-x and file: rw-r--r--
The online or custom ringtones are stored in "\sdcard\MIUI\...\" -> folder: rwx------ and file: rw-------
[Edit] - with the help from @Poney70 I have corrected the permissions -> the problem exists already.
The system table looks quiet good, the entries are there but they are not playing:
<k>ringtone</k><v>file:///storage/emulated/0/MIUI/.ringtone/mark.mp3</v>
<k>ringtone_sound_slot_1</k><v>file:///storage/emulated/0/MIUI/.ringtone/mark.mp3</v>
<k>ringtone_sound_slot_2</k><v>file:///storage/emulated/0/MIUI/.ringtone/2011techno.1.mp3</v>
But after some logcat investigations, here we go ...
The permissions of "/data/system/theme_magic" is the issue.
So I have manually deleted the folder "theme_magic".
While setup a custom ringtone the folder will be recreated with correct permissions.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[Fix]: TWRP Module
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Run this TWRP Module and you should be able to choose your own ringtones.
Credits for the cool ScriptBody goes to @Poney70 -> Thank you very much ! Mount data in twrp if it is not mounted already!
TWRP_Fix_MIUI_Custom_Ringtones_v1.3.zip
drive.google.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[Workaround]: MagiskModule
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Copy ringtomes to "\system\media\audio\ringtones"
Now I can choose the ringtones from the miui default ringtones AND the phone is playing them if I get a call / alarm / notification
Here is the link for the MagiskModule
CustomRingtone.zip
drive.google.com
- copy your ring tones into the zip-folder -> system\media\audio\ringtones
- copy your alarm tones into the zip-folder -> system\media\audio\alarms
- copy your notification tones into the zip-folder -> system\media\audio\notifications
Use the Tool "Zedge" from Playstore to set a custom ringtone:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- with this tool you can setup your ringtones directly from the tool
- using the MIUI sound settings, click custom and choose Zedge instead of filemanager, music ...
choose your ringtone and set it
Happy weekend, regards Kater
Last edited: