Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

CMWallpapers.apk question


  • Please log in to reply
4 replies to this topic

#1 shekki

shekki
  • Donators
  • 341 posts
  • LocationTacoma, Washington
  • Country:us
  • Device Model:HTC Glacier
  • MOD Version:CM Nightlies
  • Recovery Image:ClockworkMod

Posted 01 November 2010 - 06:15 PM

So I edited the CMWallpaper.apk by deleting one of the wallpapers I didn't want, however I noticed that now there is a blank box where the wallpaper was. Does anyone know how to get rid of that? I added another wallpaper to it but that didn't help.

#2 mojo_droid

mojo_droid
  • Members
  • 10 posts
  • Device Model:|3|
  • MOD Version:latest
  • Recovery Image:ClockworkMod

Posted 02 November 2010 - 11:20 AM

View Postshekki, on 01 November 2010 - 06:15 PM, said:

So I edited the CMWallpaper.apk by deleting one of the wallpapers I didn't want, however I noticed that now there is a blank box where the wallpaper was. Does anyone know how to get rid of that? I added another wallpaper to it but that didn't help.

I think you might have to get rid of the value for that wallpaper in the wallpaper.xml file.

#3 shekki

shekki
  • Donators
  • 341 posts
  • LocationTacoma, Washington
  • Country:us
  • Device Model:HTC Glacier
  • MOD Version:CM Nightlies
  • Recovery Image:ClockworkMod

Posted 03 November 2010 - 03:43 AM

View Postmojo_droid, on 02 November 2010 - 11:20 AM, said:

I think you might have to get rid of the value for that wallpaper in the wallpaper.xml file.

Do you have any idea how I can edit this xml file? If I can get rid of the wallpaper value on the xml file I could probably add different values for new wallpapers as well.

#4 mojo_droid

mojo_droid
  • Members
  • 10 posts
  • Device Model:|3|
  • MOD Version:latest
  • Recovery Image:ClockworkMod

Posted 03 November 2010 - 10:31 AM

View Postshekki, on 03 November 2010 - 03:43 AM, said:

Do you have any idea how I can edit this xml file? If I can get rid of the wallpaper value on the xml file I could probably add different values for new wallpapers as well.

decompile the cmwallpaper.apk file using apk manager.  this will allow you to easily edit the xml files. once you are done you can recompile the apk with the same tool.  but I am not sure if this is the solution, it is just a guess.  you can also get the source code for the apk since it is open source.

#5 Robert Catt

Robert Catt
  • Members
  • 1 posts

Posted 05 December 2011 - 03:49 PM

One way to do this is to give the new wallpaper the filename of the one you don't like then replace in in the apk with 7zip.  If you want the preview to work you also need no make a small version. it has the same filename with the addition of _small at the end.  It's less than ideal as the text description will be wrong and you once you replace all the ones you dislike you cant add new ones, but it does work.

I tried the other way, by decompiling.  There are a ton of xml files and I couldn't make much sense of it all.  I would like to know if anyone figured it out.