2020年1月28日星期二

2020.1.28 Tuesday 初四小米电视4A添加kodi下载字幕

2020.1.28 Tuesday  初四小米电视4A添加kodi下载字幕
参考:https://www.youtube.com/watch?v=8m6vQcoNJEc&t=753s

1.下载kodi 17.4版本
2.加入安装源(如何删除无用源?):
http://fusion.tvaddons.co/
http://lvtvv.com/repo/

3.添加插件(优酷,B站不可用,Placenta,Covenant,Exodus插件未测试)
4.添加电影并在电影播放中下载字幕

直播源:电视家:www.tvapk.net

总结:

  1. 添加源后显示无法连接插件库
  2. 添加的优酷,B站不可用
  3. 可以下载字幕,字幕下载后保存在影片目录下可以用plex播放
  4. 在小米4a上面会闪退


2020年1月15日星期三

Android log应用1:自动删除/data文件夹下面超过五天的文件

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    package="com.example.a0113_log">
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"        tools:ignore="ProtectedPermissions" />

    <application        android:allowBackup="true"        android:icon="@mipmap/ic_launcher"        android:label="@string/app_name"        android:roundIcon="@mipmap/ic_launcher_round"        android:supportsRtl="true"        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity3">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
 MainActivity
/**     * 参考:http://www.voidcn.com/article/p-eeswpcan-bpm.html     * 删除超过五天的文件     * @param path     */    private void  del5Days(String path) {
        long fiveDayTime=5L*24L*60L*60L*1000L;  //注意不写L可能导致结果为负数        long currentTime=System.currentTimeMillis();
        File dirFile = new File(path);
        if (dirFile.exists()) {
            File[] files = dirFile.listFiles();
            if (files != null) {
                for (File fileChildDir : files) {
                    //输出文件名或者文件夹名//                    System.out.print(""+fileChildDir.getName());                    if (fileChildDir.isDirectory()) {
                        long lastTime=fileChildDir.lastModified();
                        long diffenTime=currentTime-lastTime;
                        if(diffenTime>fiveDayTime)    //大于五天                        {
                            Log.i(TAG,"del=====>"+path+fileChildDir.getName());
                            try {
                                String tmpPath=path+fileChildDir.getName()+"/";
                                delFiles(tmpPath);
                                fileChildDir.delete();
                                Log.i(TAG,"delete success!");
                            } catch (Exception e) {
                                e.printStackTrace();
                                Log.i(TAG,"delete error"+e.toString());
                            }
                        }
                    }
                    if (fileChildDir.isFile()) {
//                        System.out.println(fileChildDir.getName()+" :  此为文件名");                    }
                }
            }
        }else{
            System.out.println("你想查找的文件不存在");
            return ;
        }
    }

2020年1月14日星期二

斐讯k2刷机及导入翻墙网络方法


2020.1.15update
刷机步骤:

  1. 断电,长按reset按键10s
  2. 插电,按住reset 10s
  3. 网线一边接路由lan口,一边接pc网口
  4. 打开浏览器输入192.168.1.1
  5. 等待路由重启后打开浏览器输入192.168.2.1 密码admin/admin
  6. 修改ip网段为:192.168.123.1 (不改会导致wlan和lan地址冲突)
8.进入ssr设置翻墙网络即可上网