[GUIDES][4.0.4][29-03-14] Some guide/mod and links for Samsung ICS devices

Mohitash

Senior Member
Aug 8, 2012
2,142
4,539
203
Panchkula, Chandigarh
mohitashkumar.xyz
***Here are some of my guide/mod links for Samsung ICS Devices***

These guides are specially for GT-S7562. But should work for other Samsung ICS devices also. Values may differ.

New Guide(s) added - 1st April, 2014 - 9:00 PM (GMT +5:30)

Code:
[CENTER][B][U][SIZE="5"]--Contents--[/SIZE][/U][/B]

*******************************[/CENTER]

[SIZE="4"][LIST]
[*]Post #1 - [U]Guide Links[/U]
[*]Post #2 - [U]Small guides[/U]
[*]Post #3 - [U]Reserved for future use[/U]
[*]Post #4 - [U]Reserved for future use[/U]
[/LIST][/SIZE]

[CENTER]*******************************[/CENTER]








----------------------------------------------


***More will be there soon***

----------------------------------------------

Don't forget to PRESS THANKS :good: BUTTON
 
Last edited:

Mohitash

Senior Member
Aug 8, 2012
2,142
4,539
203
Panchkula, Chandigarh
mohitashkumar.xyz
***Here are some of my small guides/mods for Samsung ICS Devices***

***New guide(s) added [29th March, 2014 | 11:57 AM | GMT +5:30]***

----------------------------------------------

Things you need:
  • Tool for decompiling/compiling work (I will not cover this, there are many guides for this)
  • Notepad++
  • Patience
  • Some common sense :D

Remove Carrier label in AOSP Lockscreen

Decompile framework-res.apk

Open res/layout/keyguard_screen_tab_unlock.xml

edit this line:

Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="[COLOR="Red"]wrap_conten[/COLOR]t" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
Change that red part to 0.0dip

Do the same with keyguard_screen_tab_unlock_dual.xml for dual sim phone

edit these lines:

Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="[COLOR="red"]wrap_content[/COLOR]" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier2" android:layout_width="[COLOR="red"]wrap_content[/COLOR]" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
Change that red part to 0.0dip

Save it and recompile framework-res.apk

Thats it :)
Disable Auto scrolling animation for notification toggles (quickpanel)

Decompile SystemUI.apk

Open com\android\systemui\statusbar\policy\quicksetting/QuickSettingPanel.smali

Search-
Code:
.method public prepareTranslationX(Z)V
Replace whole method with this

Code:
.method public prepareTranslationX(Z)V
    .locals 3
    .parameter "isExpanded"

    return-void
.end method
Now Search-
Code:
.method public startScrollAnimation()V
Replace whole method with this

Code:
.method public startScrollAnimation()V
    .locals 5
	
    return-void
.end method
Save it and recompile SystemUI.apk

Thats it. :)

Credits:
majdinj
BOOTMGR
Remove quickpanel toggles from expanded status bar

Decompile SystemUI.apk

Open res/layout/tw_status_bar_expanded.xml

Look for this

Code:
    <HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="[COLOR="red"]wrap_conten[/COLOR]t" android:layout_height="[COLOR="red"]wrap_content[/COLOR]"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
        <com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="[COLOR="red"]wrap_conten[/COLOR]t" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
    </HorizontalScrollView>
Change red part to 0.0dip

On dual sim device

Do the same with res/layout/tw_status_bar_expanded_dual.xml

Now open res/layout/tw_quick_setting_button.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<merge
  xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_height[/COLOR]">
        <ImageView android:layout_gravity="center" android:id="@id/btn_image" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height=[COLOR="red"]"@dimen/quick_setting_button_image_height[/COLOR]" android:layout_marginTop="2.0dip" />
        <TextView android:textSize="[COLOR="red"]@dimen/quick_setting_button_text_size[/COLOR]" android:textColor="#ff9eb2c3" android:gravity="center" android:id="@id/btn_text" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_text_height[/COLOR]" android:includeFontPadding="false" android:shadowColor="#ff000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
        <ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="4.0dip" android:paddingTop="@dimen/quick_setting_button_status_padding" android:paddingRight="4.0dip" android:paddingBottom="@dimen/quick_setting_button_status_padding" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_status_height[/COLOR]" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
    </LinearLayout>
</merge>
Change red part to 0.0dip

Save it and recompile SystemUI.apk

Thats it. :good:
Remove label text of quickpanel toggles

Decompile SystemUI.apk

Open res/layout/tw_quick_setting_button.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<merge
  xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
        <ImageView android:layout_gravity="center" android:id="@id/btn_image" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_image_height" android:layout_marginTop="2.0dip" />
        <TextView android:textSize="[COLOR="red"]@dimen/quick_setting_button_text_size[/COLOR]" android:textColor="#ff9eb2c3" android:gravity="center" android:id="@id/btn_text" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_text_height[/COLOR]" android:includeFontPadding="false" android:shadowColor="#ff000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
        <ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="4.0dip" android:paddingTop="@dimen/quick_setting_button_status_padding" android:paddingRight="4.0dip" android:paddingBottom="@dimen/quick_setting_button_status_padding" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_status_height" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
    </LinearLayout>
</merge>
Change red part to 0.0dip

Save it.

Open res/values/dimens.xml

Search
Code:
quick_setting_button_height
Now decrease the size of this dimen value to exclude the size of text.(quick_setting_button_text_height)

Example-
If "quick_setting_button_height"=80.dip and "quick_setting_button_text_height"=30.0dip

Then change the value of "quick_setting_button_height" from 80.0dip to 50.0dip
Save it and recompile SystemUI.apk

Thats it. :good:

Hide Status Bar in expanded view like Jelly Bean

Decompile SystemUI.apk

Open smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali

Search for 0x7e1 and replace all with 0x7de

Now search this method

Code:
.method updateExpandedViewPos(I)V
Remove red lines

Code:
.method updateExpandedViewPos(I)V
    .locals 12
    .parameter "expandedPosition"

    .prologue
    const/16 v11, -0x2710

    const/4 v7, 0x1

    [COLOR="Red"].line 2638
    iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

    invoke-virtual {v8}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->getHeight()I

    move-result v3[/COLOR]

    .line 2639
    .local v3, h:I
    iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDisplayMetrics:Landroid/util/DisplayMetrics;

    iget v2, v8, Landroid/util/DisplayMetrics;->heightPixels:I

    .line 2643
    .local v2, disph:I
    iget-boolean v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedVisible:Z

    if-nez v8, :cond_1
Go some lower or just search
const/16 v8, -0x2711
Add blue one

Code:
    .line 2644
    invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->updateExpandedInvisiblePosition()V

    .line 2731
    :cond_0
    :goto_0
    return-void

    .line 2650
    :cond_1
    [COLOR="blue"]const/4 v3, 0x0[/COLOR]

    const/16 v8, -0x2711

    if-ne p1, v8, :cond_6

    .line 2651
    move v6, v3
Save it and recompile SystemUI.apk

Thats it.

Enjoy! :)

Transparent status bar on lockscreen

Decompile android.policy.jar

Open com/android/internal/policy/impl/KeyguardViewManager.smali

Search-
Code:
.method public declared-synchronized show()V
Under this method:

Search
Code:
0x10100800
Change this value to
Code:
0x1010900
Recompile android.policy.jar

Thats it:good:

Credits:
xperiacle

----------------------------------------------


***More will be there soon***

----------------------------------------------

Don't forget to PRESS THANKS :good: BUTTON
 
Last edited: