I recently decompiled a apk. I extracted the source code. But when i try to run it in Eclipse, I m getting Label Missing Error. Here is my code snippet: (Errors are written as comments)
private void changeRadioComponentEnabled(Context paramContext, String paramString, boolean paramBoolean1, boolean paramBoolean2)
{
ContentResolver localContentResolver = paramContext.getContentResolver();
int i;
boolean bool;
if (paramBoolean1)
{
i = 0;
Settings.System.putInt(localContentResolver, "airplane_mode_on", i);
Settings.System.putString(paramContext.getContentResolver(), "airplane_mode_radios", paramString);
Intent localIntent = new Intent("android.intent.action.AIRPLANE_MODE");
bool = false;
if (!paramBoolean1)
break label92; //The label92 is missing
label52: localIntent.putExtra("state", bool);
paramContext.sendBroadcast(localIntent);
if (!paramBoolean2)
break label98; //The label92 is missing
Settings.System.putString(paramContext.getContentResolver(), "airplane_mode_radios", "cell,bluetooth,wifi,nfc");
}
label92: label98:
while (paramString.indexOf("cell") != 0)
{
return;
i = 1; //Unreachable Code
break;
bool = true;
break label52;
}
Settings.System.putString(paramContext.getContentResolver(), "airplane_mode_radios", "cell");
}
How can I resolve this issue? Is it the Decompiler problem which has messed up with the code? I referred different solutions in the website but no luck.
Thanks and Regards