|
@@ -153,14 +153,16 @@ public class IService extends android.app.Service {
|
|
|
void Init() throws RemoteException {
|
|
|
SharedPreferences vPreferences = ctx.getSharedPreferences(dataPath, MODE);
|
|
|
final boolean factoryInit = vPreferences.getBoolean("factory_init", true);
|
|
|
+ final boolean shopReset = SystemProperties.getBoolean("sys.tcl.shop_reset", false);
|
|
|
final String deviceName = AHDeviceHelper.getDeviceName();
|
|
|
- Log.d(TAG, "factory_init: " + factoryInit + ", deviceName: " + deviceName);
|
|
|
+ Log.d(TAG, "factoryInit: " + factoryInit
|
|
|
+ +", shopReset: " + shopReset + ", deviceName: " + deviceName);
|
|
|
|
|
|
if (deviceName.isEmpty()) {
|
|
|
setDeviceName();
|
|
|
}
|
|
|
|
|
|
- if (!factoryInit) {
|
|
|
+ if (!shopReset && !factoryInit) {
|
|
|
Log.d(TAG, "already initialized");
|
|
|
return;
|
|
|
}
|