[Desire HD Themes and Apps] juniecho:
remap sense 3.5 rosie?

hi,

i am on vivid and kinda stuck remapping sense 3.5 rosie, can you help me a bit?

(i know i can remap 4 buttons with sense 3.6 ICS but i like sense 3.5 GB...)

here goes what i have done so far:

1.

- first i thoroughly read your tutorial http://xdaforums.com/showpost.php?p=17481169&postcount=100

- and edited FXWorkspace$UIHandler.smali

- since it had : pswitch_6 apready i changed 6 to 7

2.

- then i consulted http://xdaforums.com/showpost.php?p=25183448&postcount=3 to find original ARHD 6.1 rosie remap

- ran the diff between original rosie apk and remapped rosie

- winmerge showed difference in FxWorkspace.smali and Launcher.smali (bold font indicates changes)

<FxWorkspace.smali>

.line 320
invoke-static {}, Lcom/htc/launcher/settings/SettingUtil;->isTabletDevice()Z
move-result v0
[B]const/4 v0, 0x1[/B]
if-eqz v0, :cond_0

.line 2413
invoke-static {}, Lcom/htc/launcher/settings/SettingUtil;->isTabletDevice()Z
move-result v4
[B]const/4 v4, 0x1[/B]
if-eqz v4, :cond_1

[B]#[/B] invoke-virtual {p0, v4}, Lcom/htc/android/rosie/home/fxcontrol/FxWorkspace;->getIsButtonBarNull(I)Z
[B]#[/B] move-result v4
[B]#[/B] if-ne v4, v9, :cond_2
[B]if-ne v4, v9, :cond_1[/B]

.line 2438
iget-object v4, p0, Lcom/htc/android/rosie/home/fxcontrol/FxWorkspace;->mLauncher:Lcom/htc/launcher/Launcher;
iget v5, p0, Lcom/htc/android/rosie/home/fxcontrol/FxWorkspace;->mIndexOfButtonbarTouchStart:I
[B]#[/B] invoke-virtual {v4, v5}, Lcom/htc/launcher/Launcher;->addButtonbarItems(I)V
[B]invoke-virtual {v4}, Lcom/htc/launcher/Launcher;->launchCustom()V[/B]

.line 997
invoke-static {}, Lcom/htc/launcher/settings/SettingUtil;->isTabletDevice()Z
move-result v1
[B]const/4 v1, 0x1[/B]
if-eqz v1, :cond_0

<Launcher.smali>

.method private isValidCellInfo(Lcom/htc/launcher/CellInfo;)Z
.locals 1
.parameter "cellInfo"

.prologue
.line 4576
iget-object v0, p0, Lcom/htc/launcher/Launcher;->mWorkspace:Lcom/htc/launcher/Workspace;

invoke-virtual {v0, p1}, Lcom/htc/launcher/Workspace;->isValidCellInfo(Lcom/htc/launcher/CellInfo;)Z
move-result v0
return v0
.end method

[B].method public launchCustom()V
.locals 5

.prologue
.line 5536
new-instance v1, Landroid/content/Intent;

const-string v2, "android.intent.action.MAIN"

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

.line 5537
.local v1, intent:Landroid/content/Intent;
const-string v2, "android.intent.category.LAUNCHER"

invoke-virtual {v1, v2}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

.line 5538
new-instance v2, Landroid/content/ComponentName;

const-string v3, "com.beansoft.launchkey"

const-string v4, "com.beansoft.launchkey.Redirect"

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

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

.line 5540
:try_start_0
invoke-virtual {p0, v1}, Lcom/htc/launcher/Launcher;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_1

.line 5546
:cond_0
:goto_0
return-void

.line 5541
:catch_0
move-exception v0

.line 5542
.local v0, e:Landroid/content/ActivityNotFoundException;
goto :goto_0

:catch_1
move-exception v0

.line 5544
.local v0, e:Ljava/lang/IllegalArgumentException;
goto :goto_0
.end method

[/B].method private loadLocaleAndSimConfigs()V
.locals 4

.prologue
const/4 v3, -0x1

3. and i'm stuck here. after recompiling rosie apk, i found out the personalize button still 'personalizes' instead of calling launchkey.

you mentioned you made the remap working, i'd be very grateful if you show me the master's trick :)

here is the rosie mod apk i've done so far:

https://www.dropbox.com/s/tszpk7m1udmqpao/Rosie_halfmodded.apk

and here is the original rosie apk:

https://www.dropbox.com/s/k22ln8qpxcdxdkn/Rosie.apk

pm seems not to be working :(