[Android General] edzamber:
Change user manual link to any else

First thanks to

@a.raul

for the tip ;)

- SecSettings2/smali/com/android/Settings/Utilis.smali

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

.
.
.
.
.

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" [COLOR="blue"]#### Change this to const-string/jumbo v7, ""
[/COLOR]
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
.
.
.
.
.
.

:cond_b
const-string/jumbo v6, "http://www.samsung.com/m-manual/common" #### [COLOR="blue"]change url to what you want
[/COLOR]
invoke-static {v6}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

move-result-object v6

- SecSetting2/res/values/strings

Change text in theses strings (exemple for me)

<string name="user_manual">Phonandroid Thread</string>

<string name="user_manual_mos">EdYoBlue Phonandroid Thread</string>

Do the same in your values-language/strings

Add on !!!

Remove SBrowser opening link by default

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

.
.
.
.
.
:goto_1
const-string/jumbo v1, "com.sec.android.app.sbrowser" [COLOR="magenta"]### replace by const-string/jumbo v1, ""
[/COLOR]
const-string/jumbo v0, "com.sec.android.app.sbrowser.SBrowserMainActivity" [COLOR="magenta"]### replace by const-string/jumbo v0, ""
[/COLOR]

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;

.
.
.
.
.
. 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" [COLOR="magenta"]### Replace by const-string/jumbo v6, ""
[/COLOR]
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."

Enjoy :)
​