[Android General] edzamber:
Hi bro,

I tryed to replace http://www.samsung.com/m-manual/commonink by someting else in Nougat method but not working.

url openned is Always http://www.samsung.com/m-manual/common because it looking directly insto SBrowser app to open link even if you change it.

Maybe someting to do with

const-string/jumbo v7, "online_manual_url"

.method public static getOnlineHelpMenuState(Landroid/content/Context;Lcom/android/settings/Utils$OnlineHelpMenuState;)Lcom/android/settings/Utils$OnlineHelpMenuSta
.locals 13

const v12, 0x7f0b0444

const v11, 0x7f020243

const/4 v7, 0x0

const/4 v10, 0x1

const/4 v6, 0x0

if-nez p1, :cond_0

new-instance p1, Lcom/android/settings/Utils$OnlineHelpMenuState;

invoke-direct {p1}, Lcom/android/settings/Utils$OnlineHelpMenuState;-><init>()V

iput-boolean v6, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->removeTile:Z

iput-object v7, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->intent:Landroid/content/Intent;

iput v6, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->titleRes:I

iput v6, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->iconRes:I

:cond_0
const-string/jumbo v6, "Settings_Utils"

new-instance v7, Ljava/lang/StringBuilder;

invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

const-string/jumbo v8, "CscFeature_Setting_ConfigTypeHelp: "

invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v7

invoke-static {}, Lcom/samsung/android/feature/SemCscFeature;->getInstance()Lcom/samsung/android/feature/SemCscFeature;

move-result-object v8

const-string/jumbo v9, "CscFeature_Setting_ConfigTypeHelp"

invoke-virtual {v8, v9}, Lcom/samsung/android/feature/SemCscFeature;->getInteger(Ljava/lang/String;)I

move-result v8

invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v7

const-string/jumbo v8, "[0:dont support, 1:online, 2:ondevice]"

invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v7

invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v7

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

invoke-static {}, Lcom/samsung/android/feature/SemCscFeature;->getInstance()Lcom/samsung/android/feature/SemCscFeature;

move-result-object v6

const-string/jumbo v7, "CscFeature_Setting_ConfigTypeHelp"

invoke-virtual {v6, v7}, Lcom/samsung/android/feature/SemCscFeature;->getInteger(Ljava/lang/String;)I

move-result v6

const/4 v7, 0x2

if-ne v6, v7, :cond_5

iput v12, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->titleRes:I

iput v11, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->iconRes:I

invoke-static {p0}, Lcom/android/settings/Utils;->isSupportOfflineHelpMenu(Landroid/content/Context;)Z

move-result v6

if-eqz v6, :cond_4

const-string/jumbo v6, "Settings_Utils"

const-string/jumbo v7, "isSupportOfflineHelpMenu"

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

invoke-static {}, Lcom/samsung/android/feature/SemFloatingFeature;->getInstance()Lcom/samsung/android/feature/SemFloatingFeature;

move-result-object v6

const-string/jumbo v7, "SEC_FLOATING_FEATURE_ACCESSIBILITY_SUPPORT_MANAGE_ACCESSIBILITY"

invoke-virtual {v6, v7}, Lcom/samsung/android/feature/SemFloatingFeature;->getBoolean(Ljava/lang/String;)Z

move-result v6

if-eqz v6, :cond_2

const-string/jumbo v6, "Settings_Utils"

const-string/jumbo v7, "non mass"

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

new-instance v4, Landroid/content/Intent;

const-string/jumbo v6, "com.samsung.helphub.HELP"

invoke-direct {v4, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

iput-object v4, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->intent:Landroid/content/Intent;

:cond_1
:goto_0
return-object p1

:cond_2
const-string/jumbo v6, "Settings_Utils"

const-string/jumbo v7, "mass"

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

const-string/jumbo v6, "VZW"

invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;

move-result-object v7

invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v6

if-eqz v6, :cond_3

const-string/jumbo v6, "Settings_Utils"

new-instance v7, Ljava/lang/StringBuilder;

invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

const-string/jumbo v8, "is mass. "

invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v7

invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;

move-result-object v8

invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v7

invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v7

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

new-instance v4, Landroid/content/Intent;

const-string/jumbo v6, "com.samsung.helphub.HELP"

invoke-direct {v4, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

iput-object v4, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->intent:Landroid/content/Intent;

goto :goto_0

:cond_3
const-string/jumbo v6, "Settings_Utils"

new-instance v7, Ljava/lang/StringBuilder;

invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

const-string/jumbo v8, "remove online help - is mass "

invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v7

invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;

move-result-object v8

invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v7

invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v7

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

iput-boolean v10, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->removeTile:Z

goto :goto_0

:cond_4
const-string/jumbo v6, "Settings_Utils"

const-string/jumbo v7, "remove online help - is not SupportOfflineHelpMenu."

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

iput-boolean v10, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->removeTile:Z

goto :goto_0

:cond_5
invoke-static {}, Lcom/samsung/android/feature/SemCscFeature;->getInstance()Lcom/samsung/android/feature/SemCscFeature;

move-result-object v6

const-string/jumbo v7, "CscFeature_Setting_ConfigTypeHelp"

invoke-virtual {v6, v7}, Lcom/samsung/android/feature/SemCscFeature;->getInteger(Ljava/lang/String;)I

move-result v6

if-nez v6, :cond_6

const-string/jumbo v6, "Settings_Utils"

const-string/jumbo v7, "remove online help - help csc feature is 0"

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

iput-boolean v10, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->removeTile:Z

goto/16 :goto_0

:cond_6
const-string/jumbo v6, "Settings_Utils"

const-string/jumbo v7, "help csc feature is 1"

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

iget-object v6, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->intent:Landroid/content/Intent;

if-nez v6, :cond_a

new-instance v4, Landroid/content/Intent;

invoke-direct {v4}, Landroid/content/Intent;-><init>()V

:goto_1
const-string/jumbo v1, "com.sec.android.app.sbrowser"

const-string/jumbo v0, "com.sec.android.app.sbrowser.SBrowserMainActivity"

new-instance v2, Landroid/content/ComponentName;

const-string/jumbo v6, "com.sec.android.app.sbrowser"

const-string/jumbo v7, "com.sec.android.app.sbrowser.SBrowserMainActivity"

invoke-direct {v2, v6, v7}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

const/4 v5, 0x0

:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v6

const-string/jumbo v7, "online_manual_url"

invoke-static {v6, v7}, Landroid/provider/Settings$Global;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

move-result-object v5

:goto_2
if-eqz v5, :cond_b

invoke-virtual {v5}, Ljava/lang/String;->length()I

move-result v6

if-lez v6, :cond_b

invoke-static {v5}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

move-result-object v6

invoke-virtual {v4, v6}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

:goto_3
const-string/jumbo v6, "com.sec.android.app.sbrowser"

invoke-static {p0, v6}, Lcom/android/settings/Utils;->hasPackage(Landroid/content/Context;Ljava/lang/String;)Z

move-result v6

if-eqz v6, :cond_c

invoke-virtual {v4, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

const-string/jumbo v6, "Settings_Utils"

const-string/jumbo v7, "sbrowser is exist on device."

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

:goto_4
iput-object v4, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->intent:Landroid/content/Intent;

invoke-static {}, Lcom/android/settings/Utils;->getResIdForUserManual()I

move-result v6

iput v6, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->titleRes:I

invoke-static {}, Lcom/android/settings/Utils;->isSupportCseriesUX()Z

move-result v6

if-eqz v6, :cond_7

invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v6

invoke-static {v6}, Lcom/android/settings/Utils;->isEasyModeStatus(Landroid/content/ContentResolver;)Z

move-result v6

if-eqz v6, :cond_8

:cond_7
const v6, 0x7f020265

iput v6, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->iconRes:I

:cond_8
invoke-static {}, Lcom/android/settings/Utils;->isUSA()Z

move-result v6

if-eqz v6, :cond_9

iput v12, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->titleRes:I

iput v11, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->iconRes:I

:cond_9
invoke-static {p0, v4}, Lcom/android/settings/Utils;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

move-result v6

if-nez v6, :cond_1

const-string/jumbo v6, "Settings_Utils"

const-string/jumbo v7, "do not support browser."

invoke-static {v6, v7}, Landroid/util/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

iput-boolean v10, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->removeTile:Z

goto/16 :goto_0

:cond_a
iget-object v4, p1, Lcom/android/settings/Utils$OnlineHelpMenuState;->intent:Landroid/content/Intent;

goto :goto_1

:catch_0
move-exception v3

invoke-virtual {v3}, Ljava/lang/Exception;->printStackTrace()V

goto :goto_2

:cond_b
const-string/jumbo v6, "http://www.samsung.com/m-manual/common"

invoke-static {v6}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

move-result-object v6

invoke-virtual {v4, v6}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

goto :goto_3

:cond_c
const-string/jumbo v6, "android.intent.action.VIEW"

invoke-virtual {v4, v6}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

goto :goto_4
.end method