// Path: src/com/xiaomi/mitv/soundbarapp/provider/DataProvider.java
// public class DataProvider {
//     private GalaxyProvider mProvider = new GalaxyProvider();
//     public List<FirmwareVersion> listVersion(){
//         return mProvider.listVersion();
//     }
// 
//     public FirmwareVersion queryNewVersion(int localVersion){
//         return mProvider.queryNewVersion(localVersion);
//     }
// 
//     public FaqData queryFaqList(){
//         return mProvider.queryFaqList();
//     }
// 
// 
//     //check if the app run in dev mode via the config file on SDCARD
//     private boolean isInDevMode(){
//         return mProvider.isInDevMode();
//     }
// }


import android.content.Context;
import android.util.Log;
import com.xiaomi.mitv.content.FirmwareVersion;
import com.xiaomi.mitv.soundbarapp.provider.DataProvider;
import com.xiaomi.mitv.soundbar.provider.SoundBarORM;
import java.io.*;
import java.net.*;
package com.xiaomi.mitv.soundbarapp.upgrade;



/**
 * Created by chenxuetong on 6/24/14.
 * the functions in this class are synchronized call
 */
public class FirmwareManager {
    private static final String TAG = "Soundbar_firmware";
    private static final int BUFFER_SIZE = 1024;
    private Context mContext;

    public interface ProgressListener{
        void onProgress(int total, int finished);
    }

    public FirmwareManager(Context context){
        mContext = context;
    }
    //check if the firmware need to upgrade, if true return the Version info,
    //otherwise null
    public FirmwareVersion getNewFirmware(){
// Path: src/com/xiaomi/mitv/soundbarapp/provider/DataProvider.java
// public class DataProvider {
//     private GalaxyProvider mProvider = new GalaxyProvider();
//     public List<FirmwareVersion> listVersion(){
//         return mProvider.listVersion();
//     }
// 
//     public FirmwareVersion queryNewVersion(int localVersion){
//         return mProvider.queryNewVersion(localVersion);
//     }
// 
//     public FaqData queryFaqList(){
//         return mProvider.queryFaqList();
//     }
// 
// 
//     //check if the app run in dev mode via the config file on SDCARD
//     private boolean isInDevMode(){
//         return mProvider.isInDevMode();
//     }
// }


// Path: src/com/xiaomi/mitv/soundbarapp/upgrade/FirmwareManager.java
import android.content.Context;
import android.util.Log;
import com.xiaomi.mitv.content.FirmwareVersion;
import com.xiaomi.mitv.soundbarapp.provider.DataProvider;
import com.xiaomi.mitv.soundbar.provider.SoundBarORM;
import java.io.*;
import java.net.*;

package com.xiaomi.mitv.soundbarapp.upgrade;



/**
 * Created by chenxuetong on 6/24/14.
 * the functions in this class are synchronized call
 */
public class FirmwareManager {
    private static final String TAG = "Soundbar_firmware";
    private static final int BUFFER_SIZE = 1024;
    private Context mContext;

    public interface ProgressListener{
        void onProgress(int total, int finished);
    }

    public FirmwareManager(Context context){
        mContext = context;
    }
    //check if the firmware need to upgrade, if true return the Version info,
    //otherwise null
    public FirmwareVersion getNewFirmware(){
        DataProvider provider = new DataProvider();