FORUMS
Remove All Ads from XDA

Undocumented Capabilities in WMAppManifest.xml WP7

112 posts
Thanks Meter: 2
 
By athompson, Senior Member on 27th October 2010, 01:30 AM
Post Reply Email Thread
Looking around the IMGFS, I found some undocumented capabilities that can be used in building an app (in addition to the standard ones mentioned in the WMAppManifest.xml file).

These are the extra ones I found, in case anyone is interested (from BasePolicy.xml):
ID_CAP_RINGTONE_ADD:Allows ringtone-marketplace applications to read/write into the Ringtones directory
ID_CAP_MEDIALIB:Access to the media library - read, play-back, etc.
ID_CAP_INTEROPSERVICES:Temporary Interop Service Capability.. To be removed by feature team
ID_CAP_SIM:Provides access to SIM manager API
ID_CAP_SMS:Provides access to SMS API
ID_CAP_WAP:Provides access to WAP API
ID_CAP_IDENTITY_USER:Allow an application to use a phone.info.dll to retrieve user properties
ID_CAP_TESTPUBLIC1:Small public test capability
ID_CAP_LOADUNSIGNEDMANAGEDDLL:Capability to load unsigned managed dll into chamber's process space
ID_CAP_LOADUNSIGNEDNATIVEDLL:Capability to load unsigned native dll into chamber's process space
ID_CAP_DEBUG:Allow an application to run in debugging enviorment.

---Edit---
I've tested each of these individually, and some work, and others don't.

ID_CAP_INTEROPSERVICES works
ID_CAP_RINGTONE_ADD works
ID_CAP_MEDIALIB works
ID_CAP_IDENTITY_USER works
ID_CAP_TESTPUBLIC1 works

ID_CAP_SIM ID doesn't work
CAP_SMS doesn't work
ID_CAP_WAP doesn't work
ID_CAP_LOADUNSIGNEDNATIVEDLL doesn't work
ID_CAP_LOADUNSIGNEDMANAGEDDLL doesn't work.

Note that even for the ones that work, Microsoft may still reject them in the app store.

I tested these by entering them in the WMAppManifest.xml in the XAP, and loading them on a windows phone device. This guy suggests that if it loads on the device, you have the permission: http://www.drdobbs.com/windows/227701092 and I think he's right. If you don't have permission, it doesn't actually load, and in every case, if it loaded it ran.
 
 
27th October 2010, 05:38 PM |#2  
vladimir2989's Avatar
Senior Member
Flag London
Thanks Meter: 11
 
Donate to Me
More
ID_CAP_RINGTONE_ADD - So i guess with next update we will get Custom ringtones that can b installed from an app

off topic can some one create utility that will do something about tuch sensetive buttons, when using camera if u tuch any of then by accident it exit camera, so u have to hold phone very carefully.
also, app to lock screen rotation would be nice.... any of thous features undocumented anywhere

P.S sorry for unrelated message
27th October 2010, 07:20 PM |#3  
OP Senior Member
Thanks Meter: 2
 
More
I think the ID_CAP_RINGTONE_ADD feature will only be enabled for the carriers (who knows what Microsoft really has in mind, though). The Windows Phone has done a good job (or lousy job, compared to what I desire) managing permissions so they can choose what capability to give whom.

Disabling other buttons shouldn't be hard if you can get to the native API. So once the phone is jailbroken......
27th October 2010, 09:29 PM |#4  
Senior Member
Thanks Meter: 71
 
More
Actually, Microsofts own Q&A on Windows Phone 7 states to look in the Marketplace for additional ringtones. Here is an excerpt and a link:

Quote:

To find a ringtone in Marketplace
1
On Start, tap the arrow to go to the App list, then tap Marketplace .

2
Press the Search button.

3
Do one of the following:


To browse a variety of ringtones, type ringtones, then tap Enter .

To look for a more particular type of ringtone, type something more specific, like Halloween ringtones.
Tip
To hear what a ringtone or alert sounds like, tap Play .

Note
Marketplace may not be available in your country or region.

http://www.microsoft.com/windowsphon...nd-sounds.aspx
28th October 2010, 01:19 AM |#5  
TheDisneyMagic's Avatar
Senior Member
Thanks Meter: 3
 
More
All well and good having that, but why should we purchase a ring tone?
28th October 2010, 02:42 AM |#6  
Senior Member
Thanks Meter: 71
 
More
Quote:
Originally Posted by TheDisneyMagic

All well and good having that, but why should we purchase a ring tone?

Well, I don't see myself buying any, but this means an app could be made to create/add ringtones.
28th October 2010, 04:19 AM |#7  
Iridox's Avatar
Senior Member
Flag Boston
Thanks Meter: 2
 
More
Long press on a song in Zune won't let you set it as the ringtone?
28th October 2010, 01:27 PM |#8  
TheDisneyMagic's Avatar
Senior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by Iridox

Long press on a song in Zune won't let you set it as the ringtone?

Nope, I asumed this would be how it worked but no option in the list to do so.
28th October 2010, 03:01 PM |#9  
Iridox's Avatar
Senior Member
Flag Boston
Thanks Meter: 2
 
More
Ah, that's a PITA >_>
28th October 2010, 03:08 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Talking
Quote:
Originally Posted by naplesbill

Well, I don't see myself buying any, but this means an app could be made to create/add ringtones.

A whole app just to add a ringtone!?
28th October 2010, 07:12 PM |#11  
OP Senior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by naplesbill

Actually, Microsofts own Q&A on Windows Phone 7 states to look in the Marketplace for additional ringtones. Here is an excerpt and a link:



http://www.microsoft.com/windowsphon...nd-sounds.aspx

To me that excerpt looks like you can download ringtones from the store, not that you can create an app to download ringtones. It would appear that Microsoft has an internal application that can add ringtones (which makes sense). These permissions are enforced by the OS, not the app store (maybe the app store does too). So if they want to be able to install ringtones, they need to give their own app permission to do so.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes