> Attention!

New threads need to be created only inroot partition! In the future, they will be processed by moderators.



Editing system applications Samsung SM-N915 Galaxy Note Edge | Editing system applications Samsung SM-N915 Galaxy Note Edge



Rep: (7352)
Editing system applications Samsung SM-N915 Galaxy Note Edge

This topic discusses the process of editing system files that you can implement yourself.

Forum Rules � | Description � | Discussion � | Firmware � | Purchase � | Accessories � | Editing system applications � | Modifications of software and decorations � | Custom firmware (OS 5.X.X) � | Samsung SM-N915 Galaxy Note Edge Fans Club � | Modified and stock kernels �

Before any changes in the system, do not forget to make BackUp files to be modified.
All the manipulations you do with your device, you do at your own peril and risk.

Rules of conduct in the topic, recommendations on the design of posts. Read a must.

  1. Do not duplicate the "Modification ..." branch, where ready-made solutions are laid out. Here they have a place to be only as an exception to the rules.
  2. Posts with open screens will be deleted without warning!
  3. Orders, requests, requests in this thread are not considered, for this purpose there isOrder table for compiling and editing system resources and applications,all posts that violate the rules will be deleted without warning!
  4. Offtopic and flood prohibited and punishable!
  5. Editing applications from Cyanogen Mod, MIUI, other modifications are not discussed!
  6. In the future, all posts that violate this concept will be deleted without warning!



Instruction Template
Copy the content into your message and fill
[CENTER] [SIZE = 3] [B] [COLOR = royalblue] Here we write the name of the instruction [/ COLOR] [/ B] [/ SIZE] [/ CENTER]
[CENTER] Insert the main screenshot here [/ CENTER]
[COLOR = blue] [B] Author [/ B] [/ COLOR]: Specify the author
[COLOR = blue] [B] Firmware [/ B] [/ COLOR]: Specify the version / number, code / deodex
[COLOR = blue] [B] Description [/ B] [/ COLOR]: Full description
[SPOILER = Extras. screenshots] If there are additional screenshots, then insert it here [/ SPOILER]
[COLOR = blue] [B] Installation [/ B] [/ COLOR]: Specify the installation method / method
[COLOR = blue] [B] Download [/ B] [/ COLOR]: Attach files to download



Catalog of this thread
Android 4.4.4

Android 5.0.1
Custom settings


Shutdown menu

Lock screen

Shutter and status bar

Settings

Contacts, dialer and messages

System

miscellanea

Android 5.1.1
Custom settings

Edit and change the graphics and text color

Lock screen

System changes

Sidebar Changes

Curtain changes and bar status

Changes of Contacts, Calls, SMS

Adding Blur Effect (Gaussian Blur)


Android 6.0.1
Custom settings


useful links

User activity
Remember:
Everything you do - you do at your own peril and risk!
The authors of the instructions and the administration of the forum is not responsible for the performance of your devices!

Be mutually polite! On our forum, it is customary to express gratitude by raising the reputation of a particular participant. If you want to thank the user for the published decoration, clickPicturenext to his reputation. If you do not have 15 helpful posts, ask the moderator to raise the reputation of the person who helped you through the buttonPicture

Dear users! Please rate posts usingUser Moderation, buttonsAttached ImageandAttached Image. Remember, using this feature, you help keep the topic clean. Thank!


Post has been editedsagitt67 - 14.01.19, 12:47
Reason for editing: added guide



Rep: (6113)
Widgets on the lock screen with a choice in the settings. Android 6.0.1Addition

Screenshots
Attached Image
Attached Image
Attached Image
Attached Image

Author : Wlryss
In continuation - Widgets on the lock screen with a choice in the settings. Android 6.0.1
Firmware : Deodex 6.0.1 of the N910C class devices; N915F - (with minimal changes Applicable to any new Samsung devices - checked on S7 EDGE)
Display Settings on Lock Screen
- The calendar
Analog clock

We perform steps from the previous instructions before the start of editing is smiling, then
SystemUI / smali / com / android / systemui / statusbar / phone / PhoneStatusBar.smali
In the method
.method protected makeStatusBarView () Lcom / android / systemui / statusbar / phone / PhoneStatusBarView;
add lines (+)
const-string v3, "easy_mode_switch"

invoke-static {v3}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v3

const / 4 v4, 0x0

move-object / from16 v0, p0

iget-object v6, v0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mEasyModeEnableObserver: Lcom / android / systemui / statusbar / phone / PhoneStatusBar $ EasyModeEnableObserver;

INVOKE-VIRTUAL {V2, V3, V4, V6}, Landroid / Content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

.line 1789.
move-object / from16 v0, p0

iget-object v2, v0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mEasyModeEnableObserver: Lcom / android / systemui / statusbar / phone / PhoneStatusBar $ EasyModeEnableObserver;

const / 4 v3, 0x0

invoke-virtual {v2, v3}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar $ EasyModeEnableObserver; ->onChange (Z) V

+ Move-object / from16 v0, p0

+ Invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClockView () v

+ Move-object / from16 v0, p0

+ Invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideCalenderView () V


At the end of the file, add 2 methods and replace the ID to your Public.xml file
.method updateHideanalogClockView () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "Lock_analog_Clock"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const v6, 0x7f0e048d #<Public Type = "ID" Name = "Analog_clock_lockscreen" id = "0x7F0E048D" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const v6, 0x7f0e048d #<Public Type = "ID" Name = "Analog_clock_lockscreen" id = "0x7F0E048D" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updatehidecalenderview () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "Lock_Calendar"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E048F<Public Type = "ID" name = "LockScreen_calendar" id = "0x7F0E048F" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E048F<Public Type = "ID" name = "LockScreen_calendar" id = "0x7F0E048F" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

SystemUI / com / android / systemui / statusbar / phone / PhoneStatusBar $ SettingsObserver.smali
a method of adding a line (+++) to (+++)
# virtual methods
.method observe () V

+++ Const-String V1, "Lock_Calendar"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "Lock_analog_Clock"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->RegisterContentObserver (Landroid / Net / URI; Zlandroid / Database / ContentObserver;) V +++

return-void
.end method

add in the row method (+)
.method public onChange (Z) V
.locals 1
iget-object v0, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar $ SettingsObserver; ->this $ 0: Lcom / android / systemui / statusbar / phone / PhoneStatusBar;

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateNeXTalarmView () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->updateWeatherAddonsView () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateWeatherWidGetView () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->updateSunriseSunsetView () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->updateSignalPosition () V

+ Invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClockView () v

+ Invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideCalenderView () V

return-void
.end method

We collect SystemUI.apk

Edit Rom Control
ROMCONTROL / RES / XML / LOCK_SCREEN_PREFS.XML -or in another suitable place
Adding line (+)
<PreferenceCategory android: title = "display settings on the lock screen">
<SwitchPreference Android: title = "Album cover" Android: Key = "show_album_art" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "seconds in the clock" Android: key = "lock_seconds" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.prefs.MyListPreference android: entries = "@ array / lockscreen_font_style_entries" android: title = "font text style hours" android: key = "lockscreen_clock_font_style" android: entryValues ​​= "@ array / lockscreen_font_style_values" />
<com.wubydax.romcontrol.prefs.MyListPreference android: entries = "@ array / lockscreen_font_style_entries" android: title = "font Text Style seconds" android: key = "lockscreen_seconds_clock_font_style" android: entryValues ​​= "@ array / lockscreen_font_style_values" />
<SwitchPreference Android: title = "Rotate on the lock screen" Android: key = "lockscreen_rotate" Android: Summaryon = "Enabled" Android: SummaryOff = "Disabled" />
<com.wubydax.romcontrol.prefs.MylistPreference Android: entries = "@ Array / Lockscreen_notif_entries" Android: title = "Maximum Number of Notifications" Android: Key = "Lockscreen_notifications" Android: DefaultValue = "2" Android: entryvalues ​​= "@ array / lockscreen_notif_values ​​"/>
<SwitchPreference Android: title = "phone icon" Android: key = "set_shortcuts_phone" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "Battery Information Information" Android: Key = "Lockscreen_charging_noti" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "Information about low battery charge" Android: key = "lockscreen_lowbattery_noti" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "Display Weather Widget" Android: Key = "Weather_Widget" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: Title = "Displaying Sunrise and Sunset" Android: Key = "Sunrise_Sunset" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.prefs.MylistPreference Android: entries = "@ array / weather_addon_entries" Android: title = "Add-ons for weather" Android: Key = "Weather_Addons" Android: Summary = "% s" Android: entryvalues ​​= "@ Array / weather_addon_values ​​"/>
<Switchpreference Android: title = "Alarm clock" Android: Key = "Lockscreen_alarm_enabled" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.prefs.colorpickerPreference Android: title = "The text of the alarm text on the EB" Android: key = "lockscreen_alarm_text_color" Android: Summary = "Select the color" Android: defaultvalue = "\ # fffffff" hexvalue = "true" alphaslider = "false" />
+<SwitchPreference Android: title = "Calendar" Android: Key = "lock_calendar" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
+<SwitchPreference Android: title = "Analog Clock" Android: Key = "Lock_analog_Clock" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
</ PreferenceCategory>

We change the root by exploitor Systemui.apk and romcontrol.apk instead of installed in the firmware with the installation of permissions 0644.
This modification was made to disable the calendar and analog clock on the lock screen.

Post has been editedWlryss - 09.12.16, 20:28



Rep: (7352)
Widgets on the lock screen with a choice in the settings.Android 6.0.1 Advanced - Make a Switch

Post has been editedsagitt67 - 09.11.16, 19:29



Rep: (6113)
* sagitt67
Elegant ... :)Maybe I stand my post above to remove?



Rep: (7352)
Wlryss @ 09.11.2016, 20:37*
Maybe I stand my post above to remove?

It is not necessary to clean - firstly, as an option, secondly, the forum began to adapt that it is not any work.



Rep: (210)
* sagitt67
Greetings, tell me whether there is a string for CSC, with which you can activate the "secret mode" in the browser?
I installed myself sbrowser fromof thisPost, however, I have no button. thanks



Rep: (7352)
fadetoblack
All CSC codes are located in Framework / SMALI_CLASSES3 / COM / SEC / Android / App / SEC / SEC / App / SEC / APP / SEC / SEC / APP / APP / I doubt that, specifically, see the CSCFeatureTagWeb.smali file



Rep: (10745)
Supplement to Widgets on the lock screen with a choice in the settings.

Choosing any from 12 mocks hours on the fly, in rum control
thankWH SAGITT67.per layouts watch
Disassemble Systemui.apk.
Archive content to scatter folders
Attached fileClock Analog.rar.(3.11 MB)


SystemUI / Res.
In res / layout / sec_keyguard_clock_view.xml on C7 EJ
Under
<LinearLayout Android: Layout_Gravity = "Bottom | Center" Android: id = "@ id / analog_clock_lockscreen" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | top" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen" />
</ LinearLayout>


Add code

<LinearLayout Android: Layout_Gravity = "Bottom | Center" Android: id = "@ id / analog_clock_lockscreen1" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_1" />
</ LinearLayout>
<LinearLayout Android: layout_gravity = "bottom | center" Android: id = "@ id / analog_clock_lockscreen2" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_2" />
</ LinearLayout>
<LinearLayout Android: layout_gravity = "bottom | center" Android: id = "@ id / analog_clock_lockscreen3" Android: layout_width = "wrap_content" android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_3" />
</ LinearLayout>
<LinearLayout Android: layout_gravity = "bottom | center" Android: id = "@ id / analog_clock_lockscreen4" Android: layout_width = "wrap_content" android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_4" />
</ LinearLayout>
<LineArlayout Android: layout_gravity = "bottom | center" Android: id = "@ id / analog_clock_lockscreen5" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_5" />
</ LinearLayout>
<LineArlayout Android: layout_gravity = "bottom | center" Android: id = "@ id / analog_clock_lockscreen6" Android: layout_width = "wrap_content" android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_6" />
</ LinearLayout>
<LineArlayout Android: layout_gravity = "bottom | center" Android: id = "@ id / analog_clock_lockscreen7" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_7" />
</ LinearLayout>
<LinearLayout Android: Layout_Gravity = "Bottom | Center" Android: id = "@ id / analog_clock_lockscreen8" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_8" />
</ LinearLayout>
<LineArlayout Android: layout_gravity = "bottom | center" Android: id = "@ id / analog_clock_lockscreen9" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | Top" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_9" />
</ LinearLayout>
<LineArlayout Android: layout_gravity = "bottom | center" Android: id = "@ id / analog_clock_lockscreen10" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | top" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_10" />
</ LinearLayout>
<LinearLayout Android: layout_gravity = "bottom | center" Android: id = "@ id / analog_clock_lockscreen11" Android: layout_width = "wrap_content" android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen_11" />
</ LinearLayout>


res / values ​​/ ids.xml

Below, before</ resources>

add rows

<item type = "id" name = "analog_clock_lockscreen1">false</ item>
<item type = "id" name = "analog_clock_lockscreen2">false</ item>
<item type = "id" name = "analog_clock_lockscreen3">false</ item>
<item type = "id" name = "analog_clock_lockscreen4">false</ item>
<item type = "id" name = "analog_clock_lockscreen5">false</ item>
<item type = "id" name = "analog_clock_lockscreen6">false</ item>
<item type = "id" name = "analog_clock_lockscreen7">false</ item>
<item type = "id" name = "analog_clock_lockscreen8">false</ item>
<item type = "id" name = "analog_clock_lockscreen9">false</ item>
<item type = "id" name = "analog_clock_lockscreen10">false</ item>
<item type = "id" name = "analog_clock_lockscreen11">false</ item>

</ resources>


Collect Systemui.apk / Disassemble

SystemUI / smali
Open up
Smali / COM / Android / Sistemui / Statusbar / Phone /PhoneStatusBar.smali

PhoneStatusBar.smali
Are looking forinvoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClockView () v

Immediately under this string add

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock1View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock2View () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock3View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock4View () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock5View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock6View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock7View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock8View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock9View () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock10View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock11View () V


At the end, we are smiling adding 11 methods

.method updateHideanalogClock1View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "1"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E039B<Public Type = "ID" Name = "Analog_clock_lockscreen1"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E039B<Public Type = "ID" Name = "Analog_clock_lockscreen1"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updateHideanalogClock2View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "2"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E039C<Public Type = "ID" name = "analog_clock_lockscreen2"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E039C<Public Type = "ID" name = "analog_clock_lockscreen2"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updateHideanalogClock3View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "3"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E039D<Public Type = "ID" Name = "Analog_clock_lockscreen3"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E039D<Public Type = "ID" Name = "Analog_clock_lockscreen3"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updateHideanalogClock4View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "4"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E039E<Public Type = "ID" name = "analog_clock_lockscreen4"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E039E<Public Type = "ID" name = "analog_clock_lockscreen4"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updateHideanalogClock5View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "5"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E039F<Public Type = "ID" name = "analog_clock_lockscreen5"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E039F<Public Type = "ID" name = "analog_clock_lockscreen5"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updateHideanalogClock6View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "6"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A0<Public Type = "ID" Name = "Analog_Clock_lockscreen6"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A0<Public Type = "ID" Name = "Analog_Clock_lockscreen6"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updateHideanalogClock7View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "7"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A1<Public Type = "ID" Name = "Analog_Clock_lockscreen7"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A1<Public Type = "ID" Name = "Analog_Clock_lockscreen7"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updateHideanalogClock8View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "8"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A2<Public Type = "ID" name = "analog_clock_lockscreen8"

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A2<Public Type = "ID" Name = "Analog_Clock_lockscreen8

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updateHideanalogClock9View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "9"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A3<Public Type = "ID" name = "analog_clock_lockscreen9

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A3<Public Type = "ID" name = "analog_clock_lockscreen9
invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updateHideanalogClock10View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "10"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A4<Public Type = "ID" name = "analog_clock_lockscreen10

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A4<Public Type = "ID" name = "analog_clock_lockscreen10

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method updateHideanalogClock11View () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "11"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A5<Public Type = "ID" Name = "Analog_clock_lockscreen11

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E03A5<Public Type = "ID" Name = "Analog_clock_lockscreen11

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method


Now Aidi.
Open RES / Values ​​/ Public.xml

We are looking for it
<Public Type = "ID" Name = "Analog_clock_lockscreen1" id = "..." />
<Public Type = "ID" Name = "Analog_clock_lockscreen2" id = "..." />
<Public Type = "ID" name = "analog_clock_lockscreen3" id = "..." />
<Public Type = "ID" Name = "Analog_clock_lockscreen4" id = "..." />
<Public Type = "ID" Name = "Analog_clock_lockscreen5" id = "..." />
<Public Type = "ID" name = "analog_clock_lockscreen6" id = "..." />
<Public Type = "ID" Name = "Analog_Clock_lockscreen7" id = "..." />
<Public Type = "ID" Name = "Analog_clock_lockscreen8" id = "..." />
<Public Type = "ID" Name = "Analog_clock_lockscreen9" id = "..." />
<Public Type = "ID" Name = "Analog_clock_lockscreen10" id = "..." />
<Public Type = "ID" Name = "Analog_clock_lockscreen11" id = "..." />


And replace in added methods


proceed to
smali / com / android / systemui / statusbar / phone /PhoneStatusBar $ SettingsObserver.smali

PhoneStatusBar $ SettingsObserver.smali
In the .method OBSERVE () V method
beforereturn-void add strings

Const-String V1, "1"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

const-string v1, "2"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "3"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "4"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "5"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "6"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "7"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "8"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "9"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "10"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "11"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V


In the .method Public ONCHANGE (Z) V method
beforereturn-void add strings

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock1View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock2View () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock3View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock4View () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock5View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock6View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock7View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock8View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock9View () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock10View () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->UpdateHideanalogClock11View () V

Ready. Collect Systemui.apk.

RomControl
ROMKONTROL version 1.

<Preferencecategory Android: Title = "Analog Clock" />
<SwitchPreference Android: title = "Glass, Square" Android: Key = "lock_analog_clock" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "black with ears" Android: Key = "1" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "Metal HTC" Android: Key = "2" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<Switchpreference Android: title = "Metal, Gold" Android: Key = "3" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "Metal, Silver" Android: Key = "4" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "Round, with a rim" Android: Key = "5" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "Plate" Android: Key = "6" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "Square with a rim" Android: Key = "7" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "Glass, Round" Android: Key = "8" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "wall" Android: Key = "9" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: title = "With a blue rim" Android: Key = "10" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<Switchpreference Android: title = "Utya" Android: Key = "11" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />


Romkontrol version 2.

<Preferencecategory Android: title = "Analog Clock">
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "Glass, square" Android: key = "lock_analog_clock" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "black with ears" Android: Key = "1" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "Metal HTC" Android: Key = "2" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "Metal, Gold" Android: Key = "3" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "Metal, Silver" Android: Key = "4" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "Round, with a rim" Android: Key = "5" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "Plate" Android: Key = "6" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "Square with a rim" Android: Key = "7" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "Glass, round" Android: Key = "8" android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "wall" Android: key = "9" android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "With a blue rim" Android: Key = "10" android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "Uma" Android: Key = "11" Android: DefaultValue = "False" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
</ PreferenceCategory>



Rep: (7352)
Widgets on the lock screen with a choice in the settings (Full version).Android 6.0.1

screenshots:
Attached Image
Attached Image
Attached Image

Attached Image
Attached Image
Attached Image

Screenshots of widget widget : Modifications of analog clock.Android 6.0.1
Author : sagitt67, combined and optimized all previous instructions.
Acknowledgments : SW.Wlryss , zmeeed1 For invaluable labor, active participation and developments for creating their own and this instruction.
Firmware : MMNE UPBS N915FXXS1DPJ2version 1.0
Description : Widgets on the lock screen with a choice in the settings, with the changes of the previous ones, I recommend to do according to the instructions again, because In addition to adding and resource changes, old remove will fail.
RomControl:
Lock screen settings:
Display settings on the lock screen:
- Widgets on the lock screen:
* Widget analog clock.
- Analog clock widget style:
** Style 1.
** Style 2.
** Style 3.
** Style 4.
** Style 5.
** Style 6.
** Style 7.
** Style 8.
** Style 9.
** Style 10.
** Style 11.
** Style 12.
* Calendar widget.

edit SystemUI
Copy files from the downloaded archiveSystemUI.zipin decompiled SystemUI
SystemUI / RES / LAYOUT-SW360DP-V13 / SEC_KEYGUARD_CLOCK_VIEW.xml
Add strings at the end of the file from (+++) to (+++)
</ LinearLayout>
+++ <LinearLayout Android: Gravity = "Center | TOP" Android: layout_gravity = "center" Android: id = "@ id / analog_clock_lockscreen" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_gravity = "center" android: layout_margintop = "- 10.0dip" layout = "@ layout / analog_clock_lockscreen" />
</ LinearLayout>
<LinearLayout Android: gravity = "center | top" Android: layout_gravity = "center" android: id = "@ ID / Lockscreen_calendar" Android: layout_width = "fill_parent" android: layout_height = "wrap_content">
<Include Android: Gravity = "Center | TOP" Android: layout_gravity = "center" Android: layout_margintop = "- 10.0dip" layout = "@ layout / calendar" />
</ LinearLayout>+++
</com.android.keyguard.sec.SecKeyguardClockView>

SystemUI / res / values ​​/ ids.xml
add lines at the end of the file
<item type = "id" name = "analog_clock_lockscreen">false</ item>
<item type = "id" name = "lockscreen_calendar">false</ item>
<item type = "id" name = "analog_clock_lockscreen1">false</ item>
<item type = "id" name = "analog_clock_lockscreen2">false</ item>
<item type = "id" name = "analog_clock_lockscreen3">false</ item>
<item type = "id" name = "analog_clock_lockscreen4">false</ item>
<item type = "id" name = "analog_clock_lockscreen5">false</ item>
<item type = "id" name = "analog_clock_lockscreen6">false</ item>
<item type = "id" name = "analog_clock_lockscreen7">false</ item>
<item type = "id" name = "analog_clock_lockscreen8">false</ item>
<item type = "id" name = "analog_clock_lockscreen9">false</ item>
<item type = "id" name = "analog_clock_lockscreen10">false</ item>
<item type = "id" name = "analog_clock_lockscreen11">false</ item>
<item type = "id" name = "analog_clock_lockscreen12">false</ item>

We assemble and disassemble SystemUI
SystemUI / smali / com / android / systemui / statusbar / phone / PhoneStatusBar.smali
in the method
.method protected makeStatusBarView () Lcom / android / systemui / statusbar / phone / PhoneStatusBarView;
add string from (+++) to (+++)

const-string v3, "easy_mode_switch"

invoke-static {v3}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v3

const / 4 v4, 0x0

move-object / from16 v0, p0

iget-object v6, v0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mEasyModeEnableObserver: Lcom / android / systemui / statusbar / phone / PhoneStatusBar $ EasyModeEnableObserver;

INVOKE-VIRTUAL {V2, V3, V4, V6}, Landroid / Content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

move-object / from16 v0, p0

iget-object v2, v0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mEasyModeEnableObserver: Lcom / android / systemui / statusbar / phone / PhoneStatusBar $ EasyModeEnableObserver;

const / 4 v3, 0x0

invoke-virtual {v2, v3}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar $ EasyModeEnableObserver; ->onChange (Z) V

+++ move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->CalendarWidgetView () V

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock1 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock2 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock3 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock4 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock5 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock6 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock7 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock8 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock9 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock10 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock11 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock12 () v

move-object / from16 v0, p0

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->AnalogClockwidgetView () V +++

NEW-Instance V2, LCom / Android / Systemui / StatusBar / Phone / PHONESTATUSBAR $ CockTailTickerenableObserver;

move-object / from16 v0, p0

Invoke-Direct {V2, V0}, LCom / Android / SystemUI / Statusbar / Phone / PHONESTATUSBAR $ CockTailTickerenableObserver; -><init>(Lcom / android / systemui / statusbar / phone / PhoneStatusBar;) V

At the end of the file, add methods and replace the ID to your Public.xml file
.method analogclockwidgetView () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "Show_analog_Clock"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0487 #<Public Type = "id" name = "analog_clock_lockscreen" id = "0x7F0E0487" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0487 #<Public Type = "id" name = "analog_clock_lockscreen" id = "0x7F0E0487" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method CalendarWidgetView () V
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

const-string v2, "show_calendar_widget"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0493 #<Public Type = "ID" Name = "Lockscreen_calendar" id = "0x7F0E0493" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0493 #<Public Type = "ID" Name = "Lockscreen_calendar" id = "0x7F0E0493" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method




.method showstyleanalogclock1 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock1"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0494 #<Public Type = "id" name = "analog_clock_lockscreen1" id = "0x7F0E0494" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0494 #<Public Type = "id" name = "analog_clock_lockscreen1" id = "0x7F0E0494" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock2 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock2"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const v6, 0x7F0E0495 #<Public Type = "ID" Name = "Analog_clock_lockscreen2" id = "0x7F0E0495" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const v6, 0x7F0E0495 #<Public Type = "ID" Name = "Analog_clock_lockscreen2" id = "0x7F0E0495" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock3 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock3"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0496 #<Public Type = "ID" name = "analog_clock_lockscreen3" id = "0x7F0E0496" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0496 #<Public Type = "ID" name = "analog_clock_lockscreen3" id = "0x7F0E0496" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock4 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock4"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0497 #<Public Type = "ID" name = "analog_clock_lockscreen4" id = "0x7F0E0497" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0497 #<Public Type = "ID" name = "analog_clock_lockscreen4" id = "0x7F0E0497" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock5 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock5"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0498 #<Public Type = "ID" name = "analog_clock_lockscreen5" id = "0x7F0E0498" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0498 #<Public Type = "ID" name = "analog_clock_lockscreen5" id = "0x7F0E0498" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock6 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock6"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0499 #<Public Type = "ID" Name = "Analog_clock_lockscreen6" id = "0x7F0E0499" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E0499 #<Public Type = "ID" Name = "Analog_clock_lockscreen6" id = "0x7F0E0499" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock7 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock7"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E049A #<Public Type = "ID" name = "analog_clock_lockscreen7" id = "0x7F0E049A" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E049A #<Public Type = "ID" name = "analog_clock_lockscreen7" id = "0x7F0E049A" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock8 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock8"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E049B #<Public Type = "ID" Name = "Analog_clock_lockscreen8" id = "0x7F0E049B" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E049B #<Public Type = "ID" Name = "Analog_clock_lockscreen8" id = "0x7F0E049B" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock9 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock9"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E049C #<Public Type = "ID" name = "analog_clock_lockscreen9" id = "0x7F0E049C" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E049C #<Public Type = "ID" name = "analog_clock_lockscreen9" id = "0x7F0E049C" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock10 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock10"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const v6, 0x7F0E049D #<Public Type = "ID" name = "analog_clock_lockscreen10" id = "0x7F0E049D" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const v6, 0x7F0E049D #<Public Type = "ID" name = "analog_clock_lockscreen10" id = "0x7F0E049D" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock11 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock11"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E049E #<Public Type = "ID" Name = "Analog_clock_lockscreen11" id = "0x7F0E049E" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const V6, 0x7F0E049E #<Public Type = "ID" Name = "Analog_clock_lockscreen11" id = "0x7F0E049E" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

.method showstyleanalogclock12 () v
.locals 7

iget-object v1, p0, Lcom / android / systemui / SystemUI; ->mContext: Landroid / content / Context;

invoke-virtual {v1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v1

Const-String V2, "show_style_analog_clock12"

const / 4 v3, 0x0

invoke-static {v1, v2, v3}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v1

if-nez v1,: cond_0

const v3, 0x8

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const v6, 0x7F0E049F #<Public Type = "ID" Name = "Analog_clock_lockscreen12" id = "0x7F0E049F" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v3, 0x3

iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->mStatusBarWindow: Lcom / android / systemui / statusbar / phone / StatusBarWindowView;

Const v6, 0x7F0E049F #<Public Type = "ID" Name = "Analog_clock_lockscreen12" id = "0x7F0E049F" />

invoke-virtual {v5, v6}, Lcom / android / systemui / statusbar / phone / StatusBarWindowView; ->findViewById (I) Landroid / view / View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid / widget / LinearLayout; ->setVisibility (I) V

: goto_0
return-void
.end method

SystemUI / com / android / systemui / statusbar / phone / PhoneStatusBar $ SettingsObserver.smali
a method of adding a line (+++) to (+++)
# virtual methods
.method observe () V

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

+++ Const-String V1, "show_analog_clock"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "show_calendar_widget"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "show_style_analog_clock1"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "show_style_analog_clock2"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "show_style_analog_clock3"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "show_style_analog_clock4"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "show_style_analog_clock5"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "Show_Style_analog_Clock6"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "show_style_analog_clock7"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "Show_Style_analog_Clock8"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "show_style_analog_clock9"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "show_style_analog_clock10"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "Show_STyle_analog_Clock11"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->registerContentObserver (Landroid / net / Uri; ZLandroid / database / ContentObserver;) V

Const-String V1, "show_style_analog_clock12"

invoke-static {v1}, Landroid / provider / Settings $ System; ->getUriFor (Ljava / lang / String;) Landroid / net / Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid / content / ContentResolver; ->RegisterContentObserver (Landroid / Net / URI; Zlandroid / Database / ContentObserver;) V +++

return-void
.end method

add to the line from (+++) to (+++)
.method public onChange (Z) V
.locals 1

iget-object v0, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBar $ SettingsObserver; ->this $ 0: Lcom / android / systemui / statusbar / phone / PhoneStatusBar;

+++ Invoke-Virtual {V0}, LCom / Android / Systemui / StatusBar / Phone / PHONESTATUSBAR; ->AnalogClockWidgetView () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->CalendarWidgetView () V

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock1 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock2 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock3 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock4 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock5 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock6 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock7 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock8 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock9 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock10 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock11 () v

invoke-virtual {v0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBar; ->Showstyleanalogclock12 () V +++

return-void
.end method

The main color of the text in the calendar widget spelled out:
SystemUI / RES / Layout-SW360DP-V13 / Calendar.xml -Here I was on the right
The color of the text in the calendar (optional)
month and year
framework-res / res / layout / calendar_view.xml
in line forcibly add color
<TextView android: layout_gravity = "center_horizontal" android: textColor = "# fffef9c6" android: id = "@ id / month_name" android: paddingTop = "10.0dip" android: paddingBottom = "10.0dip" android: layout_width = "wrap_content" android : layout_height = "wrap_content" style = "@ android: style / TextAppearance.Medium" />

days of the week
framework-res / res / values ​​/ styles.xml
section forcibly add color
<style name = "TextAppearance.Small.CalendarViewWeekDayView" parent = "@ style / TextAppearance.Small">
<item name = "textStyle">bold</ item>
+ <item name = "textColor"># ffe1d8bf</ item>
</ style>

edit ROMControl
Copy the pictures from the downloaded archiveROMControl.zipin decompiled ROMControl
ROMControl / res / xml / lock_screen_prefs.xml
Add rows from (+++) to (+++)
<Switchpreference Android: title = "Watch with pictures" Android: key = "use_clock_theme" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
+++ <PreferenceScreen Android: title = "Widgets on the lock screen" Android: Summary = "Select a widget on the lock screen">
<Switchpreference Android: title = "Widget analog clock" Android: Key = "show_analog_clock" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<PreferenceScreen Android: title = "Style of analog clock widget" Android: Summary = "Select analog clock style">
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / clock_style1" Android: title = "style 1" android: key = "show_style_analog_clock1" android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / clock_style2" Android: title = "style 2" android: key = "show_style_analog_clock2" android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SwitchPreference Android: icon = "@ Drawable / Clock_style3" Android: title = "Style 3" Android: Key = "show_style_analog_clock3" android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / clock_style4" Android: title = "Style 4" android: key = "show_style_analog_clock4" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / clock_style5" Android: title = "style 5" Android: key = "show_style_analog_clock5" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / clock_style6" Android: title = "Style 6" Android: Key = "show_style_analog_clock6" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / clock_style7" Android: title = "style 7" android: key = "show_style_analog_clock7" android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / Clock_style8" Android: title = "Style 8" android: key = "show_style_analog_clock8" android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / clock_style9" Android: title = "Style 9" android: key = "show_style_analog_clock9" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / clock_style10" Android: title = "style 10" android: key = "show_style_analog_clock10" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / clock_style11" Android: title = "Style 11" android: key = "show_style_analog_clock11" android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
<SWITCHPREFERENCE ANDROID: icon = "@ Drawable / clock_style12" Android: title = "Style 12" android: key = "show_style_analog_clock12" Android: defaultvalue = "false" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
</ PreferenceScreen>
<SwitchPreference Android: title = "Calendar Widget" Android: Key = "show_calendar_widget" Android: Summaryon = "Show" Android: SummaryOff = "hide" />
</ PreferenceScreen>+++
</ PreferenceScreen>

Download file for SystemUI : Attached fileSystemUI.zip (3.18 MB)

Download file for ROMControl : Attached fileROMControl.zip (359.69 KB)



Rep: (7352)
User settings - Audio settings.Android 6.0.1

screenshots:
Attached Image
Attached Image

Attached Image
Attached Image

Author : sagitt67
Firmware : MMNE UPBS N915FXXS1DPJ2version 1.0
Description : Add a sound setting item to Romcontrol.
Audio settings: Green highlighted items transferred from system settings.
- Sound when connected to a USB socket.
- Dialogue on the safe volume.
- Audio by pressing the volume buttons.
- Change the volume level.
- Sound to create a screenshot.

Third-party sound settings:
- Sound settings from Galaxy Note 7:
* Sound when connected charging.
* Sound at low battery.
* Touch sound.
* Sound when touching the touch buttons.
* Sound when the silence mode is disconnected in the curtain.

Copy files from the downloaded archiveROMControl.zip In the decompiled romcontrol. With coincidence, replace.
edit ROMControl
ROMControl / res / values ​​/ arrays.xml
Add the following line:
<String-Array Name = "Nav_Drawer_Items">
<item>Power Menu Settings</ item>
<item>System Settings</ item>
+ <item>Sound Settings</ item>
<item>Lockscreen settings</ item>
<item>Statusbar Settings</ item>
<item>Notifictions Panel Settings</ item>
<item>Launcher settings</ item>
<item>phone Settings</ item>
<item>Edge Panel Settings</ item>
<item>About ROM</ item>
<item>Set Theme.</ item>
</ string-array>

ROMControl / res / values-en / arrays.xml
Add the following line:
<String-Array Name = "Nav_Drawer_Items">
<item>Setting off the menu</ item>
<item>System settings</ item>
+ <item>Sound settings</ item>
<item>Lock screen settings</ item>
<item>Bar status settings</ item>
<item>Notification panel settings</ item>
<item>Launcher settings</ item>
<item>Contact and Call Settings</ item>
<item>Side panel settings</ item>
<item>About the program</ item>
<item>Choose a topic</ item>
</ string-array>

We disassemble and collect Romcontrol, if you edit the previous My Romcontrol, then do it is not necessary and proceed to edit Smali
ROMCONTROL / SMALI / COM / WBYDAX / ROMCONTROL / MainViewActivity.smali
In the method, change and add
# virtual methods
.method Public GetMenu () LJAVA / UTIL / LIST;
.locals 7
.annotation system Ldalvik / annotation / Signature;
value = {
"()",
"Ljava / util / List",
"<",
"LCOM / WBYDAX / ROMCONTROL / NAVITEM;",
">;"
}
.end annotation

new-instance v2, Ljava / util / ArrayList;

invoke-direct {v2}, Ljava / util / ArrayList; -><init>() V

INVOKE-VIRTUAL {P0}, LCom / Wubydax / Romcontrol / MainViewActivity; ->getResources () Landroid / content / res / Resources;

move-result-object v5

Const V6, 0x7F0D0014

invoke-virtual {v5, v6}, Landroid / content / res / Resources; ->getStringArray (I) [Ljava / lang / String;

move-result-object v4

Const / 16 V5, 0xa # change on Const / 16 V5, 0xB

Next, add a string
: cond_0
return object v2

: array_0
.array-data 4
0x7f020041
0x7F02005C.
+ 0x7F02004F #<Public Type = "Drawable" name = "Ic_sound" id = "0x7F02004F" />
0x7F020044.
0x7F020050
0x7F020046.
0x7F020043.
0x7F020048.
0x7F02005F.
0x7F02004d.
0x7F02004E.
.end array-data
.end method

Next in the method add
.method Public OnnavigationDrawERItemSected (I) V

INVOKE-VIRTUAL {V0}, Landroid / App / FragmentTransaction; ->commitallowingstateloss () i

goto: goto_0

: pswitch_1
INVOKE-VIRTUAL {P0}, LCom / Wubydax / Romcontrol / MainViewActivity; ->getFragmentManager () Landroid / app / FragmentManager;

move-result-object v0

INVOKE-VIRTUAL {V0}, Landroid / App / FragmentManager; ->beginRantransaction () Landroid / App / FragmentTransaction;

move-result-object v0

INVOKE-VIRTUAL {V0, V1}, Landroid / App / FragmentTransaction; ->AddTobackStack (Ljava / Lang / String;) Landroid / App / FragmentTransaction;

move-result-object v0

NEW-Instance V1, LCom / Wubydax / Romcontrol / SystemSettingsFragment;

invoke-direct {v1}, LCom / Wubydax / Romcontrol / SystemSettingSfragment; -><init>() V

INVOKE-VIRTUAL {V0, V2, V1}, Landroid / App / FragmentTransaction; ->REPLACE (Ilandroid / App / Fragment;) Landroid / App / Fragmenttransaction;

move-result-object v0

INVOKE-VIRTUAL {V0}, Landroid / App / FragmentTransaction; ->commitallowingstateloss () i

goto: goto_0

+++: pswitch_2.
INVOKE-VIRTUAL {P0}, LCom / Wubydax / Romcontrol / MainViewActivity; ->getFragmentManager () Landroid / app / FragmentManager;

move-result-object v0

INVOKE-VIRTUAL {V0}, Landroid / App / FragmentManager; ->beginRantransaction () Landroid / App / FragmentTransaction;

move-result-object v0

INVOKE-VIRTUAL {V0, V1}, Landroid / App / FragmentTransaction; ->AddTobackStack (Ljava / Lang / String;) Landroid / App / FragmentTransaction;

move-result-object v0

NEW-Instance V1, LCom / Wubydax / Romcontrol / SoundModfragment;

Invoke-Direct {V1}, LCom / Wubydax / Romcontrol / SoundModFragment; -><init>() V

INVOKE-VIRTUAL {V0, V2, V1}, Landroid / App / FragmentTransaction; ->REPLACE (Ilandroid / App / Fragment;) Landroid / App / Fragmenttransaction;

move-result-object v0

INVOKE-VIRTUAL {V0}, Landroid / App / FragmentTransaction; ->commitallowingstateloss () i

Goto: Goto_0 +++

: pswitch_3
INVOKE-VIRTUAL {P0}, LCom / Wubydax / Romcontrol / MainViewActivity; ->getFragmentManager () Landroid / app / FragmentManager;

All subsequent: pswitch_x in the method increase by 1 value, the final will be from: pswitch_9 ->: pswitch_a
At the end of the method, add a string

: pswitch_a
Invoke-Direct {P0}, LCom / Wubydax / Romcontrol / MainViewACTivity; ->ShowThemechooserDialog () V

goto / 16: goto_0

nop

: pswitch_data_0
.packed-switch 0x0
: pswitch_0
: pswitch_1
: pswitch_2
: pswitch_3
: pswitch_4
: pswitch_5
: pswitch_6
: pswitch_7
: pswitch_8
: pswitch_9
+: pswitch_a
.end packed-switch
.end method

ROMCONTROL / SMALI / COM / WUBYDAX / ROMCONTROL / NAVIGATIONDRAVERFRAGMENT.SMALI
In the method, change and add
.method Public GetMenu () LJAVA / UTIL / LIST;
.locals 7
.annotation system Ldalvik / annotation / Signature;
value = {
"()",
"Ljava / util / List",
"<",
"LCOM / WBYDAX / ROMCONTROL / NAVITEM;",
">;"
}
.end annotation

new-instance v2, Ljava / util / ArrayList;

invoke-direct {v2}, Ljava / util / ArrayList; -><init>() V

Invoke-Virtual {P0}, LCom / Wubydax / Romcontrol / NavigationDRAWERFRAGMENT; ->getResources () Landroid / content / res / Resources;

move-result-object v5

Const V6, 0x7F0D0014

invoke-virtual {v5, v6}, Landroid / content / res / Resources; ->getStringArray (I) [Ljava / lang / String;

move-result-object v4

Const / 16 V5, 0xa # change on Const / 16 V5, 0xB

Next, add a string
: cond_0
return object v2

: array_0
.array-data 4
0x7f020041
0x7F02005C.
+ 0x7F02004F #<Public Type = "Drawable" name = "Ic_sound" id = "0x7F02004F" />
0x7F020044.
0x7F020050
0x7F020046.
0x7F020043.
0x7F020048.
0x7F02005F.
0x7F02004d.
0x7F02004E.
.end array-data
.end method

ROMControl / res / xml / sound_mod_prefs.xml
The archive file is ready, strings correspond to third-party sounds:
</ PreferenceScreen>
+++ <PreferenceScreen android: title = "third-party sound settings" android: summary = "Customize party sounds">
<PreferenceScreen Android: title = "Sound Settings from Galaxy Note 7" Android: Summary = "Configure Sounds from Galaxy Note 7 - Reboot">
<Preferencecategory Android: title = "Sound when charging" />
<PreferenceScreen Android: title = "Sound from Note 7" Android: Key = "Script # charger_connection_note7_sounds" Android: Summary = "Apply Sound from Note 7" />
<PreferenceScreen Android: title = "Default Sound" Android: key = "script # charger_connection_stock_sounds" Android: Summary = "Apply the default sound" />
<Preferencecategory Android: title = "Sound with low battery charge" />
<PreferenceScreen Android: title = "Sound from Note 7" Android: key = "script # lowbattery_note7_sounds" Android: Summary = "Apply Sound from Note 7" />
<PreferenceScreen Android: title = "Default Sound" Android: key = "script # lowbattery_stock_sounds" Android: Summary = "Apply the default sound" />
<Preferencecategory Android: title = "sound when touching" />
<PreferenceScreen Android: title = "Sound from Note 7" Android: Key = "script # tw_touch_note7_sounds" Android: Summary = "Apply Sound from Note 7" />
<PreferenceScreen Android: title = "default sound" android: key = "script # tw_touch_stock_sounds" Android: Summary = "Apply the default sound" />
<Preferencecategory Android: title = "Sound when touching touch buttons" />
<PreferenceScreen Android: title = "sound from Note 7" Android: key = "script # s_hw_touch_note7_sounds" Android: Summary = "Apply Sound from Note 7" />
<PreferenceEnscreen Android: title = "default sound" Android: key = "script # s_hw_touch_stock_sounds" Android: Summary = "Apply the default sound" />
<Preferencecategory Android: title = "Sound when the silence mode is disconnected in the curtain" />
<PreferenceScreen Android: title = "Sound from Note 7" Android: Key = "script # tw_silent_mode_off_note7_sounds" Android: Summary = "Apply Sound from Note 7" />
<PreferenceEnscreen Android: title = "default sound" Android: key = "script # tw_silent_mode_off_stock_sounds" Android: Summary = "Apply the default sound" />
</ PreferenceScreen>
</ PreferenceScreen>+++
</ PreferenceCategory>
</ PreferenceScreen>

Install the file with audio filessound_settings.zip in
Download : Attached filesound_settings.zip (241.62 KB)
Installation : TWRP

Download archive : Attached fileROMControl.zip (14.81 KB)



Rep: (7352)
Style SoundAlive with a choice in the settings.Android 6.0.1

screenshots:
Attached Image

Author : sagitt67
Firmware : MMNE UPBS N915FXXS1DPJ2version 1.0
Description : Add a sound settings in the Romcontrol - SoundAlive style settings.
Audio settings:
- SOUNDALIVE style settings
- SOUNDALIVE styles - Reboot is needed:
* Default.
* Leather with blue backlight.
* Metal with blue backlight.
* Glass with blue backlight.
* Metal with glass and blue backlight.
* Convex with blue backlight.
* Went with blue backlight.

Copy files from the downloaded archiveROMControl.zip in decompiled ROMControl.
ROMControl / res / xml / sound_mod_prefs.xml
Add-line prompt:
<PreferenceEnscreen Android: title = "default sound" Android: key = "script # tw_silent_mode_off_stock_sounds" Android: Summary = "Apply the default sound" />
</ PreferenceScreen>
</ PreferenceScreen>
+++ <PreferenceScreen Android: title = "SOUNDALIVE STYLE" ANDROID: Summary = "Select SoundAlive style">
<PreferenceEcategory Android: title = "SoundAlive styles - Reboot" />
<PreferenceScreen Android: icon = "@ drawable / sound_style_style_00" Android: title = "Default" Android: Key = "Script # SoundAlive_Style_00" Android: Summary = "Apply" />
<PreferenceScreen Android: icon = "@ drawable / sound_style_style_01" Android: title = "Leather with blue illumination" Android: key = "script # SoundAlive_Style_01" Android: Summary = "Apply" />
<PreferenceScreen Android: icon = "@ drawable / sound_alive_style_02" Android: title = "Metal with Blue Illuminated" Android: Key = "Script # SoundAlive_Style_02" Android: Summary = "Apply" />
<PreferenceScreen Android: icon = "@ drawable / sound_style_style_03" Android: title = "Glass with blue backlight" Android: key = "script # soundAlive_Style_03" Android: Summary = "Apply" />
<PreferenceScreen Android: icon = "@ drawable / sound_style_style_04" Android: title = "Metal with glass and with blue backlight" Android: Key = "script # soundAlive_Style_04" Android: Summary = "Apply" />
<PreferenceScreen Android: icon = "@ drawable / sound_style_style_05" Android: title = "convex with blue illumination" Android: key = "script # soundAlive_style_05" Android: Summary = "Apply" />
<PreferenceEnscreen Android: icon = "@ drawable / sound_style_style_06" Android: title = "Went with blue backlight" Android: key = "script # soundAlive_Style_06" Android: Summary = "Apply" />
</ PreferenceScreen>+++
</ PreferenceCategory>
</ PreferenceScreen>

Install the archive with SoundAlive stylessound_settings.zip in
Download : Attached filesound_settings.zip (3.52 MB)
Installation : TWRP

Download archive : Attached fileROMControl.zip (236.47 KB)


Post has been editedsagitt67 - 18.11.16, 20:18



Rep: (7352)
Addition User Settings - turn off the menu settings.Android 6.0.1

screenshots:
Attached Image
Attached Image

Author : sagitt67
Firmware : MMNE UPBS N915FXXS1DPJ2version 1.1 .
Description :
turn off the menu settings:
- Mobile data
- Offline mode.

Parseframework-res.apk and copy images from the downloaded file, then the file will need public.xml for inspection and replacement of the id.
edit services.jar
services.jar / smali / com / android / server / policy / GlobalActions.smali
We check and change the id in the method
.method private createDialog () Lcom / android / server / policy / GlobalActions $ GlobalActionsDialog;

new-instance v4, Lcom / android / server / policy / GlobalActions $ 2;

sget-boolean v5, Lcom / android / server / policy / GlobalActions; ->mNewFeatureForM: Z

if-eqz v5,: cond_23d

const v6, 0x1080a45 #<public type = "drawable" name = "APKTOOL_DUMMY_0a45" id = "0x01080a45" /># Change to const v6, 0x1080bb4 #<public type = "drawable" name = "tw_ic_do_data_network" id = "0x01080bb4" />

: goto_1d
sget-boolean v5, Lcom / android / server / policy / GlobalActions; ->mNewFeatureForM: Z

if-eqz v5,: cond_242

const v7, 0x1080a45 #<public type = "drawable" name = "APKTOOL_DUMMY_0a45" id = "0x01080a45" /># Change to const v7, 0x1080bb4 #<public type = "drawable" name = "tw_ic_do_data_network" id = "0x01080bb4" />

: goto_24
const v8, 0x10409b0 #<public type = "string" name = "global_action_toggle_data_mode" id = "0x010409b0" />

const v9, 0x10409b1 #<public type = "string" name = "global_action_data_mode_on_status" id = "0x010409b1" />

const v10, 0x10409b2 #<public type = "string" name = "global_action_data_mode_off_status" id = "0x010409b2" />

move-object / from16 v5, p0

invoke-direct / range {v4 .. v10}, Lcom / android / server / policy / GlobalActions $ 2 -><init>(Lcom / android / server / policy / GlobalActions; IIIII) V

move-object / from16 v0, p0

iput-object v4, v0, Lcom / android / server / policy / GlobalActions; ->mDataModeToggle: Lcom / android / server / policy / GlobalActions $ ToggleAction;

new-instance v4, Lcom / android / server / policy / GlobalActions $ 3;

const v6, 0x1080a4d #<public type = "drawable" name = "tw_ic_lock_airplane_mode" id = "0x01080a4d" />

const v7, 0x1080a4e #<public type = "drawable" name = "tw_ic_lock_airplane_mode_off" id = "0x01080a4e" />

const v8, 0x1040126 #<public type = "string" name = "global_actions_toggle_airplane_mode" id = "0x01040126" />

const v9, 0x1040127 #<public type = "string" name = "global_actions_airplane_mode_on_status" id = "0x01040127" />

const v10, 0x1040128 #<public type = "string" name = "global_actions_airplane_mode_off_status" id = "0x01040128" />

move-object / from16 v5, p0

invoke-direct / range {v4 .. v10}, Lcom / android / server / policy / GlobalActions $ 3 -><init>(Lcom / android / server / policy / GlobalActions; IIIII) V

move-object / from16 v0, p0

iput-object v4, v0, Lcom / android / server / policy / GlobalActions; ->mAirplaneModeOn: Lcom / android / server / policy / GlobalActions $ ToggleAction;

invoke-direct / range {p0 .. p0}, Lcom / android / server / policy / GlobalActions; ->onAirplaneModeChanged () V

Mobile data:
services.jar / smali / com / android / server / policy / GlobalActions $ 2.smali
change method
.method public showConditional () Zon

.method public showConditional () Z
.registers 5

const / 4 v0, 0x1

const / 4 v1,0x0

iget-object v2, p0, Lcom / android / server / policy / GlobalActions $ 2 ->this $ 0: Lcom / android / server / policy / GlobalActions;

# getter for: Lcom / android / server / policy / GlobalActions; ->mContext: Landroid / content / Context;
invoke-static {v2}, Lcom / android / server / policy / GlobalActions; ->access $ 500 (Lcom / android / server / policy / GlobalActions;) Landroid / content / Context;

move-result-object v2

invoke-virtual {v2}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v2

const-string / jumbo v3, "power_data_network"

invoke-static {v2, v3, v1}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v2

if-ne v2, v0,: cond_16

: goto_15
return v0

: cond_16
move v0, v1

goto: goto_15
.end method

Offline mode :
services.jar / smali / com / android / server / policy / GlobalActions $ 3.smali
change method
.method public showConditional () Zon

.method public showConditional () Z
.registers 5

const / 4 v0, 0x0

const / 4 v1, 0x1

iget-object v2, p0, Lcom / android / server / policy / GlobalActions $ 3 ->this $ 0: Lcom / android / server / policy / GlobalActions;

# getter for: Lcom / android / server / policy / GlobalActions; ->mContext: Landroid / content / Context;
invoke-static {v2}, Lcom / android / server / policy / GlobalActions; ->access $ 500 (Lcom / android / server / policy / GlobalActions;) Landroid / content / Context;

move-result-object v2

invoke-virtual {v2}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v2

const-string / jumbo v3, "power_airplane_mode"

invoke-static {v2, v3, v1}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v2

if-ne v2, v0,: cond_16

: goto_15
return v0

: cond_16
move v0, v1

goto: goto_15
.end method

ROMControl / res / xml / frameworks_general_prefs.xml
Add-line prompt:
<? xml version = "1.0" encoding = "utf-8"?>
<PreferenceScreen
xmlns: android = "http://schemas.android.com/apk/res/android">
<PreferenceCategory android: title = "display settings to turn off the menu">
<SwitchPreference android: title = "Shutdown" android: key = "poweroff_power_menu" android: defaultValue = "1" android: summaryOn = "Show" android: summaryOff = "Hide" />
+ <SwitchPreference android: title = "Mobile data" android: key = "power_data_network" android: defaultValue = "false" android: summaryOn = "Show" android: summaryOff = "Hide" />
+ <SwitchPreference android: title = "Offline mode" android: key = "power_airplane_mode" android: defaultValue = "false" android: summaryOn = "Show" android: summaryOff = "Hide" />
<SwitchPreference android: title = "Reload" android: key = "restart_power_menu" android: defaultValue = "1" android: summaryOn = "Show" android: summaryOff = "Hide" />
<SwitchPreference android: title = "emergency mode" android: key = "emergency_mode_power_menu" android: defaultValue = "false" android: summaryOn = "Show" android: summaryOff = "Hide" />
<SwitchPreference android: title = "screenshot" android: key = "screenshot_power_menu" android: defaultValue = "1" android: summaryOn = "Show" android: summaryOff = "Hide" />
<SwitchPreference android: title = "Record screen" android: key = "screen_record_power_menu" android: defaultValue = "1" android: summaryOn = "Show" android: summaryOff = "Hide" />
<SwitchPreference android: title = "flashlight" android: key = "flashlight_power_menu" android: defaultValue = "1" android: summaryOn = "Show" android: summaryOff = "Hide" />
</ PreferenceCategory>
</ PreferenceScreen>

Download archive: Attached fileframework-res.zip (95.58 Kb)



Rep: (6113)
Control of autoloading applications in the settings Android 6.0.1Option

Screenshots
Attached Image
Attached Image
Attached Image
Attached Image
Attached Image

Author : Wlryss (based on the development of dima8389 )
Firmware : Deodex 6.0.1 of the N910C class devices; N915F - (with minimal changes Applicable to any new Samsung devices - checked on S7 Edge firmware and Note7 ports)
Description: - Point autoloading applications in the settings.
Decompilize Secsettings.apk using Batchapktool version 2.6.3
We download archive and we copy contents in the specified folders.
Editing SecSettings
SecSettings / res / xml / grid_settings_headers.xml
Adding row +
<Header Android: id = "@ ID / Account_section" Android: title = "@ string / header_category_account_settings" />
<Header Android: icon = "@ drawable / ic_setting_grid_cloud" Android: id = "@ ID / SCLOUD_SETTING" Android: title = "@ string / scloud_settings" Android: fragment = "com.android.settings.cloud.cloudSettingSMainFragment" />
<header android: icon = "@ drawable / ic_setting_grid_backupandreset" android: id = "@ id / privacy_settings" android: title = "@ string / privacy_settings" android: fragment = "com.android.settings.PrivacySettings" />
<header android: id = "@ id / system_section" android: title = "@ string / header_category_system" />
+ <HEADER Android: icon = "@ Drawable / grid_ic_setting_safety" Android: id = "@ ID / autostarts_settings" Android: title = "@ String / Autostarts_title" Android: fragment = "com.android.settings.autostarts.lewamanageautostarts" />
<header android: icon = "@ drawable / ic_setting_grid_languageandinput" android: id = "@ id / language_settings" android: title = "@ string / language_settings" android: fragment = "com.android.settings.inputmethod.InputMethodAndLanguageSettings" />
<header android: icon = "@ drawable / ic_setting_grid_language" android: id = "@ id / phone_language" android: title = "@ string / phone_language" android: fragment = "com.android.settings.LocalePicker" />
<Header Android: icon = "@ drawable / ic_setting_grid_dateandtime" Android: id = "@ id / date_time_settings" Android: title = "@ String / Date_and_Time_Settings_title" Android: fragment = "com.android.settings.datetimesettings" />
<Header Android: icon = "@ Drawable / grid_ic_setting_safety" Android: id = "@ ID / SafetyCare_Settings" Android: title = "@ String / Safetycare_Settings" Android: fragment = "com.android.settings.safetycare.safetycaresettings" />

Please note that the grid_ic_setting_safety picture is selected for the icon, which is already in the firmware, if we want to change to another, add to the RES / Drawable folder / appropriate image and prescribe in the file
grid_settings_headers.xml The name of another picture by analogy, as well as in the RES / XML / autostarts_settings_header.xml file from the applied archive.
<? xml version = "1.0" encoding = "utf-8"?>
<Preference-Headers.
xmlns: android = "http://schemas.android.com/apk/res/android">
<HEADER Android: icon = "@ Drawable / grid_ic_setting_safety" Android: id = "@ ID / autostarts_settings" Android: title = "@ String / Autostarts_title" Android: fragment = "com.android.settings.autostarts.lewamanageautostarts" />
</ preference-headers>


SecSettings / res / xml / gridlist_settings_headers.xml
Adding row +
<header android: id = "@ id / system_section" android: title = "@ string / header_category_system" />
+ <HEADER Android: icon = "@ Drawable / grid_ic_setting_safety" Android: id = "@ ID / autostarts_settings" Android: title = "@ String / Autostarts_title" Android: fragment = "com.android.settings.autostarts.lewamanageautostarts" />
<header android: icon = "@ drawable / ic_setting_grid_languageandinput" android: id = "@ id / language_settings" android: title = "@ string / language_settings" android: fragment = "com.android.settings.inputmethod.InputMethodAndLanguageSettings" />
<header android: icon = "@ drawable / ic_setting_grid_language" android: id = "@ id / phone_language" android: title = "@ string / phone_language" android: fragment = "com.android.settings.LocalePicker" />
<Header Android: icon = "@ drawable / ic_setting_grid_dateandtime" Android: id = "@ id / date_time_settings" Android: title = "@ String / Date_and_Time_Settings_title" Android: fragment = "com.android.settings.datetimesettings" />
<Header Android: icon = "@ Drawable / grid_ic_setting_safety" Android: id = "@ ID / SafetyCare_Settings" Android: title = "@ String / Safetycare_Settings" Android: fragment = "com.android.settings.safetycare.safetycaresettings" />

If we change the icon, you do not forget to change the name in the appropriate line

SecSettings / res / values ​​/ ids.xml
Add at the end of the file:
+ <item type = "id" name = "autostarts_settings">false</ item>
+ <item type = "id" name = "appName">false</ item>
</ resources>


SecSettings / res / values ​​/ strings.xml
Add a string at the end of the file:
+<string name = "autostarts_title">Autostarts</ string>
+ <string name = "autostarts_progress_msg">Please wait ...</ string>
+ <string name = "autostarts_empty_msg">No autostrart applications found</ string>
+ <string name = "autostarts_optimize_empty_msg">No disabled items found</ string>
+ <string name = "autostarts_optimize_btn_title">Hide disabled</ string>
+ <string name = "autostarts_all_btn_title">Show disabled</ string>
+ <Item Type = "String" name = "apktool_dummy_17a4">false</ item>
+ <Item Type = "String" name = "apktool_dummy_17a5">false</ item>
+ <Item Type = "String" name = "apktool_dummy_17a7">false</ item>
+ <Item Type = "String" name = "apktool_dummy_17a8">false</ item>
+ <Item Type = "String" name = "apktool_dummy_17aa">false</ item>
</ resources>


SecSettings / res / values-en / strings.xml
Add a string at the end of the file:
+<string name = "autostarts_title">Control of autoload</ string>
+ <string name = "autostarts_progress_msg">Please wait...</ string>
+ <string name = "autostarts_empty_msg">No applications in autoload</ string>
+ <string name = "autostarts_optimize_empty_msg">All disconnected hidden applications</ string>
+ <string name = "autostarts_optimize_btn_title">Hide disabled</ string>
+ <string name = "autostarts_all_btn_title">Show disabled</ string>
</ resources>


We collectSeccettings and prescribe id added resources to file public.xml
Note: If you previously used anotherinstructionStartup control,
You need to delete all files from the previous instruction, delete lines from files editable above and registering with this instruction, you will additionally need to be removed from the file to the SECSETTINGS assembly.public.xml
Four rows with ID rows fromSecSettings / res / values ​​/ strings.xml which were in previous instructions and which are not in this manual (in the public.xml file you can find by name - for example, "autostarts_allowed")
<string name = "autostarts_allowed">Has allowed</ string>
<string name = "autostarts_prohibited">Has prohibited</ string>
<string name = "autostarts_allow_progress_msg">Being restored boot, please wait ...</ string>
<string name = "autostarts_prohibit_progress_msg">Prohibit boot, please wait ...</ string>


Settings / smali / com / android / settings / autostarts / LewaManageAutostarts $ AppAdapter.smali
Change the ID from the public.xml file in the same sequence Please note that searching in NotePad ++ on line<Public Type = "ID" Name = "Appname" is like<Public Type = "ID" name = "appname" and<Public Type = "ID" Name = "Appname", we need the first option -<public type = "id" name = "appName"
133 <public type = "layout" name = "manage_autostarts_item" id = "0x7f040336" />
142 <public type = "id" name = "icon" id = "0x7f12009e" />
158 <public type = "id" name = "appName" id = "0x7f1207e8" />
176 <public type = "id" name = "status" id = "0x7f12011b" />
208 <Public Type = "ID" name = "Switchwidget" id = "0x7F120084" />


Settings / smali / com / android / settings / autostarts / LewaManageAutostarts.smali
We change the ID from the public.xml file in the same sequence:
160 <Public Type = "String" name = "autostarts_progress_msg" id = "0x7F0C227E" />
475 <public type = "string" name = "autostarts_all_btn_title" id = "0x7f0c2285" />
497 <public type = "string" name = "autostarts_optimize_btn_title" id = "0x7f0c2284" />
511 <public type = "layout" name = "manage_autostarts" id = "0x7f040335" />
561 <public type = "string" name = "autostarts_empty_msg" id = "0x7f0c2282" />
626 <public type = "string" name = "autostarts_optimize_btn_title" id = "0x7f0c2284" />
632 <public type = "string" name = "autostarts_empty_msg" id = "0x7f0c2282" />
649 <public type = "string" name = "autostarts_all_btn_title" id = "0x7f0c2285" />
655 <public type = "string" name = "autostarts_optimize_empty_msg" id = "0x7f0c2283" />
875 <Public Type = "String" name = "autostarts_progress_msg" id = "0x7F0C227E" />


We collect secsettings.apk in Batchapktool, then with WinRar copy from the collected in the original:
- CLASSES.DEX file withRegular compression
- File Resources.arsc.without compression
- All .xml files withRegular compression According to the relevant folders.

This modification shows more clearly displayed applications that are turned off / turn on in autoload, besides this is optimized smutized to display packages, etc.
The difference for new devices and ports of the note 7 is only in prescribing the display of autoload control in the settings (interested in the personal), while the secsettings are fully edited in Batchapktool
And there is no need to change the WinRAR files.
Download archive: Attached fileSecSettings.rar (11.8 KB)


Post has been editedWlryss - 18.02.17, 22:01



Rep: (7352)
User settings - Audio settings. Settings for the sounds on and off the device. Android 6.0.1

screenshots:
Attached Image
Attached Image
Attached Image

Author : sagitt67
Firmware : MMNE UPBS N915FXXS1DPJ2version 1.1
Description :
Audio settings:
- Settings of third-party sounds:
- Sound settings on and off the device:
* Soundless.
* Sounds of iOS.
* Sounds of MacOS.
* Sounds of Samsung.
* Sounds of Ubuntu.
* Sounds of Windows7.

Copy files from the downloaded archiveROMControl.zip in decompiled ROMControl.
edit ROMControl
ROMControl / res / xml / sound_mod_prefs.xml
Add from (+++) to (+++) strings:
<PreferenceScreen android: title = "third-party sound settings" android: summary = "Customize party sounds">
+++ <PreferenceScreen android: title = "Setting sounds and turn off the device" android: summary = "Set the start and stop sounds - must be restarted">
<PreferenceCategory android: title = "Silent" />
<PreferenceScreen Android: title = "Turning on" Android: key = "script # power_on_silent_sounds" Android: Summary = "Apply the inclusion sound" />
<PreferenceScreen Android: title = "shutdown" android: key = "script # power_off_silent_sounds" android: summary = "Apply shutdown sound" />
<PreferenceCategory android: title = "iOS Sounds" />
<PreferenceScreen Android: title = "Turning on" Android: key = "script # power_on_ios_sounds" android: summary = "Apply inclusion sound" />
<PreferenceScreen Android: title = "shutdown" Android: key = "script # power_off_ios_sounds" Android: Summary = "Apply off sound" />
<PreferenceCategory android: title = "Sounds MacOS" />
<PreferenceScreen Android: title = "Turning on" Android: key = "script # power_on_macos_sounds" Android: Summary = "Apply the inclusion sound" />
<PreferenceScreen Android: title = "Turning off" android: key = "script # power_off_macos_sounds" Android: Summary = "Apply Sound Shutdown" />
<PreferenceCategory android: title = "Sounds Samsung" />
<PreferenceScreen Android: title = "Turning on" Android: key = "script # power_on_samsung_sounds" Android: Summary = "Apply inclusion sound" />
<PreferenceScreen Android: title = "Turning off" android: key = "script # power_off_samsung_sounds" Android: Summary = "Apply Sound Shutdown" />
<PreferenceCategory android: title = "Ubuntu Sound" />
<PreferenceEscreen Android: title = "Enable" Android: key = "script # power_on_ubuntu_sounds" Android: Summary = "Apply Sound of Inclusion" />
<PreferenceScreen Android: title = "Turning off" android: key = "script # power_off_ubuntu_sounds" Android: Summary = "Apply Sound Shutdown" />
<PreferenceCategory android: title = "Sounds Windows7" ​​/>
<PreferenceEscreen Android: title = "Enable" Android: key = "script # power_on_windows7_sounds" Android: Summary = "Apply the inclusion sound" />
<PreferenceScreen Android: title = "shutdown" Android: key = "script # power_off_windows7_sounds" Android: Summary = "Apply Sound Shutdown" />
</ PreferenceScreen>+++
<PreferenceScreen Android: title = "Sound Settings from Galaxy Note 7" Android: Summary = "Configure Sounds from Galaxy Note 7 - Reboot">

Install the archive with sound files without soundSilent_sounds.zip. in
Download : Attached fileSilent_sounds.zip. (151.61 KB)
Installation : TWRP

Install the archive with sound filessound_settings.zip in
Download : Attached filesound_settings.zip (903.44 KB)
Installation : TWRP

Download archive : Attached fileROMControl.zip (5.94 KB)

Addition

Description : Increased volume level in files.

Install the archive with sound filessound_settings.zip in the system with a larger volume
Download : Attached fileSound_settings_mod.zip. (878.27 KB)
Installation : TWRP

Post has been editedsagitt67 - 29.11.16, 19:17



Rep: (1204)
A little addition to Widgets on the lock screen with a choice in the settings (full option). Android 6.0.1
Screenshots:
Attached Image
Attached Image
Attached Image

Author:Deliced ​​himself, borrowing the method from another fashion, adjusted slightly smali.
Description:The mod allows you to enable / disconnect the digital clock on the lock screen through the ROM Control
First we fully make instructions from the author (but can be done separately)
Rom control
Lock screen settings:
Display settings on the lock screen:
- Digital watch

edit SystemUI
Systemui / Smali / Com / Android / Keyguard / Status / SeckeyGuardClockSingleView.smali
In the method
.method protected onFinishInflate () V
after lineInvoke-Direct {P0}, LCom / Android / Keyguard / Status / SeckeyGuardClockSingleView; ->applyFontEffect () V (It is alone in the method) add a string:
Invoke-Virtual {P0}, LCom / Android / Keyguard / Status / SeckeyGuardClockSingleView; ->HideDigitalClock () V

Right after# virtual methods Insert a new method:
.method HideDigitalClock () V
.locals 5

Iget-Object V0, P0, LCom / Android / Keyguard / Status / SeckeyGuardClockSingleView; ->mContext: Landroid / content / Context;

invoke-virtual {v0}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v0

const-string v1, "hide_digital_clock"

const / 4 v2, 0x0

invoke-static {v0, v1, v2}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v0

if-nez v0,: cond_0

const v2,0x8

sget v3, Lcom / android / keyguard / R $ id; ->hide_clock: I

Invoke-Virtual {P0, V3}, LCom / Android / Keyguard / Status / SeckeyGuardClockSingleView; ->findViewById (I) Landroid / view / View;

move-result-object v4

INVOKE-VIRTUAL {V4, V2}, LCom / Android / Keyguard / Status / KeyGuardTextClock; ->setVisibility (I) V

goto / 16: goto_0

: cond_0
const v2, 0x3

sget v3, Lcom / android / keyguard / R $ id; ->hide_clock: I

Invoke-Virtual {P0, V3}, LCom / Android / Keyguard / Status / SeckeyGuardClockSingleView; ->findViewById (I) Landroid / view / View;

move-result-object v4

INVOKE-VIRTUAL {V4, V2}, LCom / Android / Keyguard / Status / KeyGuardTextClock; ->setVisibility (I) V

: goto_0
return-void
.end method

SystemUI / SMALI / COM / Android / Keyguard / R $ ID
Right after# static fields insert the following line:
.field Public Static Final Hide_Clock: i = 0x7F0E0366 ###<Public Type = "ID" name = "keyguard_sec_clock_single_clock_date_wrapper" id = "0x7F0E0366" />

We look at the value in the Public.xml file and change it to your

Edit Rom Control
Add a string B. lockscreen_prefs.xml:
ROM CONTROL 1.0.
<Android SwitchPreference Android: Title = "Digital Watch" Android: defaultValue = "True" Android: key = "hide_digital_clock" Android: SummaryOff = "Hide" Android: Summaryon = "Show" App: packagenametokill = "com.android.systemui" />

Rom Control 2.0
<com.wubydax.romcontrol.v2.prefs.myswitchpreference Android: title = "Digital Watch" Android: DefaultValue = "True" Android: Key = "Hide_Digital_Clock" Android: SummaryOff = "Hide" Android: Summaryon = "Show" App: PackageNameTokill = "com.android.systemui" />


Post has been editediusz - 29.11.16, 01:04



Rep: (7352)
iusz
For instructions + in turnips, for information - on this device, the clock (additionally made and separately for the date) have settings with the default switch.
Attached Image

Let the instruction be, as an option, the display of the widgets started at the bottom of the lock screen.



Rep: (7352)
Addition User settings - Audio settings. Settings for the sounds on and off the device. Android 6.0.1
On some devices, Samsung, the inclusion sound is removed from the firmware (the file of the shutdown is generally absent) and when the sound file is turned on and off, the sound volume level is minimized and in this add-on there is an increased level of volume in the sound editor files.



Rep: (575)
Hi, I drink rum, a lot of modifications, so I found it after testing, the Roma setting, the store departs the store where to dig, can tell me :) 6.01, Deodex, Selinux Permissuve, checking the signature APK is disabled, core.libart, service is modified
Attached Image
Attached Image


Post has been editedlexadjsss - 02.12.16, 16:15



Rep: (7352)
Lexadjsss @ 02.12.2016, 16:22*
crashes shop shop

In the branch of this device, a launcher is used with support for how earlier - due to the features of the side panel and a kind of application launch dock.

Post has been editedsagitt67 - 02.12.16, 17:14



Rep: (7352)
User Settings - turn off the menu settings. Text color settings in the shutdown menu. Android 6.0.1

screenshots:
Attached Image
Attached Image
Attached Image

Attached Image
Attached Image

Author : sagitt67
Firmware : MMNE UPBS N915FXXS1DPJ2version 1.1 .
Note : The color of the secondary text will not change when opening it off and restart.
Description :
turn off the menu settings:
- Setting the color of the text in the Shutdown menu:
* Primary text color.
* Status text color.

edit services.jar
services.jar / smali / com / android / server / policy / GlobalActions $ SinglePressAction.smali
add string in the method
.method public create (Landroid / content / Context; Landroid / view / View; Landroid / view / ViewGroup; Landroid / view / LayoutInflater;) Landroid / view / View;

iget-object v7, p0, Lcom / android / server / policy / GlobalActions $ SinglePressAction; ->mMessage: Ljava / lang / CharSequence;

if-eqz v7,: cond_13a

iget-object v7, p0, Lcom / android / server / policy / GlobalActions $ SinglePressAction; ->mMessage: Ljava / lang / CharSequence;

invoke-virtual {v3, v7}, Landroid / widget / TextView; ->setText (Ljava / lang / CharSequence;) V

+ Invoke-virtual {p0, v3}, Lcom / android / server / policy / GlobalActions $ SinglePressAction; ->setPrimaryPowerTextColor (Landroid / widget / TextView;) V

: goto_7b
if-nez v0,: cond_80

invoke-virtual {v3, v8}, Landroid / widget / TextView; ->setTextColor (I) V

: cond_80
# getter for: Lcom / android / server / policy / GlobalActions; ->mNewFeatureForM: Z
invoke-static {}, Lcom / android / server / policy / GlobalActions; ->access $ 700 () Z

Further
: cond_13a
iget v7, p0, Lcom / android / server / policy / GlobalActions $ SinglePressAction; ->mMessageResId: I

invoke-virtual {v3, v7}, Landroid / widget / TextView; ->setText (I) V

+ Invoke-virtual {p0, v3}, Lcom / android / server / policy / GlobalActions $ SinglePressAction; ->setPrimaryPowerTextColor (Landroid / widget / TextView;) V

goto / 16: goto_7b

: cond_141
invoke-virtual {v2, v10}, Landroid / widget / FrameLayout; ->setClickable (Z) V

const v7, 0x3ecccccd # 0.4f

invoke-virtual {v2, v7}, Landroid / widget / FrameLayout; ->setAlpha (F) V

goto / 16: goto_c5
.end method

at the end of the file add the method
.method setPrimaryPowerTextColor (Landroid / widget / TextView;) V
.locals 3

invoke-virtual {p1}, Landroid / view / View; ->getContext () Landroid / content / Context;

move-result-object v0

invoke-virtual {v0}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v0

const-string v1, "primary_power_text_color"

const v2, -0x1

invoke-static {v0, v1, v2}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v0

invoke-virtual {p1, v0}, Landroid / widget / TextView; ->setTextColor (I) V

return-void
.end method

services.jar / smali / com / android / server / policy / GlobalActions $ ToggleAction.smali
add string in the method
.method public create (Landroid / content / Context; Landroid / view / View; Landroid / view / ViewGroup; Landroid / view / LayoutInflater;) Landroid / view / View;

check-cast v2, Landroid / widget / FrameLayout;

invoke-virtual {p0}, Lcom / android / server / policy / GlobalActions $ ToggleAction; ->isEnabled () Z

move-result v0

if-eqz v3,: cond_57

iget v7, p0, Lcom / android / server / policy / GlobalActions $ ToggleAction; ->mMessageResId: I

invoke-virtual {v3, v7}, Landroid / widget / TextView; ->setText (I) V

+ Invoke-virtual {p0, v3}, Lcom / android / server / policy / GlobalActions $ ToggleAction; ->setPrimaryPowerTextColor (Landroid / widget / TextView;) V

invoke-virtual {v3, v0}, Landroid / widget / TextView; ->setEnabled (Z) V

if-nez v0,: cond_57

const v7, -0x777778

invoke-virtual {v3, v7}, Landroid / widget / TextView; ->setTextColor (I) V

: cond_57
iget-object v7, p0, Lcom / android / server / policy / GlobalActions $ ToggleAction; ->mState: Lcom / android / server / policy / GlobalActions $ ToggleAction $ State;

Further
iget v7, p0, Lcom / android / server / policy / GlobalActions $ ToggleAction; ->mEnabledStatusMessageResId: I

: goto_85
invoke-virtual {v5, v7}, Landroid / widget / TextView; ->setText (I) V

+ Invoke-virtual {p0, v5}, Lcom / android / server / policy / GlobalActions $ ToggleAction; ->setSecondaryPowerTextColor (Landroid / widget / TextView;) V

const / 4 v7, 0x0

invoke-virtual {v5, v7}, Landroid / widget / TextView; ->setVisibility (I) V

invoke-virtual {v5, v0}, Landroid / widget / TextView; ->setEnabled (Z) V

if-nez v0,: cond_97

const v7, -0x777778

invoke-virtual {v5, v7}, Landroid / widget / TextView; ->setTextColor (I) V

: cond_97
invoke-virtual {v6, v0}, Landroid / view / View; ->setEnabled (Z) V

add methods at the end of the file
.method setPrimaryPowerTextColor (Landroid / widget / TextView;) V
.locals 3

invoke-virtual {p1}, Landroid / view / View; ->getContext () Landroid / content / Context;

move-result-object v0

invoke-virtual {v0}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v0

const-string v1, "primary_power_text_color"

const v2, -0x1

invoke-static {v0, v1, v2}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v0

invoke-virtual {p1, v0}, Landroid / widget / TextView; ->setTextColor (I) V

return-void
.end method

.method setSecondaryPowerTextColor (Landroid / widget / TextView;) V
.locals 3

invoke-virtual {p1}, Landroid / view / View; ->getContext () Landroid / content / Context;

move-result-object v0

invoke-virtual {v0}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v0

const-string v1, "status_power_text_color"

const v2, -0x1

invoke-static {v0, v1, v2}, Landroid / provider / Settings $ System; ->getInt (Landroid / content / ContentResolver; Ljava / lang / String; I) I

move-result v0

invoke-virtual {p1, v0}, Landroid / widget / TextView; ->setTextColor (I) V

return-void
.end method

ROMControl / res / xml / frameworks_general_prefs.xml
Add the lines:
</ PreferenceScreen>
+++ <PreferenceScreen android: title = "Setting the color of the text in the menu off" android: summary = "Customize the text color to turn off the menu">
<com.wubydax.romcontrol.prefs.ColorPickerPreference android: title = "The main color of the text" android: key = "primary_power_text_color" android: summary = "Select the main color of the text" android: defaultValue = "\ # ffffffff" alphaSlider = "true" hexValue = "true" />
<com.wubydax.romcontrol.prefs.ColorPickerPreference android: title = "Status Text Color" android: key = "status_power_text_color" android: summary = "Select text color status" android: defaultValue = "\ # ffffffff" alphaSlider = "true" hexValue = "true" />
</ PreferenceScreen>+++
</ PreferenceScreen>


Post has been editedsagitt67 - 05.12.16, 15:11



Rep: (7352)
Change the background color of the launch and update dialog on the gradient.Android 6.0.1

screenshot :
Attached Image

Author : sagitt67
Firmware : MMNE UPBS N915FXXS1DPJ2version 1.1 .
Description : Change the color of the background of the launch dialog and update android gradient.
Copy the contents of the archive (fileupgrade_dialog_background.xml ) In the decompiled framework-res.apk
editframework-res / res / layout / tw_upgrade_dialog_layout.xml
in line
<? xml version = "1.0" encoding = "utf-8"?>
<LinearLayout android: orientation = "vertical" android: background = "# ff008a73" android: layout_width = "fill_parent" android: layout_height = "fill_parent"
xmlns: android = "http://schemas.android.com/apk/res/android">

android: background = "# ff008a73 " change to android: background = " @ Drawable / upgrade_dialog_background "

Download archive : Attached fileframework-res.zip (2.33 KB)


Full version    

Help     rules

Now: 22.11.20, 15:37