Thursday, August 29, 2013

3 Way boot to your Power menu ထည့္နည္း

ဖုန္းကိုကလိ ခ်င္ တဲ႔ သူ ေတြ အတြက္ ပါ ။ အရင္ ဆံုး Backup ဆြဲ ထားပါ ။တစ္ခုခု အဆင္မေၿပ ရင္ ေဆာ႔၀္ ၿပန္ေရး ရပါမယ္ ။


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


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

    vDownload 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

Device Tested for this MOD

 


Screenshot


Attached Files
File Type: rar sources.rar - [Click for QR Code] (1.5 KB, 98 views)
File Type: rar MOD-files.rar - [Click for QR Code] (2.89 MB, 98 views)

0 comments:

Post a Comment

လူဆိုတာ ကိုယ္သြားမယ့္လမ္းေၾကာင္းကိုသိရမယ္...ဘာလုပ္ခ်င္လဲသိရမယ္..မသိတဲ့သူကေတာ့ မ်က္စိမွိတ္ျပီးလမ္းေလွ်ာက္တဲ့ အရူးတစ္ေယာက္နဲ႕တူတယ္

Mobile ျဖင့္ပတ္သက္ေသာ Software Error ႏွင့္ Hardware Error မ်ားကို minthweyint@gmail.com & yehtet.al.al@gmail.com တြင္ေမးျမန္းႏိုင္ပါသည္။
ၾကယ္စင္ဟိန္း(Mobile Special Services)
Powered by Blogger.