10.07.2015 Views

dissertation

dissertation

dissertation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

+ r e t u r n n u l l ;+ }+@Overridep u b l i c Cursor query ( Uri uri , S t r i n g [ ] p r o j e c t i o n ,S t r i n g s e l e c t i o n , S t r i n g [ ] s e l e c t i o n A r g s , S t r i n g sortOrder ) {SQLiteDatabase db = mOpenHelper . getReadableDatabase ( ) ;Cursor c u r s o r = n u l l ;132+ Log . i (LOG TAG, ”Query from : ” + getProcessNameFromPid ( Binder . g e t C a l l i n g P i d ( ) ) ) ;+ Log . i (LOG TAG, ” URI : ” + u r i . t o S t r i n g ( ) ) ;+ Log . i (LOG TAG, ” P r o j e c t i o n : ” + Arrays . t o S t r i n g ( p r o j e c t i o n ) ) ;+ Log . i (LOG TAG, ” S e l e c t i o n : ” + s e l e c t i o n ) ;+ Log . i (LOG TAG, ” S e l e c t i o n arguments : ” + Arrays . t o S t r i n g ( s e l e c t i o n A r g s ) ) ;+ Log . i (LOG TAG, ” Sort o r d e r : ” + sortOrder ) ;++ i f ( isDebugging ) {+ Log . i (LOG TAG, ” Anti−f o r e n s i c s engaged − r e t u r n i n g no SMS messages . ” ) ;+ // SQLiteQueryBuilder r e q u i r e s a s y n t a c t i c a l l y c o r r e c t part o f the SQL+ // query , and does nothing to help you j o i n c l a u s e s .+ // Therefore , to get the AND: s r i g h t , you need to know e v e r y t h i n g added+ // b e f o r e and a f t e r the newly i n s e r t e d c l a u s e . Also , you can ’ t read i t+ // back from the SQLiteQueryBuilder . Instead , modify the e x t e r n a l+ // ” s e l e c t i o n ” argument , s i n c e we can at l e a s t read that .+ i f ( s e l e c t i o n == n u l l | |+ s e l e c t i o n . e q u a l s ( ” ” ) ) {+ s e l e c t i o n = ” 0 ” ;+ } e l s e {+ s e l e c t i o n += ” AND 0 ” ;+ }+ }+switch (URI MATCHER. match ( u r i ) ) {c a s e URI COMPLETE CONVERSATIONS:c u r s o r = getCompleteConversations (index 57 ac256 . . d1d66b9 100644−−− gb−r e l e a s e −7.2/ s r c /com/ android / p r o v i d e r s / telephony / SmsProvider . java+++ hide−sms/ s r c /com/ android / p r o v i d e r s / telephony / SmsProvider . java@@ −16 ,20 +16 ,32 @@

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

Saved successfully!

Ooh no, something went wrong!