5,600,919 Members 42,835 Now Online
XDA Developers Android and Mobile Development Forum

[Q] rooted NST - how to add images to internal wallpaper folder?

Tip us?
 
bobcdy
Old
#1  
Member - OP
Thanks Meter 0
Posts: 39
Join Date: Dec 2009
Default [Q] rooted NST - how to add images to internal wallpaper folder?

I'd like to change the wallpaper on the root u-tube home screen, but I don't see how one can access the internal folders. I'd like to be use adb push but I don't know the path for the 'Picture', or 'Wallpaper gallery Home' that are possible locations for adding the images.
 
Renate NST
Old
#2  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 699
Posts: 1,777
Join Date: Feb 2012
Location: Boston
You do mean the desktop wallpaper?
I'm boring. I just changed the default wallpaper to solid white.

In /system/framework/framework-res.apk
Replace /res/drawable-mdpi/default_wallpaper.png

To answer your original question: I don't know.
 
bobcdy
Old
#3  
Member - OP
Thanks Meter 0
Posts: 39
Join Date: Dec 2009
Thanks for the information; however being a complete beginner that does help me get a little bit closer to what I'd like to do but there is still much that I don't really understand. How do I access that location? And should I add my new image to the subfolder with a totally differently name, or should I rename the my image to that of the default.png and replace the old image?

If I adb push to the nook my image renamed to match the old wallpaper image, will that work?
 
bobcdy
Old
(Last edited by bobcdy; 30th April 2012 at 06:16 AM.)
#4  
Member - OP
Thanks Meter 0
Posts: 39
Join Date: Dec 2009
Default still trying to replace home image in rooted Nook ST

I have a question for someone who knows more than I about android systems. Thanks to Thank Meter 78 who pointed out the file I need to change in order to replace the home image is in

/system/framework/framework-res.apk

and that I need to replace in that apk

/res/drawable-mdpi/default_wallpaper.png

Will the following procedure work properly without screwing up my newly rooted Nook?

Using Root Explorer I copied the 'framework-res.apk', and saved it to my Nook sd card. Then copied that apk file to my windows xp computer and changed the extension to 'zip' and unzipped it. The png file thus is available for replacement by another image of identical size and name.

Will it be correct for me to rename the modified .zip extenson file containing a new default_wallpaper.png file back to its original .apk extension, copy/paste it to the sd card, insert the sd card into the Nook, and the using Root Explorer to copy the apk file and paste it back to the drawable-mdpi folder where it will replace the nook apk (being sure that I change the r/o to r/w permission for the folder, and change it back after the replacement)?

Could there be adverse effects of the replacement?
 
Renate NST
Old
#5  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 699
Posts: 1,777
Join Date: Feb 2012
Location: Boston
My friends all call me Renate...

Yes, that procedure works, correcting for your typo.

Unzip, replace PNG, zip, copy back to /system/framework/framework-res.apk
You don't need to set it back to r/o. It's better/easier to just reboot, preferably with ADB.

You should always backup at reasonable intervals and before major changes.
Heck, I've bricked my Nook a dozen times.
The Following User Says Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
bobcdy
Old
#6  
Member - OP
Thanks Meter 0
Posts: 39
Join Date: Dec 2009
Thanks Renate!
 
Renate NST
Old
#7  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 699
Posts: 1,777
Join Date: Feb 2012
Location: Boston
Ok, the actual answer is:

The gallery uses the mediastore images database.
The crawler can't find anything even if it's right under its nose.

The databases are stored in /data/data/com.android.providers.media/databases
There's internal.db and another db for each unique SD card inserted.

The crawler is equally lame finding MP3's also.
That's why both Music and Gallery say "no media".
 
ajislav
Old
#8  
Member
Thanks Meter 30
Posts: 72
Join Date: Apr 2011
Quote:
Originally Posted by Renate NST View Post
Ok, the actual answer is:

The gallery uses the mediastore images database.
The crawler can't find anything even if it's right under its nose.

The databases are stored in /data/data/com.android.providers.media/databases
There's internal.db and another db for each unique SD card inserted.

The crawler is equally lame finding MP3's also.
That's why both Music and Gallery say "no media".
1) I thought the original question was about u-tube (I guess "Youtube" ;))
2) ad gallery - I was always wondering how to make it see the JPGs I had as screensavers... Would you have any ideas how to fix this (i.e. make the crawler work)? Or maybe the other way round, how often is the crawler running? Would battery be improved if it was turned off/killed?
 
Renate NST
Old
#9  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 699
Posts: 1,777
Join Date: Feb 2012
Location: Boston
The Media Scanner service is what scans.
Normally it is activated on insertion of an SD card.
It does not run continuously.
It ignores directories with file in it called ".nomedia"

The MediaScannerConnection can be used to request scanning of a single file.
Level 8 API (we're 7) can request scanning of multiple files.

It seems to turn its nose up at files and not put them in its database.
The Following User Says Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
cbay
Old
#10  
Senior Member
Thanks Meter 19
Posts: 142
Join Date: Nov 2007
Quote:
Originally Posted by ajislav View Post
2) ad gallery - I was always wondering how to make it see the JPGs I had as screensavers... Would you have any ideas how to fix this (i.e. make the crawler work)? Or maybe the other way round, how often is the crawler running? Would battery be improved if it was turned off/killed?
Are you asking about having your own pics as screensavers?

I did that by connecting my NST to the PC, and creating a folder (one word name) under screensavers/ and copying the pics into that folder. It then shows up in the screensavers menu, and you can select it. The location from within the nook is /media/screensavers

--

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

TasGear: A Tasker Extension for the Samsung Galaxy Gear

With wearable technology taking center stage this year, one can only expect more … more

Intelligently Place Contacts on Your Home Screen with CallWho Widget

There are plenty of ways to get your contacts to show up on your … more

Control TWRP from within Android with TWRP Coordinator

You may recall that back when TWRP2 introduced a couple of years ago, it brought with … more