• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] Change CyanogenMod 12 (CM12) Lock Screen Wallpaper

Did this work for you?


  • Total voters
    88
Search This thread

TheXGX

Senior Member
Jan 7, 2015
287
879
27
Bangalore
www.facebook.com
THIS GUIDE IS TESTED WORKING ON CYANOGENMOD 12 WITH THEME ENGINE ONLY.
Please do not post that this isn't working for you unless you have a ROM which has the CyanogenMod 12 theme engine installed.
It should theoretically work on all ROMs based off CM12 like CyanogenMod 12, GearCM12, AICP, Vanir, BlissPop, CyanideL, Candy5, Euphoria, Temasek, Resurrection Remix, Screw'd, Validus, Team UB, Dirty Unicorns and more!

Thanks to @eagleeyetom for the feature on 28th January, 2015!
DIem0i4.png


NEWS! A DEV HAS CREATED AN APP FOR THIS WITH ADDED FUNCTIONALITY! READ ON FOR MORE INFO!

I noticed a lot of posts on the threads of almost all ROMs based off of CyanogenMod 12 asking about how to change the lockscreen wallpaper without using an apk or anything in the theme engine. So I did some experimentation and have found a way to do it, and I'm gonna share it with you.

Please follow this carefully step by step or this may not work for you. If you ARE on a ROM based off of CyanogenMod 12, and you did these steps correctly and it still didn't work (I don't see why it wouldn't), post your device information and ROM details and I'll look into it.

Let's get started.

Things you'll need:
1. A ROM based off of CM12 (duh)
2. Root access.
3. A root file explorer.


I would recommend reading the F.A.Q. before you do this!

Here's a video tutorial I made to make things easier to understand:


Here are the steps:
  1. Download/place the wallpaper you need in your internal/external storage and remember it's location.
  2. Download, install and open a root file browser. (ES File Explorer recommended)
  3. Grant the file explorer root access.
  4. Go into the root directory and then go to data/system/users/0.
  5. Here, rename the "keyguard_wallpaper" to "keyguard_wallpaperOLD" to keep it as a backup.
  6. Now navigate to where you saved your new wallpaper, and rename it to "keyguard_wallpaper" REMEMBER TO REMOVE THE FILE EXTENSION.
  7. Now move this file to the location mentioned above (data/system/users/0/).
  8. Change permissions to -rwx------ Different ROMs might require different permissions. See Q6 of the F.A.Q.!
  9. Lock the phone now, and enjoy your new wallpaper. :D

UPDATE
A fellow XDA Member, @Miniprepumen, has created a simple and amazing app built to do what this guide says!
He's also added some features like built-in resizing, and more features are on the way. So if you want to do this the easy way, head on over to his thread, check out the app and leave a thanks! And if you can, donate to him for his efforts to motivate him further. :) Click HERE to go there!​


F.A.Q.
Q1: How do I revert to the old wallpaper?
A: Simple. Just delete the new one, and rename the backed-up wallpaper.

Q2: Will this work on ROMs other than the ones based off of CM12?
A: I do not know. I've only tested this on Resurrection Remix 5.3.1 which is based off of CM12 on a S4 GT-i9500. Give it a shot, and if it worked, let me know so I can update the OP.

Q3: Will this cause any bricks or bootloops if I mis-rename the files?
A: Absolutely no. It shouldn't. Never bricked mine. It just displays the last known wallpaper I think.

Q4: What happens if I just rename the existing one and don't replace it with anything?
A: The default wallpaper (the one you use for your home screen) should be displayed. (This is based on user reports)

Q5: There is no "keyguard_wallpaper" in the directory you mentioned.
A: Just paste the new renamed file, set permissions, and it will work. :)

Q6: Did everything. Wallpaper doesn't change.
A: Please try other permissions. Some users reported that they had to grant permissions to the system to make it stick on reboot. Granting all the users all the permissions would be your last resort.

Q7: Still doesn't work!
A: Please make sure you did everything correctly. Watch the video for more help. If even after you've verified that you've set the permissions right, renamed it properly, removed the extensions, then try doing a reboot. If it still doesn't work, then it means your ROM just doesn't support it. Ask the dev for help. :)

Q8: Can I have a live wallpaper?
A: Yes and no. So far, I have not figured out a way to set a live wallpaper for lockscreen and the home screen separately. Only way it is currently possible to have a live wallpaper for your lockscreen (afaik), is to have it for both your locks creen and the home screen. If you're okay with that, then simply set the live wallpaper as your home screen wallpaper, and then delete the "keyguard_wallpaper" file. It's kinda like Q4.



Watch the video if the steps seem complicated to you. If you're gonna tell other people about this, please link back to this thread. :)

Enjoy your new CM12 lockscreen wallpaper. :good:
 
Last edited:

entrasha

New member
Dec 3, 2014
3
1
Works with LG G3 D855 CM12 , but also need to change own & group to "System" otherwise not work.
 
Last edited:
  • Like
Reactions: meetg22

The Dork Knight Rises

Senior Member
Mar 20, 2014
1,188
1,125
Mumbai
samriddhabasu.github.io
+1 No file named "keyguard_wallpaper" on nightlies for Nexus 5

There is no such file in OPO CM12 too, but if you paste the image there, rename and set permissions, it will work. :)

There is no "keyguard_wallpaper" in "data/system/users/0" on JustArchi's UNOFFICIALCyanogenMod 12 for i9300

Did you guys even set a separate lockscreen wallpaper from the Themes app?
 

octibv

Senior Member
Mar 27, 2011
55
16
Another reason why I don't upgrade to CM12 yet... You need special workarounds even to change the lockscreen wallpaper. How basic is that?
I wouldn't expect further customisation options anytime soon, and disappointment is big enough.
 
  • Like
Reactions: PDXMatt

tcfaro

Senior Member
Mar 27, 2014
81
35
Grand Duos GT I9082

Thanks for your Help Friend ;) :good:
Works on Grand Duos GT I9082
 

Top Liked Posts

  • There are no posts matching your filters.
  • 109
    THIS GUIDE IS TESTED WORKING ON CYANOGENMOD 12 WITH THEME ENGINE ONLY.
    Please do not post that this isn't working for you unless you have a ROM which has the CyanogenMod 12 theme engine installed.
    It should theoretically work on all ROMs based off CM12 like CyanogenMod 12, GearCM12, AICP, Vanir, BlissPop, CyanideL, Candy5, Euphoria, Temasek, Resurrection Remix, Screw'd, Validus, Team UB, Dirty Unicorns and more!

    Thanks to @eagleeyetom for the feature on 28th January, 2015!
    DIem0i4.png


    NEWS! A DEV HAS CREATED AN APP FOR THIS WITH ADDED FUNCTIONALITY! READ ON FOR MORE INFO!

    I noticed a lot of posts on the threads of almost all ROMs based off of CyanogenMod 12 asking about how to change the lockscreen wallpaper without using an apk or anything in the theme engine. So I did some experimentation and have found a way to do it, and I'm gonna share it with you.

    Please follow this carefully step by step or this may not work for you. If you ARE on a ROM based off of CyanogenMod 12, and you did these steps correctly and it still didn't work (I don't see why it wouldn't), post your device information and ROM details and I'll look into it.

    Let's get started.

    Things you'll need:
    1. A ROM based off of CM12 (duh)
    2. Root access.
    3. A root file explorer.


    I would recommend reading the F.A.Q. before you do this!

    Here's a video tutorial I made to make things easier to understand:


    Here are the steps:
    1. Download/place the wallpaper you need in your internal/external storage and remember it's location.
    2. Download, install and open a root file browser. (ES File Explorer recommended)
    3. Grant the file explorer root access.
    4. Go into the root directory and then go to data/system/users/0.
    5. Here, rename the "keyguard_wallpaper" to "keyguard_wallpaperOLD" to keep it as a backup.
    6. Now navigate to where you saved your new wallpaper, and rename it to "keyguard_wallpaper" REMEMBER TO REMOVE THE FILE EXTENSION.
    7. Now move this file to the location mentioned above (data/system/users/0/).
    8. Change permissions to -rwx------ Different ROMs might require different permissions. See Q6 of the F.A.Q.!
    9. Lock the phone now, and enjoy your new wallpaper. :D

    UPDATE
    A fellow XDA Member, @Miniprepumen, has created a simple and amazing app built to do what this guide says!
    He's also added some features like built-in resizing, and more features are on the way. So if you want to do this the easy way, head on over to his thread, check out the app and leave a thanks! And if you can, donate to him for his efforts to motivate him further. :) Click HERE to go there!​


    F.A.Q.
    Q1: How do I revert to the old wallpaper?
    A: Simple. Just delete the new one, and rename the backed-up wallpaper.

    Q2: Will this work on ROMs other than the ones based off of CM12?
    A: I do not know. I've only tested this on Resurrection Remix 5.3.1 which is based off of CM12 on a S4 GT-i9500. Give it a shot, and if it worked, let me know so I can update the OP.

    Q3: Will this cause any bricks or bootloops if I mis-rename the files?
    A: Absolutely no. It shouldn't. Never bricked mine. It just displays the last known wallpaper I think.

    Q4: What happens if I just rename the existing one and don't replace it with anything?
    A: The default wallpaper (the one you use for your home screen) should be displayed. (This is based on user reports)

    Q5: There is no "keyguard_wallpaper" in the directory you mentioned.
    A: Just paste the new renamed file, set permissions, and it will work. :)

    Q6: Did everything. Wallpaper doesn't change.
    A: Please try other permissions. Some users reported that they had to grant permissions to the system to make it stick on reboot. Granting all the users all the permissions would be your last resort.

    Q7: Still doesn't work!
    A: Please make sure you did everything correctly. Watch the video for more help. If even after you've verified that you've set the permissions right, renamed it properly, removed the extensions, then try doing a reboot. If it still doesn't work, then it means your ROM just doesn't support it. Ask the dev for help. :)

    Q8: Can I have a live wallpaper?
    A: Yes and no. So far, I have not figured out a way to set a live wallpaper for lockscreen and the home screen separately. Only way it is currently possible to have a live wallpaper for your lockscreen (afaik), is to have it for both your locks creen and the home screen. If you're okay with that, then simply set the live wallpaper as your home screen wallpaper, and then delete the "keyguard_wallpaper" file. It's kinda like Q4.



    Watch the video if the steps seem complicated to you. If you're gonna tell other people about this, please link back to this thread. :)

    Enjoy your new CM12 lockscreen wallpaper. :good:
    5
    Try setting your permissions to "rwx r-- r--" :)

    i think i did correctly, i attached my screen pleae see and share your opinion

    Sent from my Nexus 5 using XDA Free mobile app
    4
    ....Is there something that can be done to force only the lockscreen to change?....
    in my case, there was no wallpaper or keyguard_wallpaper. i copied the files (i wanted as wallpapers) into the stated folder, renamed one to 'wallpaper' and the other to 'keyguard_wallpaper', changed permissions to -rwx------ and also changed 'owner' and 'group' as "system" for the files. i now have the wallpapers of my choice as lockscreen wallpaper and desktop wallpaper. hope that helps.
    4
    There is no "keyguard_wallpaper" in "data/system/users/0" on JustArchi's UNOFFICIALCyanogenMod 12 for i9300

    There is no such file in OPO CM12 too, but if you paste the image there, rename and set permissions, it will work. :)
    3
    Also change owner And Group as "System " for that file.. If wallpaper doesn't change...
    This method works for one plus one ...