Requirements
Quote:
|
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
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
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
0 comments:
Post a Comment
လူဆိုတာ ကိုယ္သြားမယ့္လမ္းေၾကာင္းကိုသိရမယ္...ဘာလုပ္ခ်င္လဲသိရမယ္..မသိတဲ့သူကေတာ့ မ်က္စိမွိတ္ျပီးလမ္းေလွ်ာက္တဲ့ အရူးတစ္ေယာက္နဲ႕တူတယ္