View Single Post
Old 12-07-2009, 01:05 PM   #18
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
How to combine PRS Customizer and Books By Folder

1) Install PRS Customizer, prepare all your customizations and copy them to your SD card.

2) Edit file (SD Card)/files.505.1.1.00.18040/opt/sony/ebook/application/resources/applicationStart.xml (replace the first part of the path according to your reader's firmware version).

3) Near the end of the file you will see this code:
Code:
		<function id="initialized">
			USBDispatcher.doRegister(this.getWindow())
			this.getDevice().doProcessed(100);
			this.getDevice().enableBlueLED(true);
		</function>
4) Replace that code with this (stolen/lifted/adapted from kartu's excellent work):
Code:
		<function id="initialized">
			USBDispatcher.doRegister(this.getWindow())
			this.getDevice().doProcessed(100);
			this.getDevice().enableBlueLED(true);
			try {
				var path = "/Data/autorun.js";
				if(FileSystem.getFileInfo(path)) {
					var f = new Stream.File(path);
					try {
						var fn = new Function("target", f.toString(), path, 1);
						fn(this);
					} finally {
						f.close();
					}
				}
			} catch(ignore) {
			}
		</function>
5) Copy autorun.js and the folder addons and its contents from Kartu's Book By Folder ZIP file to the root of your reader's internal memory.

6) Continue flashing as you would with PRS Customizer (boot with SD card inserted, choose "5) Make a new image", then "6) Flash the image")

7) Reboot and you are done!
pepak is offline   Reply With Quote