@@ -0,0 +1,1324 @@
+/*%0A * Copyright (C) 2018 Chandra Poerwanto%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.xenonota.utils;%0A%0Aimport java.io.File;%0Aimport java.io.FileWriter;%0A%0Apublic class ORSUtils %7B%0A    private static String ors_path = %22/cache/recovery/openrecoveryscript%22;%0A%0A    private ORSUtils()%7B%0A    %7D%0A    public static void clear()%7B%0A        try%7B%0A            new File(ors_path).delete();%0A        %7Dcatch(Exception ex)%7Bex.printStackTrace();%7D%0A    %7D%0A%0A    public static void InstallZip(String absolute_path)%7B%0A        WriteCommand(%22install %22 + absolute_path);%0A    %7D%0A%0A    private static void WriteCommand(String command)%7B%0A        try%7B%0A            FileWriter fw = new FileWriter(ors_path, true);%0A            fw.write(command + %22%5Cn%22);%0A            fw.close();%0A        %7Dcatch(Exception ex)%7Bex.printStackTrace();%7D%0A    %7D%0A%0A%7D%0A

Add ORSUtils