How to set <PrivilegedApplications> tag in device metadata?

Im working on a Windows 8 storage application to send sms. I have the code, but I get an "Access Denied" error message and that my application does not have enough privileges.

Is there a way to create my own application (which uses the capabilities of the sms device) and test it without having to register it using the Windows toolbar?

+4
source share
2 answers

Here is what I could find out:

Thus, using this "Sideloading" process, you can install applications directly on your device without having to go through Windows storage. I provided links that made me participate in this project,

Side scan

Discussions

Create metadata

Edit: WDK 8.1 now has a new metadata creation tool that is simpler and easier to use. :)

0
source

This probably means you need to add a manifest feature to your application. If you want to take a look at this, download the sample here (choose any language):

http://code.msdn.microsoft.com/windowsapps/Sms-SendReceive-fa02e55e

What you are looking for is the possibility of SMS in the manifest. It doesn't seem like it appears in VS designer, but you can see it in raw XML. Open the project and in the solution explorer, right-click on package.appxmanifest. Then click the view source. At the bottom of the manifest, you will see the following:

<Capabilities> <DeviceCapability Name="Sms" /> </Capabilities> 

Try adding this to the application manifest. I suspect you are missing.

Thanks,

Ben

+1
source

Source: https://habr.com/ru/post/1484870/


All Articles