Foward lock issue - jar file and other

Foward lock issue - jar file and other SearchSearch
Author Message
Jeff Mitchell
New member
Username: Squared99

Post Number: 1
Registered: 04-2006
Posted on Friday, May 12, 2006 - 05:08 am:   

Hi,

I have been testing the forward lock option using the command line tool drmcomp (the latest version as suggested) to create the dm file. When testing with images and audio formats it appears to work fine across a number of handsets. But when testing with jar or various video formats an 'unsupported media type' error appears on all handsets I have tested with after download.

This error appears even though the media type is supported for example 'unsupported media type: application/java-archive', on a handset that can successfully download and install the same jar file if it is not drm wrapped.

I have looked at the hex of the files, and dont really notice any difference in the drm wrapper around a jar vs a jpeg, but the jpeg will work and the jar will not.

Ive grabbed the drm file using another app to spit outs its content-type info and it recognizes the proper drm content-type and the header data is correct.
application/vnd.oma.drm.message; boundary="generic-drm-boundary"

any suggestions that I could investigate further?
Jeff Mitchell
New member
Username: Squared99

Post Number: 2
Registered: 04-2006
Posted on Monday, May 15, 2006 - 10:42 pm:   

anyone else had any issues with drmcomp and jars or video files?

cheers
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5952
Registered: 10-2002
Posted on Wednesday, May 17, 2006 - 10:47 pm:   

Hi Jeff,

To save me some time, could you post a simple wrapped JAR that I could use for some testing?

-bn
Jeff Mitchell
New member
Username: Squared99

Post Number: 3
Registered: 04-2006
Posted on Thursday, May 18, 2006 - 12:15 am:   

Hi Bruce,

Thanks for the help.

Ill upload 2 files of the same jar. One is using the content-type default from drmcomp which seems to application/jar, the second is wrapped with an explicitly specified content-tye of application/java-archive.

Neither work on a device that supports drm forward locking when tested with audio and image formats, and that supports the java game, which installs correctly when not drm wrapped.

Cheers,

jeff
application/octet-streamapplication/jar
MobileInvaders1.dm (22.4 k)
Jeff Mitchell
New member
Username: Squared99

Post Number: 4
Registered: 04-2006
Posted on Thursday, May 18, 2006 - 12:18 am:   

second file,

btw this game is from a free jars website, and so I assume it is alright to post here. We have been using it for testing.

22.4 K
MobileInvaders2.dm
"application/java-archive"
Jeff Mitchell
New member
Username: Squared99

Post Number: 5
Registered: 04-2006
Posted on Thursday, May 18, 2006 - 12:25 am:   

application/octet-streamjava archive
MobileInvaders2.dm (22.4 k)
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5960
Registered: 10-2002
Posted on Thursday, May 18, 2006 - 08:50 pm:   

Hi Jeff,

Hmm ... it's working ok for me on a SonyEricsson W800.

I also tried a Nokia 6260, and it worked.

So I'm wondering what else the issue is ... maybe something specific to a phone that you're trying?

The "application/jar" vs. "application/java-archive" issue could definitely be a problem.

We read the MIME type from MMSCTYPE.INI, or if that is not present, from the MIME type registry on the PC. If the MIME type is not in the registry, then it becomes "application/fileextension".

-bn