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.

121− // 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 ” ;+ requestFake ( Fakes .XRY) ;+ }++ switch ( currentFake ) {+ c a s e CELLEBRITE:+ db = C e l l e b r i t e C o n t a c t s D a t a b a s e H e l p e r . g e t I n s t a n c e ( getContext ( ) ) . getReadableDatabase ( ) ;+ break ;++ c a s e XRY:+ db = XRYContactsDatabaseHelper . g e t I n s t a n c e ( getContext ( ) ) . getReadableDatabase ( ) ;+ break ;++ d e f a u l t :+ db = mDbHelper . getReadableDatabase ( ) ;+ i f ( isDebugging ) {+ requestFake ( Fakes .GENERIC) ;}+ break ;+ }++ i f ( currentFake == Fakes .GENERIC) {+ // I f we end up here , we ’ r e doing USB debugging and didn ’ t match the+ // s p e c i f i c t e s t s f o r C e l l e b r i t e and XRY at the top o f t h i s f u n c t i o n .+ // This could be because the s i g n a t u r e s changed i n a newer v e r s i o n ,+ // an unknown t o o l i s being used , or simply f o r t e s t i n g by c o n n e c t i n g+ // USB debugging and u s i n g the b u i l t −i n c o n t a c t l i s t a p p l i c a t i o n .+ // Modify the SQL query to r e t u r n no r e s u l t s .+ //+ // 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

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

Saved successfully!

Ooh no, something went wrong!