|
@@ -2,7 +2,6 @@ package com.tcl.customerapi;
|
|
|
|
|
|
import android.app.Instrumentation;
|
|
import android.app.Instrumentation;
|
|
import android.content.ComponentName;
|
|
import android.content.ComponentName;
|
|
-import android.content.ContentResolver;
|
|
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.Intent;
|
|
import android.content.SharedPreferences;
|
|
import android.content.SharedPreferences;
|
|
@@ -27,7 +26,6 @@ import android.view.KeyCharacterMap;
|
|
import android.view.KeyEvent;
|
|
import android.view.KeyEvent;
|
|
|
|
|
|
import com.tcl.appassistsdk.appupdate.AppUpdateManager;
|
|
import com.tcl.appassistsdk.appupdate.AppUpdateManager;
|
|
-import com.tcl.device.authentication.SqlCommon;
|
|
|
|
import com.tcl.deviceinfo.TDeviceInfo;
|
|
import com.tcl.deviceinfo.TDeviceInfo;
|
|
import com.tcl.factory.FactoryManager;
|
|
import com.tcl.factory.FactoryManager;
|
|
import com.tcl.factory.bsp.TCL;
|
|
import com.tcl.factory.bsp.TCL;
|
|
@@ -267,7 +265,6 @@ public class IService extends android.app.Service {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public int getCurrentTVChannel() {
|
|
public int getCurrentTVChannel() {
|
|
-
|
|
|
|
int channel = ThirdParty.getCurrentChannelNumber();
|
|
int channel = ThirdParty.getCurrentChannelNumber();
|
|
Log.i(TAG, "getCurrentTVChannel " + channel);
|
|
Log.i(TAG, "getCurrentTVChannel " + channel);
|
|
return channel;
|
|
return channel;
|
|
@@ -592,24 +589,23 @@ public class IService extends android.app.Service {
|
|
@Override
|
|
@Override
|
|
public void channelBackup(String value) {
|
|
public void channelBackup(String value) {
|
|
Log.i(TAG, "channelBackup path " + value);
|
|
Log.i(TAG, "channelBackup path " + value);
|
|
- TvManager.getInstance(ctx).getProperty().set("memory.factory.hotel.userpath", value);
|
|
|
|
-
|
|
|
|
if (null == value || ("".equals(value))) {
|
|
if (null == value || ("".equals(value))) {
|
|
ThirdParty.mContext.sendBroadcast(new Intent(defs.MSG_NO_USB_MOUNT));
|
|
ThirdParty.mContext.sendBroadcast(new Intent(defs.MSG_NO_USB_MOUNT));
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ TvManager.getInstance(ctx).getProperty().set("memory.factory.hotel.userpath", value);
|
|
ThirdParty.NVM2USB_ChannelDate(1);
|
|
ThirdParty.NVM2USB_ChannelDate(1);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void channelRestore(String value) {
|
|
public void channelRestore(String value) {
|
|
Log.i(TAG, "channelBackup path " + value);
|
|
Log.i(TAG, "channelBackup path " + value);
|
|
- TvManager.getInstance(ctx).getProperty().set("memory.factory.hotel.userpath", value);
|
|
|
|
if (null == value || ("".equals(value))) {
|
|
if (null == value || ("".equals(value))) {
|
|
Intent intent = new Intent(defs.MSG_NO_USB_MOUNT);
|
|
Intent intent = new Intent(defs.MSG_NO_USB_MOUNT);
|
|
ThirdParty.mContext.sendBroadcast(intent);
|
|
ThirdParty.mContext.sendBroadcast(intent);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ TvManager.getInstance(ctx).getProperty().set("memory.factory.hotel.userpath", value);
|
|
ThirdParty.USB2NVM_ChannelDate(1);
|
|
ThirdParty.USB2NVM_ChannelDate(1);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1252,13 +1248,11 @@ public class IService extends android.app.Service {
|
|
@Override
|
|
@Override
|
|
public boolean channelData2System(String path) {
|
|
public boolean channelData2System(String path) {
|
|
Log.i(TAG, "channelData2System " + path);
|
|
Log.i(TAG, "channelData2System " + path);
|
|
- ThirdParty.setRootSeek("tclsu");
|
|
|
|
-
|
|
|
|
- ThirdParty.setRootSeek("cp /" + path + "/AtvData.db " + "/userdata/AtvData.db");
|
|
|
|
- ThirdParty.setRootSeek("cp /" + path + "/DtvData.db " + "/userdata/DtvData.db");
|
|
|
|
|
|
+ ThirdParty.setRootSeek("cp -f /" + path + "/AtvData.db /userdata/AtvData.db");
|
|
|
|
+ ThirdParty.setRootSeek("cp -f /" + path + "/DtvData.db /userdata/DtvData.db");
|
|
|
|
|
|
- ThirdParty.setRootSeek("chmod 666 " + "/userdata/AtvData.db");
|
|
|
|
- ThirdParty.setRootSeek("chmod 666 " + "/userdata/DtvData.db");
|
|
|
|
|
|
+ ThirdParty.setRootSeek("chmod 666 " + "/userdata/AtvData.db");
|
|
|
|
+ ThirdParty.setRootSeek("chmod 666 " + "/userdata/DtvData.db");
|
|
ThirdParty.setRootSeek("sync");
|
|
ThirdParty.setRootSeek("sync");
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -1505,8 +1499,6 @@ public class IService extends android.app.Service {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void clearPatchBootanimation() {
|
|
public void clearPatchBootanimation() {
|
|
- ThirdParty.setRootSeek("rm -rf " + defs.USER_LOGO + defs.ADBOOTANIMATION);
|
|
|
|
- ThirdParty.setRootSeek("rm -rf " + defs.USER_LOGO + defs.ANIMTTEMPLET);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -1636,11 +1628,6 @@ public class IService extends android.app.Service {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public boolean setScreenOrientation(int value) {
|
|
public boolean setScreenOrientation(int value) {
|
|
- Log.i(TAG, "setScreenOrientation " + value);
|
|
|
|
- if (value == 0 || value == 90 || value == 180 || value == 270) {
|
|
|
|
- SystemProperties.set(defs.PERSIST_SYS_ROTATE, value + "");
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2156,7 +2143,7 @@ public class IService extends android.app.Service {
|
|
|
|
|
|
if (FileUtil.isFile(defs.userBootanimation)) {
|
|
if (FileUtil.isFile(defs.userBootanimation)) {
|
|
Log.i(TAG, "start copy userBootanimation");
|
|
Log.i(TAG, "start copy userBootanimation");
|
|
- ThirdParty.setLogoApi(handlePathStr(defs.LOGO_FILE_PATH));
|
|
|
|
|
|
+ ThirdParty.setLogoApi(defs.LOGO_FILE_PATH);
|
|
ThirdParty.setUserBootAnimation(defs.LOGO_FILE_PATH);
|
|
ThirdParty.setUserBootAnimation(defs.LOGO_FILE_PATH);
|
|
myIBinder.setPowerOnAdbootanimation(defs.LOGO_FILE_PATH + "adbootanimation.zip");
|
|
myIBinder.setPowerOnAdbootanimation(defs.LOGO_FILE_PATH + "adbootanimation.zip");
|
|
myIBinder.setPowerOnAnimtemplet(defs.LOGO_FILE_PATH + "animtemplet.zip");
|
|
myIBinder.setPowerOnAnimtemplet(defs.LOGO_FILE_PATH + "animtemplet.zip");
|