webOS Nation Forums > webOS apps and software > webOS development > OK ROM comes
First ... 16 21 22 23 24 25 26 27 28 29 30 31 36  ... Last
Member: oscopy
at: 07:48 PM 06/10/2009
I have been exploring properties using
[CODE]
#/usr/bin/lunaprop
[/CODE]

[CODE]
root@castle:/usr/bin# lunaprop -help
usage: lunaprop \
[-n appID] # operate on appID props (otherwise on sys props) \
[-m] # shell mode \
[[-k] key_name # print (or delete, with -k) entry_for_key \
|-s key_name value # set value for key_name \
|-a ] # dump all key/value pairs \
eg: lunaprop -n com.palm.browser
eg: lunaprop -n com.palm.browser currentURL
eg: lunaprop com.palm.properties.installer
eg: lunaprop com.palm.properties.installer -a
[/CODE]

[CODE]
root@castle:/usr/bin# lunaprop -a
[
{ "com.palm.properties.GMFLAG": "1" },
{ "com.palm.properties.DMSETS": "{\"sets\":\"base\",\"a\"}" },
{ "com.palm.properties.PN": "REMOVED" },
{ "com.palm.properties.PRODoID": "P100EWW" },
{ "com.palm.properties.KEYoBRD": "z" },
{ "com.palm.properties.PalmSN": "REMOVED" },
{ "com.palm.properties.HWoRev": "A" },
{ "com.palm.properties.BToADDR": "REMOVED" },
{ "com.palm.properties.WIFIoADDR": "REMOVED" },
{ "com.palm.properties.ACCELCAL":
{
"faceup_0": { "x": 183, "y": 109, "z": -9902 },
"faceup_180": { "x": 61, "y": 85, "z": -9902 },
"facedown_0": { "x": 0, "y": 0, "z": 0 },
"facedown_180": { "x": 0, "y": 0, "z": 0 },
"rightup_0": { "x": 0, "y": 0, "z": 0 },
"rightup_180": { "x": 0, "y": 0, "z": 0 },
"leftup_0": { "x": 0, "y": 0, "z": 0 },
"leftup_180": { "x": 0, "y": 0, "z": 0 },
"topup_0": { "x": 0, "y": 0, "z": 0 },
"topup_180": { "x": 0, "y": 0, "z": 0 },
"bottomup_0": { "x": 0, "y": 0, "z": 0 },
"bottomup_180": { "x": 0, "y": 0, "z": 0 }
}
},
{ "com.palm.properties.DMMODEL": "P100EWW" },
{ "com.palm.properties.DMCARRIER": "Sprint" },
{ "com.palm.properties.DMCLoAUTHNAME": "REMOVED" },
{ "com.palm.properties.DMCLoAUTHPW": "REMOVED" },
{ "com.palm.properties.DMCLoNONCE": "REMOVED" },
{ "com.palm.properties.DMSVRoAUTHPW": "REMOVED" },
{ "com.palm.properties.DMSVRoNONCE": "REMOVED" },
{ "com.palm.properties.BATToCH": "REMOVED" },
{ "com.palm.properties.BATToRSP": "REMOVED" },
{ "com.palm.properties.ModemSN": "REMOVED" },
{ "com.palm.properties.ProdSN": "REMOVED" },
{ "com.palm.properties.installer": "trenchcoat" },
{ "com.palm.properties.nduid": "REMOVED" },
{ "com.palm.properties.version": "Palm webOS 1.0.2" },
{ "com.palm.properties.buildName": "Nova-Sprint-Castle" },
{ "com.palm.properties.buildNumber": "118" },
{ "com.palm.properties.storageCapacity": "8220835840" },
{ "com.palm.properties.storageFreeSpace": "6806011904" }
]
[/CODE]

[CODE]
root@castle:/var/preferences# lunaprop -n com.palm.rdxd -a
[ { "MEID": [ "REMOVED" ] } ]
[/CODE]

Careful when using lunaprop though. If it cannot find the 'com.palm.*' file in /var/preferences it will create a directory and file. Misuse could lead to potential bloat in the FS.

scopy
Member: lostshootingstar
at: 08:03 PM 06/10/2009
To whome it may concern:

there is a small error in the wiki, under the backdoor page:

predev.wikidot.com/backdoor

this line:

[code]
adduser -H /home/$MYUSER $MYUSER #You'll be asked to set your password here
[/code]

should be:
[code]
adduser -h /home/$MYUSER $MYUSER #You'll be asked to set your password here
[/code]

should be lowercase -h, not -H

I tried to edit it, but was denied. How do we get access to the wiki?

The good news, I can now SSH to my pre :-)
Developer: rwhitby
at: 08:10 PM 06/10/2009
Originally Posted by etx:
I've been trying to extract the IPK files, they are in debian .deb format. This could be the key to distributing native applications. Here is the ar output:

rw-r--r-- 1000/10000 4 May 22 16:08 2009 debian-binary/
rw-r--r-- 1000/10000 542382 May 22 16:08 2009 data.tar.gz/
rw-r--r-- 1000/10000 4241 May 22 16:08 2009 control.tar.gz/
We have 1700+ ipks all ready to go for the Palm Pre at
[CODE]http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/[/CODE]

See NSLU2-Linux - Optware / HomePage browse for more details.

-- Rod
Member: Patrick R
at: 08:18 PM 06/10/2009
I love the images in /usr/palm/applications/com.palm.app.firstuse/images.

Esp the ones with names like sim_card_1.png, sim_card_2.png, sim_card_3.png, sim_card_instructions_1.png, sim_card_instructions_2.png, sim_card_instructions_3.png, sim_card_instructions_4.png, sim_card_instructions_5.png.... and Sim_card.png.


Just my personal favorites in that folder.
Attached: sim_card_1.png (41.4 KB) sim_card_instructions_4.png (34.6 KB) Sim_card.png (2.9 KB) 
Member: vijayd
at: 08:36 PM 06/10/2009
Someone has posted this in the Forum:
-----------------------------------------------------
Default CPU Frequency 500Mhz (from /etc/init.d/bootmisc.sh)

#
# Set default cpufreq (BUG: need to set twice!)
#
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
-----------------------------------------------------------

This is what I am wondering:

Why 600MHz first then set it to 500 MHz? Is Pre capable of running at 600MHz?

What if, we change the second line to 600000. Will it result in higher clock speed?

Has Palm turned down the speed for power consumption?

From the look of this code. I am guessing YES.

PS: I don't have a Pre YET. My contract doesn't expire until the end of August. Damn. I wish I had one now.
Member: sudoer
at: 08:48 PM 06/10/2009
I think I'm going to Pre my pants! :-)

Just in case people don't know, the *.class files can be decompiled from java byte code (.class) back into source (.java) files. I've used a program named "jad" (JAva Decompiler) to do this in the past.

jad can be downloaded from here:
JAD Java Decompiler Download Mirror | Tomas Varaneckas

Then you run a command like the following to traverse the class tree and to create a parallel src tree containing the "java" files. (Sorry, this won't have all the interesting comments from the original source but it will be a head start in understanding what we have here!)

jad -o -r -sjava -dsrc com/**/*.class


--
Bob
Member: AdidasNYR
at: 08:49 PM 06/10/2009
Originally Posted by eddieroger:
I think his point is that they want to be more gray hat (or black hat) than webos-internals. We're trying to stay completely legit, as is the predev wiki.


What can be done thats shady?

I thought his was all open source.
Member: jhoff80
at: 08:59 PM 06/10/2009
Originally Posted by vijayd:
Someone has posted this in the Forum:
-----------------------------------------------------
Default CPU Frequency 500Mhz (from /etc/init.d/bootmisc.sh)

#
# Set default cpufreq (BUG: need to set twice!)
#
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
-----------------------------------------------------------

This is what I am wondering:

Why 600MHz first then set it to 500 MHz? Is Pre capable of running at 600MHz?

What if, we change the second line to 600000. Will it result in higher clock speed?

Has Palm turned down the speed for power consumption?

From the look of this code. I am guessing YES.

PS: I don't have a Pre YET. My contract doesn't expire until the end of August. Damn. I wish I had one now.
From what I understand from reading about the Cortex A8 at the OpenPandora site, it's capable of up to 1GHz, but generally clocked at 600mHz. If Palm is running at 500mHz, it's either for power consumption reasons, or so they have a secret weapon against the iPhone 3GS.
Member: KBLOM
at: 09:01 PM 06/10/2009
Originally Posted by AdidasNYR:
What can be done thats shady?

I thought his was all open source.
WebOS is not open source. If it was, we wouldn't be dissecting the ROM.
Member: jbern8
at: 09:28 PM 06/10/2009
Has anyone tried to fix the EAS without ssl issue?
Member: lostshootingstar
at: 09:30 PM 06/10/2009
Originally Posted by jbern8:
Has anyone tried to fix the EAS without ssl issue?
The interesting EAS stuff seems to be in complied java code, not accessible with what we have right now.
Member: fish199902
at: 09:38 PM 06/10/2009
I was able to get root using VirtualBox on Linux. Not a great solution, but it might help anyone with a Windows XP VM available.

In VBox I had to disable USB2.0 support and in Windows I had to upgrade to SP2
Member: lostshootingstar
at: 09:40 PM 06/10/2009
Originally Posted by fish199902:
I was able to get root using VirtualBox on Linux. Not a great solution, but it might help anyone with a Windows XP VM available.

In VBox I had to disable USB2.0 support and in Windows I had to upgrade to SP2
Once you get it rooted, and setup the backdoor, you don't need windows anymore, which is a good thing.
Developer: rwhitby
at: 09:56 PM 06/10/2009
Originally Posted by eddieroger:
So why did the IRC room go invite only?
It was an access perms typo on my part. There is no intent to make it invite only, but we do have moderators equipped to enforce the legality aspect of the channel now. We're serious about #webos-internals staying legit.

-- Rod
Developer: rwhitby
at: 09:58 PM 06/10/2009
Originally Posted by lostshootingstar:
How do we get access to the wiki?
Just ask in the #webos-internals IRC channel, the password is available to anyone who wants to contribute (but will not be posted publicly, to try and prevent spammers).

-- Rod
Member: sudoer
at: 10:11 PM 06/10/2009
Originally Posted by ShinAli:
Quick update.

Seems to be there are several states; BOOTLOADER, INSTALLER, and OS.

Right now I'm stuck in the BOOTLOADER state, unable to run any linux commands obviously enough.
I'm still catching up on reading through the thread. Before starting to read throug all the messages in this thread, I untarred the jar file and ran jad (java dissasembler) on the com/* subdir in order to get a java sources. You should be able to look at the code in the subdir below (after running jad) to get an idea of what the operational stages are and what they do.

$ pwd
/users/rclancy/Downloads/webosdoctorp100ewwsprint/src/com/palm
$ find nova/installer/core/stages
nova/installer/core/stages
nova/installer/core/stages/BaseStage.java
nova/installer/core/stages/ChargeBatteryStage.java
nova/installer/core/stages/CustomizationStage.java
nova/installer/core/stages/EnableNovacomUsbByDefaultStage.java
nova/installer/core/stages/GoIntoUpdateModeStage.java
nova/installer/core/stages/ModemUpdateStage.java
nova/installer/core/stages/RamdiskLoadingStage.java
nova/installer/core/stages/RdxUploadStage.java
nova/installer/core/stages/SoftwareUpdateSiteStage.java
nova/installer/core/stages/TouchPanelUpdateStage.java
nova/installer/core/stages/TrenchcoatStage.java
nova/installer/core/stages/VerifyRomStage.java
$

Hope this helps - (back to catching up on what you all are saying in this thread now)

-- Bob
Member: ToniCipriani
at: 10:12 PM 06/10/2009
Originally Posted by agentsmith:
That's only if they choose a similarly capable radio to go along with the UMTS drivers. Presence of UMTS doesn't necessarily mean it'll be 7.2 HSDPA.
If I'm not mistaken the files seems to point that the GSM Pre will have the MSM6260, which only does 3.6Mbps HSDPA.
Member: sudoer
at: 10:33 PM 06/10/2009
Originally Posted by scm6079:
# jobfile for busybox crond, with pre-start commands to create the
# directory and files it wants by default. That there's not 'start
# on' stanza is intentional: it's for development use only. We can
# turn it on later if we need it, e.g. to keep the clock synced. It
# does work.
FWIW (in case some of you don't know what busybox is), busybox is an embedded Linux. I have it in my actiontec (Verizon) DSL modem. It's probably here so that our phones can call the mother ship to see if updates are available. (I wouldn't be surprised if this either controls or gets called by the logic that knows when our phone has a high-bandwidth network connection which it considers safe for OTA updates.) - I'm still catching up on this thread, so bear with me if this was "already" suggested and I'm just "behind" in my reading!

-- Bob
Member: arjuan
at: 10:36 PM 06/10/2009
thank you guys for everything. i just finished my first tweak -- adding reddit.com to the global search! if anyone wants to know how let me know and ill add it to the wiki.

since this is my first post i cant add a link to the screen shot, but if you PM me ill send you one. i'm also posting the screenshot on the programming subreddit.
Member: sudoer
at: 10:54 PM 06/10/2009
Originally Posted by ydaraishy:
They don't have any source, just binaries ...
BullCrAP! We probably don't have the kernel source, but all the java code is easily reverse (de)compiled. (See my other post on how to do this.)

Regarding some people's concern about viruses being more prevalent, the opposite is true for open-source code. Many eyeballs can spot security vulnerabilities faster than a single team can. Typically, when these are discovered, the person discovering it tries to raise the attention of someone who can fix it. If they're unsuccessful at that, the next step is to publish the vulnerability on the Internet. Publishing the vulnerability creates an "emergency" for the vendor to patch the vulnerability before an exploit occurs. In this case, Palm would just make the fix and push it out with an OTA update. Nothing to worry about here. Having the source available to scruiting is really a good thing in this case!

-- Bob
First ... 16 21 22 23 24 25 26 27 28 29 30 31 36  ... Last
Closed Thread

webOS Nation Forums > webOS apps and software > webOS development > OK ROM comes