我最近反编译了一个apk。我提取了源代码。但是当我尝试在Eclipse中运行它时,我遇到了标签丢失错误。这是我的代码片段:(错误被写为注释)
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");
}
如何解决此问题?是编译器问题搞砸了代码吗?我在网站上提到了不同的解决方案,但没有运气。
谢谢和问候