Thanks you so much for the response

This exception occurs when tryChangeSimLockState  is called at
packages/apps/Settings/src/com/android/settings/SimLockSettings.java
The exception is random. Sometimes it passes without any issues and
sometime it gives exception. I try to provide wrong PIN to re-produce
the exception.

I have following change on the processSolicited  (RIL.java)

        if (error !=0)
        {
         switch(rr.mRequest) [
                case RIL_REQUEST_SET_FACILITY_LOCK:

                if( error == RILConstants.PASSWORD_INCORRECT
                    ||  error == RILConstants.SIM_PIN2
                    ) {
                    onSimPinError(error, rr, p);
                    return;
                 } else {
                     rr.onError(error);
                     rr.release();
                     return;
                 }
                default:
                    rr.onError(error);
                    rr.release();
                    return;
             }
        }

        Object ret;

----------------------------------------------------------------------------
 private void onSimPinError(int error, RILRequest rr, Parcel p)
    {
        Object ret = 0;

        CommandException ex;
        ex = CommandException.fromRilErrno(error);

         switch(rr.mRequest) {
                case RIL_REQUEST_SET_FACILITY_LOCK:
                     if (RIL.RILJ_LOGD) Log.d(LOG_TAG, rr.serialString
() + "<  onSimPinError() switch block case: "
                         + RIL.requestToString(rr.mRequest));
                     ret = responseInts(p);
                     break;
                default:
                     break;
        }
        if (rr.mResult != null) {
            AsyncResult.forMessage(rr.mResult, ret, null);
            rr.mResult.sendToTarget();
        }
        if (p != null) {
            p.recycle();
            p = null;
        }
        rr.release();
    }


On Jun 26, 11:10 am, Marco Nelissen <[email protected]> wrote:
> On Thu, Jun 25, 2009 at 6:36 PM, Rab73<[email protected]> wrote:
>
> > Just wondering if anyone can help
>
> > Just wondering if anyone can help on the security exception I am
> > getting.
>
> It might help if you also included the code that is triggering this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to