Assistant
REPLY |
MIUI - Modification and decorations | Modification and decorations of MIUI firmware, instructions, discussion. |
Message#42 08.11.16, 16:00 | |
... [offline] Group: Friendssavagemessiahzine.com Messages 6376 Check in: 10.12.14 Xiaomi Mi 8 Pro Reputation: 1280 | |
Message#43 08.11.16, 16:09 | |
... [offline] Group: Friendssavagemessiahzine.com Messages 6376 Check in: 10.12.14 Xiaomi Mi 8 Pro Reputation: 1280 | |
Message#44 08.11.16, 16:17 | |
Local [offline] Group: Friendssavagemessiahzine.com Messages 233 Check in: 16.06.15 Xiaomi Redmi 4 Prime Reputation: 2 | Alex.Strannik, I can not put the expansion in it Wavepad sound editor that's better Post has been editedgrohot86 - 08.11.16, 16:38 |
Message#45 08.11.16, 18:06 | |
Guru [offline] Group: Friendssavagemessiahzine.com Messages 6062 Check in: 31.07.11 Honor Play COR-L29 Reputation: 2103 | when the background of the statusbar is light (I can’t say exactly white or just light), the font color becomes black. Probably still necessary condition yes, added condition. updated instructions The color becomes black, but not so black, because the absolute opacity is not set (from 0 to 255 somewhere at 190). But all the same, if a mask is imposed, the transparency will fall off and the code of black color will be visible, so now it seems like all the rules should be, I checked it, in the settings is black, in other places it is colored Post has been editedS0bes - 08.11.16, 18:30 |
Message#46 14.11.16, 00:35 | |
Visitor [offline] Group: Active users Messages 23 Check in: 10.02.15 Toshiba Portege G900 Reputation: 3 | Televox, Did as it is written (usb mount). on 11/06/10 did not work. the menu is also only mtp, ptp upd: something went wrong. The settings are completely gone. I will continue to understand Post has been editedaskovpen - 14.11.16, 00:45 |
Message#47 14.11.16, 00:51 | |
[online] [offline] Group: Friendssavagemessiahzine.com Messages 2386 Check in: 14.03.13 Lenovo S820 Reputation: 1453 | |
Message#48 14.11.16, 12:16 | |
Guru [offline] Group: Honorary Gameday Messages 2987 Check in: 12.05.14 Xiaomi Mi Note 3 4/64 Reputation: 1868 | Supplement for[MIUI8] Advanced reboot menu Android 6 Since Android 6 MiuiGlobalActions $ 1.smali isservices.jar\ smali \ com \ android \ server \ policy \ MiuiGlobalActions $ 1.smali, slightly corrected lines. We do everything according to the instructions, just paste in the specified path const-string v0, "recovery" invoke-virtual {v0, p1}, Ljava / lang / String; ->equals (Ljava / lang / Object;) Z move-result v0 if-eqz v0,: cond_4b : try_start_3d # invokes: Lcom / android / server / policy / MiuiGlobalActions; ->getPowerManager () Landroid / os / IPowerManager; invoke-static {}, Lcom / android / server / policy / MiuiGlobalActions; ->access $ 100 () Landroid / os / IPowerManager; move-result-object v0 const / 4 v1,0x0 const-string v2, "recovery" const / 4 v3, 0x0 invoke-interface {v0, v1, v2, v3}, Landroid / os / IPowerManager; ->reboot (ZLjava / lang / String; Z) V : try_end_48 .catch Landroid / os / RemoteException; {: try_start_3d ..: try_end_48}: catch_49 goto: goto_10 : catch_49 move-exception v0 goto: goto_10 : cond_4b const-string v0, "bootloader" invoke-virtual {v0, p1}, Ljava / lang / String; ->equals (Ljava / lang / Object;) Z move-result v0 if-eqz v0,: cond_61 : try_start_53 # invokes: Lcom / android / server / policy / MiuiGlobalActions; ->getPowerManager () Landroid / os / IPowerManager; invoke-static {}, Lcom / android / server / policy / MiuiGlobalActions; ->access $ 100 () Landroid / os / IPowerManager; move-result-object v0 const / 4 v1,0x0 const-string v2, "bootloader" const / 4 v3, 0x0 invoke-interface {v0, v1, v2, v3}, Landroid / os / IPowerManager; ->reboot (ZLjava / lang / String; Z) V : try_end_5e .catch Landroid / os / RemoteException; {: try_start_53 ..: try_end_5e}: catch_5f goto: goto_10 : catch_5f move-exception v0 goto: goto_10 : cond_61 Checked on firmware 6.11.3 from MultiRom for Xiaomi Redmi Note 4 on MTK 6797 p.s : goto_10 replace with your own, which is before return-void in the method Post has been editedS0bes - 14.10.17, 19:30 Reason for editing: I made an important remark -------------------- |
Message#49 24.11.16, 10:26 | |
Local [offline] Group: Friendssavagemessiahzine.com Messages 395 Check in: 10.10.12 Nokia 6.1 3/32 Reputation: 34 | I want to increase the font of the clock in the status bar to almost all its height, it is more in the English whale firmware than in the translated ones by different teams. Tell me, is it possible, and where to find it? Post has been editedvovan_zp - 24.11.16, 10:27 -------------------- Samsung GT-I5700 Galaxy Spica -> Mi band v2; Xiaomi Quantie (Hybrid) Gazer Tegra Note 7 |
Message#50 24.11.16, 10:47 | |
... [offline] Group: Friendssavagemessiahzine.com Messages 6376 Check in: 10.12.14 Xiaomi Mi 8 Pro Reputation: 1280 | |
Message#51 24.11.16, 14:02 | |
Experienced [offline] Group: Friendssavagemessiahzine.com Messages 472 Check in: 18.09.13 Xiaomi Redmi Note 4 3/64 Reputation: 171 | [email protected], 10:26 I want to increase the font of the clock in the status bar to almost its full height <dimen name = "statusbar_clock_size">11.5dip</ dimen> It is worth the value of 17.0dip. Here, in the line: <dimen name = "status_bar_notification_icon_size">12.799988dip</ dimen> Post has been editedLulumbaw - 24.11.16, 15:02 Reason for editing: Added. -------------------- Xiaomi Redmi Note 4 & MIUI 10 |
Message#52 25.11.16, 01:07 | |
Drin-grass [offline] Group: Friendssavagemessiahzine.com Messages 4458 Check in: 02.04.12 ZTE Nubia Z11 4/64 Reputation: 705 | |
Message#53 25.11.16, 19:27 | |
Local [offline] Group: Friendssavagemessiahzine.com Messages 395 Check in: 10.10.12 Nokia 6.1 3/32 Reputation: 34 | warlock90000, I made the font of the clock in the status bar a theme, it works, thank you. And you can move the clock on the lock screen with the theme, I want to put them in the center. I found topics where the clock on the lock screen is centered, but there are a lot of unnecessary functions (side panels, weather, calendars, etc.) -------------------- Samsung GT-I5700 Galaxy Spica -> Mi band v2; Xiaomi Quantie (Hybrid) Gazer Tegra Note 7 |
Message#54 26.11.16, 00:58 | |
Drin-grass [offline] Group: Friendssavagemessiahzine.com Messages 4458 Check in: 02.04.12 ZTE Nubia Z11 4/64 Reputation: 705 | |
Message#55 27.11.16, 20:47 | |
Retired [offline] Group: Friendssavagemessiahzine.com Messages 1337 Check in: 20.02.11 Apple iPhone 8 Reputation: 933 | [MIUI 8]Selection and installation of local wallpaper on the screens through a third-party gallery Description: default throughSettings ->Wallpaper You can choose the wallpaper on the lock screen and the desktop only through the Stock Gallery. It can be replaced by any other. For exampleQuickpic. UnpackingThemeManager.apk open LocalResourceListFragment $ 4.smali on the way smali \ com \ android \ thememanager \ activity \ Find: const-string v2, "com.miui.gallery" It should turn out like this: const-string v2, "com.alensw.PicFolder" Save ->we collect. The package name of the desired gallery can be found in* .apk \ AndroidManifest.xml , package = "" Alternative . If from the same LocalResourceListFragment $ 4.smali delete lines: const-string v2, "com.miui.gallery" invoke-virtual {v1, v2}, Landroid / content / Intent; ->setPackage (Ljava / lang / String;) Landroid / content / Intent; instead of the gallery will openDocuments(MIUI optimization in the settings for developers should be off )It will be possible to install wallpaper from all installed galleries / file managers. |
Message#56 01.12.16, 14:30 | |
Guru [offline] Group: Friendssavagemessiahzine.com Messages 6062 Check in: 31.07.11 Honor Play COR-L29 Reputation: 2103 | Correction of the notification counter on the icons in the [MIUI 8] [MM] launcher UPDATED on Oct 8, 2017 Instruction MiuiSystemUI \ smali \ com \ android \ systemui \ statusbar \ phone \PhoneStatusBar.smali We are looking for lines withgetMessageCount () I . They meet 4 times and we will edit 4 times. Here is the code, only the registers can differ: invoke-virtual {p1}, Lcom / android / systemui / statusbar / ExpandedNotification; ->getNotification () Landroid / app / Notification; move-result-object v2 iget-object v2, v2, Landroid / app / Notification; ->extraNotification: Landroid / app / MiuiNotification; invoke-virtual {v2}, Landroid / app / MiuiNotification; ->getMessageCount () I move-result v0 It should be completely replaced by invoke-virtual {p0, p1}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->getNumber (Landroid / service / notification / StatusBarNotification;) I move-result v0 Where in the new code p0 is always p0. p1 - ​​the register from the line with getNotification IT IS NOT MANDATORY WITH LETTER P. v0 is the same as in the replaced code. I repeat, this should be done 4 times. Two inshouldUpdateAppMessage and two in updateAppMessage . Pay attention to the registers. At the very end we insert a new method: .method public getNumber (Landroid / service / notification / StatusBarNotification;) I .locals 10 .param p1, "sbn" # Landroid / service / notification / StatusBarNotification; .prologue .line 45 const / 4 v5, 0x0 .line 46 .local v5, "num": I const-string v0, "" .line 48 .local v0, "extra": Ljava / lang / String; const-string v4, "" .line 50 .local v4, "notif_extra_s": Ljava / lang / String; if-nez p1,: cond_0 .line 51 const / 4 v8, 0x0 .line 96 : goto_0 if-nez v8,: cond_99 invoke-virtual {p1}, Lcom / android / systemui / statusbar / ExpandedNotification; ->getNotification () Landroid / app / Notification; move-result-object v8 iget-object v8, v8, Landroid / app / Notification; ->extraNotification: Landroid / app / MiuiNotification; invoke-virtual {v8}, Landroid / app / MiuiNotification; ->getMessageCount () I move-result v8 : cond_99 return v8 .line 53 : cond_0 invoke-virtual {p1}, Landroid / service / notification / StatusBarNotification; ->getPackageName () Ljava / lang / String; move-result-object v8 const-string v9, "com.whatsapp" invoke-virtual {v8, v9}, Ljava / lang / String; ->equalsIgnoreCase (Ljava / lang / String;) Z move-result v8 if-eqz v8,: cond_4 .line 55 invoke-virtual {p1}, Landroid / service / notification / StatusBarNotification; ->getNotification () Landroid / app / Notification; move-result-object v8 iget-object v8, v8, Landroid / app / Notification; ->extras: Landroid / os / Bundle; const-string v9, "android.text" invoke-virtual {v8, v9}, Landroid / os / Bundle; ->getCharSequence (Ljava / lang / String;) Ljava / lang / CharSequence; move-result-object v3 .line 56 .local v3, "notif_extra": Ljava / lang / CharSequence; if-eqz v3,: cond_2 .line 57 invoke-interface {v3}, Ljava / lang / CharSequence; ->toString () Ljava / lang / String; move-result-object v0 .line 59 const-string v8, "message" invoke-virtual {v0, v8}, Ljava / lang / String; ->contains (Ljava / lang / CharSequence;) Z move-result v8 if-nez v8,: cond_1 const-string v8, "\ u0441 \ u043e \ u043e \ u0431 \ u0449 \ u0435 \ u043d" invoke-virtual {v0, v8}, Ljava / lang / String; ->contains (Ljava / lang / CharSequence;) Z move-result v8 if-nez v8,: cond_1 const-string v8, "\ u043f \ u043e \ u0432 \ u0456 \ u0434 \ u043e \ u043c" invoke-virtual {v0, v8}, Ljava / lang / String; ->contains (Ljava / lang / CharSequence;) Z move-result v8 if-nez v8,: cond_1 const-string v8, "Nachrichten" invoke-virtual {v0, v8}, Ljava / lang / String; ->contains (Ljava / lang / CharSequence;) Z move-result v8 if-eqz v8,: cond_2 .line 61 : cond_1 const-string v8, "\\ d +" invoke-static {v8}, Ljava / util / regex / Pattern; ->compile (Ljava / lang / String;) Ljava / util / regex / Pattern; move-result-object v6 .line 62 .local v6, "pat": Ljava / util / regex / Pattern; invoke-virtual {v6, v0}, Ljava / util / regex / Pattern; ->matcher (Ljava / lang / CharSequence;) Ljava / util / regex / Matcher; move-result-object v1 .line 64 .local v1, "matcher": Ljava / util / regex / Matcher; invoke-virtual {v1}, Ljava / util / regex / Matcher; ->find () Z move-result v8 if-eqz v8,: cond_2 .line 65 invoke-virtual {v1}, Ljava / util / regex / Matcher; ->group () Ljava / lang / String; move-result-object v8 invoke-static {v8}, Ljava / lang / Integer; ->parseInt (Ljava / lang / String;) I move-result v5 .line 92 .end local v1 # "matcher": Ljava / util / regex / Matcher; .end local v3 # "notif_extra": Ljava / lang / CharSequence; .end local v6 # "pat": Ljava / util / regex / Pattern; : cond_2 : goto_1 if-nez v5,: cond_3 .line 93 invoke-virtual {p1}, Landroid / service / notification / StatusBarNotification; ->getNotification () Landroid / app / Notification; move-result-object v8 iget v5, v8, Landroid / app / Notification; ->number: I : cond_3 move v8, v5 .line 96 goto: goto_0 .line 69 : cond_4 invoke-virtual {p1}, Landroid / service / notification / StatusBarNotification; ->getPackageName () Ljava / lang / String; move-result-object v8 const-string v9, "com.viber.voip" invoke-virtual {v8, v9}, Ljava / lang / String; ->equalsIgnoreCase (Ljava / lang / String;) Z move-result v8 if-eqz v8,: cond_2 .line 70 invoke-virtual {p1}, Landroid / service / notification / StatusBarNotification; ->getNotification () Landroid / app / Notification; move-result-object v8 iget-object v8, v8, Landroid / app / Notification; ->extras: Landroid / os / Bundle; const-string v9, "android.infoText" invoke-virtual {v8, v9}, Landroid / os / Bundle; ->getCharSequence (Ljava / lang / String;) Ljava / lang / CharSequence; move-result-object v3 .line 71 .restart local v3 # "notif_extra": Ljava / lang / CharSequence; if-eqz v3,: cond_2 .line 72 invoke-interface {v3}, Ljava / lang / CharSequence; ->toString () Ljava / lang / String; move-result-object v0 .line 73 const-string v8, "\\ d +" invoke-static {v8}, Ljava / util / regex / Pattern; ->compile (Ljava / lang / String;) Ljava / util / regex / Pattern; move-result-object v6 .line 74 .restart local v6 # "pat": Ljava / util / regex / Pattern; invoke-virtual {v6, v0}, Ljava / util / regex / Pattern; ->matcher (Ljava / lang / CharSequence;) Ljava / util / regex / Matcher; move-result-object v1 .line 75 .restart local v1 # "matcher": Ljava / util / regex / Matcher; invoke-virtual {v1}, Ljava / util / regex / Matcher; ->find () Z move-result v8 if-eqz v8,: cond_5 .line 76 invoke-virtual {v1}, Ljava / util / regex / Matcher; ->group () Ljava / lang / String; move-result-object v8 invoke-static {v8}, Ljava / lang / Integer; ->parseInt (Ljava / lang / String;) I move-result v5 goto: goto_1 .line 78 : cond_5 invoke-virtual {p1}, Landroid / service / notification / StatusBarNotification; ->getNotification () Landroid / app / Notification; move-result-object v8 iget-object v8, v8, Landroid / app / Notification; ->extras: Landroid / os / Bundle; const-string v9, "android.title" invoke-virtual {v8, v9}, Landroid / os / Bundle; ->getCharSequence (Ljava / lang / String;) Ljava / lang / CharSequence; move-result-object v3 .line 79 if-eqz v3,: cond_2 .line 80 invoke-interface {v3}, Ljava / lang / CharSequence; ->toString () Ljava / lang / String; move-result-object v0 .line 81 const-string v8, "Missed" invoke-virtual {v0, v8}, Ljava / lang / String; ->contains (Ljava / lang / CharSequence;) Z move-result v8 if-nez v8,: cond_6 const-string v8, "\ u041f \ u0440 \ u043e \ u043f \ u0443 \ u0449 \ u0435 \ u043d \ u043d \ u044b \ u0445" invoke-virtual {v0, v8}, Ljava / lang / String; ->contains (Ljava / lang / CharSequence;) Z move-result v8 if-nez v8,: cond_6 const-string v8, "\ u041f \ u0440 \ u043e \ u043f \ u0443 \ u0449 \ u0435 \ u043d \ u0456" invoke-virtual {v0, v8}, Ljava / lang / String; ->contains (Ljava / lang / CharSequence;) Z move-result v8 if-nez v8,: cond_6 const-string v8, "Abwesenheit" invoke-virtual {v0, v8}, Ljava / lang / String; ->contains (Ljava / lang / CharSequence;) Z move-result v8 if-eqz v8,: cond_2 .line 82 : cond_6 const-string v8, "\\ d +" invoke-static {v8}, Ljava / util / regex / Pattern; ->compile (Ljava / lang / String;) Ljava / util / regex / Pattern; move-result-object v7 .line 83 .local v7, "pat1": Ljava / util / regex / Pattern; invoke-virtual {v7, v0}, Ljava / util / regex / Pattern; ->matcher (Ljava / lang / CharSequence;) Ljava / util / regex / Matcher; move-result-object v2 .line 84 .local v2, "matcher1": Ljava / util / regex / Matcher; invoke-virtual {v2}, Ljava / util / regex / Matcher; ->find () Z move-result v8 if-eqz v8,: cond_2 .line 85 invoke-virtual {v2}, Ljava / util / regex / Matcher; ->group () Ljava / lang / String; move-result-object v8 invoke-static {v8}, Ljava / lang / Integer; ->parseInt (Ljava / lang / String;) I move-result v5 goto / 16: goto_1 .end method Files for comparison: files3.zip (124.2 KB) If the patch does not work correctly, you did something wrong. Especially for this, I attached the files for comparison. We pay special attention to the numbers and letters of the p / v registers. Why the instruction is no longer updated (read) Post has been editedS0bes - 29.01.18, 17:48 |
Message#57 14.12.16, 12:37 | |
[online] [offline] Group: Friendssavagemessiahzine.com Messages 2386 Check in: 14.03.13 Lenovo S820 Reputation: 1453 | |
Message#58 14.12.16, 16:24 | |
Guru [offline] Group: Friendssavagemessiahzine.com Messages 6062 Check in: 31.07.11 Honor Play COR-L29 Reputation: 2103 | com.miui.home.launcher.EditingEntryThumbnailView .method static constructor<clinit>() V .locals 3 const / 4 v0, 0x2 new-array v0, v0, [I fill-array-data v0,: array_0 sput-object v0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->ICON_BACKGROUND: [I new-instance v0, Landroid / content / ComponentName; const-string v1, "com.android.thememanager" const-string v2, "com.android.thememanager.activity.ThemeSettingsActivity" invoke-direct {v0, v1, v2}, Landroid / content / ComponentName; -><init>(Ljava / lang / String; Ljava / lang / String;) V sput-object v0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mThemePickCN: Landroid / content / ComponentName; return-void : array_0 .array-data 4 0x7f0200d5 0x7f0200d6 .end array-data .end method infa weaving |
Message#59 14.12.16, 16:32 | |
Guru [offline] Group: Friendssavagemessiahzine.com Messages 6062 Check in: 31.07.11 Honor Play COR-L29 Reputation: 2103 | Televox,if anything, there still is an onClick method .method public onClick (Landroid / view / View;) V .locals 4 invoke-virtual {p0}, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->isShown () Z move-result v2 if-eqz v2,: cond_0 iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; invoke-virtual {v2}, Lcom / miui / home / launcher / Launcher; ->isPrivacyModeEnabled () Z move-result v2 if-eqz v2,: cond_1 : cond_0 : goto_0 return-void : cond_1 invoke-virtual {p1}, Landroid / view / View; ->getTag () Ljava / lang / Object; move-result-object v2 check-cast v2, Ljava / lang / Integer; invoke-virtual {v2}, Ljava / lang / Integer; ->intValue () I move-result v1 packed-switch v1,: pswitch_data_0 goto: goto_0 : pswitch_0 new-instance v0, Landroid / content / Intent; invoke-direct {v0}, Landroid / content / Intent; -><init>() V sget-object v2, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mThemePickCN: Landroid / content / ComponentName; invoke-virtual {v0, v2}, Landroid / content / Intent; ->setComponent (Landroid / content / ComponentName;) Landroid / content / Intent; const / high16 v2,0x10000000 invoke-virtual {v0, v2}, Landroid / content / Intent; ->setFlags (I) Landroid / content / Intent; const-string v2, "REQUEST_ENTRY_TYPE" const-string v3, "home" invoke-virtual {v0, v2, v3}, Landroid / content / Intent; ->putExtra (Ljava / lang / String; Ljava / lang / String;) Landroid / content / Intent; iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; invoke-virtual {v2, v0}, Lcom / miui / home / launcher / Launcher; ->startActivity (Landroid / content / Intent;) V const-string v2, "theme" invoke-static {v2}, Lcom / miui / home / launcher / AnalyticalDataCollector; ->trackEditingEntryClicked (Ljava / lang / String;) V goto: goto_0 : pswitch_1 iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; const / 16 v3, 0xb invoke-virtual {v2, v3}, Lcom / miui / home / launcher / Launcher; ->setEditingState (I) V const-string v2, "widget_pick" invoke-static {v2}, Lcom / miui / home / launcher / AnalyticalDataCollector; ->trackEditingEntryClicked (Ljava / lang / String;) V goto: goto_0 : pswitch_2 iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; const / 16 v3, 0xc invoke-virtual {v2, v3}, Lcom / miui / home / launcher / Launcher; ->setEditingState (I) V const-string v2, "wallpaper_settings" invoke-static {v2}, Lcom / miui / home / launcher / AnalyticalDataCollector; ->trackEditingEntryClicked (Ljava / lang / String;) V goto: goto_0 : pswitch_3 iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; const / 16 v3, 0xd invoke-virtual {v2, v3}, Lcom / miui / home / launcher / Launcher; ->setEditingState (I) V const-string v2, "transition_settings" invoke-static {v2}, Lcom / miui / home / launcher / AnalyticalDataCollector; ->trackEditingEntryClicked (Ljava / lang / String;) V goto: goto_0 : pswitch_4 iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; const / 16 v3, 0xe invoke-virtual {v2, v3}, Lcom / miui / home / launcher / Launcher; ->setEditingState (I) V const-string v2, "screen_cells_settings" invoke-static {v2}, Lcom / miui / home / launcher / AnalyticalDataCollector; ->trackEditingEntryClicked (Ljava / lang / String;) V goto: goto_0 : pswitch_data_0 .packed-switch 0x0 : pswitch_0 : pswitch_1 : pswitch_2 : pswitch_3 : pswitch_4 .end packed-switch .end method where the red lines are executed (they can be removed and filled with your own, if you know how and what you need) when you click on Themes |
Message#60 14.12.16, 16:34 | |
[online] [offline] Group: Friendssavagemessiahzine.com Messages 2386 Check in: 14.03.13 Lenovo S820 Reputation: 1453 | S0bes, I want to completely remove this item in general, but what about adding, I thought you could just change the name and class and that's it)) doesn’t it work? ----------------------------------------------------- Well, yes, to check wrote: const-string v1, "com.speedsoftware.rootexplorer" const-string v2, "com.speedsoftware.rootexplorer.RootExplorer" Everything works: D Post has been editedTelevox - 14.12.16, 16:43 -------------------- If every time I want to drink, they give me a drink, then I would drink! |
Message#61 14.12.16, 16:45 | |
Guru [offline] Group: Friendssavagemessiahzine.com Messages 6062 Check in: 31.07.11 Honor Play COR-L29 Reputation: 2103 | then I thought you could just replace the name and class and that's it)) doesn’t it work? give me a ride to remove, you have to do a bunch of stuff like in arrays now so <string-array name = "editing_mode_entries"> <item>Widgets</ item> <item>Wallpaper</ item> <item>Effects</ item> <item>Screen cells</ item> </ string-array> <string-array name = "editing_mode_values"> <item>0</ item> <item>1</ item> <item>2</ item> <item>3</ item> </ string-array> com.miui.home.launcher.EditingEntryThumbnailView look for .method private initIconDrawableIds (Landroid / content / Context;) V find the first mention of const / 4 v1, 0x0 and delete this line + three below it const / 4 v1,0x0 const v2,0x7f0200dc aput v2, v0, v1 iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I all other const / 4 v1, 0x? decrement by 1 in this method what would numbering const / 4 v1, 0x0, const / 4 v1, 0x1, const / 4 v1, 0x2 and const / 4 v1, 0x3 like it was .method private initIconDrawableIds (Landroid / content / Context;) V .locals 3 iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mContext: Landroid / content / Context; invoke-virtual {v0}, Landroid / content / Context; ->getResources () Landroid / content / res / Resources; move-result-object v0 const v1,0x7f08000b invoke-virtual {v0, v1}, Landroid / content / res / Resources; ->getStringArray (I) [Ljava / lang / String; move-result-object v0 sput-object v0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEditingModes: [Ljava / lang / String; sget-object v0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEditingModes: [Ljava / lang / String; array-length v0, v0 new-array v0, v0, [I iput-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I const / 4 v1,0x0 const v2,0x7f0200dc aput v2, v0, v1 iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I const / 4 v1, 0x1 const v2,0x7f0200d4 aput v2, v0, v1 iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I const / 4 v1,0x2 const v2,0x7f0200db aput v2, v0, v1 iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I const / 4 v1,0x3 const v2,0x7f0200dd aput v2, v0, v1 iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I const / 4 v1,0x4 const v2,0x7f0200da aput v2, v0, v1 return-void .end method has become .method private initIconDrawableIds (Landroid / content / Context;) V .locals 3 iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mContext: Landroid / content / Context; invoke-virtual {v0}, Landroid / content / Context; ->getResources () Landroid / content / res / Resources; move-result-object v0 const v1,0x7f08000b invoke-virtual {v0, v1}, Landroid / content / res / Resources; ->getStringArray (I) [Ljava / lang / String; move-result-object v0 sput-object v0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEditingModes: [Ljava / lang / String; sget-object v0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEditingModes: [Ljava / lang / String; array-length v0, v0 new-array v0, v0, [I iput-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I const / 4 v1,0x0 const v2,0x7f0200d4 aput v2, v0, v1 iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I const / 4 v1, 0x1 const v2,0x7f0200db aput v2, v0, v1 iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I const / 4 v1,0x2 const v2,0x7f0200dd aput v2, v0, v1 iget-object v0, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mEntryDrawableIds: [I const / 4 v1,0x3 const v2,0x7f0200da aput v2, v0, v1 return-void .end method well and from the onclick method we delete red lines .method public onClick (Landroid / view / View;) V .locals 4 invoke-virtual {p0}, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->isShown () Z move-result v2 if-eqz v2,: cond_0 iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; invoke-virtual {v2}, Lcom / miui / home / launcher / Launcher; ->isPrivacyModeEnabled () Z move-result v2 if-eqz v2,: cond_1 : cond_0 : goto_0 return-void : cond_1 invoke-virtual {p1}, Landroid / view / View; ->getTag () Ljava / lang / Object; move-result-object v2 check-cast v2, Ljava / lang / Integer; invoke-virtual {v2}, Ljava / lang / Integer; ->intValue () I move-result v1 packed-switch v1,: pswitch_data_0 goto: goto_0 : pswitch_0 new-instance v0, Landroid / content / Intent; invoke-direct {v0}, Landroid / content / Intent; -><init>() V sget-object v2, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mThemePickCN: Landroid / content / ComponentName; invoke-virtual {v0, v2}, Landroid / content / Intent; ->setComponent (Landroid / content / ComponentName;) Landroid / content / Intent; const / high16 v2,0x10000000 invoke-virtual {v0, v2}, Landroid / content / Intent; ->setFlags (I) Landroid / content / Intent; const-string v2, "REQUEST_ENTRY_TYPE" const-string v3, "home" invoke-virtual {v0, v2, v3}, Landroid / content / Intent; ->putExtra (Ljava / lang / String; Ljava / lang / String;) Landroid / content / Intent; iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; invoke-virtual {v2, v0}, Lcom / miui / home / launcher / Launcher; ->startActivity (Landroid / content / Intent;) V const-string v2, "theme" invoke-static {v2}, Lcom / miui / home / launcher / AnalyticalDataCollector; ->trackEditingEntryClicked (Ljava / lang / String;) V goto: goto_0 : pswitch_1 iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; const / 16 v3, 0xb invoke-virtual {v2, v3}, Lcom / miui / home / launcher / Launcher; ->setEditingState (I) V const-string v2, "widget_pick" invoke-static {v2}, Lcom / miui / home / launcher / AnalyticalDataCollector; ->trackEditingEntryClicked (Ljava / lang / String;) V goto: goto_0 : pswitch_2 iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; const / 16 v3, 0xc invoke-virtual {v2, v3}, Lcom / miui / home / launcher / Launcher; ->setEditingState (I) V const-string v2, "wallpaper_settings" invoke-static {v2}, Lcom / miui / home / launcher / AnalyticalDataCollector; ->trackEditingEntryClicked (Ljava / lang / String;) V goto: goto_0 : pswitch_3 iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; const / 16 v3, 0xd invoke-virtual {v2, v3}, Lcom / miui / home / launcher / Launcher; ->setEditingState (I) V const-string v2, "transition_settings" invoke-static {v2}, Lcom / miui / home / launcher / AnalyticalDataCollector; ->trackEditingEntryClicked (Ljava / lang / String;) V goto: goto_0 : pswitch_4 iget-object v2, p0, Lcom / miui / home / launcher / EditingEntryThumbnailView; ->mLauncher: Lcom / miui / home / launcher / Launcher; const / 16 v3, 0xe invoke-virtual {v2, v3}, Lcom / miui / home / launcher / Launcher; ->setEditingState (I) V const-string v2, "screen_cells_settings" invoke-static {v2}, Lcom / miui / home / launcher / AnalyticalDataCollector; ->trackEditingEntryClicked (Ljava / lang / String;) V goto: goto_0 : pswitch_data_0 .packed-switch 0x0 : pswitch_0 : pswitch_1 : pswitch_2 : pswitch_3 : pswitch_4 .end packed-switch .end method and in this method we change pswitch_X everywhere to pswitch_ (X-1), i.e. pswitch_1 will become pswitch_0, pswitch_2 will become pswitch_1, etc. Post has been editedS0bes - 14.12.16, 16:47 |
mobile version | Now: 04/28/19, 20:55 |