Adding apps to work on music lockscreen (root)

Search This thread

superior8888

Senior Member
Sep 6, 2012
560
124
Ok. So first you need root.

1. In root explorer (or similiar) navigate to /system/emui/oversea/xml

2. Edit hw_defaults.xml

3. Add yor stuff to this Line
string <white_music_for_keyguard="deezer.android.app;com.maxmpz.audioplayer;com.qobuz.music;com.soundcloud.android;com.bambuna.podcastaddict"/>

(Ive added podcastaddict for example).

Maybe its old but anyways. Have fun.

Skickat från min HUAWEI NXT-L29 via Tapatalk
 

jbmc83

Senior Member
Oct 12, 2011
3,833
1,858
Germany
GT-i9250
Samsung Galaxy S Plus I9001
omg, this is genius!!! ive been waiting for this for such a long time! thanks so much buddy! :D

btw, im on an AL-10 model and in my case the correct file was:

/system/emui/china/xml/hw_defaults.xml

the line u listed was not there in my case and your formatting was a bit off so i added:

<string
white_music_for_keyguard="de.zorillasoft.musicfolderplayer.donate" />

for my music player of choice, music folder player (highly recommended!)

thanks again for this :)
 
Last edited:

superior8888

Senior Member
Sep 6, 2012
560
124
omg, this is genius!!! ive been waiting for this for such a long time! thanks so much buddy! :D

btw, im on an AL-10 model and in my case the correct file was:

/system/emui/china/xml/hw_defaults.xml

the line u listed was not there in my case and your formatting was a bit off so i added:

<string
white_music_for_keyguard="de.zorillasoft.musicfolderplayer.donate" />

for my music player of choice, music folder player (highly recommended!)

thanks again for this :)
Ah i see. It was kind of an coincidence that i found it. Happy it worked for you too ?

Skickat från min HUAWEI NXT-L29 via Tapatalk
 
  • Like
Reactions: jbmc83

superior8888

Senior Member
Sep 6, 2012
560
124
after a reboot it works for me too but it would be nice to become a small banner for music controll and not a full screen control...
otherwise thanks for your work....xD
True i want that too.
What i do now is removing my music player, (spotify) , from that Line and use floatify to Control it on lockscreen.

So i recievie notifications as usual too.

25cc8a8c2bdaa699db78c1a7e4516702.jpg


Not Perfect but Works.

Skickat från min HUAWEI NXT-L29 via Tapatalk
 

Ephemera

Senior Member
Jan 18, 2014
400
515
If I recall correctly, the folder "oversea" is not there initially on AL10 software. You won't find the solution looking in that folder.

Edit:Maybe I was thinking about cust...
 
Last edited:

aldesal

Senior Member
Mar 8, 2016
51
9
This is GREAT! I managed to put Phonograph (wich is also great btw, if you haven't seent it, i sugest you look it up. One of the best music players for android) on my lock screen and looks and works just like the stock music app. You've made my life this little better.
 

PrimuSSaintS

Senior Member
Jul 28, 2014
91
4
Bruxelles
I'm sorry I might be the stupidest man on earth but I don't see that line in my file. The only line I see with "white" in it is "white_languages ..." do I need to add the whole line? also, could someone write the line I should add for spotify?

thanks a lot guys and sorry for my dumb question!
 

PrimuSSaintS

Senior Member
Jul 28, 2014
91
4
Bruxelles
read second post

Sent from my Huawei Mate 8 NXT-AL10

I would ... I and did ... but I don't have any "china" folder in the emui folder. :( I have a chinese phone with an international rom flashed.

EDIT: I guess you were pointing the second post for the line to add, my bad, didn't get it that way. I'll try to work it out, I just have to know how to format the line to include spotify.
 
Last edited:

PrimuSSaintS

Senior Member
Jul 28, 2014
91
4
Bruxelles
thats right, u got it ;)

look for the spotify folder in data/apps and use the name of that folder in the line

Sent from my Huawei Mate 8 NXT-AL10

Well ... I'm completely retarded ... I can't get it to work ... it seems to be com.spotify.music-1 but it doesn't work ... So I guess I'll have to pass on that one :( don't know why it doesn't work :(

EDIT: I just noticed that when I open the file with Root explorer and edit it, It allows me to save the files. Once I Open it again, the changes are gone. Am I doing something wrong?
 
Last edited:

PrimuSSaintS

Senior Member
Jul 28, 2014
91
4
Bruxelles
well...are u rooted? do u have write permissions in your file explorer?

Sent from my Huawei Mate 8 NXT-AL10

I am rooted :p I was using an apk of Root Explorer I found on xda (just by typing root explorer xda on Google). I then used Root Browser which allowed me to edit the file. I didn't work anyway, I tried multiple places where to put the line, I tried multiple layout. Here is my file :
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2009, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->

<string white_music_for_keyguard="com.spotify.music-1"/>
<resources>
<string settings.secure.default_input_method="com.nuance.swype.emui/com.nuance.swype.input.HuaweiIME"/>
<!--AR0002K5QJ begin -->
<integer settings.secure.fingerprint_gallery_slide="0"/>
<!--AR0002K5QJ end -->
<!-- BEGIN PN:DTS2015112404523,Modified by lWX285236, 2015/12/08 -->
<string white_languages="en_US,ar_EG,de_DE,bs_BA,es_ES,uk_UA,fr_FR,pt_PT,ru_RU,zh_CN,zh_TW,zh_HK,es_US,ca_ES,cs_CZ,da_DK,el_GR,hu_HU,pt_BR,it_IT,ja_JP,lt_LT,lv_LV,bg_BG,nb_NO,pl_PL,ro_RO,et_EE,sk_SK,sr_RS,sv_SE,tr_TR,th_TH,fi_FI,in_ID,mk_MK,sl_SI,ms_MY,vi_VN,hr_HR,nl_NL,hi_IN,ko_KR,en_GB,iw_IL,eu_ES,gl_ES,ka_GE,az_AZ,uz_UZ,km_KH,si_LK,ur_PK,my_MM,my_ZG" reset="true"/>
<!-- END PN:DTS2015112404523,Modified by lWX285236, 2015/12/08 -->
</resources>


I've tried :
  • <string white_music_for_keyguard="com.spotify.music-1"/>
  • <string
    white_music_for_keyguard="com.spotify.music-1"/>
  • <string white_music_for_keyguard="com.spotify.music"/>
  • <string
    white_music_for_keyguard="com.spotify.music"/>

I've also tried to put add the line after the <resources> with no better result. A reboot (which I did after every single edit of the file) did not change a single thing. I'm sad haha

Edit: btw, thanks for helping me, I much sound really noob to you; thanks again, I really appreciate it!
 

SkilesAwaRz

Senior Member
Jan 24, 2016
206
42
Hi, thanks for the tip, unfortunately it doesn't work for me (Honor 7 with EMUI 4, trying Neutron MP).
Just asking, is this limited to EMUI 4.1 or 5 ? :(
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Ok. So first you need root.

    1. In root explorer (or similiar) navigate to /system/emui/oversea/xml

    2. Edit hw_defaults.xml

    3. Add yor stuff to this Line
    string <white_music_for_keyguard="deezer.android.app;com.maxmpz.audioplayer;com.qobuz.music;com.soundcloud.android;com.bambuna.podcastaddict"/>

    (Ive added podcastaddict for example).

    Maybe its old but anyways. Have fun.

    Skickat från min HUAWEI NXT-L29 via Tapatalk
    5
    omg, this is genius!!! ive been waiting for this for such a long time! thanks so much buddy! :D

    btw, im on an AL-10 model and in my case the correct file was:

    /system/emui/china/xml/hw_defaults.xml

    the line u listed was not there in my case and your formatting was a bit off so i added:

    <string
    white_music_for_keyguard="de.zorillasoft.musicfolderplayer.donate" />

    for my music player of choice, music folder player (highly recommended!)

    thanks again for this :)
    1
    omg, this is genius!!! ive been waiting for this for such a long time! thanks so much buddy! :D

    btw, im on an AL-10 model and in my case the correct file was:

    /system/emui/china/xml/hw_defaults.xml

    the line u listed was not there in my case and your formatting was a bit off so i added:

    <string
    white_music_for_keyguard="de.zorillasoft.musicfolderplayer.donate" />

    for my music player of choice, music folder player (highly recommended!)

    thanks again for this :)
    Ah i see. It was kind of an coincidence that i found it. Happy it worked for you too ?

    Skickat från min HUAWEI NXT-L29 via Tapatalk
    1
    Edit: btw, thanks for helping me, I much sound really noob to you; thanks again, I really appreciate it!

    Put the new line (the exact name as displayed in /data) between the

    <resources> and
    </resources>

    and reboot :good: