question: private boolean isAnyPackageFromListInstalled ( List < String > packages ) { boolean result = false ; PackageManager pm = mContext . getPackageManager ( ) ; for ( String packageName : packages ) { try { pm . getPackageInfo ( packageName , 0 ) ; QLog . e ( packageName + " ROOT management app detected!" ) ; result = true ; } catch ( PackageManager . NameNotFoundException e ) { continue ; } } return result ; }
target:  Check if any package in the list is installed