增加xapk安装,未成功

This commit is contained in:
2025-04-18 18:01:36 +08:00
parent 7007425199
commit 6912f8dbfa
15 changed files with 775 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
package com.example.mir4updater.utils;
import java.io.File;
public class FileUtils {
public static String getFileNoExName(String filePath) {
String fileNameEx = filePath.substring(filePath.lastIndexOf(File.separator) + 1);
String fileName = fileNameEx.substring(0,fileNameEx.lastIndexOf("."));
return fileName;
}
}