Charging Sound not in media/sound/ui?

xzolteu

Senior Member
Nov 13, 2015
85
13
0
Lamont
Hi, I wanted to change charging sound of stock rom, cuz its so annoying, and i cant turn it off. So I wanted to change it, but ZTE is so cocky, that I m not able to find charging sounds in system/media/sounds/ui. I was able to change lock, unlock, touch and keyboard sounds, but charging ones are no wherw to be found. Does anyone know where is the file of charging sound in stock rom? (i wasnt able to find it in LineageOS as well, but on Xiaomi Redmi Note 4)
 

raystef66

Recognized Developer / Recognized Contributor
Jul 2, 2013
2,081
5,264
203
Hi, I wanted to change charging sound of stock rom, cuz its so annoying, and i cant turn it off. So I wanted to change it, but ZTE is so cocky, that I m not able to find charging sounds in system/media/sounds/ui. I was able to change lock, unlock, touch and keyboard sounds, but charging ones are no wherw to be found. Does anyone know where is the file of charging sound in stock rom? (i wasnt able to find it in LineageOS as well, but on Xiaomi Redmi Note 4)
They're not in media but under system/priv-app/SystemUI_ZTE/
Look into the apk under res/raw/
There you have your charging.ogg ;)
 
  • Like
Reactions: xzolteu

xzolteu

Senior Member
Nov 13, 2015
85
13
0
Lamont
They're not in media but under system/priv-app/SystemUI_ZTE/
Look into the apk under res/raw/
There you have your charging.ogg ;)
Ok, I copied systemui.apk from the location that you told me, then i replaced that charing.ogg. But now, when I copied it back (even from TWRP, or es file explorer), it feels like system dont see SystemUI.apk. The screen is totally black, and on first reboot I didnt have status bar. I fixed permissions, cleared chaches, and still nothing. Even if I copy back the original systemui.apk, its still the same. Im rocking your port of mifavor 5.0, do you know the solution how to properly install modified systemui.apk?
 

raystef66

Recognized Developer / Recognized Contributor
Jul 2, 2013
2,081
5,264
203
Ok, I copied systemui.apk from the location that you told me, then i replaced that charing.ogg. But now, when I copied it back (even from TWRP, or es file explorer), it feels like system dont see SystemUI.apk. The screen is totally black, and on first reboot I didnt have status bar. I fixed permissions, cleared chaches, and still nothing. Even if I copy back the original systemui.apk, its still the same. Im rocking your port of mifavor 5.0, do you know the solution how to properly install modified systemui.apk?
Most likely a signing problem or possible a clean flash needed.... (that is if you changed permissions right and so on....i cannot judge from here ;))
But as only res has to be modified i'd see no problem..
If you send me the ogg files you want to replace in the apk, i'll look into that and do a test myself.
 
Last edited:

Choose an username...

Senior Member
Oct 16, 2016
2,677
923
163
Most likely a signing problem or possible a clean flash needed.... (that is if you changed permissions right and so on....i cannot judge from here ;))
But as only res has to be modified i'd see no problem..
If you send me the ogg files you want to replace in the apk, i'll look into that and do a test myself.

i'm guessing you didn't change the permissions after putting it back, though, isn't it?
 

raystef66

Recognized Developer / Recognized Contributor
Jul 2, 2013
2,081
5,264
203
Glad it worked ! Needed more then a bit of permissions ;)
These chinese ones are more stubborn as other roms. Therefore i deodexed the SystemUI_ZTE.apk
ONLY WORKING ON V2.0.0B13 (SL!M) Mifavor5.0
Here is the deodexed file : https://androidfilehost.com/?fid=818070582850495598
Just extract it and replace existing in system/priv-app/SystemUI_ZTE/ and change to 644
And you'll have another "charging" tone ;)
 
  • Like
Reactions: xzolteu