-->

[GUIDE][ICS][Easiest][How TO]Add 3-Way Boot To Your Power Menu

[GUIDE][ICS][Easiest][How TO]Add 3-Way Boot To Your Power Menu - Hallo sobat Jogja Android Blog, Pada Artikel yang sobat baca kali ini dengan judul [GUIDE][ICS][Easiest][How TO]Add 3-Way Boot To Your Power Menu, kami telah mempersiapkan artikel ini dengan baik untuk sobat baca dan ambil informasi didalamnya. Mudah-mudahan isi postingan [GUIDE][ICS][Easiest][How TO]Add 3-Way Boot To Your Power Menu yang kami tulis ini dapat sobat Jogja Android Blog pahami. Baiklah, selamat membaca sambil menikmati kopi.


[GUIDE][ICS][Easiest][How TO]Add 3-Way Boot To Your Power Menu|Easiest Guide

 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

 First of all i would like to thanks Jimmy Lam for his framework and android.policy.jar from which i learnt by comparing

Requirements


Quote:
  • Attached File
  • Notepad++
  • Backsmali Manager
  • Apktool
  • Patience
  • Brain Off cource
Ok i have divided this Guide in Two Parts to make it easy
In First Part we will edit framework and in second part we will edit android policy.jar



Attachement :

1. sources.rar
2. MOD-files.rar

Part-1

  • Decompile Your framework-res.apk and move to
    Code:
    framework-res\res\values
  • Open Strings.xml with notepad++ or any other tool you use
    paste the following lines in the end
    Code:
    <string name="global_action_reboot_now">Restart</string>
    <string name="global_action_reboot_recovery">Recovery</string>

    Close it and recompile.
    Then again decompile and move to
    Code:
    framework-res\res\values
    and note the following ids (you may have different)

    Here we end our First Part


    Part-2
  • Decompile your android.policy.jar using backsmali managaer or any other tool

    Download and extract the attached file to
    Code:
    android.policy\com\android\internal\policy\impl
  • Then open GlobalActions.smali
    And do how i say
  • Before
    Code:
    .line 165
    iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

    new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$2;

    const v2, 0x104013c

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

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 185
    iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneModeOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
  • After

    Just Add the Bold ( For A7/A5 Users just copy paste )

    Code:
    .line 165
    iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

    new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$2;

    const v2, 0x104013a

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

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 183
    iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

    new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$8;

    const v2, 0x104054d

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

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 184
    iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

    new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$9;

    const v2, 0x104054e

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

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z


    .line 185
    iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneModeOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    Note: Note Ids must be same as you noted in part 1

    Code:
    Only Replace last 7 digits of IDS when renaming in the above step 
  • Recompile and replace the classes.dex using Z-zip

Yipeee You Now have 3 Way boot


This Guide is tested by me and is working Fine

I have uploaded the Modded files for A5/A7/A7+ users so they can download and enjoy

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

Demikian Artikel dengan judul [GUIDE][ICS][Easiest][How TO]Add 3-Way Boot To Your Power Menu

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 [GUIDE][ICS][Easiest][How TO]Add 3-Way Boot To Your Power Menu dengan alamat link https://jogjandroidz.blogspot.com/2014/11/guideicseasiesthow-toadd-3-way-boot-to.html

0 Response to "[GUIDE][ICS][Easiest][How TO]Add 3-Way Boot To Your Power Menu"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Artikel Terkait