Old 06/10/2009, 03:33 AM   #281 (permalink)
Member
 
Join Date: Jun 2009
Posts: 361
Likes: 0
Thanks: 10
Thanked 66 Times in 35 Posts

Default

Its rootfs though, I think its mounted from a ramdisk image. So the image from the first post in this thread that wasin the jar with all the files... that is in ROM and mounted into memory on boot.

I guess I should try and write a test file and then reboot and see what happens.
joshewah is offline  
Old 06/10/2009, 03:37 AM   #282 (permalink)
Member
 
Join Date: Jun 2009
Posts: 361
Likes: 0
Thanks: 10
Thanked 66 Times in 35 Posts

Default

Phone was rebooted:
root@castle:/boot# uptime
03:36:18 up 2 min, 0 users, load average: 2.26, 1.26, 0.49

And the file I put in /boot was still there. So no problem changing whats in /boot if you wanted to.

One cool thing, you can connect to the phone again before the GUI is even done loading. I was in while it still said PALM.
joshewah is offline  
Old 06/10/2009, 03:46 AM   #283 (permalink)
Member
 
Join Date: Jun 2009
Posts: 34
Likes: 0
Thanks: 0
Thanked 69 Times in 15 Posts

Default

Yes! I have made my first successful application modification! I have modified the camera to no longer make the shutter noise even with all system sounds enabled, and everything on. Required re-mounting the root partition rw - and then making my modifications - and finally rebooting the phone to pick up the changes. But it worked!!! Yay!

_Scott
scm6079 is offline  
Old 06/10/2009, 03:58 AM   #284 (permalink)
Member
 
Join Date: Jul 2006
Posts: 55
Likes: 0
Thanks: 3
Thanked 17 Times in 6 Posts

Default

Quote:
Originally Posted by scm6079 View Post
Yes! I have made my first successful application modification! I have modified the camera to no longer make the shutter noise even with all system sounds enabled, and everything on. Required re-mounting the root partition rw - and then making my modifications - and finally rebooting the phone to pick up the changes. But it worked!!! Yay!

_Scott


Really excited to see what you guys can do with all of this
BlackFlag77 is offline  
Old 06/10/2009, 03:58 AM   #285 (permalink)
Member
 
Join Date: Jun 2009
Location: Iasi, Romania
Posts: 43
Likes: 0
Thanks: 32
Thanked 6 Times in 5 Posts

Default great work!

btw. did you see that
"Palm's webOS root image leaks out, code enthusiasts reschedule their normal nightly plans" on engadget (sorry can't post links yet)
hertzi is offline  
Old 06/10/2009, 04:00 AM   #286 (permalink)
Member
 
Join Date: May 2009
Posts: 19
Likes: 0
Thanks: 6
Thanked 0 Times in 0 Posts

Default

I would increase the vibrate on email/SMS for more than 1 sec. Up to like three sec.
tjolsonmcse is offline  
Old 06/10/2009, 04:01 AM   #287 (permalink)
Member
 
Join Date: Jul 2006
Posts: 55
Likes: 0
Thanks: 3
Thanked 17 Times in 6 Posts

Default

Yeah, the vibrate is terrible... I'd say it's more like 1/3 of a second. I can only feel it if I'm sitting down absolutely still.
BlackFlag77 is offline  
Old 06/10/2009, 04:02 AM   #288 (permalink)
Member
 
Join Date: Jun 2009
Posts: 34
Likes: 0
Thanks: 0
Thanked 69 Times in 15 Posts

Default

Whoo hoo!!!

My first application works!! I'm so excited! It's just a pretty "hello world" application with a few simple command tests - but hey - it's a working application on the pre!

Here are the steps I took:
* Enable dev mode, log in as root
* Remount the / partition for read write with the command:
mount -n -o remount,rw /
* Started by picking an application I didn't care much about - i choose the nascar app.
* Found that application's directory: /usr/palm/applications/com.handson.app.nascar/
* remove the imports for stuff I didn't need/want
* created a new home view that displays my app
* Added controller / additional code as needed (for me just a couple functions, mostly copied from other apps)
* Saved all the changes. I edited the files on the device with vi.
* Rebooted my phone
* started the application by clicking on the existing application icon.
* Sat back and smiled as my simple application worked.

The api in the js really seems pretty nice. Palm did a good job. Honestly, this is much cleaner than when I was going through the earlier palm os stuff for my i500 / i330 apps.

_Scott
scm6079 is offline  
Old 06/10/2009, 04:07 AM   #289 (permalink)
Member
 
Join Date: Jun 2009
Location: London, UK
Posts: 453
Likes: 94
Thanks: 152
Thanked 149 Times in 109 Posts

Default

scm6079, that's awesome to hear. It looks like we have a temporary workaround while waiting for the SDK to be delivered. Granted, dev workflow will be a little rough without the tools they likely provide, but this is absolutely the beginning of independent, non-SDK-dependent Pre development in the meantime.

Earlier tonight, I was contemplating doing the exact same thing: Use a predeveloped app, study it for a bit, and refactor it (using information gleaned from said app and others) to do my bidding. It looks like I can finally begin work on a couple I already had in mind with this information revealed.
dignitary is online now  
Old 06/10/2009, 04:09 AM   #290 (permalink)
Member
 
brum's Avatar
 
Join Date: Nov 2008
Location: Australia
Posts: 381
Likes: 15
Thanks: 209
Thanked 30 Times in 24 Posts

Default

Enjoying sitting back watching people speek in a language I don't understand...
__________________
Palm V → TX → Centro → HTC Legend → HP TouchPad/Pre 3(UK)
brum is offline  
Thanked by kevhead, Padre, ProfJonathan
Old 06/10/2009, 04:13 AM   #291 (permalink)
Member
 
Join Date: Jun 2009
Posts: 36
Likes: 0
Thanks: 0
Thanked 3 Times in 2 Posts

Default

palm will obfuscate all javascript soon...
iphony is offline  
Old 06/10/2009, 04:15 AM   #292 (permalink)
Member
 
Join Date: Jun 2009
Posts: 34
Likes: 0
Thanks: 0
Thanked 69 Times in 15 Posts

Default

Quote:
Originally Posted by BlackFlag77 View Post
Yeah, the vibrate is terrible... I'd say it's more like 1/3 of a second. I can only feel it if I'm sitting down absolutely still.
Ask and you shall receive! My phone now vibrates 3 times... Here's the change,
Line 129, /usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.js --

find the line:
this.controller.playSoundNotification('alerts','');

This plays the alert. Now just add 2 setTimeout commands (takes the function to call, then the time in ms.)

So you have:

setTimeout( function(){ this.controller.playSoundNotification('alerts', ''); }, 1000 );
setTimeout( function(){ this.controller.playSoundNotification('alerts', ''); }, 2000 );

Adjust the 1000 and 2000 parameters to your liking. Follow my guide on modifying to put this in place, and you now have a long tone.

This phone really is going to fun - it is *sooo* easy to modify.

_Scott
scm6079 is offline  
Old 06/10/2009, 04:16 AM   #293 (permalink)
Member
 
Join Date: Jun 2009
Location: London, UK
Posts: 453
Likes: 94
Thanks: 152
Thanked 149 Times in 109 Posts

Default

Excellent work, scm. My main concern would be persistence after the next revision, but these tweaks seem easy enough to do assuming access remains available moving forward.

JS obfuscation would present a sort of performance hit, IIRC.

Last edited by vanadium; 06/10/2009 at 04:35 AM.
dignitary is online now  
Old 06/10/2009, 04:17 AM   #294 (permalink)
Member
 
Join Date: Jun 2009
Posts: 36
Likes: 0
Thanks: 0
Thanked 3 Times in 2 Posts

Default

no, obfuscation actually increases performance by using shorter symbol names
iphony is offline  
Old 06/10/2009, 04:18 AM   #295 (permalink)
Member
 
Join Date: Jun 2009
Location: London, UK
Posts: 453
Likes: 94
Thanks: 152
Thanked 149 Times in 109 Posts

Default

You actually have a point there based on my dealing with XSS attacks in the past. It's been a while.

Regardless, even if JS is obfuscated, wouldn't it (for the most part) be beside the point with the framework already out in the open and the SDK perhaps only a couple of months away? Part of me thinks that, with this knowledge out there and being actively investigated (to the delight of the developer community), Palm isn't going to run around closing the gates at this point.

Last edited by vanadium; 06/10/2009 at 04:29 AM.
dignitary is online now  
Old 06/10/2009, 04:21 AM   #296 (permalink)
Member
 
Join Date: Jun 2009
Posts: 6
Likes: 0
Thanks: 2
Thanked 1 Time in 1 Post

Default

Hey guys, found the svn but I doubt we can access it.
[CODE]Source: svn://subversion.palm.com/main/nova/palm/luna/framework/submissions;module=175.7;proto=http svn://subversion.palm.com/main/nova/palm/luna/framework;module=trunk;proto=http file://buildin-framework file://JavaScript/Minifier.pm
[/CODE]

Cheers
-wireless- is offline  
Old 06/10/2009, 04:23 AM   #297 (permalink)
Member
 
Join Date: Jun 2009
Posts: 44
Likes: 0
Thanks: 0
Thanked 4 Times in 3 Posts

Default

Quote:
Originally Posted by -wireless- View Post
Hey guys, found the svn but I doubt we can access it.
[CODE]Source: svn://subversion.palm.com/main/nova/palm/luna/framework/submissions;module=175.7;proto=http svn://subversion.palm.com/main/nova/palm/luna/framework;module=trunk;proto=http file://buildin-framework file://JavaScript/Minifier.pm
[/CODE]

Cheers
The SVN address isn't in DNS, so it's not going to be easily accessible, if at all.

The Luna/Mojo framework sources are in the root image (it's JavaScript after all!)
ydaraishy is offline  
Old 06/10/2009, 04:25 AM   #298 (permalink)
Member
 
Join Date: Jun 2009
Posts: 6
Likes: 0
Thanks: 2
Thanked 1 Time in 1 Post

Default

Yeah but it would be nice to see all the updates :P

Cheers
-wireless- is offline  
Old 06/10/2009, 04:30 AM   #299 (permalink)
Member
 
Join Date: Jun 2009
Posts: 44
Likes: 0
Thanks: 0
Thanked 4 Times in 3 Posts

Default

Quote:
Originally Posted by -wireless- View Post
Yeah but it would be nice to see all the updates :P

Cheers
Yeah... it'd be nice if we had the actual source code, but it'll be a cold day in hell...
ydaraishy is offline  
Old 06/10/2009, 04:34 AM   #300 (permalink)
Member
 
Join Date: Jun 2009
Posts: 34
Likes: 0
Thanks: 0
Thanked 69 Times in 15 Posts

Default

So I've been digging through the camera in detail to add a few functions I want - including letting me set an auto-timer - and there is some *hilarious* code in there.

//NOTE: The Captured event _could_ come in earlier if the SetSnapshotDelayDuration function ever get
//added and called and was used to reduce the capture freezeframe to less then 1second ... OMFG!

So I have the camera modified to add a "5 second timer" button - that let's me click it and then turn the phone around to face me before it takes the picture.

I'm also looking to modify it to be able to use the flash as a flashlight (like my old moto q) - but haven't found enough for that yet.

There are 998 "TODO: " references in the source base. If you want some really funny reading, you should run this command as root on your phone:

find . -name "*.js" | xargs egrep "TODO"

Read the comments - they are great.

_Scott
scm6079 is offline  
Thanked by bryanharig, fourply, nethed
Closed Thread
webOS Nation Forums  > webOS apps and software > webOS development   OK ROM comes

Thread Tools
Display Modes


LinkBacks (?)
LinkBack to this Thread: http://forums.webosnation.com/webos-development/184378-ok-rom-comes.html
Posted By For Type Date
webos - Gizmodo This thread Refback 05/15/2010 09:41 PM
Noticias Palm Pre en español Post #0 Refback 06/22/2009 07:05 AM
Palm Pre Hacked - Enable Developer Mode and Gain Root Access! This thread Refback 06/22/2009 02:47 AM
Palm Pre -- Engadget Japanese This thread Refback 06/21/2009 11:39 PM
Who's getting a Palm Pre - Page 5 - Rage3D Discussion Area This thread Refback 06/20/2009 11:35 AM
WebOS File System Contents - Colin Charles - FriendFeed This thread Refback 06/19/2009 12:02 AM
Recent palmpre Bookmarks on Delicious This thread Refback 06/18/2009 10:56 PM
'Hello World!' to Palm Pre - M for Mature Forums This thread Refback 06/18/2009 09:56 PM
Palm Pre Gets Its First Homebrew App, WebOS "Easy to Modify" [Palm Pre] - Download Monkey - VOD Discussion This thread Refback 06/18/2009 09:08 PM
jwz - Palm Pre This thread Refback 06/18/2009 05:52 AM
VIDEO: OMG! Original Doom game running near perfectly on Palm Pre | PalmTwit Best source of Palm Pre news This thread Refback 06/17/2009 02:22 PM
Slashdot Mobile Story | Palm Pre Does Not Get US Tethering Either This thread Refback 06/17/2009 07:47 AM
Slashdot | Palm Pre Does Not Get US Tethering Either This thread Refback 06/17/2009 12:28 AM
Slashdot Mobile Story | Palm Pre Does Not Get US Tethering Either This thread Refback 06/17/2009 12:21 AM
Please, Please...Develop for the Pre! This thread Refback 06/16/2009 11:06 PM
Palm Pre coming June 6 - Page 7 - AppleNova Forums This thread Refback 06/16/2009 09:14 PM
Slashdot Comments | Palm Pre Does Not Get US Tethering Either This thread Refback 06/16/2009 09:13 PM
The Pre/preDevCamp thread - StartupKC | Google Groups This thread Refback 06/16/2009 04:51 PM
Captains Log: 11 Juni 2009 This thread Refback 06/16/2009 03:19 PM
WebOs -- Engadget Mobile This thread Refback 06/16/2009 02:46 PM
Palm Pre Gets Its First Homebrew App, WebOS "Easy to Modify" | Gamingaisle This thread Refback 06/16/2009 02:34 PM
OK ROM comes - Page 15 - PreCentral Forums - Mobile This thread Refback 06/16/2009 12:02 PM
Palmista Blog: Konami Code: způsob jak "hacknout" Palm Pre This thread Refback 06/16/2009 09:05 AM
Pre Hacking - Palm Pre Development Talk | Google Groups This thread Refback 06/14/2009 09:42 AM
Palm's WebOS-ROM - xda-developers This thread Refback 06/14/2009 06:34 AM
ミニーの独り言 (´○`)はぁ~ This thread Refback 06/14/2009 06:03 AM
Palm Pre Apps - Gizmodo This thread Refback 06/14/2009 01:29 AM
Engadget 中文版 This thread Refback 06/14/2009 12:20 AM
Groundspeak Forums > Palm Pre Phone This thread Refback 06/13/2009 10:58 PM
honer123's Bookmarks on Delicious This thread Refback 06/13/2009 09:37 PM
programming This thread Refback 06/13/2009 05:39 PM
Portátiles, móviles y otros gadgets. Gizig - Pgina 2 This thread Refback 06/13/2009 03:27 PM
Palm Pre Really Needs TAKEphONE and 2Day! This thread Refback 06/13/2009 10:08 AM
ijվ ǵվ - Palm Pre,webOS - [Ѱɡ]Palm Pre̳ Palm Pre,QWERTY,ȫֻ,ֻ,Palm Treo,Centro,iPhone,blackberry - Powered by Discuz! This thread Refback 06/13/2009 08:02 AM
ミニーの独り言 (´○`)はぁ~ This thread Refback 06/13/2009 05:56 AM
胖梨Palm Pre 的秘密 - Konami code This thread Refback 06/13/2009 03:46 AM
Engadget 中国版 This thread Refback 06/13/2009 03:22 AM
Palm Twit Best source of Palm Pre news This thread Refback 06/13/2009 01:02 AM
pre dev wiki: Global Search Addons Collection This thread Refback 06/13/2009 12:03 AM
Engadget en español This thread Refback 06/12/2009 10:49 PM
Let the hacking commence This thread Refback 06/12/2009 09:23 PM
Rodfather - FriendFeed This thread Refback 06/12/2009 07:15 PM
Engadget This thread Refback 06/12/2009 05:10 PM
Engadget 中文版 This thread Refback 06/12/2009 04:37 PM
WebOSMania! El futuro Palm Pre GSM será 3.5G: 7.2Mbps This thread Refback 06/12/2009 04:32 PM
Please, Please...Develop for the Pre! This thread Refback 06/12/2009 02:57 PM
AnandTech This thread Refback 06/12/2009 02:38 PM
Alltop - Top Macintosh News This thread Refback 06/12/2009 01:35 PM
pre dev wiki: Change the default notification.wav Sound This thread Refback 06/12/2009 01:27 PM
Mobile Phones on I4U News This thread Refback 06/12/2009 12:59 PM


 

Content Relevant URLs by vBSEO 3.6.0