[EVO 4G Android Development] myn:
Okay, Thanks for trying.

Gonna take another stab at this today.

We'll get it :)

If you can wait, Synergy RLS 1 will have this functionality :)

Two more great themes :)

Thanks again :)

Will do, Sorry for the delay. Will add now.

Thanks.

Just when I thought it couldn't get any better!

Thanks :)

Yeah I saw it. I am quite peeved to say the least. I've expressed this concern with the XDA admins hoping those restrictions are not placed on any of the threads I make in the E3D forums.

I can only say, voice your concern with the Admins as I did.

I think I'm going to change mine to "Me-Want-RW-Nand". Until that happens no ROMS :(

I'm a believer in teaching to fish :) So with that said, let me go into the details on how I made this mod for Synergy. This may need some minor tweaks to implement into Rosie 3.0.

Rosie needs to be modded so that the right button when click calls a public activity within my Rosie Settings application.

Use apktool or apkmanager and decompile the Rosie 3.0 and add the following new method to Launcher.smali:

.method private launchMyn()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.logicvoid.rosiesettingsz"

const-string v4, "com.logicvoid.rosiesettingsz.RightActivity"

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;
sget-boolean v2, Lcom/htc/launcher/Launcher;->localLOGV:Z

if-eqz v2, :cond_0

invoke-virtual {v0}, Landroid/content/ActivityNotFoundException;->printStackTrace()V

goto :goto_0

.line 5543
.end local v0 #e:Landroid/content/ActivityNotFoundException;
:catch_1
move-exception v0

.line 5544
.local v0, e:Ljava/lang/IllegalArgumentException;
sget-boolean v2, Lcom/htc/launcher/Launcher;->localLOGV:Z

if-eqz v2, :cond_0

invoke-virtual {v0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V

goto :goto_0
.end method

Then change the right button invocation from the addItems() method to the new method we just added launchMyn()

So searching inside of the same Launcher.smali for addItems() you should see something that resembles this:

invoke-direct {p0}, Lcom/htc/launcher/Launcher;->addItems()V

Change it to invoke the new method we added launchMyn()

invoke-direct {p0}, Lcom/htc/launcher/Launcher;->launchMyn()V

Recompile and copy the classes.dex back into the original Rosie 3.0 apk (don't sign) and push to /system/app :).

Should be good to go.

Thanks for porting it. I'll add to Post #2

:)

Every Sense 2.1/3.0 ROM I have built and tried always shows high screen usage. Even my EVO 3D with stock OTA reports the same. With that said I haven't seen major battery drain. I get great battery life with my EVO and EVO 3d (A full day)

Has anyone else tried this? I would be interested in hear folks results.

Thank you for digging into this and sharing this with us. :)

Thanks for the heads up. :)