360fans_HTpjhr 发表于 2021-6-16 20:16

360儿童手表p1设置里的调试密码是多少?

本帖最后由 360fans_HTpjhr 于 2021-7-27 12:04 编辑

就是长按系统设置上方后的那个“开启调试”

360fans_HTpjhr 发表于 2021-6-16 20:17

调试密码

lt_hxj 发表于 2021-6-16 23:14

您好,360儿童手表不支持进入开发者调试模式,感谢您对手表的支持

360fans_HTpjhr 发表于 2021-7-26 13:52


生成密码的代码@<span style="font-size: 12.576px; background-color: rgb(246, 247, 248);">lt_hxj</span>
有人能看懂吗

360fans_HTpjhr 发表于 2021-7-27 11:44

我用的是android studio

360fans_HTpjhr 发表于 2021-7-27 16:03


有人看得懂吗?我用android studio找到的

360fans_HTpjhr 发表于 2021-7-27 23:08

你这样发代码

360fans_HTpjhr 发表于 2021-7-28 13:00

package com.qihoo360.kidwatch.settings.develop;

import android.content.Context;
import android.provider.Settings.Global;
import android.text.TextUtils;
import com.wolf.kids.framework.device.WolfPlatformManager;
import com.wolf.kids.utils.AESUtils;
import com.wolf.kids.utils.MD5Utils;
import com.wolf.kids.utils.StrUtil;

public class DevelopModeHelper {
private static final String TAG = "DevelopKeyRoute";
public static final String TYPE_DEVELOPER_MODE = "develop_mode_code";
public static final String TYPE_FACTORY_MODE = "factory_mode_code";
private static final String iv = "eip97324acpamzbv";
private final Context mContext;
private String mDevelopCode;
private String mFactoryCode;

private String generateKey() {
String[] sort;
WolfPlatformManager instance = WolfPlatformManager.getInstance(this.mContext);
String deviceKey = instance.getDeviceKey();
String deviceId = instance.getDeviceId();
String encode = MD5Utils.encode(instance.getHardCode());
if (TextUtils.isEmpty(deviceKey)) {
sort = StrUtil.sort(new String[]{instance.getIMEI(), instance.getQRCode(), encode});
} else {
sort = StrUtil.sort(new String[]{deviceKey, deviceId, encode});
}
return MD5Utils.encode(StrUtil.dumpStringArray(sort));
}

private String getCode(String str) {
str = AESUtils.encryptAESBase64(generateKey(), iv, str);
int length = str.length() / 6;
StringBuilder stringBuilder = new StringBuilder();
for (int i = 0; i < 6; i++) {
stringBuilder.append(str.charAt(i * length) % 10);
}
return stringBuilder.toString();
}

public boolean openDevelopMode(String str) {
if (TextUtils.isEmpty(this.mDevelopCode)) {
this.mDevelopCode = getDevelopModeCode();
}
boolean equals = this.mDevelopCode.equals(str);
Global.putInt(this.mContext.getContentResolver(), TYPE_DEVELOPER_MODE, equals);
return equals;
}

public boolean openFactoryMode(String str) {
if (TextUtils.isEmpty(this.mFactoryCode)) {
this.mFactoryCode = getFactoryModeCode();
}
boolean equals = this.mFactoryCode.equals(str);
Global.putInt(this.mContext.getContentResolver(), TYPE_FACTORY_MODE, equals);
return equals;
}

public DevelopModeHelper(Context context) {
this.mContext = context;
}

public static void hideDevelopMode(Context context) {
Global.putInt(context.getContentResolver(), TYPE_DEVELOPER_MODE, 0);
}

public static void hideFactoryMode(Context context) {
Global.putInt(context.getContentResolver(), TYPE_FACTORY_MODE, 0);
}

public static boolean isDevelopModeOpen(Context context) {
return 1 == Global.getInt(context.getContentResolver(), TYPE_DEVELOPER_MODE, 0);
}

public static boolean isFactoryModeOpen(Context context) {
return 1 == Global.getInt(context.getContentResolver(), TYPE_FACTORY_MODE, 0);
}

public String getDevelopModeCode() {
return getCode(TYPE_DEVELOPER_MODE);
}

public String getFactoryModeCode() {
return getCode(TYPE_FACTORY_MODE);
}
}
完整代码

360fans_wap3028808525 发表于 2021-8-26 14:50


360fans_wap3216530343 发表于 2021-11-25 21:28

代码是多少

蔡琳和学曜 发表于 2022-4-6 11:42

我要密码,大佬们给我私发下
页: [1]
查看完整版本: 360儿童手表p1设置里的调试密码是多少?