I successfully decompiled the FactoryMode.odex file to see the password, but somehow the password gets calculated with the time and I have no idea how since I'm not good at Java. May someone help me find out the password?
package com.discovery.factorymode;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class HomeActivity extends Activity {
private final int COMPARE_DAY = 15;
public final String PASSWORD_TIME = "pwdTime";
public final String SP_DEFAULT = "password";
private Button backButton;
private Button okButton;
private EditText passEdit;
private SharedPreferences sp;
private void enterFirstLevel() {
Intent intent = new Intent();
intent.setClassName("com.discovery.factorymode", "com.discovery.factorymode.FirstLevelActivity");
intent.addFlags(268435456);
startActivity(intent);
finish();
}
private void initListener() {
this.backButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View param1View) {
HomeActivity.this.finish();
}
});
this.okButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View param1View) {
if (HomeActivity.-get0(HomeActivity.this).getText().toString().equals("19850202")) {
((InputMethodManager)HomeActivity.this.getSystemService("input_method")).hideSoftInputFromWindow(HomeActivity.this.getCurrentFocus().getWindowToken(), 1);
HomeActivity.-wrap1(HomeActivity.this);
HomeActivity.-wrap0(HomeActivity.this);
return;
}
Toast.makeText((Context)HomeActivity.this, 2131230960, 0).show();
}
});
}
private void initView() {
this.backButton = (Button)findViewById(2131427431);
this.passEdit = (EditText)findViewById(2131427432);
this.okButton = (Button)findViewById(2131427433);
}
private boolean isNeedRepeat(long paramLong, int paramInt) {
return (System.currentTimeMillis() - paramLong >= (paramInt * 1000 * 60 * 60 * 24));
}
private void saveNowTime() {
SharedPreferences.Editor editor = this.sp.edit();
editor.putLong("pwdTime", System.currentTimeMillis());
editor.commit();
}
protected void onCreate(Bundle paramBundle) {
super.onCreate(paramBundle);
setContentView(2130903065);
this.sp = getSharedPreferences("password", 0);
if (!isNeedRepeat(this.sp.getLong("pwdTime", -1296000000L), 15)) {
enterFirstLevel();
return;
}
initView();
initListener();
}
}