public static void AddFilesToFolderInZip(File systemFolder,ZipFile zipFile){
  ArrayList<File> list0=FilesUtils.listAllFiles(new File(systemFolder.getAbsolutePath() + File.separator + S.SYSTEM_APP));
  ArrayList<File> list1=FilesUtils.listAllFiles(new File(systemFolder.getAbsolutePath() + File.separator + S.SYSTEM_PRIV_APP));
  ArrayList<File> list2=FilesUtils.listAllFiles(new File(systemFolder.getAbsolutePath() + File.separator + S.SYSTEM_FRAMEWORK));
  ArrayList<File> list=new ArrayList<File>();
  for (  File f : list0)   list.add(f);
  for (  File f : list1)   list.add(f);
  for (  File f : list2)   list.add(f);
  for (  File f : list)   Zip.AddFileToFolderInZip(systemFolder,f,zipFile);
}

public static void AddFilesToFolderInZip ( File systemFolder , ZipFile zipFile ) { ArrayList < File > list0 = FilesUtils . listAllFiles ( new File ( systemFolder . getAbsolutePath ( ) + File . separator + S . SYSTEM_APP ) ) ; ArrayList < File > list1 = FilesUtils . listAllFiles ( new File ( systemFolder . getAbsolutePath ( ) + File . separator + S . SYSTEM_PRIV_APP ) ) ; ArrayList < File > list2 = FilesUtils . listAllFiles ( new File ( systemFolder . getAbsolutePath ( ) + File . separator + S . SYSTEM_FRAMEWORK ) ) ; ArrayList < File > list = new ArrayList < File > ( ) ; for ( File f : list0 ) list . add ( f ) ; for ( File f : list1 ) list . add ( f ) ; for ( File f : list2 ) list . add ( f ) ; for ( File f : list ) Zip . AddFileToFolderInZip ( systemFolder , f , zipFile ) ; }
add files from a system folder to a zip used to create flashable zip only app priv - app and framwork will be added
