Mobile House မန္ဘာ မ်ား ေက်းဇူး ၿပဳ ၿပီး www.mobilehouse.co.nr မွ တိုက္ ရိုက္ ၀င္ေပး ပါ ရန္ ႏွင္႔ အသစ္ တင္ သမွ် ကို သိရွိ ေစရန္
https://www.facebook.com/MobileHouseServiceCentre
မွာ Like လုပ္ ေပး ၾက ပါ ....

Friday, May 10, 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)

No comments:

Post a Comment

Mobile House
ဖုန္း ၿပဳၿပင္ ေရး ႏွင္႔ အေရာင္းဆိုင္

*****************
ဖုန္းၿပဳၿပင္ ေရးနည္းပညာ သင္တန္း

****************
လမ္း၃၀ ၊ ၇၃-၇၄လမ္းၾကား ၊,ေဆးေက်ာင္းေရွ႕ ၊မႏ ၱေလးၿမိဳ႕ ။

Admin = ရဲရင္႔ေအာင္


Note: Only a member of this blog may post a comment.