Browse Source

能读取到u盘的config文件,文件命名必须为:
GT9110H_wingcool_config.cfg/GT738x_wingcool_config.cfg/GTxxxx_wingcool_config.cfg

robbin 3 năm trước cách đây
mục cha
commit
7095cbc8e3

+ 2 - 2
app/build.gradle

@@ -7,14 +7,14 @@ android {
         minSdkVersion 18
         targetSdkVersion 28
         versionCode 1
-        versionName "2.1.0"
+        versionName "2.1.1"
         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
     }
     android.applicationVariants.all {
         variant ->
             variant.outputs.all{
                 //´Ë´¦Ö¸¶¨Éú³ÉµÄapkÎļþÃû
-                outputFileName = "WingCoolAPK_V2.1.0_20211110.apk"
+                outputFileName = "WingCoolAPK_V2.1.1_20211224.apk"
             }
     }
     lintOptions {

+ 111 - 48
app/src/main/java/com/example/administrator/wingcool_gt9_apk/Config.java

@@ -105,7 +105,8 @@ public class Config extends AppCompatActivity
     private StringBuffer mStringBuffer = new StringBuffer();
     private Context mContext;
 
-    private Button search_button;
+    private Button btnLocalFileButton;  //本地文件按钮
+    private Button btnUDiskFileButton;  //U盘文件按钮
     private TextView edit_search;
     private EditText edit_text;
 
@@ -485,11 +486,26 @@ public class Config extends AppCompatActivity
         mSendCfg = (Button) findViewById(R.id.sendcfg);
         mShow = (TextView) findViewById(R.id.show);
 
-        search_button = (Button) findViewById(R.id.searchbutton);
         edit_search = (TextView) findViewById(R.id.editsearch);
         edit_text = (EditText) findViewById(R.id.editsearch);
 
-        search_button.setOnClickListener(new View.OnClickListener() {
+        //选择本地文件
+        btnLocalFileButton = (Button) findViewById(R.id.localfile);
+        btnLocalFileButton.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View v) {
+                //ActivityCompat.requestPermissions(  Config.this, new String[]{android
+                //        .Manifest.permission.READ_EXTERNAL_STORAGE}, 2);
+                Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
+                intent.setType("*/*");//设置类型,我这里是任意类型,任意后缀的可以这样写。
+                intent.addCategory(Intent.CATEGORY_OPENABLE);
+                startActivityForResult(intent, 2);
+            }
+        });
+
+        //选择U盘文件
+        btnUDiskFileButton = (Button) findViewById(R.id.udiskfile);
+        btnUDiskFileButton.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 //ActivityCompat.requestPermissions(  Config.this, new String[]{android
@@ -1664,22 +1680,67 @@ public class Config extends AppCompatActivity
 
     protected void onActivityResult ( int requestCode, int resultCode, Intent data){
         if (resultCode == Activity.RESULT_OK) {
+
+            int permission_write = ContextCompat.checkSelfPermission(Config.this, Manifest.permission.WRITE_EXTERNAL_STORAGE);
+            int permission_read = ContextCompat.checkSelfPermission(Config.this, Manifest.permission.READ_EXTERNAL_STORAGE);
+
+            if ((permission_write != PackageManager.PERMISSION_GRANTED)
+                ||(permission_read != PackageManager.PERMISSION_GRANTED))
+            {
+
+                ActivityCompat.requestPermissions(Config.this, new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE,
+                        android.Manifest.permission.READ_EXTERNAL_STORAGE}, 3);
+            }
+
+            StringBuffer buffer = new StringBuffer();
+            String configString = "";
+            Uri uri = data.getData();
+
             if (requestCode == 1) {
 
-                int permission_write = ContextCompat.checkSelfPermission(Config.this, Manifest.permission.WRITE_EXTERNAL_STORAGE);
-                int permission_read = ContextCompat.checkSelfPermission(Config.this, Manifest.permission.READ_EXTERNAL_STORAGE);
+                byte[] filebuffer;
+                int len;
+                try {
+
+                    String fileString = "";
+                    File storage = new File("/storage");
+                    File[] files = storage.listFiles();
+                    for (final File file : files) {
+                        if (file.canRead()) {
+                            if (!file.getName().equals(Environment.getExternalStorageDirectory().getName())) {
+                                //满足该条件的文件夹就是u盘在手机上的目录
+                                fileString = (file.getPath()+"/GT9110H_wingcool_config.cfg");
+                                fileString = fileString.replaceAll(":", "/");  //将:改为/,以防某些系统文件目录读出是:
+                                edit_search.setText(fileString);
+                            }
+                        }
+                    }
 
-                if ((permission_write != PackageManager.PERMISSION_GRANTED)
-                    ||(permission_read != PackageManager.PERMISSION_GRANTED))
-                {
+                    buffer = new StringBuffer();
+                    //String storageState = Environment.getExternalStorageState();
+                    //if (storageState.equals(Environment.MEDIA_MOUNTED)) {
+                        FileInputStream fileInputStream = new FileInputStream(fileString);
+                        filebuffer = new byte[1024];
+                        len = fileInputStream.read(filebuffer);
+                        while (len > 0) {
+                            buffer.append(new String(filebuffer, 0, len));
+                            len = fileInputStream.read(filebuffer);
+                        }
+                        fileInputStream.close();
+                    //}
 
-                    ActivityCompat.requestPermissions(Config.this, new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE,
-                            android.Manifest.permission.READ_EXTERNAL_STORAGE}, 3);
+                    configString = buffer.toString();
+
+                } catch (IOException ex) {
+
+                    //edit_search.setText(getResources().getString(R.string.invalidfile));
+                    edit_search.setText(uri.getPath() + "——" + getResources().getString(R.string.invalidfile));
+                    return;
                 }
+            }
+            else if (requestCode == 2) {
 
-                StringBuffer buffer = new StringBuffer();
                 try {
-
                     File dir = Environment.getExternalStorageDirectory();
                     //Uri uri = data.getData();
                     File dataFile;
@@ -1688,12 +1749,12 @@ public class Config extends AppCompatActivity
 
                         //File dir = Environment.getExternalStorageDirectory();
                         dataFile = new File(dir.getPath(), "GT9110H_wingcool_config.cfg");
-                    }else if (byProductType == GT7){  //GT7
+                    } else if (byProductType == GT7) {  //GT7
                         edit_search.setText(dir.getPath() + "/GT738x_wingcool_config.cfg");
 
                         //File dir = Environment.getExternalStorageDirectory();
                         dataFile = new File(dir.getPath(), "GT738x_wingcool_config.cfg");
-                    }else{  //other
+                    } else {  //other
                         edit_search.setText(dir.getPath() + "/GTxxxx_wingcool_config.cfg");
 
                         //File dir = Environment.getExternalStorageDirectory();
@@ -1708,49 +1769,23 @@ public class Config extends AppCompatActivity
                     //edit_search.setText(str);
 
                     //FileInputStream fis = new FileInputStream(uri.getPath().toString());
-                    InputStreamReader isr = new InputStreamReader(fis,"UTF-8");//文件编码Unicode,UTF-8,ASCII,GB2312,Big5
+                    InputStreamReader isr = new InputStreamReader(fis, "UTF-8");//文件编码Unicode,UTF-8,ASCII,GB2312,Big5
                     Reader in = new BufferedReader(isr);
                     int ch;
                     while ((ch = in.read()) > -1) {
-                        buffer.append((char)ch);
+                        buffer.append((char) ch);
                     }
                     in.close();
-                    String configString;
-                    configString = buffer.toString();
-                    //mShow.setText(configString.toString());
 
-                    //value = value.trim();  //去除空格
-                    configString = configString.replaceAll("0x", ""); //0x转换为没有
-                    //editdetail.setText(configString.toString()); //buffer.toString())就是读出的内容字符
+                    configString = buffer.toString();
 
-                    String[] stringCfgArr = configString.split(",");
-                    //byte bcfgarr[] = new byte[188];
+                } catch (IOException c) {
 
-                    int i;
-                    for (i = 0; i < 186; i++){
-                        mBytes[i] = (byte) Integer.parseInt(stringCfgArr[i], 16);
-                    }
-                    if (byProductType == GT7) {
-                        for (; i < 444; i++) {
-                            mBytes[i] = (byte) Integer.parseInt(stringCfgArr[i], 16);
-                        }
-                    }
+                    edit_search.setText(uri.getPath() + "——" + getResources().getString(R.string.invalidfile));
 
-                    if (byProductType == GT9) {
-                        ReadCfgSample(mBytes);
-                        ReadCfgModuleSwitch(mBytes);
-                        ReadCfgNormalSetting(mBytes);
-                        ReadCfgChannelSetting(mBytes);
-                        ReadCfgPenSetting(mBytes);
-                        ReadCfgPlamRestrain(mBytes);
-                        ReadCfgKeySetting(mBytes);
-                        ReadCfgHoppingSetting(mBytes);
-                    }
-                    
-                    ReadCfgRam(stringCfgArr);
-                } catch (IOException e) {
-                    edit_search.setText(getResources().getString(R.string.invalidfile));
+                    return;
                 }
+            }
 
     /*
                 Uri uri = data.getData();
@@ -1791,9 +1826,37 @@ public class Config extends AppCompatActivity
 
                 loadFile(uri.getPath().toString());
     */
+
+            //value = value.trim();  //去除空格
+            configString = configString.replaceAll("0x", ""); //0x转换为没有
+            //editdetail.setText(configString.toString()); //buffer.toString())就是读出的内容字符
+
+            String[] stringCfgArr = configString.split(",");
+            //byte bcfgarr[] = new byte[188];
+
+            int i;
+            for (i = 0; i < 186; i++){
+                mBytes[i] = (byte) Integer.parseInt(stringCfgArr[i], 16);
+            }
+            if (byProductType == GT7) {
+                for (; i < 444; i++) {
+                    mBytes[i] = (byte) Integer.parseInt(stringCfgArr[i], 16);
+                }
             }
-        }
 
+            if (byProductType == GT9) {
+                ReadCfgSample(mBytes);
+                ReadCfgModuleSwitch(mBytes);
+                ReadCfgNormalSetting(mBytes);
+                ReadCfgChannelSetting(mBytes);
+                ReadCfgPenSetting(mBytes);
+                ReadCfgPlamRestrain(mBytes);
+                ReadCfgKeySetting(mBytes);
+                ReadCfgHoppingSetting(mBytes);
+            }
+
+            ReadCfgRam(stringCfgArr);
+        }
     }
 
     private void initListener() {

+ 15 - 2
app/src/main/res/layout-hdpi/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout-land-hdpi/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout-land-mdpi/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout-land-xhdpi/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout-land-xxhdpi/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout-land-xxxhdpi/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout-land/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout-mdpi/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout-xhdpi/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout-xxhdpi/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout-xxxhdpi/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 15 - 2
app/src/main/res/layout/activity_config.xml

@@ -51,13 +51,26 @@
                     android:singleLine="true" />
 
                 <Button
-                    android:id="@+id/searchbutton"
+                    android:id="@+id/localfile"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_margin="5dp"
                     android:layout_weight="65"
-                    android:text=""
+                    android:text="@string/localfile"
                     android:textSize="18dp"
+                    android:textAllCaps="false"
+                    app:layout_constraintEnd_toEndOf="parent"
+                    app:layout_constraintTop_toTopOf="parent" />
+
+                <Button
+                    android:id="@+id/udiskfile"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:layout_margin="5dp"
+                    android:layout_weight="65"
+                    android:text="@string/udiskfile"
+                    android:textSize="18dp"
+                    android:textAllCaps="false"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 

+ 3 - 1
app/src/main/res/values-en/strings.xml

@@ -22,6 +22,8 @@
     <!-- Activity_config -->
     <string name="chooseconfig">choose config</string>
     <string name="invalidfile">Invalid filename or file not found</string>
+    <string name="localfile">Local File</string>
+    <string name="udiskfile">U Disk File</string>
     <string name="cfgaddr">addr</string>
     <string name="nameandformat">please type the name and format of file</string>
     <string name="nopermission">Do not have the read and write permission on the SD card</string>
@@ -103,7 +105,7 @@
     <string name="companyaddr">Address:Room 2008, Chuangxingda Business Building, No.36 Liuxian 3rd Road, Baoan District, Shenzhen</string>
     <string name="telephonenum">Telephone:186 8896 1937</string>
     <string name="emailaddr">Email:max@wingcool.cn</string>
-    <string name="version">APK Version:v2.1.0_20211110-Release Version</string>
+    <string name="version">APK Version:v2.1.1_20211224-Debug Version</string>
 
     <!-- other -->
     <string name="app_name">WingCoolAPK</string>

+ 3 - 1
app/src/main/res/values/strings.xml

@@ -22,6 +22,8 @@
     <!-- Activity_config -->
     <string name="chooseconfig">选择配置文件</string>
     <string name="invalidfile">无效的文件名或找不到文件</string>
+    <string name="localfile">本地文件</string>
+    <string name="udiskfile">U盘文件</string>
     <string name="cfgaddr">地址</string>
     <string name="nameandformat">请输入文件名及文件格式</string>
     <string name="nopermission">无法获取SD卡读写权限</string>
@@ -103,7 +105,7 @@
     <string name="companyaddr">地址:深圳市宝安区留仙三路 36 号创兴达商务大厦 2008 室</string>
     <string name="telephonenum">电话:186 8896 1937</string>
     <string name="emailaddr">邮箱:max@wingcool.cn</string>
-    <string name="version">APK版本:v2.1.0_20211110-发布版本</string>
+    <string name="version">APK版本:v2.1.1_20211224-Debug版本</string>
 
     <!-- other -->
     <string name="app_name">WingCoolAPK</string>