none
The problem of setting "Location Service" off as default RRS feed

  • Question

  • I want to set 'Location Service' off as default. I saw some information in AllowLocation

    I wrote a prov.xml file to set System/AllowLocation as '0', in order that the 'Location Service' is off. The code is as below:

    <?xml version="1.0" encoding="utf-8"?>
    <SyncML xmlns="SYNCML:SYNCML1.2">
        <SyncHdr/>
        <SyncBody>
            <Atomic>
                <CmdID>InstallProfile</CmdID>
    			<Replace>
    				<CmdID>res-email-passcode.passwordpolicy</CmdID>
    				<Item>
    					<Data>0</Data>
    					<Target>
    						<LocURI>./Vendor/MSFT/PolicyManager/My/System/AllowLocation</LocURI>
    					</Target>
    					<Meta>
    						<Format>int</Format>            
    					</Meta>        
    				</Item>
    			 </Replace>
            </Atomic>
        </SyncBody>
    </SyncML>

    When I saved the prov.xml in SD card, then started the OOBE, the 'Location Service' was still on.

    Is there something wrong?

    The other question is :

    In AllowLocation, it says that System/AllowLocation is Supported via MDM only, does the MDM mean mobile device management?

    If so, how can I use MDM to push the prov.xml to device?

    Monday, November 3, 2014 8:28 AM

Answers

  • Correct, MDM in that document refers to [Enterprise] Mobile Device Management.

    To send this configuration, you need to first enroll a device with a server that implements the Windows Phone 8.1 Enterprise Device Management protocol. http://msdn.microsoft.com/en-us/library/dn499787.aspx


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    • Marked as answer by Xiaogang1256 Tuesday, November 4, 2014 7:28 AM
    Monday, November 3, 2014 7:37 PM
    Moderator

All replies

  • Correct, MDM in that document refers to [Enterprise] Mobile Device Management.

    To send this configuration, you need to first enroll a device with a server that implements the Windows Phone 8.1 Enterprise Device Management protocol. http://msdn.microsoft.com/en-us/library/dn499787.aspx


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    • Marked as answer by Xiaogang1256 Tuesday, November 4, 2014 7:28 AM
    Monday, November 3, 2014 7:37 PM
    Moderator
  • Hi Eric:

    I used system->workplace to enroll my device. But when I input the email address "amyers@contoso.com" that provided in Windows Phone 8.1 Enterprise Device Management protocol and then sign in, I need to input server, I tried some server address, but all failed. I found there is step that Certificate installation. May it caused by certificate.

    How can I generate the certificate?

    • Edited by Xiaogang1256 Wednesday, November 5, 2014 5:45 AM wrong format
    Wednesday, November 5, 2014 5:44 AM
  • The document provides information for implementing a web service that uses the protocol.  Values shown in the examples are only place-holders. 

    Initially you mentioned prov.xml file, are you working for a device manufacturer?

    Can you provide more information about your scenario?


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    Wednesday, November 5, 2014 11:56 PM
    Moderator
  • I'm working for a device manufacturer. And I want to turn off 'Location Service' that is in settings->system->location on device when the system starts for the first time.

    <Add> 
       <CmdID>1</CmdID> 
       <Item>
         <Target> 
           <LocURI>   ./Vendor/MSFT/CertificateStore/Root/System/<CertificateHashInsertedhere>/EncodedCertificate 
           </LocURI>
         </Target> 
       <Data>B64EncodedCertInsertedHere</Data>
       <Meta> 
         <Format xmlns="syncml:metinf">b64</Format> 
       </Meta> 
       </Item> 
    </Add>

    Can I use the example to add a certificate? And how can I get the 'CertificateHash'?

    Can only device manufacturers generate the certificate?

    If the prov.xml is OK, where should I save the file?

    Is there other method can do that except via MDM?

    Thursday, November 6, 2014 12:46 AM
  • Ok, if you are trying to configure provisioning for the "Out of the Box Experience" (OOBE) then MDM is probably not the right solution.

    I believe there are private forums for device manufacturers on which you can get help with provisioning.  The device manufacturer should have a partner contact at Microsoft who should be able to direct you to the right resources to assist with OEM specific tasks.


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    Thursday, November 6, 2014 3:20 PM
    Moderator