New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
athompson
Old
(Last edited by athompson; 11th November 2010 at 08:46 PM.) Reason: More detailed information, correcting old erroneous information
#1  
Senior Member - OP
Thanks Meter 2
Posts: 112
Join Date: Oct 2010
Default Undocumented Capabilities in WMAppManifest.xml WP7

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.
 
vladimir2989
Old
#2  
vladimir2989's Avatar
Senior Member
Thanks Meter 4
Posts: 424
Join Date: Jun 2007
Location: London

 
DONATE TO ME
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
maybe Nokia 920 next...

Siemens s35 > Motorola c350 > Motorola V600 > Motorola V3i > HTC Magician > HTC Wizard > Treo 750 > Treo Pro > HTC HD2 (WinMo 6.5)> HTC 7 Mozart (sold) > HTC HD2 (ICS) > iPhone 4 > Nokia 920 (maybe)

Quote:
Fear is temporary, Regret is permanent."
 
athompson
Old
#3  
Senior Member - OP
Thanks Meter 2
Posts: 112
Join Date: Oct 2010
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......
 
naplesbill
Old
#4  
Senior Member
Thanks Meter 39
Posts: 755
Join Date: Jun 2008
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
It doesn't matter if you have an Android, iOS, WP7, or any other OS based device. Just enjoy what you have and share with the rest of us.
 
TheDisneyMagic
Old
#5  
TheDisneyMagic's Avatar
Senior Member
Thanks Meter 3
Posts: 102
Join Date: May 2007
All well and good having that, but why should we purchase a ring tone?
 
naplesbill
Old
#6  
Senior Member
Thanks Meter 39
Posts: 755
Join Date: Jun 2008
Quote:
Originally Posted by TheDisneyMagic View Post
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.
It doesn't matter if you have an Android, iOS, WP7, or any other OS based device. Just enjoy what you have and share with the rest of us.
 
Iridox
Old
#7  
Iridox's Avatar
Senior Member
Thanks Meter 2
Posts: 100
Join Date: Dec 2009
Location: Boston
Long press on a song in Zune won't let you set it as the ringtone?
 
TheDisneyMagic
Old
#8  
TheDisneyMagic's Avatar
Senior Member
Thanks Meter 3
Posts: 102
Join Date: May 2007
Quote:
Originally Posted by Iridox View Post
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.
 
Iridox
Old
#9  
Iridox's Avatar
Senior Member
Thanks Meter 2
Posts: 100
Join Date: Dec 2009
Location: Boston
Ah, that's a PITA >_>
 
013X
Old
#10  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Oct 2010
Quote:
Originally Posted by naplesbill View Post
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!?


XDA PORTAL POSTS

MicrowaveTimePicker Brings 4.2 TimePicker to 2.1+ Devices

It’s frustrating to see slick new features that you can’t use when … more

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more