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

Did this work for you?


  • Total voters
    88
Search This thread

m0han

Senior Member
....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.
 

Teracotta

Senior Member
Jun 26, 2015
350
42
I don't see it but I also don't have a separate lockscreen wallpaper from the main screen. I want a live wallpaper on the main but a static on lock. I'm using 12.1, seranotexx Samsung Galaxy S4 Mini. No keyguard_wallpaper in users/0 except the one I put there.

Setting yes to group and system changes the permission look...you can't have -rwx---- while changing group etc.
 

Dekz

Senior Member
Jun 1, 2011
141
61
For the life of me I can't get my Live Wallpaper to show on the Lock Screen.

I've set the Live Wallpaper for my Home Screen, but my Lock Screen is still the stock blurred overlay of whatever the last thing open on my phone was. I'm not sure if this lock screen is specific to the OnePlus One, or if it standard Lollipop?

In any case, I'm still not seeing my Live Wallpaper on the Lock Screen even after deleting keyguard_wallpaper

I REALLY want this Live Wallpaper on my lock screen, any ideas?
 

Master Cylinder

Senior Member
Oct 31, 2013
1,262
534
Albuquerque
This worked perfectly on my Verizon SGS3, AICP nightlies of cm12.1. though the app referred to does not.

Does anybody know how to do the same thing with notification wallpaper?
 
Last edited:

alexeei

Senior Member
Jul 2, 2008
283
215
I have cm12.1 and make simple script with Tasker, that change screen wallpaper every time, after screen unlocked. It start by Event screen unlocked, first step-copy file with random name from folder with images to temp folder with changing name to keyguard_wallpaper. Second step-move file from temp folder to the path from OP with root,( copy file without temp folder with root not working for me). And first time i set permissions to 777, not changing owner and group, and it works very well. But after 2 days it suddenly stop working-file moved correctly, but wallpaper not changed, it change only after reboot... May be it's way to change permission from tasker? (I think only permissions may stop work)
Ps It seems i solve not working-in the file keyguard_wallpaper_info.xml was set wrong width of wallpaper-1920 instead of 1080. When i set it to correct value, all works with permission rw-rw-r and owner root and group sd-card-write. And if somebody need, i can upload my tasker task for changing wallpaper every time after unlock,so every tome you see new wallpaper :)
 
Last edited:
  • Like
Reactions: Master Cylinder

Tailwind14

Member
Aug 30, 2012
25
4
Google Pixel 8 Pro
Missing keyguard_wallpaper file

Thanks for the thorough tutorial, although I can't seem to get it to work. I attached a screenshot for my set up. Is there something I'm doing wrong? The folder had no keyguard_wallpaper, I had to throw one in myself.


I had to do a reload of CM2I3 via fastboot. When I finished I do have CM2I3 working; but there is not keyguard_wallpaper in the appropriate folder. There is also not choice for a lock-screen within the Security settings. Where can I get a proper keyguard_wallpaper to place within that folder?
 

Master Cylinder

Senior Member
Oct 31, 2013
1,262
534
Albuquerque
I had to do a reload of CM2I3 via fastboot. When I finished I do have CM2I3 working; but there is not keyguard_wallpaper in the appropriate folder. There is also not choice for a lock-screen within the Security settings. Where can I get a proper keyguard_wallpaper to place within that folder?
Just put your image in there and name it that. That's all. Permissions work 777 on my SGS3.

PS - Since I have no idea what CM213 is I can't say for sure that it will work.
 
  • Like
Reactions: Tailwind14

tvizzle

New member
Jan 4, 2016
1
1
different lockscreen/wallpaper working for xiaomi mi4i

Following the steps below I was successfully able to change the lock screen static image, after already changing the standard wallpaper through default "set as" steps in the gallery.

One thing that's worth noting for the mi4i is the "keyguard_wallpaper" file is actually named "keyguard_wallpaper_info" in the /sytem/users/0 directory by default - ignore this and rename the new wallpaper you just brought into the directory (step 6) "keyguard_wallpaper" (be sure to remove the extension) and it should be all good.

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/).

Cheers,
T
 
  • Like
Reactions: TheXGX

gee.dunkin

Senior Member
Jan 6, 2015
131
29
Melbourne
OnePlus One
OnePlus 3T
Its worth mentioning that you need to delete the associated xml file as well. It will be regenerated to suit your new wallpaper when the device is rebooted. This may have been mentioned above however I didn't have time to read through 14 pages.

Working on Oneplus One Sultan ROM 12.1.

Also if you want to get rid of the lockscreen tint there is an exposed module called Bright Lockscreen that works like a charm.
 

Attachments

  • 1458958971151.jpg
    1458958971151.jpg
    43.1 KB · Views: 120

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 ...