[Nook Touch Android Development] traycold:
UPDATE 23/01/2012:

Added support for content on sd-card (BETA). Further details on this post.

UPDATE 03/01/2012:

WARNING

: some users reported troubles starting custom launcher and application after installation of this mod; a full backup before installation of this mod is strongly suggested!

UPDATE 27/12/2011:

Added custom shutdwown image mod.

UPDATE 18/12/2011:

Complete refactoring of Hack; now it's based on firmware 1.1.

Older firmware (1.0 and 1.0.1

no more supported

).

Hi all,

i made a modification on Nook Simple Touch to use, as screensaver, the cover of the current reading book (i.e. the last book opened in the stock reader application).

Of course, it's necessary that the book has a cover (i.e. the cover is shown in the library application); on contrary, the default screensaver will be displayed (i.e. "authors").

Usage

:

to activate the "current reading book cover screensaver: go to settings / screen / screensaver and select the new option, called "Current reading book image";

to set the custom shutdown image: copy an image called "shutdown.png" inside folder "screensavers" of Nook internal drive, when the Nook is connected with USB; the image "shutdownLowBattery.png" is displayed in case the Nook turns off due to low battery.

If the images are not found, the default ones are used.

Thanks to:

XorZone for it's really useful modification "Edit n/reading now/side btns/RecentApps+ActivityPicker+ForceOrient";

WARNING: as usual, modifying system files you may risk to brick your Nook, unless you know what you are doing. You are strongly advised to make a full backup before proceeding. I don't take any responsibility if you decide to apply this mod.

WARNING-2: this modification could only be appied on firmware 1.1 .

Installation

:

download and unpack one of the attached files:

screensaver-hack-110-xor.zip in case you are using XorZone mod to improve button mappings etc..;

screensaver-hack-110.zip otherwise (i.e.: you are just using plain firmware from B&N);

verify that the archive you downloaded contains these 4 files:

android.policy.jar [needed only for "current book cover screensaver"];

services.jar [needed only for "current book cover screensaver"];

Settings.apk [needed only for "current book cover screensaver"];

framework.jar [needed only for "custom shutdown image"];

please consider that if you want to apply just one of the 2 modification included, you may limit the execution of next steps just to the relevant files as listed above;

(optional) make backup of original files, in case of problems with the modded ones (in case you revert to original files, remember to set the permissions of the original files, and delete the dalvik-cache)

remount system partition r/w

adb shell mount -o rw,remount -t ext2 /dev/block/mmcblk0p5 /system

copy the downloaded files to Nook

adb push android.policy.jar /system/framework
adb push services.jar /system/framework
adb push framework.jar /system/framework
adb push Settings.apk /system/app

change the permission

adb shell chmod 644 /system/framework/android.policy.jar
adb shell chmod 644 /system/framework/services.jar
adb shell chmod 644 /system/framework/framework.jar
adb shell chmod 644 /system/app/Settings.apk

delete dalvik-cache

adb shell rm /data/dalvik-cache/system@framework@services.jar@classes.dex
adb shell rm /data/dalvik-cache/system@framework@android.policy.jar@classes.dex
adb shell rm /data/dalvik-cache/system@framework@framework.jar@classes.dex
adb shell rm /data/dalvik-cache/system@app@Settings.apk@classes.dex

delete packages.xml [needed only for "current book cover screensaver"] (it will be regenerated at next boot; optionally make a backup also of this file, in case of troubles)

adb shell rm /data/system/packages.xml

(optional) due to packages.xml regeneration, it's possible (in my case it occurred) that now when you turn on the NST, the demo mode starts automatically; in any case, it's turned off as soon as you click any button, so it doesn't make any harm; but, if you want, you can simply delete the apk to get rid of it:

adb shell rm /system/app/DemoMode.apk

reboot your Nook

adb reboot

Thanks to user persichini, it's also available an alternative installation guide using RootExplorer directly from Nook (i.e. no need of ADB commands): in any case, please take into account that the same considerations about the relevance of modified files (in case you only want to install either "current book cover screensaver" or "custom shutdown image").

In case of issue, please provide the logcat log. You can redirect the log to a file (logcat.log) with the ADB command (launch it when Nook is booting to have all useful info):

adb logcat > logcat.log

Hit Ctrl+C to stop logging.

Hope you will enjoy it!

PS: as soon as i will have time, i will post sources, so you can build the mod by yourself (meanwhile, if you need them, just decompile and compare to original files of firmware 1.1 ;) )

PS2: attached to this message you can also find 2 nice possible shutdown / lowBattery images.