View Single Post
Old 12-16-2011, 04:06 PM   #1
yifanlu
Kindle Dissector
yifanlu can program the VCR without an owner's manual.yifanlu can program the VCR without an owner's manual.yifanlu can program the VCR without an owner's manual.yifanlu can program the VCR without an owner's manual.yifanlu can program the VCR without an owner's manual.yifanlu can program the VCR without an owner's manual.yifanlu can program the VCR without an owner's manual.yifanlu can program the VCR without an owner's manual.yifanlu can program the VCR without an owner's manual.yifanlu can program the VCR without an owner's manual.yifanlu can program the VCR without an owner's manual.
 
Posts: 662
Karma: 170717
Join Date: Jul 2010
Device: Amazon Kindle 3
Lightbulb GUI Launcher for Kindle Touch

This Kindle Touch (only) mod adds a new menu option "Launcher" to the menu on the home screen and the reader screen (when you press the "Menu" button). When you choose the "Launcher" menu item, you can presented with a list of customizable items with customizable actions. Using either Java or JSON, you can easily add items to this menu. You can add items that run shell commands/scripts, items that run Java code, or submenus that contain more items. To see how to add your own items, check out the two examples I've provided. Also, check the Javadocs (http://yifanlu.github.com/KindleLauncher/), the classes "ExtensionsLoader", "JSONMenu", and "Menuable" provides some insight to what to put in config.xml file and the menu files. (Also read this post for the java system: http://www.mobileread.com/forums/sho...34&postcount=6)

Included menu extensions:
-Change screen orientation (orientation changes show up in browser and reader only)
-Turn usbnetwork on/off (the option text does not change if you turn usbnet on/off without using the launcher)

Download
http://yifan.lu/p/kindlelauncher/

Updated version for Firmwares 5.1.0-5.1.2
Download here.


Archived content:
===================================

Since we no longer have a keyboard on the Kindle Touch, it's a bit difficult to launch scripts and such. So, I decided to make a GUI launcher that hooks onto the menu system.



Now what I need are input from developers for what features they want in something like this.

To give an idea of what is to be implemented, here's a sample config file:
http://pastebin.com/EEPrSbDY
and a sample JSON menu:
http://pastebin.com/aTZ9Xf5B

I don't want to do an extensive package management system right now, because that's too much work, but I don't want to make something that limits developers from doing what they want. I also want to make sure hacks installed should not need to make their own startup scripts and hooks.

After taking a look at many of the current Kindle hacks that could be ported to the touch, I figured that most only do one or more of the following:
1) Start a daemon on startup/stop it at shutdown
2) Bind mounts certain files/folders on startup
3) Launch a kindlet
I think for those things, what I have is enough. However, I would like examples (either ideas or actual hacks) of things that would require more features to do.

Oh, and finally, I am only targeting Kindle Touch with this, as the Kindle 4 and below's java code is obfuscated and I don't have an older device to test with anymore. Also, here's the source code for the WIP, note that it won't run without some modifications yet: https://github.com/yifanlu/KindleLauncher

Last edited by ixtab; 01-04-2013 at 06:08 PM. Reason: Added link to version for newer firmwares
yifanlu is offline   Reply With Quote