10.07.2015 Views

dissertation

dissertation

dissertation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

import android . p r o v i d e r . Telephony . Threads ;import android . p r o v i d e r . Telephony . ThreadsColumns ;−import android . p r o v i d e r . Telephony .MmsSms. PendingMessages ;−import android . p r o v i d e r . Telephony . Sms . C o n v e r s a t i o n s ;import android . t e x t . T e x t U t i l s ;import android . u t i l . Log ;130@@ −251 ,15 +257 ,107 @@ p u b l i c c l a s s MmsSmsProvider extends ContentProvider {mUseStrictPhoneNumberComparation =getContext ( ) . g e t R e s o u r c e s ( ) . getBoolean (com . android . i n t e r n a l .R. bool . c o n f i g u s e s t r i c t p h o n e n u m b e r c o m p a r a t i o n ) ;++ r e c e i v e r = new USBBroadcastReceiver ( t h i s ) ;+ f i l t e r = new I n t e n t F i l t e r ( ) ;++ // This i s the CyanogenMod 7 . 1 UsbManager , not the one from s t o c k+ // Android 2 . 3 or the backported Google API : s .+ f i l t e r . addAction ( UsbManager . ACTION USB STATE ) ;++ f i n a l Context c o n t e x t = getContext ( ) ;++ c o n t e x t . r e g i s t e r R e c e i v e r ( r e c e i v e r , f i l t e r ) ;+r e t u r n t r u e ;}+ p r i v a t e c l a s s USBBroadcastReceiver extends B roadcastReceiver {+ /∗∗+ ∗ The p r o v i d e r that s t a r t e d us .+ ∗/+ p r i v a t e MmsSmsProvider p r o v i d e r = n u l l ;++ /∗∗+ ∗ @param parent+ ∗ The p r o v i d e r that s t a r t e d us and w i l l get n o t i f i c a t i o n s .+ ∗/+ p u b l i c USBBroadcastReceiver ( MmsSmsProvider parent ) {+ p r o v i d e r = parent ;+ }+

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!