-->

[MOD][GB][GUIDE] How To Added 4 Way Boot To Your Rom

[MOD][GB][GUIDE] How To Added 4 Way Boot To Your Rom - Hallo sobat Jogja Android Blog, Pada Artikel yang sobat baca kali ini dengan judul [MOD][GB][GUIDE] How To Added 4 Way Boot To Your Rom , kami telah mempersiapkan artikel ini dengan baik untuk sobat baca dan ambil informasi didalamnya. Mudah-mudahan isi postingan [MOD][GB][GUIDE] How To Added 4 Way Boot To Your Rom yang kami tulis ini dapat sobat Jogja Android Blog pahami. Baiklah, selamat membaca sambil menikmati kopi.


[MOD][GB][GUIDE] How To Added 4 Way Boot To Your Rom

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://forum.xda-developers.com/arch.../t-811532.html or u can experimenting by this mod
Here original threads about 4wayboot itself http://forum.xda-developers.com/show....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$5;" ( some roms might have different number on shutdown button. You find right one by for example tracing shutdown icon id )
-Change number 5 to 99 ( two of them )

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

const v3, 0x1080030

const v4, 0x1040121

invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$5;->(Lcom/android/internal/policy/impl/GlobalActions;II)V
After
Code:
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:
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:
Code:
.method static constructor <clinit>()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:

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 <clinit>()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

Enjoy

This is the mod file requireds
http://forum.xda-developers.com/atta...8&d=1333178584

Credit :

untermensch(EPM mod GUide)
kahvitahra(4way boot mod)

http://forum.xda-developers.com/showthread.php?t=1866592

Demikian Artikel dengan judul [MOD][GB][GUIDE] How To Added 4 Way Boot To Your Rom

Mudah-mudahan bisa memberi manfaat untuk sobat Jogja Android Blog semua. Baiklah, sampai jumpa di postingan artikel lainnya.
Sobat Jogja Android Blog sekarang membaca artikel [MOD][GB][GUIDE] How To Added 4 Way Boot To Your Rom dengan alamat link https://jogjandroidz.blogspot.com/2014/11/modgbguide-how-to-added-4-way-boot-to.html

0 Response to "[MOD][GB][GUIDE] How To Added 4 Way Boot To Your Rom "

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Artikel Terkait