Skip to content

Commit

Permalink
优化战双登录信息导入导出
Browse files Browse the repository at this point in the history
  • Loading branch information
xausky committed Jan 12, 2020
1 parent b68c6db commit 497391e
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
package io.github.xausky.unitymodmanager.utils;

import android.app.backup.SharedPreferencesBackupHelper;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

import com.google.android.gms.common.util.SharedPreferencesUtils;
import com.topjohnwu.superuser.Shell;

import org.apache.commons.io.FileUtils;
import org.json.JSONObject;

import java.io.File;

import static android.content.Context.MODE_PRIVATE;

public class BackupUtil {
Expand Down Expand Up @@ -64,7 +59,7 @@ public static void restoreKuroGame(Context context, byte[] data) {
}
}
SharedPreferences sharedPreferences = context.getSharedPreferences("devicesyn", MODE_PRIVATE);
sharedPreferences.edit().putString("fake_device_id", root.getString("device_id")).commit();
sharedPreferences.edit().putString("device_id", root.getString("device_id")).commit();
} catch (Exception e) {
throw new RuntimeException(e);
} finally {
Expand Down

0 comments on commit 497391e

Please sign in to comment.