Profile Manager's ProcessProfile() method returning "Bind Error"

E Efkan YILMAZ 3 years 4 months ago
4 0 0

I've got a settings application that is trying to disable the WWAN Radio to simulate airplane mode.

I'm using the following profile:

   
   
   
   
     
     
   

With the code snippet as follows:

        public void EnableWWAN(bool enable)
        {
            var profileData = new[]
            {
                $"wm1.{WirelessManager.WWAN_STATE}={(enable ? WirelessManager.WWANState.TurnOn : WirelessManager.WWANState.TurnOff).ToString("d")}",
            };

            _profileManager.ProcessProfileAsync(WIRELESS_MANAGER_WWAN_PROFILE_NAME, ProfileManager.PROFILE_FLAG.Set, profileData);
        }

What I'm seeing is that it works most of the time.  However, it will sometimes return "Bind Error" in the callback.  Is there something I can do to avoid this (i.e. what's the cause?).  Once the device (A TC56 running Marshmallow 6.0.1), the only way to clear the state seems to be either a factory reset or enterprise reset on the device.

CONTACT
Can’t find what you’re looking for?