-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwEmui: Patch out Huawei logging static fields
09-22 23:33:07.570 2057 2057 E AndroidRuntime: java.lang.NoSuchFieldError: No static field HWINFO of type Z in class Landroid/util/Log; or its superclasses (declaration of 'android.util.Log' appears in /system/framework/framework.jar!classes3.dex) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at huawei.android.app.admin.TransactionSponsor.<clinit>(TransactionSponsor.java:21) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at huawei.android.app.admin.HwDevicePolicyManagerEx.<init>(HwDevicePolicyManagerEx.java:26) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.telephony.HwTelephonyManagerInner.<init>(HwTelephonyManagerInner.java:145) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.telephony.HwTelephonyManagerInner.<clinit>(HwTelephonyManagerInner.java:193) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.telephony.HwTelephonyManagerInner.getDefault(HwTelephonyManagerInner.java:197) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.telephony.HwTelephonyManager.getDefault4GSlotId(HwTelephonyManager.java:494) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at com.huawei.ims.ImsCallProviderUtils.getSubId(ImsCallProviderUtils.java:398) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at com.huawei.ims.HwImsServiceImpl.getDefaultPhone(HwImsServiceImpl.java:2893) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at com.huawei.ims.HwImsServiceImpl.updatePhoneBaseEvent(HwImsServiceImpl.java:2940) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at com.huawei.ims.HwImsServiceImpl.<init>(HwImsServiceImpl.java:569) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at com.huawei.ims.HwImsService.onCreate(HwImsService.java:56) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:4486) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2161) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7924) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 09-22 23:33:07.570 2057 2057 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) * sed -i 's#sget-boolean \([^,]*\), Landroid/util/Log;->HWINFO:Z#const/4 \1, 0x0#' $(grep -rl "HWINFO:Z" ./smali) * sed -i 's#sget-boolean \([^,]*\), Landroid/util/Log;->HWModuleLog:Z#const/4 \1, 0x0#' $(grep -rl "HWModuleLog:Z" ./smali) * sed -i 's#sget-boolean \([^,]*\), Landroid/util/Log;->HWLog:Z#const/4 \1, 0x0#' $(grep -rl "HWLog:Z" ./smali)
- Loading branch information
Showing
31 changed files
with
187 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.