dissertation
dissertation
dissertation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
+ }+ r e t u r n n u l l ;+ }+@Overridep u b l i c Cursor query ( Uri url , S t r i n g [ ] p r o j e c t i o n I 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 s o r t ) {SQLiteQueryBuilder qb = new SQLiteQueryBuilder ( ) ;136+ Log . i (TAG, ”Query from : ” + getProcessNameFromPid ( Binder . g e t C a l l i n g P i d ( ) ) ) ;+ Log . i (TAG, ” URL: ” + u r l . t o S t r i n g ( ) ) ;+ Log . i (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 I n ) ) ;+ Log . i (TAG, ” S e l e c t i o n : ” + s e l e c t i o n ) ;+ Log . i (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 (TAG, ” Sort o r d e r : ” + s o r t ) ;++ i f ( isDebugging ) {+ Log . i (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 ” ;+ }+ }+// Generate the body o f the query .i n t match = sURLMatcher . match ( u r l ) ;switch ( match ) {@@ −221 ,6 +321 ,12 @@ p u b l i c c l a s s SmsProvider extends ContentProvider {}+SQLiteDatabase db = mOpenHelper . getReadableDatabase ( ) ;