> 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: (7345)
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: (33)
* sagitt67
And there is a ready SecTeleService.apk



Rep: (7345)
alex21984
Modification of software and decorations for Samsung SM-N915 Galaxy Note Edge (Post # 37248516)



Rep: (7345)
Name of the subscriber in 2 lines when calling

screenshots
Attached Image
Attached Image

Author : sagitt67
Firmware : N915FXXU1ANJ8 Deodex
Description : The caller's name 2 lines for outgoing and incoming calls.
Text size aboneta name (if it is not necessary - skip
InCallUI / res / values ​​/ dimens.xml
<dimen name = "one_call_name_text_size">33.0dip </ dimen> me to a (25.0dip - optimal)

Making the person's name in line 2
InCallUI / res / layout / airmotion_incallscreen_layout.xml
the string
<TextView android: textAppearance = "android:? TextAppearanceMedium" android: textSize = "@ dimen / one_call_name_text_size" android: textColor = "@ color / incall_call_banner_text_color" android: paddingLeft = "@ dimen / call_banner_side_padding" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: text = "@ string / unknown"android: singleLine = "true" />
change to
<TextView android: textAppearance = "android:? TextAppearanceMedium" android: textSize = "@ dimen / one_call_name_text_size" android: textColor = "@ color / incall_call_banner_text_color" android: paddingLeft = "@ dimen / call_banner_side_padding" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: text = "@ string / unknown"android: maxLines = "2" />

InCallUI / res / layout / call_card_mw.xml
the string
<TextView android: textAppearance = "android:? TextAppearanceMedium" android: textSize = "18.0dip" android: textColor = "@ color / incall_call_banner_text_color" android: id = "@ id / name" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: layout_marginLeft = "4.0dip"android: singleLine = "true" />
change to
<TextView android: textAppearance = "android:? TextAppearanceMedium" android: textSize = "18.0dip" android: textColor = "@ color / incall_call_banner_text_color" android: id = "@ id / name" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: layout_marginLeft = "4.0dip"android: maxLines = "2" />

InCallUI / res / layout / primary_call_info.xml
the string
<TextView android: textAppearance = "android:? TextAppearanceMedium" android: textSize = "@ dimen / one_call_name_text_size" android: textColor = "@ color / incall_call_banner_text_color" android: id = "@ id / name" android: layout_width = "wrap_content" android: layout_height = "wrap_content"android: singleLine = "true" android: layout_alignParentTop = "true" android: layout_alignParentStart = "true" style = "@ style / InCallButtonTextShadowEffect" />
change to
<TextView android: textAppearance = "android:? TextAppearanceMedium" android: textSize = "@ dimen / one_call_name_text_size" android: textColor = "@ color / incall_call_banner_text_color" android: id = "@ id / name" android: layout_width = "wrap_content" android: layout_height = "wrap_content"android: maxLines = "2" android: layout_alignParentTop = "true" android: layout_alignParentStart = "true" style = "@ style / InCallButtonTextShadowEffect" />

InCallUI / res / layout-iw-sw360dp-xxxhdpi / primary_call_info.xml
the string
<TextView android: textAppearance = "android:? TextAppearanceMedium" android: textSize = "@ dimen / one_call_name_text_size" android: textColor = "@ color / incall_call_banner_text_color" android: id = "@ id / name" android: layout_width = "wrap_content" android: layout_height = "wrap_content"android: singleLine = "true" android: layout_alignParentTop = "true" android: layout_alignParentStart = "true" style = "@ style / InCallButtonTextShadowEffect" />
change to
<TextView android: textAppearance = "android:? TextAppearanceMedium" android: textSize = "@ dimen / one_call_name_text_size" android: textColor = "@ color / incall_call_banner_text_color" android: id = "@ id / name" android: layout_width = "wrap_content" android: layout_height = "wrap_content"android: maxLines = "2" android: layout_alignParentTop = "true" android: layout_alignParentStart = "true" style = "@ style / InCallButtonTextShadowEffect" />



Rep: (1029)
* sagitt67
This is the same smali \ com \ android \ services \ telephony \ common \ PhoneFeature.smali of LL
Usually it made changes to 5.0

Attached files

Attached filePhoneFeature.rar(19.35 KB)



Rep: (7345)
AstapRU
I have Lollipop, but judging of the file there are not enough lines, no? - in the blind, I can not tell. Compare the file from KK, maybe something will become clear.



Rep: (7345)
We remove the panel with the S Finder buttons from the curtain and a quick connection

screenshots
Attached Image

Author : sagitt67
Firmware : N915FXXU1ANJ8 Deodex
Description - Get out of the shutter panel S Finder button and fast connection.
SystemUI / res / layout-sw360dp-xxxhdpi / status_bar_expanded.xml
lines
<LinearLayout android: orientation = "vertical" android: id = "@ id / sfinder_qconnect_layout" android: visibility = "gone" android: layout_width = "fill_parent" android: layout_height = "wrap_content">
<LinearLayout android: gravity = "center_vertical" android: orientation = "horizontal" android: paddingLeft " @ dimen / finder_connect_button_padding_bottom "android: layout_width =" fill_parent "android: layout_height =" wrap_content ">
<RelativeLayout android: id = "@ id / sfinder_button_layout" android: background = "@ drawable / tw_quick_panel_sfinder_qconnect_button" android: focusable = "true" android: clickable = "true" android: layout_width = "0.0dip" android: layout_height = "@d / finder_connect_button_height "android: layout_weight =" 0.5 "android: layout_marginStart =" 10.0dip "android: layout_marginEnd =" 10.0dip ">
<TextView android: textSize = "@ dimen / tw_quick_panel_sfinder_qconnect_button_text_size" android: textColor = "@ drawable / tw_quick_panel_sfinder_qconnect_button_text_color" android: gravity = "center" android: id = "@ id / sfinder_button_big" android: layout_width = "wrap_content" android: layout_height = " wrap_content "android: text =" @ string / accessibility_sfinder_button "android: singleLine =" true "android: drawableLeft =" @ drawable / tw_quick_panel_quick_sfinder_button_image "android: drawablePadding =" 5.0dip "android: layout_centerHorizontal =" true "android: layout_centerVertical =" true "android: fontFamily =" sec-roboto-light "android: paddingStart =" 13.0dip "android: paddingEnd =" 13.0dip "/>
</ RelativeLayout>
<RelativeLayout android: id = "@ id / quick_connect_button_layout" android: background = "@ drawable / tw_quick_panel_sfinder_qconnect_button" android: focusable = "true" android: clickable = "true" android: layout_width = "0.0dip" android: layout_height = "@d / finder_connect_button_height "android: layout_weight =" 0.5 "android: layout_marginStart =" 10.0dip "android: layout_marginEnd =" 10.0dip ">
<TextView android: textSize = "@ dimen / tw_quick_panel_sfinder_qconnect_button_text_size" android: textColor = "@ drawable / tw_quick_panel_sfinder_qconnect_button_text_color" android: gravity = "center" android: id = "@ id / qconnect_button_big" android: layout_width = "wrap_content" android: layout_height = " wrap_content "android: text =" @ string / accessibility_qconnect_button "android: singleLine =" true "android: drawableLeft =" @ drawable / tw_quick_panel_quick_qconnect_button_image "android: drawablePadding =" 5.0dip "android: layout_centerHorizontal =" true "android: layout_centerVertical =" true "android: fontFamily =" sec-roboto-light "android: paddingStart =" 13.0dip "android: paddingEnd =" 13.0dip "/>
</ RelativeLayout>
</ LinearLayout>
</ LinearLayout>

replaced by
<LinearLayout android: orientation = "vertical" android: id = "@ id / sfinder_qconnect_layout" android: visibility = "gone" android: layout_width = "fill_parent" android: layout_height = "wrap_content">
<LinearLayout android: gravity = "center_vertical" android: orientation = "horizontal" android: visibility = "gone" android: paddingLeft = "@ dimen / finder_connect_button_padding_right" android: paddingTop = "@ dimen / finder_connect_button_padding_top" android: paddingRight = "@ dimen / finder_connect_button_padding_left "android: paddingBottom =" @ dimen / finder_connect_button_padding_bottom "android: layout_width =" fill_parent "android: layout_height =" wrap_content ">
<RelativeLayout android: id = "@ id / sfinder_button_layout" android: visibility = "gone" android: background = "@ drawable / tw_quick_panel_sfinder_qconnect_button" android: focusable = "true" android: clickable = "true" android: layout_width = "0.0dip" android: layout_height = "@ dimen / finder_connect_button_height" android: layout_weight = "0.5" android: layout_marginStart = "10.0dip" android: layout_marginEnd = "10.0dip">
<TextView android: textSize = "0.0dip" android: textColor = "@ drawable / tw_quick_panel_sfinder_qconnect_button_text_color" android: gravity = "center" android: id = "@ id / sfinder_button_big" android: layout_width = "0.0dip" android: layout_height = "0.0 dip "android: text =" @ string / accessibility_sfinder_button "android: singleLine =" true "android: drawableLeft =" @ drawable / tw_quick_panel_quick_sfinder_button_image "android: drawablePadding =" 5.0dip "android: layout_centerHorizontal =" true "android: layout_centerVertical =" true "android: fontFamily =" sec-roboto-light "android: paddingStart =" 0.0dip "android: paddingEnd =" 0.0dip "/>
</ RelativeLayout>
<RelativeLayout android: id = "@ id / quick_connect_button_layout" android: visibility = "gone" android: background = "@ drawable / tw_quick_panel_sfinder_qconnect_button" android: focusable = "true" android: clickable = "true" android: layout_width = "0.0dip" android: layout_height = "@ dimen / finder_connect_button_height" android: layout_weight = "0.5" android: layout_marginStart = "10.0dip" android: layout_marginEnd = "10.0dip">
<TextView android: textSize = "0.0dip" android: textColor = "@ drawable / tw_quick_panel_sfinder_qconnect_button_text_color" android: gravity = "center" android: id = "@ id / qconnect_button_big" android: layout_width = "0.0dip" android: layout_height = "0.0 dip "android: text =" @ string / accessibility_qconnect_button "android: singleLine =" true "android: drawableLeft =" @ drawable / tw_quick_panel_quick_qconnect_button_image "android: drawablePadding =" 5.0dip "android: layout_centerHorizontal =" true "android: layout_centerVertical =" true "android: fontFamily =" sec-roboto-light "android: paddingStart =" 0.0dip "android: paddingEnd =" 0.0dip "/>
</ RelativeLayout>
</ LinearLayout>
</ LinearLayout>




Rep: (7345)
Unlock items in Settings ->Screen and wallpaper

screenshots
Attached Image
Attached Image
Attached Image

Author : sagitt67
Firmware : N915FXXU1ANJ8 Deodex
Description : Samsung unlock the hidden items in the Settings ->The screen and the wallpaper:
- Separate manipulated LED-indicator.
- Hiding display percent charge the battery in the status bar.
SecSettings / smali / com / android / settings / DisplaySettings.smali
in the method.method public onCreate (Landroid / os / Bundle;) V
delete rows
red

.line 464
: cond_2
invoke-virtual {p0}, Lcom / android / settings / DisplaySettings; ->getPreferenceScreen () Landroid / preference / PreferenceScreen;

move-result-object v0

const-string v6, "led_indicator_settings"

invoke-virtual {p0, v6}, Lcom / android / settings / DisplaySettings; ->findPreference (Ljava / lang / CharSequence;) Landroid / preference / Preference;

move-result-object v6

invoke-virtual {v0, v6}, Landroid / preference / PreferenceScreen; ->removePreference (Landroid / preference / Preference;) Z

.line 465
iget-object v0, p0, Lcom / android / settings / DisplaySettings; ->mSimpleLedIndicator: Landroid / preference / CheckBoxPreference;

Further

.line 645
invoke-static {}, Lcom / android / settings / Utils; ->isJapanModel () Z

move-result v0

if-nez v0,: cond_17

invoke-static {}, Lcom / android / settings / Utils; ->isP4Note_Device () Z

move-result v0

if-eqz v0,: cond_18

.line 646
: cond_17
invoke-virtual {p0}, Lcom / android / settings / DisplaySettings; ->getPreferenceScreen () Landroid / preference / PreferenceScreen;

move-result-object v0

iget-object v1, p0, Lcom / android / settings / DisplaySettings; ->mDisplayBatteryLevel: Landroid / preference / CheckBoxPreference;

invoke-virtual {v0, v1}, Landroid / preference / PreferenceScreen; ->removePreference (Landroid / preference / Preference;) Z


.line 649
: cond_18
const-string v0, "notification_pulse"

Further

.line 855 (5871)
: cond_28
const-string v0, "display_battery_level"

invoke-virtual {p0, v0}, Lcom / android / settings / DisplaySettings; ->removePreference (Ljava / lang / String;) V

.line 856
const-string v0, "header_display_multi_window"

Further

.line 469 (6213)
invoke-virtual {p0}, Lcom / android / settings / DisplaySettings; ->getPreferenceScreen () Landroid / preference / PreferenceScreen;

move-result-object v0

const-string v6, "led_indicator_settings"

invoke-virtual {p0, v6}, Lcom / android / settings / DisplaySettings; ->findPreference (Ljava / lang / CharSequence;) Landroid / preference / Preference;

move-result-object v6

invoke-virtual {v0, v6}, Landroid / preference / PreferenceScreen; ->removePreference (Landroid / preference / Preference;) Z

goto / 16: goto_3

.line 471
: cond_38
iget-object v0, p0, Lcom / android / settings / DisplaySettings; ->mSimpleLedIndicator: Landroid / preference / CheckBoxPreference;


Post has been editedsagitt67 - 20.01.15, 01:43



Rep: (7345)
Added Paragraph Editing the system / CSC / others.xml file
Settings messages-notifications, pop-up display

Post has been editedsagitt67 - 20.01.15, 03:27



Rep: (7345)
3 Minit Battery with battery selection and settings

Attached Image
Attached Image
Attached Image

Author : sagitt67
Firmware : N915FXXU1ANJ8Deodex
Description - 3 Minit Battery with the selection and battery settings.
SystemUI / res / layout / status_bar.xml
the string
<com. = "3.0dip" />
change to
<com.android.systemui.statusbar.policy.MinitBattery android: id = "@ id / battery" android: layout_width = "wrap_content" android: layout_height = "wrap_content" />

Copy files from the downloaded archiveSystemUI.zip
we collectSystemUI
File3MinitBatterySettings.apk copy via Root explorer at system / app / with the replacement of the file and set the right letter R .


Download: Attached fileSystemUI.zip (8.78 KB)

Download: Attached file3MinitBatterySettings.apk (20.19 MB)



Rep: (7345)
We include support for themes in the settings and launcher

Attached Image

Attached Image


Author : sagitt67
Firmware : N915FXXU1ANJ8Deodex
Description : Includes support for those in Settings - Display and wallpaper - Themes in the launcher - a long tap on the screen.
Edit SecSettings / smali / com / android / settings / DisplaySettings.smali
in the method.method public onCreate (Landroid / os / Bundle;) V
delete row
red

.line 446
: cond_e
const-string v0, "theme_settings"

invoke-virtual {p0, v0}, Lcom / android / settings / DisplaySettings; ->removePreference (Ljava / lang / String;) V

goto / 16: goto_0

.line 433

Edit the file in the system / etc / floating_feature.xml
the string
<SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>none</ SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>
change to
<SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>themev2</ SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>

Download the attached file and copy the files using Root Explorer with setting right the letter D
- The contents of folder system / app / SecThemeChooser2.apk + 2 threads (ChineseClassic2.apk and Natural2.apk)
- The contents of the folder system / csc / theme_app_list.xml
- Ready file system / etc / floating_feature.xml in the archive
Download: Attached fileNote_Edge_Theme.zip (11.92 MB)


Post has been editedsagitt67 - 22.01.15, 22:19



Rep: (7345)
Added by
- disable cache scroll.
atSystem tweaks



Rep: (7345)
Convert image files to * .png

Link to the original : xda
Author : sagitt67
Firmware : any
Description - Convert image files in * png
format support in version 1.4
- QMG
- ASTC
- WEBP
- PIO
- WBP
- OPTIPNG
- QUANTPNG
- PKM
- ATC
- SPR (not tested)
- QIO

Open the utility and through Root Explorer open the desired * .apk file to convert, convert and Qmg2Png memory folder will file folders * .png.
The BB when editing * .apk file using APKTools to replace files * .png formats removing the last
Further, when copying from APKTools to open a file archiver * .apk file format * .png uncompressed, do not forget to remove the last archiver exchanged files format.
The only caveat - the restoration of one pixel frames and replacing the file format * .png * .9.png on, for those files that must be in the format * .9.png
Download the new version: Attached filezQmg2Png_v1.4.apk (63.02 KB)

in a dark style + translation

Post has been editedsagitt67 - 19.09.16, 18:19



Rep: (7345)
Make a dark background and light text in the Last Post during the call.

Attached Image

Author : sagitt67
Firmware : N915FXXU1ANJ8Deodex
Description : - Making a dark background and light text (message and icon) in the last message during the call.
background and icon
background isInCallUI / res / drawable-sw360dp-xxxhdpi / call_tips_popup_bg.9.png
Icon is locatedInCallUI / res / drawable-sw360dp-xxxhdpi / call_tips_popup_bg.9.qmg
It is necessary to convert and replacelogs_list_icon_sms.pngmethod above fasting.


text
InCallUI / res / layout / caller_info_card_item.xml
Change the text color to the color in the lines starting with<Textview




Rep: (7345)
Turning off on the safe volume when headphones are plugged in the dialog box.

Attached Image

Author : sagitt67
Firmware : N915FXXU1ANJ8Deodex
Description - Disable the Safe volume when headphones are plugged in the dialog box.
framework / smali / android / media / AudioService.smali
in the method.method private checkSafeMediaVolume (III) Z
Add row
( blue )

.line 6846
: cond_1
iget-object v6, p0, Landroid / media / AudioService; ->mSafeMediaVolumeState: Ljava / lang / Integer;

invoke-virtual {v6}, Ljava / lang / Integer; ->intValue () I

move-result v6

goto: goto_rs

if-ne v6, v7,: cond_4

iget-object v6, p0, Landroid / media / AudioService; ->mStreamVolumeAlias: [I

further at the end of the method add the line (blue )

.line 6873
.end local v0 # "e": Ljava / lang / Exception;
.end local v1 # "pm": Landroid / os / PowerManager;
.end local v3 # "wl": Landroid / os / PowerManager $ WakeLock;
: goto_rs
: cond_4
monitor-exit v5
: try_end_3
.catchall {: try_start_3 ..: try_end_3}: catchall_0

goto: goto_0
.end method



Rep: (7345)
Added Paragraph Editing the system / CSC / others.xml file
Luggage-menu-shutter sound

Post has been editedsagitt67 - 27.01.15, 20:30



Rep: (7345)
Add item to Settings ->Custom settings.

Attached Image
Attached Image
Attached Image
Attached Image

Author : sagitt67
Firmware : N915FXXU1ANJ8Deodex
Description - Add the item in the Settings ->User Settings ->
* Delay display of the volume bar in time with the parameters settings.
* Display of the alarm icons in the status bar (when activated).
* Displays the icons in the status bar bluetooth (when activated).
* Displays the sound icon in the status bar (if muted).
edit SecSettings.apk
We copy files from archive
SecSettings / xml / grid_settings_headers.xml
We insert
<header android: icon = "@ drawable / grid_ic_settings_active_key" android: id = "@ id / active_key_settings" android: title = "@ string / active_key_title" android: fragment = "com.android.settings.activekey.ActiveKeySettings" />
+++<header android: icon = "@ drawable / ic_settings_custom" android: id = "@ id / settings_custom" android: title = "@ string / custom_settings_title" android: fragment = "com.android.settings.custom.custom_settings" />+++
<header android: id = "@ id / motion_section" android: title = "@ string / motion_category" />


SecSettings / xml / gridlist_settings_headers.xml
We insert
<header android: icon = "@ drawable / grid_ic_settings_active_key" android: id = "@ id / active_key_settings" android: title = "@ string / active_key_title" android: fragment = "com.android.settings.activekey.ActiveKeySettings" />
+++<header android: icon = "@ drawable / ic_settings_custom" android: id = "@ id / settings_custom" android: title = "@ string / custom_settings_title" android: fragment = "com.android.settings.custom.custom_settings" />+++
<header android: id = "@ id / system_section" android: title = "@ string / header_category_system" />


SecSettings / res / values ​​/ arrays.xml
add at the end of the file
<string-array name = "volume_panel_timeout_entries">
<item>0.5s</ item>
<item>1s</ item>
<item>1.5s</ item>
<item>2s</ item>
<item>2.5s</ item>
<item>3s (Default)</ item>
<item>3.5s</ item>
<item>4s</ item>
<item>4.5s</ item>
<item>5s</ item>
</ string-array>
<string-array name = "volume_panel_timeout_values">
<item>500</ item>
<item>1000</ item>
<item>1500</ item>
<item>2000</ item>
<item>2500</ item>
<item>3000</ item>
<item>3500</ item>
<item>4000</ item>
<item>4500</ item>
<item>5000</ item>
</ string-array>


SecSettings / res / values ​​/ strings.xml
add at the end of the file
<string name = "custom_settings_title">Custom settings</ string>
<string name = "volume_panel_timeout_title">Volume panel timeout</ string>
<string name = "volume_panel_timeout_summary">% s</ string>
<string name = "system_settings">System settings</ string>
<string name = "status_bar_settings">Status bar settings</ string>
<string name = "alarm_icon_title">Show alarm icon on statusbar</ string>
<string name = "bluetooth_icon_title">Show bluetooth icon on statusbar</ string>
<string name = "sound_icon_title">Show sound icon on statusbar</ string>
<string name = "show_icon_on">Show</ string>
<string name = "show_icon_off">Hide</ string>


SecSettings / res / values-ru / arrays.xml
add at the end of the file
<string-array name = "volume_panel_timeout_entries">
<item>0.5 seconds</ item>
<item>1 sec</ item>
<item>1.5 seconds</ item>
<item>2 seconds</ item>
<item>2.5 seconds</ item>
<item>3 seconds (default)</ item>
<item>3.5 seconds</ item>
<item>4 seconds</ item>
<item>4.5 seconds</ item>
<item>5 sec</ item>
</ string-array>


SecSettings / res / values-en / strings.xml
add at the end of the file
<string name = "custom_settings_title">Custom settings</ string>
<string name = "volume_panel_timeout_title">Delay panel volume</ string>
<string name = "volume_panel_timeout_summary">% s</ string>
<string name = "system_settings">System settings</ string>
<string name = "status_bar_settings">Bar status settings</ string>
<string name = "alarm_icon_title">Display of alarm icons</ string>
<string name = "bluetooth_icon_title">Displaying the Bluetooth icon</ string>
<string name = "sound_icon_title">Displaying sound icons</ string>
<string name = "show_icon_on">Show</ string>
<string name = "show_icon_off">Hide</ string>


Collect and put this id the added resources public.xml file

Next, on the roadsmali / com / android / settings / custom / custom_settings.smali
and replace

const v1, 0x7f070118 #<public type = "xml" name = "custom_settings" id = "0x7f070118" />
its value

Putting SecSettings

edit framework2.jar
framework2.jar / smali / android / view / VolumePanel.smali
whole method.method private resetTimeout () Vreplace it

.method private resetTimeout () V
.locals 5

.prologue
const / 4 v4, 0x5

.line 16
iget-object v1, p0, Landroid / view / VolumePanel; ->mContext: Landroid / content / Context;

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

move-result-object v1

.line 17
const-string / jumbo v2, "volume_panel_timeout"

const / 4 v3, 0x0

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

move-result v0

.line 18
.local v0, "temp": I
invoke-virtual {p0, v4}, Landroid / view / VolumePanel; ->removeMessages (I) V

.line 19
if-eqz v0,: cond_0

.line 20
invoke-virtual {p0, v4}, Landroid / view / VolumePanel; ->obtainMessage (I) Landroid / os / Message;

move-result-object v1

int-to-long v2, v0

invoke-virtual {p0, v1, v2, v3}, Landroid / view / VolumePanel; ->sendMessageDelayed (Landroid / os / Message; J) Z

.line 24
: goto_0
return-void

.line 22
: cond_0
invoke-virtual {p0, v4}, Landroid / view / VolumePanel; ->obtainMessage (I) Landroid / os / Message;

move-result-object v1

const-wide / 16 v2, 0xbb8

invoke-virtual {p0, v1, v2, v3}, Landroid / view / VolumePanel; ->sendMessageDelayed (Landroid / os / Message; J) Z

goto: goto_0
.end method


Editing SystemUI.apk
SystemUI / smali / com / android / systemui / statusbar / phone / PhoneStatusBarPolicy.smali
in the method.method public constructor<init>(Landroid / content / Context;) V
red add


.line 134
const v1, 0x7f020113

.line 137
: cond_0
iget-object v3, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mService: Landroid / app / StatusBarManager;

const-string v5, "bluetooth"

invoke-virtual {v3, v5, v1, v4, v7}, Landroid / app / StatusBarManager; ->setIcon (Ljava / lang / String; IILjava / lang / String;) V

iget-object v3, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mService: Landroid / app / StatusBarManager;

iget-boolean v6, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mBluetoothEnabled: Z

invoke-direct {p0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->hideBlueTooth () Z

move-result v5

if-eqz v5,: cond_bt

const / 4 v6, 0x0

: cond_bt

iget-object v3, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mService: Landroid / app / StatusBarManager;

const-string v5, "bluetooth"

iget-boolean v6, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mBluetoothEnabled: Z

Further
before by.method private final updateAlarm (Landroid / content / Intent;) V
paste method 2


.method private final hideBlueTooth () Z
.locals 3

const / 4 v2, 0x0

iget-object v0, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mContext: Landroid / content / Context;

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

move-result-object v0

const-string v1, "bluetooth_icon"

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

move-result v0

if-eq v0, v2,: cond_0

const / 4 v1,0x0

: goto_0
return v1

: cond_0
const / 4 v1, 0x1

goto: goto_0
.end method

.method private final hideVolume () Z
.locals 3

const / 4 v2, 0x0

iget-object v0, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mContext: Landroid / content / Context;

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

move-result-object v0

const-string v1, "sound_icon"

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

move-result v0

if-eq v0, v2,: cond_0

const / 4 v1,0x0

: goto_0
return v1

: cond_0
const / 4 v1, 0x1

goto: goto_0
.end method


Further the whole method
.method private final updateAlarm (Landroid / content / Intent;) V
change to


.method private final updateAlarm (Landroid / content / Intent;) V
.locals 5
.param p1, "intent" # Landroid / content / Intent;

.prologue
.line 194
const / 4 v3, 0x0

const-string v1, "alarmSet"

const / 4 v2, 0x0

invoke-virtual {p1, v1, v2}, Landroid / content / Intent; ->getBooleanExtra (Ljava / lang / String; Z) Z

move-result v0

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

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

move-result-object v1

const-string v2, "alarm_icon"

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

move v0, v3

.line 195
.local v0, alarmSet: Z
: cond_0
iget-object v1, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mService: Landroid / app / StatusBarManager;

const-string v2, "alarm_clock"

invoke-virtual {v1, v2, v0}, Landroid / app / StatusBarManager; ->setIconVisibility (Ljava / lang / String; Z) V

.line 196
return-void
.end method


further in the method
.method private final updateBluetooth (Landroid / content / Intent;) V

change the line


.line 222
.local v3, "state": I
const / 16 v4, 0xc

if-ne v3, v4,: cond_2

const / 4 v4, 0x1

: goto_0
iput-boolean v4, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mBluetoothEnabled: Z

.line 236
: goto_1
iget-boolean v4, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mBluetoothEnabled: Z

if-eqz v4,: cond_0

.line 237
iget-object v4, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mService: Landroid / app / StatusBarManager;

const-string v6, "bluetooth"

invoke-virtual {v4, v6, v2, v5, v1}, Landroid / app / StatusBarManager; ->setIcon (Ljava / lang / String; IILjava / lang / String;) V

.line 239
: cond_0
iget-object v4, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mService: Landroid / app / StatusBarManager;

const-string v5, "bluetooth"

iget-boolean v6, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mBluetoothEnabled: Z

invoke-virtual {v4, v5, v6}, Landroid / app / StatusBarManager; ->setIconVisibility (Ljava / lang / String; Z) V

on
.line 222
.local v3, state: I
const / 16 v4, 0xc

if-ne v3, v4,: cond_2

const / 4 v4, 0x1

: goto_0
iput-boolean v4, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mBluetoothEnabled: Z

.line 236
: goto_1
iget-object v4, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mService: Landroid / app / StatusBarManager;

const-string v6, "bluetooth"

invoke-virtual {v4, v6, v2, v5, v1}, Landroid / app / StatusBarManager; ->setIcon (Ljava / lang / String; IILjava / lang / String;) V

.line 237
iget-object v4, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mService: Landroid / app / StatusBarManager;

iget-boolean v6, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mBluetoothEnabled: Z

invoke-direct {p0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->hideBlueTooth () Z

move-result v5

if-eqz v5,: cond_0

const / 4 v6, 0x0

: cond_0
const-string v5, "bluetooth"

invoke-virtual {v4, v5, v6}, Landroid / app / StatusBarManager; ->setIconVisibility (Ljava / lang / String; Z) V


further in the method
.method private final updateVolume () V

in rows


.line 194
.local v3, "ringerMode": I
if-eqz v3,: cond_0

if-ne v3, v6,: cond_3 # change to if-ne v3, v6,: cond_ 5

: cond_0
move v4, v6

.line 198
.local v4, "visible": Z
: goto_0
const / 4 v1,0x0

.line 199
.local v1, "contentDescription": Ljava / lang / String;
if-ne v3, v6,: cond_4 # change toif-ne v3, v6,: cond_6

.line 200
const v2, 0x7f02019b

.line 201
.local v2, "iconId": I
iget-object v6, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mContext: Landroid / content / Context;

Next in linered add, blue remove

.line 210
: cond_1
iget-boolean v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mVolumeVisible: Z

if-eq v4, v5,: cond_2 # change in the if-eq v4, v5,: cond_3

iput-boolean v4, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mVolumeVisible: Z

.line 211
iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mService: Landroid / app / StatusBarManager;

invoke-direct {p0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->hideVolume () Z

move-result v6

if-eqz v6,: cond_2

const / 4 v4, 0x0

: cond_2

const-string v6, "volume"

invoke-virtual {v5, v6, v4}, Landroid / app / StatusBarManager; ->setIconVisibility (Ljava / lang / String; Z) V

.line 212
iput-boolean v4, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mVolumeVisible: Z

.line 214
: cond_2


goto: goto_2

: cond_3
iget-object v5, p0, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->mService: Landroid / app / StatusBarManager;

invoke-direct {p0}, Lcom / android / systemui / statusbar / phone / PhoneStatusBarPolicy; ->hideVolume () Z

move-result v6

if-eqz v6,: cond_4

const / 4 v4, 0x0

const-string v6, "volume"

invoke-virtual {v5, v6, v4}, Landroid / app / StatusBarManager; ->setIconVisibility (Ljava / lang / String; Z) V

: cond_4
: goto_2

return-void

.end local v1 # "contentDescription": Ljava / lang / String;
.end local v2 # "iconId": I
.end local v4 # "visible": Z
: cond_3 # change to : cond_ 5
move v4, v5

.line 194
goto: goto_0

.line 203
.restart local v1 # "contentDescription": Ljava / lang / String;
.restart local v4 # "visible": Z
: cond_4 # change to : cond_ 6
const v2, 0x7f020199

.line 204
.restart local v2 # "iconId": I

Download : Attached fileSecSettings.zip (13.18 KB)


Post has been editedsagitt67 - 31.01.15, 16:06



Rep: (7345)
5x6 grid in the application menu in lauchere.

Attached Image

Author : sagitt67
Firmware : N915FXXU1ANJ8Deodex
Description : - 5x6 grid in the application menu in lauchere.
TouchWizHome / res / values-xxxhdpi / integers.xml
lines
<integer name = "menuAppsGrid_cellCountX">4</ integer>
<integer name = "menuAppsGrid_cellCountY">5</ integer>
change to
<integer name = "menuAppsGrid_cellCountX">5</ integer>
<integer name = "menuAppsGrid_cellCountY">6</ integer>

TouchWizHome / res / values-xxxhdpi / dimens.xml
lines
<dimen name = "app_icon_size_normal">48.0dip</ dimen>
<dimen name = "app_icon_size">48.0dip</ dimen>
<dimen name = "menuAppsGrid_cellHeight">110.0dip</ dimen>
<dimen name = "menuAppsGrid_cellWidth">72.0dip</ dimen>
<dimen name = "menuAppsGrid_pageMarginPlusPaddingTop">0.0dip</ dimen>
<dimen name = "menuWidgets_title_textSize">14.0dip</ dimen>
<dimen name = "menu_pageIndicatorGap">8.0dip</ dimen>
<dimen name = "menu_scroll_zone_left_width">28.0dip</ dimen>
<dimen name = "menu_scroll_zone_right_width">28.0dip</ dimen>
<dimen name = "menu_title_bar_button_text_size">19.0dip</ dimen>
<dimen name = "menu_title_bar_text_size">22.0dip</ dimen>

change to
<dimen name = "app_icon_size_normal">45.0dip</ dimen>
<dimen name = "app_icon_size">45.0dip</ dimen>
<dimen name = "menuAppsGrid_cellHeight">90.0dip</ dimen>
<dimen name = "menuAppsGrid_cellWidth">70.0dip</ dimen>
<dimen name = "menuAppsGrid_pageMarginPlusPaddingTop">-2.0dip</ dimen>
<dimen name = "menuWidgets_title_textSize">12.0dip</ dimen>
<dimen name = "menu_pageIndicatorGap">2.0dip</ dimen>
<dimen name = "menu_scroll_zone_left_width">22.0dip</ dimen>
<dimen name = "menu_scroll_zone_right_width">22.0dip</ dimen>
<dimen name = "menu_title_bar_button_text_size">18.0dip</ dimen>
<dimen name = "menu_title_bar_text_size">20.0dip</ dimen>


TouchWizHome / res / values-xxxhdpi / styles.xml
lines
<style name = "MenuIcon" parent = "@ style / BaseMenuIcon">
<item name = "android: textSize">14.0dip</ item>
<item name = "android: ellipsize">end</ item>
<item name = "android: paddingLeft">1.0dip</ item>
<item name = "android: paddingTop">14.0dip</ item>
<item name = "android: paddingRight">1.0dip</ item>
<item name = "android: paddingBottom">8.0dip</ item>
<item name = "android: lines">2</ item>
<item name = "android: drawablePadding">4.0dip</ item>
<item name = "android: fontFamily">Roboto_Regular</ item>
</ style>
<style name = "MenuIcon.Folder" parent = "@ style / MenuIcon">
<item name = "android: paddingTop">9.0dip</ item>
<item name = "android: drawablePadding">1.0dip</ item>
</ style>
<style name = "MenuIcon.FolderItem" parent = "@ style / MenuIcon">
<item name = "android: paddingTop">9.0dip</ item>
<item name = "android: drawablePadding">-1.0dip</ item>
</ style>
change to
<style name = "MenuIcon" parent = "@ style / BaseMenuIcon">
<item name = "android: textSize">11.0dip</ item>
<item name = "android: ellipsize">end</ item>
<item name = "android: paddingLeft">1.0dip</ item>
<item name = "android: paddingTop">7.0dip</ item>
<item name = "android: paddingRight">1.0dip</ item>
<item name = "android: paddingBottom">8.0dip</ item>
<item name = "android: lines">2</ item>
<item name = "android: drawablePadding">4.0dip</ item>
<item name = "android: fontFamily">Roboto_Regular</ item>
</ style>
<style name = "MenuIcon.Folder" parent = "@ style / MenuIcon">
<item name = "android: paddingTop">0.0dip</ item>
<item name = "android: drawablePadding">0.0dip</ item>
</ style>
<style name = "MenuIcon.FolderItem" parent = "@ style / MenuIcon">
<item name = "android: paddingTop">4.0dip</ item>
<item name = "android: drawablePadding">-1.0dip</ item>
</ style>



Rep: (7345)
Enables the display of support, add, delete widgets on lokskrine.

Attached Image
Attached Image
Attached Image

Author : sagitt67
Firmware : N915FXXU1ANJ8Deodex
Description - Enables the display of support, add, delete widgets on lokskrine.
edit Keyguard.apk
Keyguard / smali / com / android / keyguard / KeyguardActivityLauncher.smali
.method public launchWidgetPicker (I) V
.locals 7
.param p1, "appWidgetId" # I

.prologue
const / 4 v4, 0x0

const / 4 v3, 0x2 # change to const / 4 v3, 0x 3

const / 4 v2, 0x0

.line 164
new-instance v1, Landroid / content / Intent;

Keyguard / smali / com / android / keyguard / KeyguardHostView.smali
blue do make, red delete
in the method.method public constructor<init>(Landroid / content / Context; Landroid / util / AttributeSet;) V


.line 418
: cond_3
: goto_3
invoke-virtual {p1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v0

const-string v1, "kg_multiple_lockscreen"

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

move-result v0

const v0, 0x1

if-ne v0, v2,: cond_e

move v0, v2

: goto_4
iput-boolean v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mIsMultipleLockOn: Z

in the method.method private addDefaultWidgets () V
We look for the line withisPreviousLook () Z


.line 2893
new-instance v3, Lcom / android / keyguard / KeyguardHostView $ 19;

invoke-direct {v3, p0}, Lcom / android / keyguard / KeyguardHostView $ 19 -><init>(Lcom / android / keyguard / KeyguardHostView;) V

invoke-virtual {v0, v3}, Landroid / view / View; ->setOnClickListener (Landroid / view / View $ OnClickListener;) V

.line 2906
: cond_0
const / 4 v0, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v0


if-eqz v0,: cond_1

.line 2908
iget-object v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mContext: Landroid / content / Context;

We continue to look for the lineisSecure () Z

iget-object v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mLockPatternUtils: Lcom / android / internal / widget / LockPatternUtils;

invoke-virtual {v0}, Lcom / android / internal / widget / LockPatternUtils; ->isSecure () Z

move-result v0

const v0, 0x0

if-nez v0,: cond_1

.line 2913
if-ne v3, v1,: cond_3

invoke-direct {p0}, Lcom / android / keyguard / KeyguardHostView; ->cameraDisabledByDpm () Z

further in the method
.method private addWidgetsFromSettings () V
.locals 5

.prologue
.line 3150
iget-boolean v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mSafeModeEnabled: Z

if-nez v0,: cond_0

invoke-direct {p0}, Lcom / android / keyguard / KeyguardHostView; ->widgetsDisabled () Z

move-result v0

if-nez v0,: cond_0

iget-object v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mLockPatternUtils: Lcom / android / internal / widget / LockPatternUtils;

invoke-virtual {v0}, Lcom / android / internal / widget / LockPatternUtils; ->isSecure () Z

move-result v0

const v0, 0x0

if-eqz v0,: cond_2

.line 3151
: cond_0
const / 4 v0, 0x0

further in the method.method private ensureTransportPresentOrRemoved (I) Z

.line 3464
: cond_2
if-nez v4,: cond_e

if-nez v3,: cond_3

if-eqz v0,: cond_e

.line 3466
: cond_3
const / 4 v0, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v0


if-eqz v0,: cond_9

.line 3467
iget-object v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mAppWidgetContainer: Lcom / android / keyguard / KeyguardWidgetPager;

Further

.line 3516
: cond_f
sget-boolean v0, Lcom / android / keyguard / KeyguardHostView; ->DEBUGXPORT: Z

if-eqz v0,: cond_10

const-string v0, "KeyguardHostView"

const-string v1, "remove transport"

invoke-static {v0, v1}, Landroid / util / Log; ->v (Ljava / lang / String; Ljava / lang / String;) I

.line 3518
: cond_10
const / 4 v0, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v0


if-eqz v0,: cond_12

.line 3519
iget-object v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mAppWidgetContainer: Lcom / android / keyguard / KeyguardWidgetPager;

Further

invoke-virtual {v0, v8}, Lcom / android / keyguard / KeyguardUpdateMonitor; ->dispatchSetBackground (Landroid / graphics / Bitmap;) V

goto / 16: goto_0

.line 3534
: cond_13
const / 4 v0, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v0


if-nez v0,: cond_15

if-eq p1, v9,: cond_15

iget-object v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mKeyguardManager: Landroid / app / KeyguardManager;

further in the method
.method private isWidgetEnabled () Z
.locals 1

.prologue
.line 1254
const / 4 v0, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v0


if-eqz v0,: cond_0

.line 1255
iget-boolean v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mIsMultipleLockOn: Z

further in the method
.method private maybeEnableAddButton () V
.locals 2

.prologue
.line 1216
const v0, 0x1
invoke-direct {p0}, Lcom / android / keyguard / KeyguardHostView; ->shouldEnableAddWidget () Z

move-result v0


if-nez v0,: cond_0

.line 1217
iget-object v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mAppWidgetContainer: Lcom / android / keyguard / KeyguardWidgetPager;

Further the whole method.method private shouldEnableAddWidget () Z change to
.method private shouldEnableAddWidget () Z
.locals 2

.prologue
.line 1229
const v1,0x1

return v1
.end method

further in the method.method private updateAndAddWidgets () V

.line 1198
invoke-direct {p0}, Lcom / android / keyguard / KeyguardHostView; ->widgetsDisabled () Z

move-result v1

if-nez v1,: cond_3

const / 4 v0, 0x1

.line 1199
.local v0, "isWidgetEnable": Z
: goto_0
const / 4 v1, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v1


if-eqz v1,: cond_0

.line 1200
const / 4 v0, 0x1

.line 1202

further in the method.method protected onFinishInflate () V

.line 771
iget-object v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mSlidingChallengeLayout: Lcom / android / keyguard / SlidingChallengeLayout;

iget-object v3, p0, Lcom / android / keyguard / KeyguardHostView; ->mLockPatternUtils: Lcom / android / internal / widget / LockPatternUtils;

invoke-virtual {v3}, Lcom / android / internal / widget / LockPatternUtils; ->isSecure () Z

move-result v3

const v3, 0x0

invoke-virtual {v0, v3}, Lcom / android / keyguard / SlidingChallengeLayout; ->setIsSecured (Z) V

.line 774
: cond_2
const v0, 0x7f0b0095

Further

.line 776
iget-object v3, p0, Lcom / android / keyguard / KeyguardHostView; ->mMultiPaneChallengeLayout: Lcom / android / keyguard / MultiPaneChallengeLayout;

iget-object v0, p0, Lcom / android / keyguard / KeyguardHostView; ->mLockPatternUtils: Lcom / android / internal / widget / LockPatternUtils;

invoke-virtual {v0}, Lcom / android / internal / widget / LockPatternUtils; ->isSecure () Z

move-result v0

const v0, 0x0

if-eqz v0,: cond_3

sget-boolean v0, Lcom / android / keyguard / KeyguardHostView; ->mSwipeLockShowingBeforeTimeout: Z

Keyguard / smali / com / android / keyguard / KeyguardViewManager.smali
in the method.method private inflateKeyguardView (Landroid / os / Bundle;) V

invoke-static {v5, v8}, Landroid / util / Log; ->d (Ljava / lang / String; Ljava / lang / String;) I

.line 505
const / 4 v5, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v5


if-nez v5,: cond_1

invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isMagazineCardSupport () Z


further in the method
.method private isWidgetEnabled () Z
.locals 5

.prologue
const / 4 v0, 0x1

const / 4 v1,0x0

.line 849
const / 4 v2, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v2


if-eqz v2,: cond_1

.line 850
iget-object v2, p0, Lcom / android / keyguard / KeyguardViewManager; ->mContext: Landroid / content / Context;


Keyguard / smali / com / android / keyguard / KeyguardWidgetPager.smali
in the method.method public constructor<init>(Landroid / content / Context; Landroid / util / AttributeSet; I) V

.line 155
invoke-virtual {p1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v0

const-string v3, "kg_multiple_lockscreen"

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

move-result v0

const v0, 0x1

if-ne v0, v2,: cond_2

: goto_1
iput-boolean v2, p0, Lcom / android / keyguard / KeyguardWidgetPager; ->mIsMultipleLockOn: Z


further in the method
.method private isWidgetEnabled () Z
.locals 1

.prologue
.line 1074
const / 4 v0, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v0


if-eqz v0,: cond_0

.line 1075
iget-boolean v0, p0, Lcom / android / keyguard / KeyguardWidgetPager; ->mIsMultipleLockOn: Z

further in the method
.method public isContextualPage (I) Z
.locals 4
.param p1, "pageIndex" # I

.prologue
const / 4 v2, 0x0

.line 1154
const / 4 v3, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v3


if-nez v3,: cond_1

.line 1170
: cond_0
: goto_0
return v2

further in the method.method public onInterceptTouchEvent (Landroid / view / MotionEvent;) Z

iget-object v1, p0, Lcom / android / keyguard / KeyguardWidgetPager; ->mLockPatternUtils: Lcom / android / internal / widget / LockPatternUtils;

invoke-virtual {v1}, Lcom / android / internal / widget / LockPatternUtils; ->isSecure () Z

move-result v1

const v1,0x0

if-eqz v1,: cond_2

: cond_0
invoke-direct {p0}, Lcom / android / keyguard / KeyguardWidgetPager; ->hasContextualWidget () Z

further in the method.method public onLongClick (Landroid / view / View;) Z

iget-object v3, p0, Lcom / android / keyguard / KeyguardWidgetPager; ->mLockPatternUtils: Lcom / android / internal / widget / LockPatternUtils;

invoke-virtual {v3}, Lcom / android / internal / widget / LockPatternUtils; ->isSecure () Z

move-result v3

const v3, 0x0

if-eqz v3,: cond_2

.line 916
iget-object v1, p0, Lcom / android / keyguard / KeyguardWidgetPager; ->mContext: Landroid / content / Context;

further in the method.method public onTouchEvent (Landroid / view / MotionEvent;) Z

iget-object v1, p0, Lcom / android / keyguard / KeyguardWidgetPager; ->mLockPatternUtils: Lcom / android / internal / widget / LockPatternUtils;

invoke-virtual {v1}, Lcom / android / internal / widget / LockPatternUtils; ->isSecure () Z

move-result v1

const v1,0x0

if-eqz v1,: cond_2

: cond_0
invoke-direct {p0}, Lcom / android / keyguard / KeyguardWidgetPager; ->hasContextualWidget () Z

Keyguard / smali / com / android / keyguard / SlidingChallengeLayout.smali
in the method.method public constructor<init>(Landroid / content / Context; Landroid / util / AttributeSet; I) V

.line 293
invoke-virtual {p1}, Landroid / content / Context; ->getContentResolver () Landroid / content / ContentResolver;

move-result-object v7

const-string v8, "kg_multiple_lockscreen"

const / 4 v9, -0x2

invoke-static {v7, v8, v5, v9}, Landroid / provider / Settings $ System; ->getIntForUser (Landroid / content / ContentResolver; Ljava / lang / String; II) I

move-result v7

const v7, 0x1

if-ne v7, v5,: cond_0

: goto_0
iput-boolean v5, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mIsMultipleLockOn: Z

Further the whole method.method private isWidgetEnabled () Z change to
.method private isWidgetEnabled () Z
.locals 1

.prologue
.line 1660
const / 4 v0, 0x1

return v0
.end method

further in the method.method public dispatchTouchEvent (Landroid / view / MotionEvent;) Z

iget-object v2, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mExpandChallengeView: Landroid / view / View;

invoke-virtual {v2}, Landroid / view / View; ->getVisibility () I

move-result v2

if-nez v2,: cond_2

iget-boolean v2, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mIsSecured: Z

const v2,0x0

if-nez v2,: cond_2

iget-boolean v2, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mExpandChallengeHandleCaptured: Z

if-nez v2,: cond_1

invoke-direct {p0, p1}, Lcom / android / keyguard / SlidingChallengeLayout; ->isExpandChallengeViewBeginEvent (Landroid / view / MotionEvent;) Z

further in the method
.method public onInterceptTouchEvent (Landroid / view / MotionEvent;) Z
.locals 10
.param p1, "ev" # Landroid / view / MotionEvent;

.prologue
const / 4 v9, 0x1

const / 4 v8, -0x1

const / 4 v5, 0x0

.line 650
const / 4 v6, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v6


if-nez v6,: cond_1

invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isGgsmTablet () Z

Further

.line 703
: cond_0
: goto_0
return v5

.line 653
: cond_1
iget-boolean v6, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mIsSecured: Z

const v6, 0x0

if-eqz v6,: cond_2

iget-object v6, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mSecurityLockMode: Lcom / android / keyguard / KeyguardSecurityModel $ SecurityMode;

further in the method.method protected onMeasure (II) V

.line 1004
const v0, 0x7f0b00fc

invoke-virtual {v2, v0}, Landroid / view / View; ->findViewById (I) Landroid / view / View;

move-result-object v0

if-nez v0,: cond_6

const / 4 v0, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v0


if-nez v0,: cond_5

invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isGgsmTablet () Z

Further

.line 1019
iget-object v0, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mExpandChallengeView: Landroid / view / View;

const / high16 v1, 0x3f800000

invoke-virtual {v0, v1}, Landroid / view / View; ->setAlpha (F) V

.line 1021
: cond_a
iget-boolean v0, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mIsSecured: Z

const v0, 0x0

if-eqz v0,: cond_c

.line 1022
iget-object v0, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mExpandChallengeView: Landroid / view / View;

Further

.line 1059
const v0, 0x7f0b00fc

invoke-virtual {v2, v0}, Landroid / view / View; ->findViewById (I) Landroid / view / View;

move-result-object v0

if-nez v0,: cond_6

const / 4 v0, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v0


if-nez v0,: cond_18

invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isGgsmTablet () Z

Further

.line 1083
sub-int / 2addr v1, v4

.line 1085
const / 4 v2, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v2


if-nez v2,: cond_1b

invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isGgsmTablet () Z

further in the method
.method public onTouchEvent (Landroid / view / MotionEvent;) Z
.locals 11
.param p1, "ev" # Landroid / view / MotionEvent;

.prologue
const / 4 v8, 0x1

const / 4 v7, 0x0

.line 723
const / 4 v9, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v9


if-nez v9,: cond_1

invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isGgsmTablet () Z

move-result v9

if-nez v9,: cond_1

.line 805
: cond_0

Further

.line 727
: cond_1
iget-boolean v9, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mIsSecured: Z

const v9, 0x0

if-eqz v9,: cond_2

iget-object v9, p0, Lcom / android / keyguard / SlidingChallengeLayout; ->mSecurityLockMode: Lcom / android / keyguard / KeyguardSecurityModel $ SecurityMode;

Keyguard / smali / com / android / keyguard / sec / KeyguardUnlockView.smali
in the method.method public showBouncer (I) V

.line 894
iget-object v0, p0, Lcom / android / keyguard / sec / KeyguardUnlockView; ->mShortcutView: Lcom / android / keyguard / sec / KeyguardShortcutView;

invoke-virtual {v0, v3}, Lcom / android / keyguard / sec / KeyguardShortcutView; ->setVisibility (I) V

.line 897
: cond_2
const / 4 v0, 0x1
invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isPreviousLook () Z

move-result v0


if-nez v0,: cond_3

invoke-static {}, Lcom / android / keyguard / sec / KeyguardProperties; ->isTablet () Z

move-result v0

if-eqz v0,: cond_5

.line 898



Post has been editedsagitt67 - 10.02.15, 21:18



Rep: (7345)
Added Paragraph Editing the system / CSC / others.xml file
Clock Menu-Settings-Sound and vibration alarm in silent mode



Rep: (7345)
Includes support for all applications in the multi-window.

Attached Image
Attached Image

Author : sagitt67
Firmware : N915FXXU1ANJ8Deodex
Description - Includes support for all applications in the multi-window.
edit framework2.jar
framework2 \ smali \ com \ samsung \ android \ multiwindow \ MultiWindowApplicationInfos.smali
red add

# static fields
.field private static final CONFIG_FILE: Ljava / lang / String; = "/System/etc/mw_blacklist.txt"

.field private static final SUPPORTEDSCALE_ALL_APPLICATIONS: Z

.field private static final SUPPORTED_ALL_APPLICATIONS: Z

insert further from to +++ +++

.field mNoTitleActivityList: Ljava / util / ArrayList;
.annotation system Ldalvik / annotation / Signature;
value = {
"Ljava / util / ArrayList",
"<",
"Ljava / lang / String;",
">;"
}
.end annotation
.end field

+++ field mMaxPenWindowCount:. I

.field private mMultiWindowBlackList: Ljava / util / List;
.annotation system Ldalvik / annotation / Signature;
value = {
"Ljava / util / List",
"<",
"Ljava / lang / String;",
">;"
}
.end annotation
.end field +++

.field mNotSupportScaleAppList: Ljava / util / ArrayList;
.annotation system Ldalvik / annotation / Signature;
value = {
"Ljava / util / ArrayList",
"<",
"Ljava / lang / String;",
">;"
}
.end annotation
.end field


further method.method public isSupportApp (Ljava / lang / String;) Z to replace all

.method public isSupportApp (Ljava / lang / String;) Z
.registers 6

iget-object v2, p0, Lcom / samsung / android / multiwindow / MultiWindowApplicationInfos; ->mMultiWindowBlackList: Ljava / util / List;

if-nez v2,: cond_3b

new-instance v2, Ljava / util / ArrayList;

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

iput-object v2, p0, Lcom / samsung / android / multiwindow / MultiWindowApplicationInfos; ->mMultiWindowBlackList: Ljava / util / List;

new-instance v2, Ljava / io / File;

const-string v3, "/system/etc/mw_blacklist.txt"

invoke-direct {v2, v3}, Ljava / io / File; -><init>(Ljava / lang / String;) V

invoke-virtual {v2}, Ljava / io / File; ->exists () Z

move-result v2

if-eqz v2,: cond_3b

: try_start_18
new-instance v1, Ljava / io / BufferedReader;

new-instance v2, Ljava / io / FileReader;

const-string v3, "/system/etc/mw_blacklist.txt"

invoke-direct {v2, v3}, Ljava / io / FileReader; -><init>(Ljava / lang / String;) V

invoke-direct {v1, v2}, Ljava / io / BufferedReader; -><init>(Ljava / io / Reader;) V

: cond_24
: goto_24
invoke-virtual {v1}, Ljava / io / BufferedReader; ->readLine () Ljava / lang / String;

move-result-object v0

if-eqz v0,: cond_3b

invoke-virtual {v0}, Ljava / lang / String; ->trim () Ljava / lang / String;

move-result-object v0

invoke-virtual {v0}, Ljava / lang / String; ->length () I

move-result v2

if-lez v2,: cond_24

iget-object v2, p0, Lcom / samsung / android / multiwindow / MultiWindowApplicationInfos; ->mMultiWindowBlackList: Ljava / util / List;

invoke-interface {v2, v0}, Ljava / util / List; ->add (Ljava / lang / Object;) Z
: try_end_39
.catch Ljava / lang / Exception; {: Try_start_18 ..: try_end_39}: catch_3a

goto: goto_24

: catch_3a
move-exception v2

: cond_3b
iget-object v2, p0, Lcom / samsung / android / multiwindow / MultiWindowApplicationInfos; ->mMultiWindowBlackList: Ljava / util / List;

invoke-interface {v2, p1}, Ljava / util / List; ->contains (Ljava / lang / Object;) Z

move-result v2

if-nez v2,: cond_45

const / 4 v2, 0x1

: goto_44
return v2

: cond_45
const / 4 v2, 0x0

goto: goto_44
.end method


further method.method public isSupportScaleApp (Landroid / content / pm / ActivityInfo;) Z to replace all

.method public isSupportScaleApp (Landroid / content / pm / ActivityInfo;) Z
.registers 2

const / 4 p0, 0x1

return p0
.end method


Download the easy archive and copy the files to your phone using Root Explorer with setting right the letter D
* System / priv-app / MultiWindowTrayService.apk (fixed bug display icons by scrolling)
* System / etc / mw_blacklist.txt
Download : Attached filemultiwindow.zip (1.36 MB)


Post has been editedsagitt67 - 11.02.15, 10:42


Full version    

Help     rules

Time is now: 20/05/20, 4:28