We’re going to be working within the framework-res.apk and services.jar files of stock ROM, so if you’re on a custom ROM, this guide is not intended for you. I have provided links to download the stock framework-res.apk and services.jar files below.
Requirements:
APK Easy ToolS7 Edge Framework .zipS7 Edge Services jar .zipADB – see “How to Install ADB on Windows”
adb pull /system/framework/framework-res.apk
Now go to res/values/strings.xml and add the bold.
Okay, we’re done with framework-res.apk. You can now recompile it in APK Easy Tool.Now we’re going to work on Services.jar, so decompile Services.jar with APK Easy Tool, and copy the files from the Services jar .zip file I provided above into the newly decompiled Services.jar folder.Now using a text editor, open smali/com/android/server/policy/GlobalActions.smali, and again you are going to add the bolded line in the # instance fields
.field mEmergencyStringId:I .field private mRebootRecovery:Lcom/android/server/policy/GlobalActions$SinglePressAction;
Now find “.method private createDialog()Lcom/android/server/policy/GlobalActions$GlobalActionsDialog;“
The next part is tricky, you need to add the bold lines and modify the underlined.
Now search for const-string/jumbo v4, “silent” and add these lines above it. The two bolded lines must match.
Next we need add a missing part of Android 7 services.jar, so we’re going to re-add it for this mod to work. Find the line for .method private addCustomDialogItems(Landroid/graphics/drawable/BitmapDrawable;Ljava/lang/String;Landroid/content/Intent;ILjava/util/ArrayList;)Z And add this above method: That’s it, now recompile the services.jar, and you can push both the recompiled framework-res.apk and services.jar back onto your phone, either with adb push command or with APK Easy Tool “Install to Phone” button. If you get boot loop after pushing to phone, boot into custom recovery and wipe Dalvik + Cache.
How to Add or Remove Home Button on Toolbar in Microsoft Edge Chromium?How to Fix the Samsung Galaxy Tab Reboot LoopGoogle To Add New Power Menu To Android 11: Digital Wallet Control and Smart…Samsung Galaxy Z Fold 4 and Galaxy Z Flip 4 To Be Revealed On 10th August