示例#1
0
 /*
  * write all the files with the help of SUHandler writeFile function
  * we're dealing with system files here
  */
 public boolean writeFiles(File[] files, String value) {
   boolean retVal = false;
   for (int i = 0; i < files.length; i++) {
     if (SUHandler.writeFile(files[i], value)) {
       retVal = true;
     }
   }
   return retVal;
 }
示例#2
0
 public String getMode() {
   File[] files = getFiles(SCALING_GOVERNOR);
   return SUHandler.readFile(files[0]);
 }