03/25/2010, 12:17 AM
|
#1 (permalink) |
|
Member
![]() ![]() Join Date: Oct 2009
Posts: 1,239
Likes Received: 2
Thanks: 175
Thanked 83 Times in 71 Posts
|
so, by default, the developer mode app/preferences icon is hidden. it would be cool if i could hide any icon like that..for all those adult apps i have yet to download
![]() if i knew how, i would add this option to the "delete app" menu that pops up when i tap the icon while holding the orange/option button. further, it would be cool if i could assign tag(s) in that same menu so that the app will pop up when i type the tag into universal search. maybe the tag could replace the app name for finding it in universal search. |
03/25/2010, 11:54 AM
|
#2 (permalink) |
|
Member
![]() ![]() Join Date: Oct 2007
Location: Northport, NY
Posts: 610
Likes Received: 4
Thanks: 448
Thanked 133 Times in 89 Posts
|
Both of those are possible within the appinfo.json file. All the "Hide [Application]" patches simply add "visible": "false", to the file.
Also, i don't remember the exact usage off the top of my head, but there is a way to give multiple 'tags' per app. ie: SMS, Text, Messaging could all point to the Messaging App. |
03/25/2010, 12:03 PM
|
#3 (permalink) | |
|
Member
![]() Join Date: Nov 2009
Location: Wisconsin
Posts: 942
Likes Received: 8
Thanks: 413
Thanked 1,298 Times in 369 Posts
|
Quote:
Code:
"keywords": ["YOUR", "TAGS", "HERE"] .
__________________
a.k.a. Josh... Please don't forget your thanks button. --- Appreciate my efforts? -- Donate?Various patches I've worked on: Faster Cards|Emoticons|Shake Reload|Default Call Log|Call Log Styling|Msg Count|New Events|DM Media Vol|Megamix+MediaVol|3G icon|Gmaps fullscreen|Msg Greeting/Sig|Send Img Msg|No Ans Tstone|Dpad on Call|Vid Delete Btns|AutoSpeaker via ProxSensor |
|
03/25/2010, 12:36 PM
|
#4 (permalink) |
|
Member
![]() Join Date: Nov 2009
Location: Wisconsin
Posts: 942
Likes Received: 8
Thanks: 413
Thanked 1,298 Times in 369 Posts
|
If you really wanted to hide something and be able to unhide it later, you'd have to do two things.
1. Change the appinfo.json as suggested by Veritas06, so the app is hidden. 2. Patch the global-search-assistant.js to use the kEasterApp variable for whatever apps you decide to hide. It's right at the beginning of the file...Here's an example of what should work: Code:
var kEasterStrings = ["STRING1", "STRING2"];
var kEasterApp = {
{
title: 'APP1 TITLE',
icon: 'PATCH TO APP1 ICON', //to be found in the app's main folder
id: 'NAME OF THE APP1s MAIN FOLDER',
params: {}
},
{
title: 'APP2 TITLE',
icon: 'PATCH TO APP2 ICON', //to be found in the app's main folder
id: 'NAME OF THE APP2s MAIN FOLDER',
params: {}
}
};
.
__________________
a.k.a. Josh... Please don't forget your thanks button. --- Appreciate my efforts? -- Donate?Various patches I've worked on: Faster Cards|Emoticons|Shake Reload|Default Call Log|Call Log Styling|Msg Count|New Events|DM Media Vol|Megamix+MediaVol|3G icon|Gmaps fullscreen|Msg Greeting/Sig|Send Img Msg|No Ans Tstone|Dpad on Call|Vid Delete Btns|AutoSpeaker via ProxSensor |
03/25/2010, 03:31 PM
|
#5 (permalink) |
|
Member
![]() ![]() Join Date: Oct 2007
Location: Northport, NY
Posts: 610
Likes Received: 4
Thanks: 448
Thanked 133 Times in 89 Posts
|
Thanks xanthinealkaloid. As i posted my simple "edit the appinfo.json" i was thinking about the Developer Mode Icon & exactly how the Konami Code pulled that up.
Thanks for the info. |
03/25/2010, 07:32 PM
|
#7 (permalink) | |
|
Member
![]() Join Date: Nov 2009
Location: Wisconsin
Posts: 942
Likes Received: 8
Thanks: 413
Thanked 1,298 Times in 369 Posts
|
Quote:
.
__________________
a.k.a. Josh... Please don't forget your thanks button. --- Appreciate my efforts? -- Donate?Various patches I've worked on: Faster Cards|Emoticons|Shake Reload|Default Call Log|Call Log Styling|Msg Count|New Events|DM Media Vol|Megamix+MediaVol|3G icon|Gmaps fullscreen|Msg Greeting/Sig|Send Img Msg|No Ans Tstone|Dpad on Call|Vid Delete Btns|AutoSpeaker via ProxSensor |
|
04/26/2010, 11:20 AM
|
#9 (permalink) |
|
Member
![]() Join Date: Mar 2010
Posts: 15
Likes Received: 0
Thanks: 6
Thanked 3 Times in 3 Posts
|
Has anyone tried editing the kEasterApp variable to allow multiple apps? I was able to replace the dev mode, but when I tried to add another app, the launcher doesn't work anymore. Any thoughts?
I know that each individual app works alone, but just not together. Code:
var kEasterApp = {
{
title: 'Developer Mode Enabler',
icon: '/usr/palm/applications/com.palm.app.devmodeswitcher/icon.png',
id: 'com.palm.app.devmodeswitcher',
params: {}
},
{
title: 'Developer Mode Enabler',
icon: '/media/cryptofs/apps/usr/palm/applications/org.lds.gospellibrary/images/icon.png',
id: 'org.lds.gospellibrary',
params: {}
}
};
|
06/01/2010, 12:42 PM
|
#10 (permalink) |
|
Member
![]() Join Date: Mar 2010
Posts: 15
Likes Received: 0
Thanks: 6
Thanked 3 Times in 3 Posts
|
The only way I was able to do this, was to create new variables. If you make your own variables similar to kEasterApp and kEasterStrings that have the words you want to type and the app info. If you search for kEaster, you will find an "if" statement that actually finds the app you're looking for. I was able to put an "else if" after that for whatever program I wanted to open.
|
07/15/2010, 01:27 PM
|
#11 (permalink) | |
|
Member
![]() Join Date: Jul 2010
Location: Los Angeles, CA
Posts: 425
Likes Received: 0
Thanks: 41
Thanked 125 Times in 82 Posts
|
Quote:
I realize this is an old thread... but perhaps bumping it to the top will catch someones attention. Has anyone gotten this to work? Can you show me a bit a capture of your code working? Ive tried all three methods, its possible I have my syntax wrong... but im not finding a decent example to work from. |
|
07/15/2010, 05:47 PM
|
#12 (permalink) |
|
Member
![]() Join Date: Jul 2010
Location: Los Angeles, CA
Posts: 425
Likes Received: 0
Thanks: 41
Thanked 125 Times in 82 Posts
|
Ive managed to break the global-search-assistant.js file down to basically two relevant spots in the code that deal with calling the Dev Mode Enabler from universal search (noted from above... but I spent a few hours looking through it line by line for any other references). Here are snippets of the original code... note I added a third keyword to kEasterStrings variable.
Code:
var kEasterStrings = ["upupdowndownleftrightleftrightbastart", "webos20090606", "dev"];
var kEasterApp = {
title: 'Developer Mode Enabler',
icon: '/usr/palm/applications/com.palm.app.devmodeswitcher/icon.png',
id: 'com.palm.app.devmodeswitcher',
params: {}
};
Code:
this.searchAppsReq = new Mojo.Service.Request('palm://com.palm.applicationManager', {
method: 'searchApps',
parameters: {'keyword': t},
onSuccess: this.handleSearchAppResults.bind(this),
onFailure: this.handleSearchAppResults.bind(this)
});
if (kEasterStrings.indexOf(t) !== -1) {
this.searchApps.push(kEasterApp);
}
Code:
var kEasterStrings = ["upupdowndownleftrightleftrightbastart", "webos20090606", "dev"];
var canuck = ["hidden", "internalz", "canuck"];
var kEasterApp = {
title: 'Developer Mode Enabler',
icon: '/usr/palm/applications/com.palm.app.devmodeswitcher/icon.png',
id: 'com.palm.app.devmodeswitcher',
params: {}
};
var canuckApp = {
title: 'Internalz',
icon: '/media/cryptofs/apps/usr/palm/applications/ca.canucksoftware.internalz/icon.png',
id: 'ca.canucksoftware.internalz',
params: {}
};
Code:
this.searchAppsReq = new Mojo.Service.Request('palm://com.palm.applicationManager', {
method: 'searchApps',
parameters: {'keyword': t},
onSuccess: this.handleSearchAppResults.bind(this),
onFailure: this.handleSearchAppResults.bind(this)
});
if (kEasterStrings.indexOf(t) !== -1) {
this.searchApps.push(kEasterApp);
}
else
{ if (canuck.indexOf(t) !== -1) { this.searchApps.push(canuckApp);
}
},
|
08/15/2010, 04:32 PM
|
#13 (permalink) |
|
Member
![]() Join Date: Sep 2009
Location: Miami, FL
Posts: 640
Likes Received: 2
Thanks: 206
Thanked 4,294,967,295 Times in 40 Posts
|
has any improvement been made to this? Bluewanders got very close, but it appears that doubts still exist.
Some of us have cleaned up our launchers a lot by adding visible: false to the .json files of unwanted apps (bluetooth, tasks, location, help, device info, etc). But it would be remarkable to be able to pull them up in univ search. I can confirm that if visible is false, univ search WILL NOT find the app. i thank in advance
__________________
![]() Sprint Pre- UK Screenstate 500/1ghz Mode Switcher--RULES !!! Advanced preferences by Sconix Lots of patches |
08/15/2010, 05:44 PM
|
#14 (permalink) | |
|
Member
![]() ![]() Join Date: Aug 2007
Location: Nashville
Posts: 287
Likes Received: 0
Thanks: 68
Thanked 58 Times in 42 Posts
|
Quote:
Hope this is useful. FYI this code will have to be manually removed from global-search-assistant.js prior to any OTA updates. Rob
__________________
Rob Robinson Treo 600 >> Treo 650 >> Treo 755p >> Palm Pre |
|
08/15/2010, 07:42 PM
|
#15 (permalink) |
|
Member
![]() Join Date: Sep 2009
Location: Miami, FL
Posts: 640
Likes Received: 2
Thanks: 206
Thanked 4,294,967,295 Times in 40 Posts
|
thanks a lot Rob. Big help which I will play with tomorrow.
Where does that code go? In any specific section of the file?
__________________
![]() Sprint Pre- UK Screenstate 500/1ghz Mode Switcher--RULES !!! Advanced preferences by Sconix Lots of patches |
08/16/2010, 10:06 AM
|
#16 (permalink) | |
|
Member
![]() ![]() Join Date: Aug 2007
Location: Nashville
Posts: 287
Likes Received: 0
Thanks: 68
Thanked 58 Times in 42 Posts
|
Quote:
Keep in mind that any errors, including a missing semicolon or comma, will likely leave you with a blank, non-functional launcher. The fix for this is to put the original global-search-assistant.js file back in place and to reboot (or luna reboot) the Pre. Be sure to save a backup copy of that file before you add this code. Rob
__________________
Rob Robinson Treo 600 >> Treo 650 >> Treo 755p >> Palm Pre |
|
08/20/2010, 08:53 AM
|
#17 (permalink) |
|
Member
![]() Join Date: Sep 2009
Location: Miami, FL
Posts: 640
Likes Received: 2
Thanks: 206
Thanked 4,294,967,295 Times in 40 Posts
|
hey Rob
Still havent had a chance to play with this, as I cannot winscp into my pre post 1.4.5. Will try Filezilla. Looking at the second text file, I see the following code, for example, if (UpdatesStrings.indexOf(t) !== -1) { this.searchApps.push(UpdatesApp); Where did that name (UpdatesApp) come from? Edit---I see. It is defined as a variable in the first text file. Posted this for the benefit of anyone else trying to figure this out.
__________________
![]() Sprint Pre- UK Screenstate 500/1ghz Mode Switcher--RULES !!! Advanced preferences by Sconix Lots of patches |
08/20/2010, 09:30 AM
|
#20 (permalink) | |
|
Member
![]() ![]() Join Date: Aug 2007
Location: Nashville
Posts: 287
Likes Received: 0
Thanks: 68
Thanked 58 Times in 42 Posts
|
Quote:
I had to define a variable for each individual app to make this technique work properly, so you're correct that "UpdatesApp" is a variable to hide the Updates application. Rob
__________________
Rob Robinson Treo 600 >> Treo 650 >> Treo 755p >> Palm Pre |
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



