View Single Post
Old 02-12-2013, 10:52 AM   #1
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Sew on a new menu of buttons.

Everyone is a noob at some point in this game, so look at a 'worked example' first.

File layout (v.0.3.1):
Code:
*/documents
    KindleLauncher-2.0.azw2
*/extensions
    /helper
        config.xml
        menu.jason
        /bin
            411.sh
            kill-kterm.sh
            setorientation.sh
            ssallow.sh
            ssprevent.sh
            start_update.sh
            usbnetwork.sh
File contents, /extensions/helper/config.xml:
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<extension>
    <information>
        <name>Helper</name>
        <version>0.0</version>
        <author>Ixtab Twobob</author>
        <id>helper</id>
    </information>
    <menus>
        <menu type="json" dynamic="true">menu.json</menu>
    </menus>
</extension>
File contents, /extensions/helper/menu.jason:
PHP Code:
{
    
"items": [
        {
        
"name""Helper",
        
"priority"0,
        
"items": [
            {
"name""BEGIN: Run Grayed Install""priority"1"action""bin/start_update.sh"},
            {
"name""Start/Stop UsbNetworking""priority"2"action""bin/usbnetwork.sh"},
            {
"name""PREVENT: ScreenSavers""priority"10"action""bin/ssprevent.sh"},
            {
"name""ALLOW: ScreenSaver:""priority"11"action""bin/ssallow.sh"},
            {
"name""711 Page: (Network Info)""priority"52"action""bin/411.sh""params""711"}
        ]
        }
    ]

File contents, /extensions/helper/bin/start_update.sh
PHP Code:
#!/bin/sh
lipc-set-prop com.lab126.ota startUpdate 1 
A nice, regular, file layout.
Now, see if I can duplicate that for the BBB extension.
knc1 is offline   Reply With Quote