http://wiki.webos-internals.org/index.php?title=Patch_webOS_Modifying_a_Stock_App_While_Keeping_the_Original&feed=atom&action=historyPatch webOS Modifying a Stock App While Keeping the Original - Revision history2024-03-28T11:52:20ZRevision history for this page on the wikiMediaWiki 1.35.1http://wiki.webos-internals.org/index.php?title=Patch_webOS_Modifying_a_Stock_App_While_Keeping_the_Original&diff=4521&oldid=prevXorg: /* Author */2009-08-18T20:17:26Z<p><span dir="auto"><span class="autocomment">Author</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 20:17, 18 August 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l76" >Line 76:</td>
<td colspan="2" class="diff-lineno">Line 76:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Author=</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Author=</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>xorg <del class="diffchange diffchange-inline">- s[u|o]n god of borg</del></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>xorg</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Contributors=</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Contributors=</div></td></tr>
</table>Xorghttp://wiki.webos-internals.org/index.php?title=Patch_webOS_Modifying_a_Stock_App_While_Keeping_the_Original&diff=3665&oldid=prevHopspitfire at 08:53, 3 August 20092009-08-03T08:53:55Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 08:53, 3 August 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{template:patch}}</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Image:Modify-stock-app.jpg|right]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Image:Modify-stock-app.jpg|right]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Patch_webOS_Modifying_a_Stock_App_While_Keeping_the_Original&diff=3622&oldid=prevHopspitfire: Modifying a Stock App While Keeping the Original moved to Patch webOS Modifying a Stock App While Keeping the Original: webOS patch2009-08-03T08:44:25Z<p><a href="/wiki/Modifying_a_Stock_App_While_Keeping_the_Original" class="mw-redirect" title="Modifying a Stock App While Keeping the Original">Modifying a Stock App While Keeping the Original</a> moved to <a href="/wiki/Patch_webOS_Modifying_a_Stock_App_While_Keeping_the_Original" title="Patch webOS Modifying a Stock App While Keeping the Original">Patch webOS Modifying a Stock App While Keeping the Original</a>: webOS patch</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 08:44, 3 August 2009</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Patch_webOS_Modifying_a_Stock_App_While_Keeping_the_Original&diff=1436&oldid=prevHopspitfire at 22:57, 21 July 20092009-07-21T22:57:32Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 22:57, 21 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l46" >Line 46:</td>
<td colspan="2" class="diff-lineno">Line 46:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></nowiki></pre></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></nowiki></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Could also use title "Amazon 3G" if doing the [<del class="diffchange diffchange-inline">*</del>http://predev.wikidot.com/stock-application-mods Amazon 3G mod]. Can be anything as long as it's not a duplicate of another app in the launcher.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Could also use title "Amazon 3G" if doing the [http://predev.wikidot.com/stock-application-mods Amazon 3G mod]. Can be anything as long as it's not a duplicate of another app in the launcher.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>As an alternative to vi editor, if the device is connected as '''USB Drive''' you can edit the appinfo.json directly from your computer. Connecting the device as a USB Drive turns all device radios off, any SSH session will be dropped.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>As an alternative to vi editor, if the device is connected as '''USB Drive''' you can edit the appinfo.json directly from your computer. Connecting the device as a USB Drive turns all device radios off, any SSH session will be dropped.</div></td></tr>
</table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Patch_webOS_Modifying_a_Stock_App_While_Keeping_the_Original&diff=1435&oldid=prevHopspitfire: New page: right I have been able to copy a pre-existing app, rename it and keep the original in the launcher. Now able to launch either original or the modified app...2009-07-21T22:56:48Z<p>New page: <a href="/wiki/File:Modify-stock-app.jpg" title="File:Modify-stock-app.jpg">right</a> I have been able to copy a pre-existing app, rename it and keep the original in the launcher. Now able to launch either original or the modified app...</p>
<p><b>New page</b></p><div>[[Image:Modify-stock-app.jpg|right]]<br />
<br />
<br />
I have been able to copy a pre-existing app, rename it and keep the original in the launcher. Now able to launch either original or the modified app - both show up in the Launcher. Am also doing it from the mountable USB drive. This allows your mod apps to continue working even after the original has been updated from the App Catalog or through the Updates app.<br />
<br />
= Prerequisites=<br />
<br />
If not familiar with Linux or vi editor, see the [http://predev.wikidot.com/basic-linux-use Basic Linux Usage Guide].<br />
<br />
Your Pre must first be [[Portal:Accessing_Linux | rooted]].<br />
<br />
= Instructions=<br />
<br />
First setup the ability to launch the app from /media/internal (the USB drive). Props to dsevil.<br />
<br />
Edit /etc/palm/luna.conf and look for this line:<br />
<pre><nowiki>ApplicationPath=/usr/lib/luna/applications:/var/luna/applications:/var/usr/lib/luna/applications:/usr/palm/applications:/var/usr/palm/applications</nowiki></pre><br />
<br />
and add this to end of it:<br />
<pre><nowiki>:/media/internal/applications</nowiki></pre><br />
<br />
Execute the following command to make a new directory (if it doesn't already exist):<br />
<pre><nowiki>mkdir /media/internal/applications</nowiki></pre><br />
<br />
Now, as an example, perform the following to copy the Amazon Store app:<br />
<pre><nowiki><br />
cd /usr/palm/applications<br />
cp -rp com.palm.app.amazonstore /media/internal/applications<br />
cd /media/internal/applications/<br />
</nowiki></pre><br />
<br />
Mark modified apps with an 'x' before the app name to distinguish it from the original. Note the 'x' before appname.<br />
<br />
<pre><nowiki><br />
mv com.palm.app.amazonstore com.palm.app.xamazonstore<br />
cd *amazonstore<br />
vi appinfo.json <br />
<br />
(add x in title and xApp in id)<br />
<br />
{<br />
"title": "x Amazon MP3", <br />
"id": "com.palm.app.xamazonstore", <br />
# Keep other lines the same.<br />
}<br />
</nowiki></pre><br />
<br />
Could also use title "Amazon 3G" if doing the [*http://predev.wikidot.com/stock-application-mods Amazon 3G mod]. Can be anything as long as it's not a duplicate of another app in the launcher.<br />
<br />
As an alternative to vi editor, if the device is connected as '''USB Drive''' you can edit the appinfo.json directly from your computer. Connecting the device as a USB Drive turns all device radios off, any SSH session will be dropped.<br />
<br />
Using luna-send to refresh the Launcher panel<br />
<pre><nowiki><br />
sudo luna-send -n 1 palm://com.palm.applicationManager/rescan {}<br />
</nowiki></pre><br />
<br />
Alternatively, If you have the [[[adding-the-ipkg-repository |Optware Package Feed]]] reset Luna. When you cycle LunaSysMgr it will look like your device is rebooting but will boot a little faster.<br />
<pre><nowiki><br />
sudo /sbin/stop LunaSysMgr<br />
sudo /sbin/start LunaSysMgr<br />
</nowiki></pre><br />
<br />
<br />
Your new app should appear in your app list with both the original app and one ready to be modified. Press x in the Launcher to search for the new one. Now you can mount the app copy from Windows/Mac and use Windows/Mac based tools to edit. You can even edit the .html file in main app directory with Frontpage or other HTML editor on computer. Reboot or restart Luna for changes to take effect. Do this with virtually any existing app, internal or 3rd party. If the original apps are updated through the app catalog, you can still keep your isolated mod copies working. After a major Palm webOS release, you may need to ensure the luna.conf file still has the AppPath change.<br />
<br />
To copy any other pre-installed apps, grab them from... <br />
/usr/palm/applications (internal apps)<br />
/var/usr/palm/applications (3rd party apps)<br />
<br />
As always, please '''do not distribute code to others that isn't your own.''' Use this information at your own risk. '''Warning''': Beware of low level internal apps. I tried to copy the Phone app and ran into major issues with the two colliding.<br />
<br />
= Discuss=<br />
<br />
[http://forums.precentral.net/web-os-development/186473-how-modify-app-while-keeping-original.html Discuss this method on Pre Central]<br />
<br />
= Author=<br />
xorg - s[u|o]n god of borg<br />
<br />
= Contributors=<br />
dsevil (application path), <br />
<br />
= Demo=<br />
<br />
On the top-right is an example of the Amazon Store app, with both the original and mod versions appearing on launcher. Note the 'x' on the modified version.</div>Hopspitfire