Skip to content

Commit 497391e

Browse files
author
xausky
committed
优化战双登录信息导入导出
1 parent b68c6db commit 497391e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/src/main/java/io/github/xausky/unitymodmanager/utils/BackupUtil.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
package io.github.xausky.unitymodmanager.utils;
22

3-
import android.app.backup.SharedPreferencesBackupHelper;
43
import android.content.Context;
54
import android.content.SharedPreferences;
65
import android.database.Cursor;
76
import android.database.sqlite.SQLiteDatabase;
87

9-
import com.google.android.gms.common.util.SharedPreferencesUtils;
108
import com.topjohnwu.superuser.Shell;
119

12-
import org.apache.commons.io.FileUtils;
1310
import org.json.JSONObject;
1411

15-
import java.io.File;
16-
1712
import static android.content.Context.MODE_PRIVATE;
1813

1914
public class BackupUtil {
@@ -64,7 +59,7 @@ public static void restoreKuroGame(Context context, byte[] data) {
6459
}
6560
}
6661
SharedPreferences sharedPreferences = context.getSharedPreferences("devicesyn", MODE_PRIVATE);
67-
sharedPreferences.edit().putString("fake_device_id", root.getString("device_id")).commit();
62+
sharedPreferences.edit().putString("device_id", root.getString("device_id")).commit();
6863
} catch (Exception e) {
6964
throw new RuntimeException(e);
7065
} finally {

0 commit comments

Comments
 (0)