[Galaxy Y GT-S5360 Android Development] evanlocked:
hello guys im here to share my knowledge since alot off member ask for this mod i mean how to added this option to ur rom

its not hards guide but seems like u must have EPM [extended power menu] first before do this mod go to this threads for futher info how to added EPM to your rom:) http://xdaforums.com/archive/index.php/t-811532.html or u can experimenting by this mod

here original threads about 4wayboot itself http://xdaforums.com/showthread.php?t=1573032

Requirment:

-Brains

-Patient

-notepad++

-apktool,baksmali.jar or vts(use vts its awesome)

-attached file

ok here we go:

What you need to do is:

-Decompile android.policy.jar of your rom

-Copy attached folder to yours

-Open GlobalActions.smali

-Search line "Lcom/android/internal/policy/impl/GlobalActions$4;" ( some roms might have different number on shutdown button. You find right one by for example tracing shutdown icon id )

-Change number 4 to 99 ( two of them )

Before

Code:
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$4;

const v3, 0x1080030

const v4, 0x1040121

invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$4;->(Lcom/android/internal/policy/impl/GlobalActions;II)V

After

Code:
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$99;

const v3, 0x1080030

const v4, 0x1040121

invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$99;->(Lcom/android/internal/policy/impl/GlobalActions;II)V

-Open GlobalActions$SinglePressAction.smali

-Before line "# instance fields"

paste following code

Code:

# static fields
.field protected static rebootMode:I

.field protected static final rebootOptions:[Ljava/lang/String;

-Then after line "# direct methods"

paste following code

Code:

.method static constructor ()V
.registers 3

const/4 v0, 0x5

new-array v0, v0, [Ljava/lang/String;

const/4 v1, 0x0

const-string v2, "Reboot"

aput-object v2, v0, v1

const/4 v1, 0x1

const-string v2, "Hot Boot"

aput-object v2, v0, v1

const/4 v1, 0x2

const-string v2, "Download"

aput-object v2, v0, v1

const/4 v1, 0x3

const-string v2, "Recovery"

aput-object v2, v0, v1

const/4 v1, 0x4

const-string v2, "Shutdown"

aput-object v2, v0, v1

sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;

return-void
.end method

-So your file should look something like this after those changes

Code:

.class abstract Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;
.super Ljava/lang/Object;
.source "GlobalActions.java"

# interfaces
.implements Lcom/android/internal/policy/impl/GlobalActions$Action;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/android/internal/policy/impl/GlobalActions;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x40a
name = "SinglePressAction"
.end annotation

# static fields
.field protected static rebootMode:I

.field protected static final rebootOptions:[Ljava/lang/String;

# instance fields
.field private final mIconResId:I

.field private final mMessageResId:I

# direct methods
.method static constructor ()V
.registers 3

const/4 v0, 0x5

new-array v0, v0, [Ljava/lang/String;

const/4 v1, 0x0

const-string v2, "Reboot"

aput-object v2, v0, v1

const/4 v1, 0x1

const-string v2, "Hot Boot"

aput-object v2, v0, v1

const/4 v1, 0x2

const-string v2, "Download"

aput-object v2, v0, v1

const/4 v1, 0x3

const-string v2, "Recovery"

aput-object v2, v0, v1

const/4 v1, 0x4

const-string v2, "Shutdown"

aput-object v2, v0, v1

sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;

return-void
.end method

.method protected constructor (II)V
.registers 3
.parameter "iconResId"
.........
.........

compile jar and u are done

enjoy ur new mod

ss:

http://img.tapatalk.com/6703df6f-8b96-e620.jpg

enjoy

this is the mod file requireds

http://xdaforums.com/attachment.php?attachmentid=974608&d=1333178584

credit:

untermensch(EPM mod GUide)

kahvitahra(4way boot mod):cowboy::good::highfive::laugh::eek:

Hot boot is more than faster boot its unlocked on our device soo no need to use terminal emulator to activating this feature