[Q] LINQ to XML - NULL value in SELECT - Windows Phone 7 Software Development

Hi, I have the following code, where one element can be NULL.
Code:
Select New Class_Data_Inventory With {.PARTS_AC = CDbl(Data_Inventory.Element("PARTS_AC").Value), _
.PARTS_COMPANY = Data_Inventory.Element("PARTS_COMPANY").Value, _
.PARTS_DIAM = CDbl(Data_Inventory.Element("PARTS_DIAM").Value), _
[B][COLOR="Red"].PARTS_LENGTH = CDbl(If(Data_Inventory.Element("PARTS_LENGTH").Value Is Nothing, Data_Inventory.Element("PARTS_LENGTH").Value, "0")), [/COLOR][/B]_
.PARTS_NAME = Data_Inventory.Element("PARTS_NAME").Value, _
.PARTS_SD = CDbl(Data_Inventory.Element("PARTS_SD").Value), _
.PARTS_STOCK = Data_Inventory.Element("PARTS_STOCK").Value, _
.PARTS_TYPE = Data_Inventory.Element("PARTS_TYPE").Value}).ToList()
My question is, how can I handle the NULL value, and assing a 0 to that element?
So far, no luck!
In the code, I tried the IF clause, but doesn't work at all...
the .PARTS_LENGTH element is defined as DOUBLE and is the value I'd like to make 0 if it's NULL.
Any help is much appreciated in advance.

Code:
Select New Class_Data_Inventory With {.PARTS_AC = CDbl(Data_Inventory.Element("PARTS_AC").Value), _
.PARTS_COMPANY = Data_Inventory.Element("PARTS_COMPANY").Value, _
.PARTS_DIAM = CDbl(Data_Inventory.Element("PARTS_DIAM").Value), _
[B][COLOR="Red"].PARTS_LENGTH = CDbl(If(Data_Inventory.Element("PARTS_LENGTH") Is Nothing, "0", Data_Inventory.Element("PARTS_LENGTH").Value)), [/COLOR][/B]_
.PARTS_NAME = Data_Inventory.Element("PARTS_NAME").Value, _
.PARTS_SD = CDbl(Data_Inventory.Element("PARTS_SD").Value), _
.PARTS_STOCK = Data_Inventory.Element("PARTS_STOCK").Value, _
.PARTS_TYPE = Data_Inventory.Element("PARTS_TYPE").Value}).ToList()
Does taking the .Value off the line fix it?
And swap the order of the If: If...Expression...When true...When false
So for your example it would be:
If...Is nothing...Then 0...Else Value
My VB.Net is a tad rusty
Dave

Use HasElement
Presumably you're using an xelement object, if so check out HasElement
CDbl(If(Data_Inventory.HasElement("PARTS_LENGTH"), Data_Inventory.Element("PARTS_LENGTH").Value, "0")), _
Also I'd recommend putting the logic in it's in it's own method

antonydenyer said:
Presumably you're using an xelement object, if so check out HasElement
CDbl(If(Data_Inventory.HasElement("PARTS_LENGTH"), Data_Inventory.Element("PARTS_LENGTH").Value, "0")), _
Also I'd recommend putting the logic in it's in it's own method
Click to expand...
Click to collapse
Thanks for the answer but it doesn't work.
.HasElements is not part of an XElement.
If you have any other idea, please let me know.

Hi,
Have you tried:
.PARTS_LENGTH = If(Data_Inventory.Elements("PARTS_LENGTH").Any(), Data_Inventory.Element("PARTS_LENGTH").Value, "0")
Excuse the VB.net it's been a while
Hope it helps.
Kong

Hi, thanks for the answer!
Will try it out and let you know how it's working.

Related

[ROM][WWE][25.07.2008]tnyynt 011/2/3 (CE OS 5.2.20270 Build 20270.1.3.1)[ONLINE]

011TNYSXY - CE OS 5.2.20270 (Build 20270.1.3.1) WWE
This is a damn fast, SEXY (Naked) version!
SXY FEATURES:
CE OS 5.2.20270 (Build 20270.1.3.1)
ActiveSync Killer
Assertive Memory Management *NEW
CommManager (ON-OFF version)
Light G, 3G, X (close) and OK icons *NEW
.NET Compact Framework 3.5
Smart Dialing 2.5 (Build 27526)
UC Compliant
SXY MEMORY USAGE:
Free Storage: 75.75 MB
Free Program: 29.29 MB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
012TNYBSN - CE OS 5.2.20270 (Build 20270.1.3.1) WWE
This is a still damn fast, Business version, having everything a Business User might need!
BSN FEATURES:
CE OS 5.2.20270 (Build 20270.1.3.1)
ActiveSync Killer
Adobe Reader LE (2.5.0.0)
Arcsoft MMS Composer (5.0.31.19)
Assertive Memory Management *NEW
Bluetooth File Push
Bluetooth SIM Access (2.02 update 0925)
CommManager (ON-OFF version)
Esmertec JBed (20080428.2.1)
File Explorer Extension *NEW
HTC Bluetooth Quick Link
HTC Connection Setup 1.5 (Build 34057)
HTC Home Plugin (2.0.1025.721)
HTC Network Plugin (1.0.29714.1)
Light G, 3G, X (close) and OK icons *NEW
.NET Compact Framework 3.5
Office Mobile 6.1
Remote Desktop
Smart Dialing 2.5 (Build 27526)
WM5torage (1.8)
UC Compliant
BSN MEMORY USAGE:
Free Storage: 26.23 MB
Free Program: 63.48 MB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
013TNYSTD - CE OS 5.2.20270 (Build 20270.1.3.1) WWE
This is a still damn fast, Standard version, having everything an Everyday User might need!
STD FEATURES:
CE OS 5.2.20270 (Build 20270.1.3.1)
ActiveSync Killer
Adobe Reader LE (2.5.0.0)
Arcsoft MMS Composer (5.0.31.19)
Assertive Memory Management *NEW
Bluetooth File Push
Bluetooth SIM Access (2.02 update 0925)
CommManager (ON-OFF version)
Esmertec JBed (20080428.2.1)
File Explorer Extension *NEW
HTC Album 1.0 (Build 1030.720.0)
HTC Bluetooth Quick Link
HTC Connection Setup 1.5 (Build 34057)
HTC Home Plugin (2.0.1025.721)
HTC Network Plugin (1.0.29714.1)
HTC Streaming Media Player (Build 2.1.518.700)
Light G, 3G, X (close) and OK icons *NEW
.NET Compact Framework 3.5
Office Mobile 6.1
PocketScreen (1.3)
PocketRar (3.80)
Remote Desktop
Smart Dialing 2.5 (Build 27526)
TCPMP (0.72 RC1)
TCPMP FLV plugin (0.4.2)
WM5torage (1.8)
UC Compliant
STD MEMORY USAGE:
Free Storage: 57.39 MB
Free Program: 26.00 MB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
SCREENSHOTS: (Common for all versions, except read ROM descriptions)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
SPECIAL THANKS:
FInixNOver for helping and being a true friend! (Donate to FInixNOver here!)
Bepe for his kitchen
eliasweb for ActiveSync Killer
Jimm98y for the patched smart dialing
EvilPati and FInixNOver for battery icons
XDA developers (Donate to XDA developers here!)
...
I'm sure I've left someone out, but it's only on paper, not in my heart!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A REALLY BIG SPECIAL THANKS TO THOSE WHO DONATED:
lmjabreu / shearsey / XL3N7
Thanks to you I am 1 step closer to my new device!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
DOWNLOAD AND ENJOY!
011TNYSXY
@ MediaFire @ 4Shared
012TNYBSN
@ MediaFire @ 4Shared
013TNYSTD
@ MediaFire @ 4Shared
011TNYSXY, 012TNYBSN, 013TNYSTD (thanks to Behemot)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Fixes!
012TNYBSN fixes:
1. Fixes missing shortcut for Calculator in Programs.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
013TNYSTD fixes:
1. Fixes missing shortcut for Calculator in Programs (same file as above).
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Common fixes:
1. Remove annoying sounds (End Key (RED key) sound, Call Key (GREEN key) sound, Call History and Speed Dialing sounds).
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2. Remove annoying USSD sound.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
3. Multiple messages selecting fix in messaging!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
4. Fix for selecting all font sizes.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Add-Ons!
Common Add-ons!
1. To have the percentage battery icons, install this and soft reset! To return to ROM default icons, uninstall and soft reset!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2. Task Switcher for switching through open apps. Just assign to a hardware button after install and you're all set!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
3. Shutdown! Just like PC shutdown!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Can you please explain "Assertive Memory Management"? What is that? I like the fact that you striped the SXY version more. i.e. the clock. if people want the added features then they can just add them themselves. This should be a very good base to start with
RebelShadow said:
Can you please explain "Assertive Memory Management"?
Click to expand...
Click to collapse
You'll just have to wait and see!
OK... I'll try
Missing Passwords Fixed?
I have tried a couple other "5.2.20270" roms, but they had the 'missing password/email account' bug. Will that be addressed in this release?
Looks to be a nice, VERY CLEAN, sxy ROM. I too am curious about the "Assertive Memory Management".
Thank you in advance,
Stephen
WAITINGGGGG...go go go go...ehehehhe
SuperSport said:
I have tried a couple other "5.2.20270" roms, but they had the 'missing password/email account' bug. Will that be addressed in this release?
Looks to be a nice, VERY CLEAN, sxy ROM. I too am curious about the "Assertive Memory Management".
Thank you in advance,
Stephen
Click to expand...
Click to collapse
Yes, it has been fixed
Hello
I have installed your 011TNYSXY ROM.
After reboot I have :
Program : 29,29Mb Storage : 75,38 Mb.
It's very good.
I tested now
Thank's for your job.
12TNYBSN
Just installed it and I have an empty office and system folders in the programs.
it looks fast, stable, boots in 32sec. the feedback still is there.
Memory storage ~ 63mb Programs ~ 24, but it is after the UC Compliant installation.
that's it for the first 15min.
Thanks for the ROM.
12TNYBSN
Hoash said:
I have an empty office and system folders in the programs.
Click to expand...
Click to collapse
I can confirm that! Rom doesn't have Office Mobile 6.1. tnyynt can you please correct this?
Rom have (without customizations):
Free Storage: 62.97 MB
Free Program: 27.79 MB
Hoash said:
Just installed it and I have an empty office and system folders in the programs.
it looks fast, stable, boots in 32sec. the feedback still is there.
Memory storage ~ 63mb Programs ~ 24, but it is after the UC Compliant installation.
that's it for the first 15min.
Thanks for the ROM.
Click to expand...
Click to collapse
tomme45i said:
I can confirm that! Rom doesn't have Office Mobile 6.1. tnyynt can you please correct this?
Rom have (without customizations):
Free Storage: 62.97 MB
Free Program: 27.79 MB
Click to expand...
Click to collapse
Give me 2 hours and I will fix it!
tnyynt said:
Give me 2 hours and I will fix it!
Click to expand...
Click to collapse
Thanks! You're the best my friend!
Hello tnyynt
Could you configure email for move attachment files in storage card ? please.
Regards
ludwig76 said:
Hello tnyynt
Could you configure email for move attachment files in storage card ? please.
Regards
Click to expand...
Click to collapse
You can do that from Messaging, Tools, Options, Storage and tick the box at When available, use this storage card........
I think's.
But this option, don't work (with Windows Mobile 5 and 6)correctly when you remove your card.
Windows Mobile create a new storage card.
12TNYBSN
I don't see in Sounds & Notifications option to choose sound for sms delivery notification... Can you please add it to fixed version?
tomme45i said:
I don't see in Sounds & Notifications option to choose sound for sms delivery notification... Can you please add it to fixed version?
Click to expand...
Click to collapse
Sorry, already built and uploaded with Office fix!
tnyynt said:
Sorry, already built and uploaded with Office fix!
Click to expand...
Click to collapse
It's not problem, but can you make fix and place it in second post?
Thank you
I try new fixed version, and after SR (all today pluggins off) I have
27.93MB free program memory

[ROM][WWE][02.08.2008]tnyynt 015/6/7 (CE OS 5.2.20273 Build 20273.1.3.3)[ONLINE]

Probably my last ROM series Thank you all for contributing!
015TNYSXY - CE OS 5.2.20273 (Build 20273.1.3.3) WWE
This is a damn fast, SEXY (Naked) version!
SXY FEATURES:
CE OS 5.2.20273 (Build 20273.1.3.3)
ActiveSync Killer
Assertive Memory Management *NEW
CommManager (ON-OFF version)
.NET Compact Framework 3.5
Smart Dialing 2.5 (Build 27526)
UC Compliant
SXY MEMORY USAGE:
Free Storage: 76.10 MB
Free Program: 28.15 MB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
016TNYBSN - CE OS 5.2.20273 (Build 20273.1.3.3) WWE
This is a still damn fast, Business version, having everything a Business User might need!
BSN FEATURES:
CE OS 5.2.20273 (Build 20273.1.3.3)
ActiveSync Killer
Adobe Reader LE (2.5.0.0)
Arcsoft MMS Composer (5.0.31.19)
Assertive Memory Management
Bluetooth File Push
Bluetooth SIM Access (2.02 update 0925)
CommManager (ON-OFF version)
Esmertec JBed (20080428.2.1)
File Explorer Extension
HTC Bluetooth Quick Link
HTC Connection Setup 1.5 (Build 34057)
HTC Home Plugin (2.0.1025.721)
HTC Network Plugin (1.0.29714.1)
.NET Compact Framework 3.5
Office Mobile 6.1
OBEX Extension *NEW
Remote Desktop
Smart Dialing 2.5 (Build 27526)
SMS Chat Enabler *NEW
WM5torage (1.8)
UC Compliant
BSN MEMORY USAGE:
Free Storage: 63.88 MB
Free Program: 26.46 MB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
017TNYSTD - CE OS 5.2.20273 (Build 20273.1.3.3) WWE
This is a still damn fast, Standard version, having everything an Everyday User might need!
STD FEATURES:
CE OS 5.2.20273 (Build 20273.1.3.3)
ActiveSync Killer
Adobe Reader LE (2.5.0.0)
Arcsoft MMS Composer (5.0.31.19)
Assertive Memory Management
Bluetooth File Push
Bluetooth SIM Access (2.02 update 0925)
CommManager (ON-OFF version)
Esmertec JBed (20080428.2.1)
File Explorer Extension
HTC Album 1.0 (Build 1030.720.0)
HTC Bluetooth Quick Link
HTC Connection Setup 1.5 (Build 34057)
HTC Home Plugin (2.0.1025.721)
HTC Network Plugin (1.0.29714.1)
HTC Streaming Media Player (Build 2.1.518.700)
.NET Compact Framework 3.5
Office Mobile 6.1
OBEX Extension *NEW
PocketScreen (1.3)
PocketRar (3.80)
Remote Desktop
Smart Dialing 2.5 (Build 27526)
SMS Chat Enabler *NEW
TCPMP (0.72 RC1)
TCPMP FLV plugin (0.4.2)
WM5torage (1.8)
UC Compliant
STD MEMORY USAGE:
Free Storage: 55.95 MB
Free Program: 26.15 MB
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ASPECT: Same as all previous releases!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
SPECIAL THANKS:
FInixNOver for helping and being a true friend!
Bepe for his kitchen
karmba_a for the port
eliasweb for ActiveSync Killer
Jimm98y for the patched smart dialing
EvilPati and FInixNOver for battery icons
hc4 for OBEX Extension
ervius for SMS Chat Enabler
XDA developers (Donate to XDA developers here!)
...
I'm sure I've left someone out, but it's only on paper, not in my heart!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A REALLY BIG SPECIAL THANKS TO THOSE WHO DONATED:
Henri Orland / evojulz / Hoash / vmiguel / pzucchel
Thanks to you I am 1 step closer to my new device!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
DOWNLOAD AND ENJOY!
015TNYSXY
@ MediaFire @ 4Shared
016TNYBSN
@ MediaFire @ 4Shared
017TNYSTD
@ MediaFire @ 4Shared
ALL VERSIONS
@ All Versions - Thanks to Behemot
Fixes!
KNOWN BUGS!
Activesync through Bluetooth does not work! It is my strong belief that it's a build bug but I'm on it!
Add Ons!
1. Disable Assertive Memory Management. If you install this, you'll need a task manager to close your apps.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2. tomme45i battery icons
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Let's Rock&Roll!
OK, here we go!
Show me what you've got!
BRING IT ON!!!
Very Quick Turn Around! Nice Job!
Ok, it flashed VERY easily, as before. Boot up is Quick like before. Memory seems to manage a little better. Multiple Selection of messages is fixed without using a patch.
I don't think I've mentioned it yet, but I wanted to give you props on the Theme. It's my favorite theme to date, and you've done such a nice job taking it all the way through the ROM (Dialer, Calculator, etc...).
I will come back to this, I'm now formatting an 8GIG SD card and it's taking an extremely long time. But just for the record, this ROM recognized it when inserted and allowed me to copy 6 GIG of information to it without any problems. Not bad for a $27.80 card! I'm now formatting the SD Card using FAT32 Allocation unit size 4096 so I can flash in future using SD method. Will not allow flashing from SD Card due to Needed Adapter... Will keep my 2GB around for this purpose.
Thanks again tnyynt for your great work!
Hi i have some requests.
Could you add the colored G/3G icons from this rom? cab installer would be fine too.
http://forum.xda-developers.com/showthread.php?t=392996&highlight=Smart+Dialing
i don't know if you knew about these tweaks already:
http://forum.xda-developers.com/showthread.php?t=411601&highlight=Smart+Dialing
---------
Have not yet flashed the new version, but the memory thing i was talking about earlier i have some new info:
24 hours of use, lots of inbound and outbound calls, only the phone and contact application have been used, memory has gone from 27mb to 24 mb and is stable at that value.. strange??
VOW..,.very nice rom, i will wat to try BUS< STND
what is "Assertive Memory Management" ?
dear tnyynt, i am wondering what is "Assertive Memory Management " really like? if it can affect on pda's program ram use?
nice rlz...be back if find any bugs...
( we both know i wont find them cuz there are none!!!)
keep it up
what are the changes???
I've just flashed your 11 the other day.... sigh
rockuman_ex said:
what are the changes???
Click to expand...
Click to collapse
Mainly new rom OS 5.2.20273 (Build 20273.1.3.3) and included fixes from previous version.
Found a bug in SXY
In Wireless Lan setting -> Power Mode.
You can't set the power mode to Best Performance and you also can't set the Auto turn off WLAN if not connected.
No matter what settings you set, they always go back to defaul (Best battery and unticked)
Any idea?
tetsuo55 said:
Hi i have some requests.
Could you add the colored G/3G icons from this rom? cab installer would be fine too.
http://forum.xda-developers.com/showthread.php?t=392996&highlight=Smart+Dialing
i don't know if you knew about these tweaks already:
http://forum.xda-developers.com/showthread.php?t=411601&highlight=Smart+Dialing
---------
Have not yet flashed the new version, but the memory thing i was talking about earlier i have some new info:
24 hours of use, lots of inbound and outbound calls, only the phone and contact application have been used, memory has gone from 27mb to 24 mb and is stable at that value.. strange??
Click to expand...
Click to collapse
1. I'm sorry, the icons will remain White because mainly I've created this ROM to suit my aspect desires, but you can always change them to the ones you like
2. I'm not really sure what I am supposed to do with the link you gave me.
Memory is stable, as it should be!
yuxiaoyun said:
dear tnyynt, i am wondering what is "Assertive Memory Management " really like? if it can affect on pda's program ram use?
Click to expand...
Click to collapse
It is mainly about RAM usage, keeping it (RAM) clean and stable.
rockuman_ex said:
what are the changes???
I've just flashed your 11 the other day.... sigh
Click to expand...
Click to collapse
As tomme45i said!
rockuman_ex said:
Found a bug in SXY
In Wireless Lan setting -> Power Mode.
You can't set the power mode to Best Performance and you also can't set the Auto turn off WLAN if not connected.
No matter what settings you set, they always go back to defaul (Best battery and unticked)
Any idea?
Click to expand...
Click to collapse
I'm sorry my friend, it is working fine with me!
Very nice, lean, fast rom again! Thanks...
ps: The light network icons are missing
Quite fast...will try it now.
tnyynt said:
1. I'm sorry, the icons will remain White because mainly I've created this ROM to suit my aspect desires, but you can always change them to the ones you like
2. I'm not really sure what I am supposed to do with the link you gave me.
Memory is stable, as it should be!
Click to expand...
Click to collapse
1. i would but i cannot find a cab
2. The link talks about disabling/enabling different services that automatically load into memory, and are needed for some and not for others.
It's not about the memory though but about the cpu-cycles these services use. When disabled (like on a regular windows machine) performance(speed) goes up a lot, also battery time increases and some memory is freed up.
tetsuo55 said:
1. i would but i cannot find a cab
2. The link talks about disabling/enabling different services that automatically load into memory, and are needed for some and not for others.
It's not about the memory though but about the cpu-cycles these services use. When disabled (like on a regular windows machine) performance(speed) goes up a lot, also battery time increases and some memory is freed up.
Click to expand...
Click to collapse
1. Edit the files themselves from the ROM, so no need for cab.
2. These ROMs do not suffer from performance, stability nor battery issues.
rockuman_ex said:
Found a bug in SXY
In Wireless Lan setting -> Power Mode.
You can't set the power mode to Best Performance and you also can't set the Auto turn off WLAN if not connected.
No matter what settings you set, they always go back to defaul (Best battery and unticked)
Any idea?
Click to expand...
Click to collapse
Sounds like a problem that i had which wasn't a bug, take a look at this post which will hopefully help
http://forum.xda-developers.com/showpost.php?p=2385656&postcount=83
shearsey said:
Sounds like a problem that i had which wasn't a bug, take a look at this post which will hopefully help
http://forum.xda-developers.com/showpost.php?p=2385656&postcount=83
Click to expand...
Click to collapse
Shouldn't be that, there are no task managers included in ROM and it works just fine!
tnyynt said:
Shouldn't be that, there are no task managers included in ROM and it works just fine!
Click to expand...
Click to collapse
exactly... no task manager in sxy version...
i've reflashed my phone again, and this time, no other apps were installed, and it's still doing it.
are you sure it's not rom bug?

[ROM][WWE][09.08.2008]tnyynt 315/6/7i (CE OS 5.2.20273 Build 20273.1.3.3)[ONLINE]

This ROM is only for 3600i! Now you've got your own ROM and Chef!
315iTNYSXY - CE OS 5.2.20273 (Build 20273.1.3.3) WWE
This is a damn fast, SEXY (Naked) version!
SXY FEATURES:
CE OS 5.2.20273 (Build 20273.1.3.3)
ActiveSync Killer
Assertive Memory Management *NEW
CommManager (ON-OFF version)
.NET Compact Framework 3.5
Smart Dialing 2.5 (Build 27526)
UC Compliant
SXY MEMORY USAGE:
Free Storage: 187.62 MB (Reported by Andych)
Free Program: 25.72 MB (Reported by Andych)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
316iTNYBSN - CE OS 5.2.20273 (Build 20273.1.3.3) WWE
This is a still damn fast, Business version, having everything a Business User might need!
BSN FEATURES:
CE OS 5.2.20273 (Build 20273.1.3.3)
ActiveSync Killer
Adobe Reader LE (2.5.0.0)
Arcsoft MMS Composer (5.0.31.19)
Assertive Memory Management
Bluetooth File Push
Bluetooth SIM Access (2.02 update 0925)
CommManager (ON-OFF version)
Esmertec JBed (20080428.2.1)
File Explorer Extension
HTC Bluetooth Quick Link
HTC Connection Setup 1.5 (Build 34057)
HTC Home Plugin (2.0.1025.721)
HTC Network Plugin (1.0.29714.1)
.NET Compact Framework 3.5
Office Mobile 6.1
OBEX Extension *NEW
Remote Desktop
Smart Dialing 2.5 (Build 27526)
SMS Chat Enabler *NEW
WM5torage (1.8)
UC Compliant
BSN MEMORY USAGE:
Free Storage: 192.43MB (Reported by jackkkkk)
Free Program: 25.61 MB (Reported by jackkkkk)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
317iTNYSTD - CE OS 5.2.20273 (Build 20273.1.3.3) WWE
This is a still damn fast, Standard version, having everything an Everyday User might need!
STD FEATURES:
CE OS 5.2.20273 (Build 20273.1.3.3)
ActiveSync Killer
Adobe Reader LE (2.5.0.0)
Arcsoft MMS Composer (5.0.31.19)
Assertive Memory Management
Bluetooth File Push
Bluetooth SIM Access (2.02 update 0925)
CommManager (ON-OFF version)
Esmertec JBed (20080428.2.1)
File Explorer Extension
HTC Album 1.0 (Build 1030.720.0)
HTC Bluetooth Quick Link
HTC Connection Setup 1.5 (Build 34057)
HTC Home Plugin (2.0.1025.721)
HTC Network Plugin (1.0.29714.1)
HTC Streaming Media Player (Build 2.1.518.700)
.NET Compact Framework 3.5
Office Mobile 6.1
OBEX Extension *NEW
PocketScreen (1.3)
PocketRar (3.80)
Remote Desktop
Smart Dialing 2.5 (Build 27526)
SMS Chat Enabler *NEW
TCPMP (0.72 RC1)
TCPMP FLV plugin (0.4.2)
WM5torage (1.8)
UC Compliant
STD MEMORY USAGE:
Free Storage: 181.54 MB (Reported by Andych)
Free Program: 25.56 MB (Reported by Andych)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ASPECT: Same as all previous releases!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
SPECIAL THANKS:
FInixNOver for being a true friend!
Bepe for his kitchen
karmba_a for the port
Andych for BETA testing
eliasweb for ActiveSync Killer
Jimm98y for the patched smart dialing
EvilPati and FInixNOver for battery icons
XDA developers (Donate to XDA developers here!)
...
I'm sure I've left someone out, but it's only on paper, not in my heart!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A REALLY BIG SPECIAL THANKS TO THOSE WHO DONATED:
Andych / jackkkkk
Thanks to you I am 1 step closer to my new device!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
DOWNLOAD AND ENJOY!
315iTNYSXY
@ MediaFire @ 4Shared
316iTNYBSN
@ MediaFire @ 4Shared
317iTNYSTD
@ MediaFire @ 4Shared
Fixes!
KNOWN BUGS!
Activesync through Bluetooth does not work! It is my strong belief that it's a build bug but I'm on it!
Add Ons!
Add-ons!
1. To have the percentage battery icons, install this and soft reset! To return to ROM default icons, uninstall and soft reset!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2. Task Switcher for switching through open apps. Just assign to a hardware button after install and you're all set!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
3. Shutdown! Just like PC shutdown!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
4. tomme45i battery icons
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Congrats to tnyynt, this ROM is just as he says....fast, stable and damned sexy....
Battery drain is minimal and Ascertive memory management is fantastic.
This is a MUST for those with a P3600i who like a super clean, super light ROM.
Remember to donate as there has been a lot of work put into this....and just for US.
Andy
PS Donation sent....Really appreciate the time and effort that went into the creation of this ROM.
Great
Congratulations and thanks tnyynt for your work...
if I can't donate for your work, is there anything else I can do for what you've done?
=> I can write applications for PDA, create install file ....
Let me know tnyynt.
Great work
tnyynt! My man! Thank you very much and testing!
Can I also buy you a coffee?? Got a donate link?
Thanks again mate!
Thanks! This rom works heaps better than the other ones I've been trying! Awesome work! Might be a donation coming your way soon
Two quick questions:
1. This rom didn't have boot screen img included. I still got the old Karmba img. How can I change that?
2. In phone: How can I get "Contact" softkey back? It is "Hide Keypad" with rom default!
3. Just wondering, is there a registry hack enabling vibrate when a phone call is connected? I have done a search, but it didn't help me at all.
4. I'm trying to learn UC now. ATM, I install cabs manually! lol
5. BIG THANK YOU AGAIN!!!!! I want to buy you a coffee!!!!! I would like to donate to you directly.
One more:
6. Comm Manager: I prefer the "Ringer" setter over "3G". The default rom does not have a icon for Ringer. Could you make a Ringer's icon in the next release?
Thank mate!
vnt said:
Congratulations and thanks tnyynt for your work...
if I can't donate for your work, is there anything else I can do for what you've done?
=> I can write applications for PDA, create install file ....
Let me know tnyynt.
Great work
Click to expand...
Click to collapse
Thank you vnt! No worries! I'm not doing this to get money. I just wanted you 3600i Guys to ne happy too!
jackkkkk said:
tnyynt! My man! Thank you very much and testing!
Can I also buy you a coffee?? Got a donate link?
Thanks again mate!
Click to expand...
Click to collapse
It's in my signature!
jackkkkk said:
Two quick questions:
1. This rom didn't have boot screen img included. I still got the old Karmba img. How can I change that?
2. In phone: How can I get "Contact" softkey back? It is "Hide Keypad" with rom default!
3. Just wondering, is there a registry hack enabling vibrate when a phone call is connected? I have done a search, but it didn't help me at all.
4. I'm trying to learn UC now. ATM, I install cabs manually! lol
5. BIG THANK YOU AGAIN!!!!! I want to buy you a coffee!!!!! I would like to donate to you directly.
Click to expand...
Click to collapse
They're 5, jackkkkk!
1. i did not include a splash but I will soon post the missing one for SXY and I will build the BSN and STD with boot screen.
2. I'll look into it.
3. Haven't seen that since I'm a Trinity user. There's something like that on my Diamond, I'll see what I can do!
4. Do so, it's very useful!
5. It's still there in my signature
jackkkkk said:
One more:
6. Comm Manager: I prefer the "Ringer" setter over "3G". The default rom does not have a icon for Ringer. Could you make a Ringer's icon in the next release?
Thank mate!
Click to expand...
Click to collapse
And for the sixth one!
6. Try my friend FInixNOver's CMSettings here!
wow real pro even if i have only a 3600 lol
tnyynt: I hope you don't mind my small donation of 10euro.
I really appreciated your time and effort. Thank you.
jackkkkk said:
tnyynt: I hope you don't mind my small donation of 10euro.
I really appreciated your time and effort. Thank you.
Click to expand...
Click to collapse
Thanks, much appreciated!
Thks very much, really want to try but i need to use my CHT9110 for travel and no time to reflash again and again.
One question, do we need to change 401 header or not as i download and there's on ly ruu.nbh file, i may repack to add my personal boot screen in.
BTW thks again for the rom,
ssamth2003 said:
Thks very much, really want to try but i need to use my CHT9110 for travel and no time to reflash again and again.
One question, do we need to change 401 header or not as i download and there's on ly ruu.nbh file, i may repack to add my personal boot screen in.
BTW thks again for the rom,
Click to expand...
Click to collapse
No need to change anything. Just flash it with your RUU app.
Meanwhile you can check out my old thread on Boot screens.
ssamth2003 said:
Thks very much, really want to try but i need to use my CHT9110 for travel and no time to reflash again and again.
One question, do we need to change 401 header or not as i download and there's on ly ruu.nbh file, i may repack to add my personal boot screen in.
BTW thks again for the rom,
Click to expand...
Click to collapse
Beileve me.....flash this ROM....it is the best so far by a long shot.
Glad to see you got it to work.
Hope you can get that bluetooth bug sorted.
desolateone said:
Glad to see you got it to work.
Hope you can get that bluetooth bug sorted.
Click to expand...
Click to collapse
BT works fine (send, receive, pair, PAN, A2DP, etc.), the bug referrs to BT sync only!
Flash now. can not wait.
ahhhh..cant wait even i have to travel tomorrow.. will flash now...
try this
jackkkkk said:
3. Just wondering, is there a registry hack enabling vibrate when a phone call is connected? I have done a search, but it didn't help me at all.
Click to expand...
Click to collapse
this will do that

Possibility to execute download mode programmatically on Omnia 7?

Us T-Mobile users cannot flash Roms at the minute because the download mode button combo has been disabled.
Maybe there is a way to do this programatically or use a resistor accross certain USB pins like the Galaxy S method.
What's your opinion on this?
Sent from my OMNIA7 using Board Express
Yesterday I wasted some time playing around with the USB diagnostic port (enable in the Diagnosis app, it's the third USB mode option). Both PSAS and QPST can connect to and mess with the phone, so I think if someone knows his way around, the phone can be kicked into Download Mode.
(I only managed to crash the phone in many different ways, but I was really just monkeying around.)
If this can be done it would be great as this is the first phone I have owned where I cannot flash firmware myself.
Might be worth while seeing if everyone with a tmobile uk branded omnia 7 has this issue?
FYI I have included my firmware versions etc so we can try and collate a list of working/non working ones to see what the differences are if any.
os version 7.0.7004.0
firmware revision number 2424.10.10.6
hardware revision number 3.15.0.4
radio software version 2424.10.10.6
radio hardware version 0.0.0.800
bootloader version 4.10.1.9
chip soc version 0.36.2.0
KarmaXXK said:
Yesterday I wasted some time playing around with the USB diagnostic port (enable in the Diagnosis app, it's the third USB mode option). Both PSAS and QPST can connect to and mess with the phone, so I think if someone knows his way around, the phone can be kicked into Download Mode.
(I only managed to crash the phone in many different ways, but I was really just monkeying around.)
Click to expand...
Click to collapse
Yes, I tried the *#7284# code and changed the USB Path Control to "Modem, USB Diag" and my phone was recognised by the ROM Downloader but the phone was not in download mode.
I have stumbled upon something which may be what we are looking for though, after reverse engineering the Samsung Diagnosis app I notice there are codes to access 'Operator Specific' Admin areas in the app. Take a look at the attached image.
Now as you can see, the values listed cannot be typed into the Diagnosis app as there is a formula to decipher them. I have the formula but cannot get it to work.
Code:
Private Overloads Function GetHashCode(ByVal str As String) As UInteger
Dim num As UInteger = 0
For i As Integer = 0 To str.Length - 1
[B]num = ((num << 5) + num) + str(i)[/B]
Next
Return num
End Function
Now the bit highlighted in bold is the bit I cant get to work.
It gives the following error:
Operator '+' is not defined for types 'UInteger' and 'Char'.
Once someone can help to get this working, reversing the formula should in theory show us the correct *#000# code combination for each area.
Fingers crossed you can crack it!
lyriquidperfection said:
Yes, I tried the *#7284# code and changed the USB Path Control to "Modem, USB Diag" and my phone was recognised by the ROM Downloader but the phone was not in download mode.
I have stumbled upon something which may be what we are looking for though, after reverse engineering the Samsung Diagnosis app I notice there are codes to access 'Operator Specific' Admin areas in the app. Take a look at the attached image.
Now as you can see, the values listed cannot be typed into the Diagnosis app as there is a formula to decipher them. I have the formula but cannot get it to work.
Code:
Private Overloads Function GetHashCode(ByVal str As String) As UInteger
Dim num As UInteger = 0
For i As Integer = 0 To str.Length - 1
[B]num = ((num << 5) + num) + str(i)[/B]
Next
Return num
End Function
Now the bit highlighted in bold is the bit I cant get to work.
It gives the following error:
Operator '+' is not defined for types 'UInteger' and 'Char'.
Once someone can help to get this working, reversing the formula should in theory show us the correct *#000# code combination for each area.
Click to expand...
Click to collapse
I worked on this few days ago, I couldn't reverse the hash function but we had some brilliant ideas how to do it (see the stackoverflow thread about it http://stackoverflow.com/questions/4523553/reversing-a-hash-function)
but I used brute force and extracted some 60 diagnosis codes that you can find here http://www.martani.net/2010/12/windows-7-hacks-all-diagnosis-codes-you.html
and here http://www.martani.net/2010/12/windows-7-hacks-all-diagnosis-codes-you_26.html
This is great stuff martani if there is any way to decipher these ones, they may be worth looking at:
g_ADMIN_GENERIC = 3370684588
g_ADMIN_TMOBILE = 469486183
g_ADMIN_VODAFONE = 474092301
These ones indeed look very interesting and may offer a way to enable ADC or even the Download Mode some people like me have been looking for.
lyriquidperfection said:
This is great stuff martani if there is any way to decipher these ones, they may be worth looking at:
g_ADMIN_GENERIC = 3370684588
g_ADMIN_TMOBILE = 469486183
g_ADMIN_VODAFONE = 474092301
These ones indeed look very interesting and may offer a way to enable ADC or even the Download Mode some people like me have been looking for.
Click to expand...
Click to collapse
Actually the code is a little misleading, if you see closely, the enum HashCodeTable is used nowhere.
The app waits for user input, after each "tap" on a number it calls the function ParseDial() that hashes the input with GetHashCode then calls the function GetEnumFromList() on this hashed value.
In GetEnumFromList, there is no use of HashCodeTable and even the codes you provided are not hard-coded in this function. I am not sure why they are there but as far as I can tell, to access these parts of the diagnosis app, you need another method than dialing a code it seems
martani said:
Actually the code is a little misleading, if you see closely, the enum HashCodeTable is used nowhere.
The app waits for user input, after each "tap" on a number it calls the function ParseDial() that hashes the input with GetHashCode then calls the function GetEnumFromList() on this hashed value.
In GetEnumFromList, there is no use of HashCodeTable and even the codes you provided are not hard-coded in this function. I am not sure why they are there but as far as I can tell, to access these parts of the diagnosis app, you need another method than dialing a code it seems
Click to expand...
Click to collapse
Damn it! Looks like we are back to square one!
Have you seen also on the Samsung Galaxy S the Download mode is disabled on some devices, but some users made a jig where you bridge 2 pins with a certain resistor and it knocks the phone into download mode. Maybe this would work on the Omnia 7 also????
I am hoping for a software based fix rather than hacking together something.
**ALL** diagnostic codes for SAMSUNG devices
I reverse engineered the Diagnostic Menu Application. It contains a list of configuration "Titles" with corresponding hash-codes. I made a tool to reverse the hash-codes to dial-codes. The dial-codes may not be the same as some codes that were already known, but the dial-codes are absolutely correct for these menu. Differences are due to hash-collisions (same hash-code may have multiple possible dial-codes). I just used the shortest dial-codes for every menu.
The list of menu's is very long and I discovered that not all menu-codes were not actually implemented. I guess this list of codes is used for all Samsung devices (possibly also for Galaxy S and older Windows Mobile devices). So not all dial-codes may actually work on your device.
WARNING!! The menu's can configure low-level settings of your phone. And if you don't know what you're doing you may brick your device or maybe hard-reset the device and loose all your data and settings. Or you may faulty calibrate your sensors. Be very, very careful with experimenting!! I will not take any responsibility for damaging your device in any way.
I would personally be very interested if anyone finds a way to get the device in download-mode by using these menu's (I have a bad bootloader which does not let my Samsung Omnia 7 go into download-mode to flash it to a newer firmware).
By the way: the admin menu's are NOT implemented on the Omnia 7 :-(
This is the list with menu-titles, dial-codes and their hashcode:
Code:
FTAMain = 15 (0x686)
QUALCOMM TEST = *09# (0x17DB96)
TMOServiceMenu = *74*# (0x31710C2)
SMDINFO = *#03# (0x30C0953)
SIMPLE FUNCTION TEST = *#05# (0x30C0995)
IMEI NUMBER = *#06# (0x30C09B6)
VIEWHISTORYNW = *#07# (0x30C09D7)
LCDTEST = *#0*# (0x30C082A)
QWERTYTEST = *#1*# (0x30C0C6B)
BATT TEST = *#2*# (0x30C10AC)
BRIGHTNESS TEST = *#3*# (0x30C14ED)
TouchDelta 80 = *#80# (0x30C2AF8)
LIGHTTEST = *#12*# (0x648DBCDD)
BTLOGDUMP = *#232# (0x648E4E87)
WIFI FACTORY TEST = *#526# (0x648FEFED)
RILNETLOG = *#638# (0x649080D1)
RILDUMP = *#745# (0x64911110)
VPHONE770 = *#770# (0x64911D2E)
VPHONE771 = *#771# (0x64911D4F)
VPHONE772 = *#772# (0x64911D70)
VPHONE773 = *#773# (0x64911D91)
VPHONE774 = *#774# (0x64911DB2)
VPHONE775 = *#775# (0x64911DD3)
VPHONE776 = *#776# (0x64911DF4)
VPHONE777 = *#777# (0x64911E15)
VPHONE778 = *#778# (0x64911E36)
VPHONE779 = *#779# (0x64911E57)
SR TEST = *#780# (0x6491216F)
VT DUMP = *#938# (0x649225F4)
Disable Testbed = #12358# (0xFC28BE89)
Enable Testbed = *12358# (0x170067D0)
DEBUGMODE1 = *#0011# (0xF63246F2)
BATTERYINFO = *#0228# (0xF63364DC)
PHONELOOPBACKTEST = *#0283# (0xF6337DBD)
AUDIOTEST2 = *#0289# (0xF6337E83)
FMRADIORX = *#0368# (0xF6340241)
LIGHTSENSORTEST = *#0589# (0xF63523A6)
RRCVERSION = *#0599# (0xF63527E7)
AUDIOTEST = *#0673# (0xF635AB00)
SOUNDTEST = *#0675# (0xF635AB42)
RTC = *#0782# (0xF6363B81)
DEVICETEST = *#0842# (0xF636B6DE)
ILLUMINATIONTEST = *#0843# (0xF636B6FF)
MultiTouch = *#0987# (0xF63754E8)
SWversionFTA = *#1111# (0xF644EBD4)
MOUSETEST = *#121*# (0xF645774E)
SWversionEx = *#1234# (0xF645811A)
MOUSECAL = *#123*# (0xF6457FD0)
MOUSECAL06 = *#126*# (0xF6458C93)
GPSTEST = *#1575# (0xF6473762)
MICROUSB TEST = *#1793# (0xF6485864)
HWversionFTA = *#2222# (0xF6579518)
BANDSELECTION = *#2263# (0xF657A63D)
PHONEDUMP = *#2454# (0xF658BADF)
CAMERAUPDATE = *#2470# (0xF658C2DD)
CAMERADISABLE = *#2480# (0xF658C71E)
NAVIKEY TEST = *#2486# (0xF658C7E4)
INTEGRITY = *#2580# (0xF659537F)
TouchFirmare 2663 = *#2663# (0xF659D7C1)
TouchDelta 2664 = *#2664# (0xF659D7E2)
TouchDelta 2665 = *#2665# (0xF659D803)
RILNETLOG OFF = *#6380# (0xF6A09CC1)
RILNETLOG ON = *#6381# (0xF6A09CE2)
NETLOCK NETWORK = *#6955# (0xF6A3DAE9)
USBPATHCHANGE = *#7284# (0xF6B22965)
POWERONATTACH = *#7298# (0xF6B22E2A)
SELF DIAGNOSTIC MODE = *#7353# (0xF6B2A8E2)
DebugOption = *#7450# (0xF6B334E0)
ERROR REPORT ON = *#7451# (0xF6B33501)
ERROR REPORT VERIFY = *#7452# (0xF6B33522)
NETLOCK SERVICE = *#7755# (0xF6B4DAA8)
VPHONE DISABLED = *#77*0# (0xF6B4AB38)
VPHONE ENABLED = *#77*1# (0xF6B4AB59)
UARTCHANGER = *#9090# (0xF6D54562)
DEBUGDUMP = *#9900# (0xF6DA0E82)
PILEDUMP = *#9901# (0xF6DA0EA3)
NETLOG LOG START = *#9905# (0xF6DA0F27)
DEBUG RIL DUMP = *#9906# (0xF6DA0F48)
ERRORREPCAB INSTALL = *#9907# (0xF6DA0F69)
GUMITEST3G CAB INSTALL = *#9908# (0xF6DA0F8A)
SUWON3G CAB INSTALL = *#9909# (0xF6DA0FAB)
UARTPATH = *#9910# (0xF6DA12C3)
BATTERYMONITOR = *#9911# (0xF6DA12E4)
CONNECTION SETTING = *#9920# (0xF6DA1704)
VERIFYCOMPARE = *#9990# (0xF6DA34CB)
YSSHINTEST = *#9999# (0xF6DA35F4)
VersionScript = 19104#2* (0xD21FC43E)
BLUETOOTH LOG DISABLE = 20652609 (0x1598F3DE)
BLUETOOTH LOG ENABLE = 20652619 (0x1598F3FF)
BT SSPDEbugModeEnable = 20652629 (0x1598F420)
BT SSPDEbugModeDisable = 20652639 (0x1598F441)
OMADMCLIENT LOG DISABLE = 20653609 (0x1599803F)
OMADMCLIENT LOG ENABLE = 20653619 (0x15998060)
CELOG LOG DISABLE = 20654609 (0x159A0CA0)
CELOG LOG ENABLE = 20654619 (0x159A0CC1)
TOTALCALLTIME = 2934331* (0xC35403F3)
RESET CUSTOM = 35180948 (0x77496B66)
RESET FACTORY = 35190718 (0x775B7B02)
ERASE IMEIITEM = 35190728 (0x775B7B23)
IMEI ADJUST = 35190738 (0x775B7B44)
BLUETOOTH RF TEST = 3##65*88 (0xECE73A9E)
BLUETOOTH AUDIO TEST = 3##65*98 (0xECE73ABF)
AutoSimSetting = 40*047#3 (0xD1C556DF)
PVKKey = 40*549#3 (0xD21FD9E6)
RESET FACTORY WITHDEFAULTLANGUAGE = 76264513 (0x777E1362)
NONSLEEPCALL OFF = *#069*0# (0xBCEBFF49)
NONSLEEPCALL ON = *#069*1# (0xBCEBFF6A)
LEDTEST = *#14789# (0xBF1C1ADD)
DMSessionInit = *#15428# (0xBF2C7494)
CIPHERING = *#32489# (0xC3A095FA)
CAMERAUPDATESVC = *#32589# (0xC3A1225B)
LOGDUMPMGR = *#33284# (0xC3B19514)
SR DISABLED = *#780*0# (0xCD5F5D49)
SR ENABLED = *#780*1# (0xCD5F5D6A)
NETLOCK SUBSET = *#78255# (0xCD60A57B)
LAUNCH UAEDIT = *#92782# (0xD1A12DFC)
PdaBuildTime = *#99820# (0xD2204C1C)
VersionTime = *#99821# (0xD2204C3D)
WIFI TEST = 0373385#6 (0xECE73BA6)
EN LOCK NW = 074578132 (0xBBF27D35)
GCFTESTMODE ENTER = 086#58023 (0x1807BAE3)
FILE SYSTEM TEST = 089559715 (0x28F3F681)
AUDIOGAINCONTROL = 08#766104 (0x902D68E3)
DIS LOCK SUB NW = 17#991#3* (0x1D45A6AE)
PVKFileName = 18*357#25 (0x161B193C)
EN LOCK SUB NW = 193582504 (0xBC073A15)
GPSTESTTOOL = 1#8865#55 (0xF61EC09C)
EN LOCK CORP = 1*0273411 (0xF62C007D)
EN LOCK SVC = 1*0278411 (0xF62EBE62)
DIS LOCK NW = 20789802* (0x1D30E9CE)
SellOutSMS = 2615#0922 (0xD04CA8DE)
TFlashUnPairing = 30334*733 (0x51B892C4)
DIS LOCK SVC = 38025*93# (0xCA957BDB)
GPSTESTTOOL2 = 400#40*08 (0xB9F6D60D)
GPSTESTXTRA = 400#40*18 (0xB9F6D62E)
SerialNumber = 5317*0648 (0x6E256D8C)
EN LOCK SIM = 5494585*3 (0xBC051995)
SERVERURL = 553378683 (0xD8389060)
SLIDECOUNT = 584644021 (0xF0BF3052)
SellOutSMSTestMode = 597#*224# (0x96E7B26D)
APPSLAUNCHER = 5**6244*3 (0x33B0B76)
SLOGSERIAL M2 = 66#6757#1 (0x7050E07C)
AutoReceive Enable = 7160*5088 (0xEF2C5E0D)
TESTMODE = 718071#49 (0x8A09ACC8)
RESET SERVICE = 72673#00# (0xEC5B4BEF)
ReactivateSellOutSMS = 74201#086 (0x807DB65F)
AUDIOCODEC = 7#16#1#37 (0x902D68C2)
ADMIN GENERIC = 838*5448* (0xC8E890AC)
SLOGSERIAL ALL ON = 8644*3081 (0x705107AC)
VT MANUALSETTING = 8802*7*5# (0x104384B5)
DISLOCK SIM = 98217*243 (0x1D43862E)
DMTESTMENU = 9#7357764 (0x414D9633)
SLOGSERIAL ALL OFF = #22#6214# (0x7050E03A)
SLOGSERIAL M1 = #22#6215# (0x7050E05B)
SLOGSERIAL M3 = #22#6217# (0x7050E09D)
SLOGSERIAL M4 = #22#6218# (0x7050E0BE)
SLOGSERIAL M5 = #22#6219# (0x7050E0DF)
ADMIN VODAFONE = #75471648 (0x1C42130D)
DisableSellOutSMS = *4587*676 (0x903477AF)
BLUETOOTH SEARCH TEST = *#232333# (0xECE73AE0)
RANDOM BT MAC = *#232336# (0xECE73B43)
BLUETOOTH MAC VIEWER = *#232337# (0xECE73B64)
WIFI MAC VIEWER = *#232338# (0xECE73B85)
PRECONFIGURATION = *#638738# (0x213EF313)
SELF DIAGNOSTIC MODE DISABLE = *#7353*0# (0x6E008D7C)
SLOGSERIAL M6 = *#745*06# (0x7050E100)
DIS LOCK CORP = 00*2*2#524 (0xCA92BDF6)
ADMIN TMOBILE = 0612824763 (0x1BFBCA67)
AutoReceive Disable = 09925572#3 (0xD4B8217D)
SWversionIn = 1309653522 (0xECB23FC4)
GPSTTFFTESTTOOL = 154*068271 (0xF61EBC7C)
SellOutSMSProductionMode = 1#3341#5#0 (0x96D7C68A)
LOCK STATUS INFO = 28##**23*0 (0x7D8C72E3)
SWversionNewIn = 32456464#7 (0xFD58D7FC)
Heathcliff74 said:
I reverse engineered the Diagnostic Menu Application. It contains a list of configuration "Titles" with corresponding hash-codes. I made a tool to reverse the hash-codes to dial-codes. The dial-codes may not be the same as some codes that were already known, but the dial-codes are absolutely correct for these menu. Differences are due to hash-collisions (same hash-code may have multiple possible dial-codes). I just used the shortest dial-codes for every menu.
Click to expand...
Click to collapse
Can you share how did you reverse the hash function? I worked on this some time ago but finally just brute forced it to extract the keys.
I would also like to know how he reversed the hash codes! I tried for hours and had no luck!
Haha.. Well, I first tried to calculate the original dial-codes, but that seems to work only for dialcodes shorter than 8 digits (5 bits per digit, 32 bits hash-code = 32 / 5 = 7 digits + 1 digit for the extra add):
Code:
uint hash = 0; // enter hash here
string DialCode = "";
while (hash > 0)
{
uint digit = (hash % 33) + 33;
if (digit > hash)
hash = 0;
else
hash = (hash - digit) / 33;
DialCode = Convert.ToChar(digit) + DialCode;
}
return DialCode;
But this does not work for long dial-codes. So after that I just made a little program to brute-force it. I copied the enum with menu-titles and hash-codes to my project. Then I used reflection to populate a sortedlist. Then I started to brute-force and check all dialcodes for their hashcode and see if it exists in the list. If it exists, I add it to a textbox and remove the item from the list. That's it. So it is not really reversed, but my program took about an hour to get dial-codes for all the hashcodes in the enum.
Code:
SortedList<uint, string> hashCodes = new SortedList<uint, string>();
int l = typeof(HashCodeTable).GetEnumNames().Length;
string[] menunames = typeof(HashCodeTable).GetEnumNames();
for (int i = 0; i < l; i++)
{
try
{
hashCodes.Add(Convert.ToUInt32(Enum.Parse(typeof(HashCodeTable), menunames[i])), menunames[i].Substring(2).Replace('_', ' '));
}
catch { }
}
char[] chars = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '#', '*' };
for (int length = 1; length <= 20; length++)
{
ushort[] digits = new ushort[length];
for (int i = 0; i < length; i++) digits[i] = 0;
while (true)
{
// calc hash
uint hashCode = 0;
for (int i = 0; i < length; i++)
{
hashCode = ((hashCode << 5) + hashCode) + chars[digits[i]];
}
if (hashCodes.ContainsKey(hashCode))
{
int m = hashCodes.IndexOfKey(hashCode);
string str = "";
for (int j = 0; j < length; j++)
str = str + chars[digits[j]];
textBox1.Text = textBox1.Text + hashCodes.Values[m] + " = " + str + " (0x" + hashCode.ToString("X") + ")" + Environment.NewLine;
hashCodes.RemoveAt(m);
}
// increase
digits[length - 1]++;
for (int k = length - 1; k >= 0; k--)
{
if (digits[k] >= 12)
{
if (k == 0)
break;
else
{
digits[k] -= 12;
digits[k - 1]++;
}
}
}
if ((digits[0] >= 12) || (hashCodes.Count == 0)) break;
}
if (hashCodes.Count == 0) break;
}
Excellent stuff! Thank you for this very interesting code snippit!
WP7 diag codes
martani said:
Actually the code is a little misleading, if you see closely, the enum HashCodeTable is used nowhere.
Click to expand...
Click to collapse
This is because the compiler optimized out the switch statement and compiled the constants into the IL code for the hash codes.
Within the main switch statement where keypad entries are evaluated there are ~112 codes and I've reversed all of them. Writing hash algorithms is not straightforward and it's quite a simple one, since my app captured 2-3-4 variants of keycodes for the same hash value.
Regarding the most interesting entries at the top of the enum the ADMIN_ entries...those hash values are not handled by the application, maybe Samsung has another diag app or a different app which is using the same method.
The other thing I can think of is there are APIs in the diag app which one is sending the hash of a keycode to the given driver...I tried that but the ADMIN stuff did not worked that way either :-((
If anyone is interested I can post the resolved codes, but not sure if I can post it in the forum or not ;-)
Regsitry entry to enable SLDR mode
I found this definition in B44C7A84-5068-4b43-A1E5-F870A80F6FF8.rgu:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\UsbFn]
...
"OsMode"=dword:0 ; 0 for Main OS, 1 for SLDR
....
Is the download mode == SLDR mode?
Since maybe we can set this entry "somehow", and upon next reboot we will get into download mode so we can flash the device?
So the question is, what is SLDR mode? Secure Loader mode? I don't know this, a more pro in this area should help out ;-)
UPDATE
I was able to read the value (0) and write it back (0). Did not tried to write 1 there
Hey guys. I know this thread is about programmatically enter downloadmode, but I wanted to try the 301k resistor trick and I can confirm it works on Samsung Omnia 7.
I used this guide. If you're gonna do that too, then you should pay attention to these things:
- The guide refers to pin 4 and 5 being closest to the headphone socket. But on the omnia 7, the headphone and micro-usb sockets are the other way around if you compare it to the Galaxy S. The guide is for the Galaxy S, so you should really pay attention to which pins you solder the resistor(s). This is the best picture on how you should solder the resistor(s).
- Many micro-usb cables have no wire for pin 4. Some connectors don't even have a pin 4. You should first verify that your connector has all 5 pins. If you only have 4 wires, then you have to dismantle the connector and solder directly on the back of the connector.
I switched off my Omnia 7. I plugged in my jig and it went to downloadmode immediately.
It's late now, so I will see tomorrow what I will be going to flash on it. There quite a few roms and I'm not sure which one I should use. I have to figure that out first.
If anyone has questions about how to make a jig, just ask. I know how to make one now.
You should post pictures, how to make such a cable. Thanks
FromOuterSpace said:
You should post pictures, how to make such a cable. Thanks
Click to expand...
Click to collapse
The picture I linked to in my previous post look pretty clear to me. It shows what pins you have to use. The guide I linked to contain all the other necessary details. If you have any specific questions about something that is still not clear, you can ask me.

possible interop-lock back door

My gift... I discovered this .NET trick 4 years ago that allows execution of preassemblyed machine code in .NET. Someone doing WP7 development may want to see if this trick works in WP7 to bypass the Interop security exception in order to directly call the COM interfaces. Code is VB, sorry. You'll need to translate to C#. Maybe there is a way to use a similar trick in WP7.1.
Code:
Namespace MachineCode
<UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)> _
Public Delegate Sub MachineCodeDelegate(ByVal bufferptr As IntPtr)
<Flags()> _
Friend Enum AllocationTypes As UInteger
Commit = &H1000
Reserve = &H2000
Reset = &H80000
LargePages = &H20000000
Physical = &H400000
TopDown = &H100000
WriteWatch = &H200000
End Enum
<Flags()> _
Friend Enum MemoryProtections As UInteger
Execute = &H10
ExecuteRead = &H20
ExecuteReadWrite = &H40
ExecuteWriteCopy = &H80
NoAccess = &H1
[ReadOnly] = &H2
ReadWrite = &H4
WriteCopy = &H8
GuartModifierflag = &H100
NoCacheModifierflag = &H200
WriteCombineModifierflag = &H400
End Enum
<Flags()> _
Friend Enum FreeTypes As UInteger
Decommit = &H4000
Release = &H8000
End Enum
Public Class CpuId
Public Shared Function CallMachineCode(x86() As Byte, x64() As Byte) As Byte()
Dim buffer(Math.Max(x86.Length, x64.Length) - 1) As Byte
If IntPtr.Size = 4 Then
Dim p As IntPtr = NativeMethods.VirtualAlloc( _
IntPtr.Zero, _
New UIntPtr(CType(x86.Length, UInteger)), _
AllocationTypes.Commit Or AllocationTypes.Reserve, _
MemoryProtections.ExecuteReadWrite)
Try
Marshal.Copy(x86, 0, p, x86.Length)
Dim del As MachineCodeDelegate = CType(Marshal.GetDelegateForFunctionPointer(p, GetType(MachineCodeDelegate)), MachineCodeDelegate)
Dim sourceGCHandle As GCHandle = GCHandle.Alloc(buffer, GCHandleType.Pinned)
Dim sourceAddress As Integer = sourceGCHandle.AddrOfPinnedObject.ToInt32
del.Invoke(sourceAddress)
sourceGCHandle.Free()
Finally
NativeMethods.VirtualFree(p, 0, FreeTypes.Release)
End Try
ElseIf IntPtr.Size = 8 Then
Dim p As IntPtr = NativeMethods.VirtualAlloc( _
IntPtr.Zero, _
New UIntPtr(CType(x64.Length, UInteger)), _
AllocationTypes.Commit Or AllocationTypes.Reserve, _
MemoryProtections.ExecuteReadWrite)
Try
Marshal.Copy(x64, 0, p, x64.Length)
Dim del As MachineCodeDelegate = CType(Marshal.GetDelegateForFunctionPointer(p, GetType(MachineCodeDelegate)), MachineCodeDelegate)
Dim sourceGCHandle As GCHandle = GCHandle.Alloc(buffer, GCHandleType.Pinned)
Dim sourceAddress As Integer = sourceGCHandle.AddrOfPinnedObject.ToInt32
del.Invoke(sourceAddress)
sourceGCHandle.Free()
Finally
NativeMethods.VirtualFree(p, 0, FreeTypes.Release)
End Try
End If
Return buffer
End Function
#Region "ASM"
Private Shared x86 As Byte() = New Byte() { _
&H53, _
&H31, &HC0, _
&HF, &HA2, _
&H8B, &H44, &H24, &H8, _
&H89, &H18, _
&H89, &H50, &H4, _
&H89, &H48, &H8, _
&H5B, _
&HC3}
'0x53, // push %ebx
'0x31, 0xc0, // xor %eax,%eax
'0x0f, 0xa2, // cpuid
'0x8b, 0x44, 0x24, 0x08, // mov 0x8(%esp),%eax
'0x89, 0x18, // mov %ebx,0x0(%eax)
'0x89, 0x50, 0x04, // mov %edx,0x4(%eax)
'0x89, 0x48, 0x08, // mov %ecx,0x8(%eax)
'0x5b, // pop %ebx
'0xc3 // ret
Private Shared x64 As Byte() = New Byte() { _
&H49, &H89, &HD8, _
&H49, &H89, &HC9, _
&H48, &H31, &HC0, _
&HF, &HA2, _
&H4C, &H89, &HC8, _
&H89, &H18, _
&H89, &H50, &H4, _
&H89, &H48, &H8, _
&H4C, &H89, &HC3, _
&HC3}
'0x49, 0x89, 0xd8, // mov %rbx,%r8
'0x49, 0x89, 0xc9, // mov %rcx,%r9
'0x48, 0x31, 0xc0, // xor %rax,%rax
'0x0f, 0xa2, // cpuid
'0x4c, 0x89, 0xc8, // mov %r9,%rax
'0x89, 0x18, // mov %ebx,0x0(%rax)
'0x89, 0x50, 0x04, // mov %edx,0x4(%rax)
'0x89, 0x48, 0x08, // mov %ecx,0x8(%rax)
'0x4c, 0x89, 0xc3, // mov %r8,%rbx
'0xc3 // retq
#End Region
Private Class NativeMethods
Declare Auto Function VirtualAlloc Lib "kernel32.dll" ( _
ByVal lpAddress As IntPtr, _
ByVal dwSize As UIntPtr, _
ByVal flAllocationType As AllocationTypes, _
ByVal flProtect As MemoryProtections) As IntPtr
'[return: MarshalAs(UnmanagedType.Bool)]
Declare Auto Function VirtualFree Lib "kernel32.dll" ( _
ByVal lpAddress As IntPtr, _
ByVal dwSize As UIntPtr, _
ByVal flFreeType As FreeTypes) As Boolean
End Class
End Class
End Namespace
I don't think it's possible. We can't call native VirtualAlloc function without ComBridge and corresponding permissions.
P.S. Also, your example:
- converted from well known C# source to VB
- uses x86/64 instructions set (WP7 is arm based)
Well, ComBridge doesn't actually require ID_CAP_INTEROPSERVICES. However, all that you're really likely to be able to do with this is the same as can already be done with the DllImport project. Calling native code from managed code in WP7 isn't terribly hard. The problem is, that only gets you out of the API sandbox, not out of the permissions sandbox. WP7 apps run with super-low permissions. The way to get higher permissions is call into a driver/service that is running with more permissions. However, in order to open a handle to one (so you can call into it) you need ID_CAP_INTEROPSERVICES. The call will fail otehrwise, even using native code.
GoodDayToDie said:
Well, ComBridge doesn't actually require ID_CAP_INTEROPSERVICES.
Click to expand...
Click to collapse
Technically you're right but do you have manf's signed dll with COM-bridges to native VirtualAlloc, GlobalAlloc etc.? Please share!
GoodDayToDie said:
The way to get higher permissions is call into a driver/service that is running with more permissions.
Click to expand...
Click to collapse
Probably also (probably 'cause I'm not an expert in SL security nor a black hat ) we can use some "standard" techniques like a stack overflow by calling natives (PocketIE, system media player)... Last year I worked closely with MediaElement (SL wrapper to the system media player) and (mostly at the beginning) I've had a lot of system freezes / reboots by committing wrong/non-expected data to ME (just mark - I worked in SL "protected" (sic!) sand box)

Categories

Resources