Source:
public android.net.Uri persistPart ( com.google.android.mms.pdu.PduPart part , long msgId ) throws com.google.android.mms.MmsException { android.net.Uri uri = android.net.Uri.parse ( ( ( "content://mms/" + msgId ) + "/part" ) ) ; android.content.ContentValues values = new android.content.ContentValues ( 8 ) ; int charset = part.getCharset ( ) ; if ( charset != 0 ) { values.put ( Part.CHARSET , charset ) ; } java.lang.String contentType = null ; if ( ( part.getContentType ( ) ) != null ) { contentType = com.google.android.mms.pdu.PduPersister.toIsoString ( part.getContentType ( ) ) ; values.put ( Part.CONTENT_TYPE , contentType ) ; if ( ContentType.APP_SMIL.equals ( contentType ) ) { values.put ( Part.SEQ , ( - 1 ) ) ; } } else { throw new com.google.android.mms.MmsException ( "MIME type of the part must be set." ) ; } if ( ( part.getFilename ( ) ) != null ) { java.lang.String fileName = new java.lang.String ( part.getFilename ( ) ) ; values.put ( Part.FILENAME , fileName ) ; } if ( ( part.getName ( ) ) != null ) { java.lang.String name = new java.lang.String ( part.getName ( ) ) ; values.put ( Part.NAME , name ) ; } java.lang.Object value = null ; if ( ( part.getContentDisposition ( ) ) != null ) { value = com.google.android.mms.pdu.PduPersister.toIsoString ( part.getContentDisposition ( ) ) ; values.put ( Part.CONTENT_DISPOSITION , ( ( java.lang.String ) ( value ) ) ) ; } if ( ( part.getContentId ( ) ) != null ) { value = com.google.android.mms.pdu.PduPersister.toIsoString ( part.getContentId ( ) ) ; values.put ( Part.CONTENT_ID , ( ( java.lang.String ) ( value ) ) ) ; } if ( ( part.getContentLocation ( ) ) != null ) { value = com.google.android.mms.pdu.PduPersister.toIsoString ( part.getContentLocation ( ) ) ; values.put ( Part.CONTENT_LOCATION , ( ( java.lang.String ) ( value ) ) ) ; } android.net.Uri res = com.google.android.mms.util.SqliteWrapper.insert ( mContext , mContentResolver , uri , values ) ; if ( res == null ) { throw new com.google.android.mms.MmsException ( "Failed to persist part, return null." ) ; } persistData ( part , res , contentType ) ; part.setDataUri ( res ) ; return res ; }

Target:
public android.net.Uri persistPart ( com.google.android.mms.pdu.PduPart part , long msgId ) throws com.google.android.mms.MmsException { android.net.Uri uri = android.net.Uri.parse ( ( ( "content://mms/" + msgId ) + "/part" ) ) ; android.content.ContentValues values = new android.content.ContentValues ( 8 ) ; int charset = part.getCharset ( ) ; if ( charset != 0 ) { values.put ( Part.CHARSET , charset ) ; } java.lang.String contentType = null ; if ( ( part.getContentType ( ) ) != null ) { contentType = com.google.android.mms.pdu.PduPersister.toIsoString ( part.getContentType ( ) ) ; if ( ContentType.IMAGE_JPG.equals ( contentType ) ) { contentType = com.google.android.mms.ContentType.IMAGE_JPEG ; } values.put ( Part.CONTENT_TYPE , contentType ) ; if ( ContentType.APP_SMIL.equals ( contentType ) ) { values.put ( Part.SEQ , ( - 1 ) ) ; } } else { throw new com.google.android.mms.MmsException ( "MIME type of the part must be set." ) ; } if ( ( part.getFilename ( ) ) != null ) { java.lang.String fileName = new java.lang.String ( part.getFilename ( ) ) ; values.put ( Part.FILENAME , fileName ) ; } if ( ( part.getName ( ) ) != null ) { java.lang.String name = new java.lang.String ( part.getName ( ) ) ; values.put ( Part.NAME , name ) ; } java.lang.Object value = null ; if ( ( part.getContentDisposition ( ) ) != null ) { value = com.google.android.mms.pdu.PduPersister.toIsoString ( part.getContentDisposition ( ) ) ; values.put ( Part.CONTENT_DISPOSITION , ( ( java.lang.String ) ( value ) ) ) ; } if ( ( part.getContentId ( ) ) != null ) { value = com.google.android.mms.pdu.PduPersister.toIsoString ( part.getContentId ( ) ) ; values.put ( Part.CONTENT_ID , ( ( java.lang.String ) ( value ) ) ) ; } if ( ( part.getContentLocation ( ) ) != null ) { value = com.google.android.mms.pdu.PduPersister.toIsoString ( part.getContentLocation ( ) ) ; values.put ( Part.CONTENT_LOCATION , ( ( java.lang.String ) ( value ) ) ) ; } android.net.Uri res = com.google.android.mms.util.SqliteWrapper.insert ( mContext , mContentResolver , uri , values ) ; if ( res == null ) { throw new com.google.android.mms.MmsException ( "Failed to persist part, return null." ) ; } persistData ( part , res , contentType ) ; part.setDataUri ( res ) ; return res ; }