close
Blogtrottr
Mobile01最新文章
S3 4.2.2 三星洩漏版 ( CWM 刷法)
May 20th 2013, 12:59

S3 4.2.2 三星洩漏版

按重啟多出 4 個選擇 教學

修改
\android.policy.jar\smali\com\android\internal\policy\impl\GlobalActions$SinglePressAction.smali

18列 加入
# static fields
.field protected static rebootMode:I

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

約 34 列的地方 有 # direct methods , 下面加入

.method static constructor <clinit>()V
.locals 3

const/4 v0, 0x4

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

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

return-void
.end method

再修改

GlobalActions.smali 這個檔

找 new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$5;
改成
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$99;

找 invoke-direct {v0, p0, v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$5;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

改成
invoke-direct {v0, p0, v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$99;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

在 \android.policy.jar\smali\com\android\internal\policy\impl 這個資料夾在加入下面三個檔案

GlobalActions$99$1.smali
GlobalActions$99$2.smali
GlobalActions$99.smali

三個檔案下載

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜

    newhong 發表在 痞客邦 留言(0) 人氣()