[Sony Cross-Device General] Rajeev:
Friends

Here I Am Presenting You Some Basic Tutorials For Different System Based Apps. You Can Mod Different Apks With This Simple Basic Tutorials... Please Note That This Tutorials Will Only Work in A Deodexed ROMS... U Should Know How To Decompile apks and Recompile Then Sign.. U Can Check In Different Foorums For That Tutorials If U Don't Know About That..

Lets Begin ...

(a) Enable Call Recording

De Compile SemcPhone.apk

Go To res/values/bools.xml

Find This Line

[*]<bool name="enable_call_recording">false</bool>

And Change It To This

[*]<bool name="enable_call_recording">true</bool>

Save And Re Compile Apk Then Use It.

(b) Disable Data Charge Warning Pop UP

De Compile SemcPhone.apk

Go To res/values/bools.xml

Find This Line

[*]<bool name="disable_charge_popups">false</bool>

And Change It To This

[*]<bool name="disable_charge_popups">true</bool>

Save And Re Compile Apk Then Use It.

(c) Disable Data Disabled / Enabled Notifications

De Compile SemcPhone.apk

Go To res/values/bools.xml

Find This Line

[*]<bool name="data_connection_except_mms_show_icon_when_disabled">true</bool>

And Change It To This

[*]<bool name="data_connection_except_mms_show_icon_when_disabled">false</bool>

Save And Re Compile Apk Then Use It.

(d) Enable Speaker Voice Enhancement

De Compile SemcPhone.apk

Go To res/values/bools.xml

Find This Line

[*]<bool name="enable_speaker_voice_enhancement">false</bool>

And Change It To This

[*]<bool name="enable_speaker_voice_enhancement">true</bool>

Save And Re Compile Apk Then Use It.

(e) Enable 2G Only Mod

De Compile SemcPhone.apk

Go To res/values/bools.xml

Find This Line

[*]<bool name="prefer_2g_visibility">false</bool>

And Change It To This

[*]<bool name="prefer_2g_visibility">true</bool>

Save And Re Compile Apk Then Use It.

(f) Enable Call Ended Screen

De Compile SemcPhone.apk

Go To res/values/bools.xml

Find This Line

[*]<bool name="enable_call_ended_screen">false</bool>

And Change It To This

[*]<bool name="enable_call_ended_screen">true</bool>

Save And Re Compile Apk Then Use It.

(g) Enable Auto Rety Call

De Compile SemcPhone.apk

Go To res/values/bools.xml

Find This Line

[*]<bool name="auto_retry_enabled">false</bool>

And Change It To This

[*]<bool name="auto_retry_enabled">true</bool>

Save And Re Compile Apk Then Use It.

(h) Disable Reject Call With Message Option

De Compile SemcPhone.apk

Go To res/layout/somc_incallscreen_reject_msgs_drawer.xml

Find These Lines

<ImageView android:id="@id/handleArrow" android:paddingTop="@dimen/somc_incallscreen_reject_msgs_drawer_handle_paddingTop" android:paddingBottom="@dimen/somc_incallscreen_reject_msgs_drawer_handle_paddingBottom" android:layout_width=[COLOR="Red"]"fill_parent"[/COLOR] android:layout_height=[COLOR="Red"]"wrap_content"[/COLOR] android:src="@drawable/ic_reject_call_grips" />

<TextView android:textSize=[COLOR="Red"]"@dimen/somc_incallscreen_reject_msgs_drawer_handle_text_size"[/COLOR] android:id="@id/handleText" android:layout_width=[COLOR="Red"]"fill_parent"[/COLOR] android:layout_height=[COLOR="Red"]"wrap_content"[/COLOR] android:text="@string/phone_strings_ans_mach_response_options_tab_txt" android:fontFamily="sans-serif-light" android:textAlignment="center" />

<View android:background="@drawable/list_divider_horizontal" android:layout_width=[COLOR="Red"]"fill_parent"[/COLOR] android:layout_height=[COLOR="Red"]"@dimen/somc_incallscreen_reject_msgs_drawer_list_divider_height"[/COLOR] android:layout_marginStart="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_left" android:layout_marginEnd="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_right" />

<ListView android:layout_gravity="center_horizontal" android:id="@id/rejectMsgList" android:layout_width=[COLOR="Red"]"fill_parent"[/COLOR] android:layout_height=[COLOR="Red"]"wrap_content"[/COLOR] android:listSelector="@android:color/transparent" android:divider="@drawable/list_divider_horizontal" android:dividerHeight="@dimen/somc_incallscreen_reject_msgs_drawer_list_divider_height" android:footerDividersEnabled="false" android:layout_marginStart="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_left" android:layout_marginEnd="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_right" />

And Change It To This

<ImageView android:id="@id/handleArrow" android:paddingTop="@dimen/somc_incallscreen_reject_msgs_drawer_handle_paddingTop" android:paddingBottom="@dimen/somc_incallscreen_reject_msgs_drawer_handle_paddingBottom" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:src="@drawable/ic_reject_call_grips" />

<TextView android:textSize=[COLOR="Red"]"0.0dip"[/COLOR] android:id="@id/handleText" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:text="@string/phone_strings_ans_mach_response_options_tab_txt" android:fontFamily="sans-serif-light" android:textAlignment="center" />

<View android:background="@drawable/list_divider_horizontal" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_marginStart="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_left" android:layout_marginEnd="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_right" />

<ListView android:layout_gravity="center_horizontal" android:id="@id/rejectMsgList" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:listSelector="@android:color/transparent" android:divider="@drawable/list_divider_horizontal" android:dividerHeight="@dimen/somc_incallscreen_reject_msgs_drawer_list_divider_height" android:footerDividersEnabled="false" android:layout_marginStart="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_left" android:layout_marginEnd="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_right" />

Save And Exit From Text Editor

Go To res/layout/somc_incallscreen_reject_msgs_list_item.xml

Find This Line

<TextView android:textSize="@dimen/reject_with_message_list_item_text_size" android:ellipsize="end" android:gravity="center_vertical" android:layout_gravity="center_vertical" android:id="@id/text" android:paddingLeft="@dimen/somc_incallscreen_reject_msgs_drawer_list_paddingLeft" android:layout_width=[COLOR="Red"]"fill_parent"[/COLOR] android:layout_height=[COLOR="Red"]"@dimen/somc_incallscreen_reject_msgs_drawer_list_height"[/COLOR] android:maxLines="2" android:scrollHorizontally="true" android:drawablePadding="@dimen/somc_incallscreen_reject_msgs_drawer_list_drawablePadding" android:fontFamily="sans-serif-light"

And Change It To This

<TextView android:textSize="@dimen/reject_with_message_list_item_text_size" android:ellipsize="end" android:gravity="center_vertical" android:layout_gravity="center_vertical" android:id="@id/text" android:paddingLeft="@dimen/somc_incallscreen_reject_msgs_drawer_list_paddingLeft" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:maxLines="2" android:scrollHorizontally="true" android:drawablePadding="@dimen/somc_incallscreen_reject_msgs_drawer_list_drawablePadding" android:fontFamily="sans-serif-light"

Save And Re Compile Apk Then Use It.

(a) Enable OLD TV CRT Screen On Off Effect ( For Android 4.3 + )

De Compile framework-res.apk

Go To res/values/bools.xml

Find This Line

<bool name="config_animateScreenLights">[COLOR="Red"]true[/COLOR]</ bool>

And Change It To This

<bool name="config_animateScreenLights">[COLOR="Red"]false[/COLOR]</ bool>

Re Compile And Use.

If The Above Method Does Not Work Means

De Compile Services.jar

Go To smali\com\android\Server\power\DisplayPowerController.smali

Look For This Line

.field private static final ELECTRON_BEAM_OFF_ANIMATION_DURATION_MILLIS:I = [COLOR="Red"]0x64[/COLOR]

And Change 0x64 To 0x190

Then Look For This Line

const-wide/16 v1, [COLOR="red"]0x64[/COLOR]

And Change 0x64 To 0x190

Done. Save And Recompile Then Use

Note : Value 0x190 Is Just For An Example You Can Use Ur Own. The Biggest Will Be Smooth ( But Slower ). I Recommends Value 0x260. Try It And See The Difference .

(b) Reducing Navigation Bar Height and Width

De Compile framework-res.apk

Go To res/values/dimens.xml

Search For This Line

<dimen name="navigation_bar_height">[COLOR="red"]48.0dip[/COLOR]</dimen>
<dimen name="navigation_bar_height_landscape">[COLOR="red"]48.0di[/COLOR]p</dimen>
<dimen name="navigation_bar_width">[COLOR="red"]48.0dip[/COLOR]</dimen>

Change It As Per Ur Needds..

Here First Two Lines Indicates Height Of The Navigation Bar. Third Line Indicates The Width. Its Means The Width When U Watching Movies or Playing Games. U Can Use Any Number.

My Suggestion For A Better Look

36

36

28

Done. Re Compile And Use

(a) Making Big Photos In Infinite View

FOR XHDPI Screens

De Compile Phonebook.apk

Got To res/layout/contact_detail_static_header_container.xml

Look For This Line

<QuickContactBadge android:id="@id/photo" android:duplicateParentState="true" android:layout_width="0.0px" android:layout_height="0.0px" android:src="@null" android:scaleType="centerCrop" android:maxWidth="[COLOR="Red"]200.0dip[/COLOR]" android:maxHeight="[COLOR="Red"]200.0dip[/COLOR]" android:soundEffectsEnabled="false" android:contentDescription="@string/spb_accessibility_edit_contact_photo_txt" android:layout_marginEnd="@dimen/detail_header_padding" style="?android:attr/quickContactBadgeStyleWindowLarge" />

Replace With This Line

<QuickContactBadge android:id="@id/photo" android:duplicateParentState="true" android:layout_width="0.0px" android:layout_height="0.0px" android:src="@null" android:scaleType="centerCrop" android:maxWidth="[COLOR="Red"]270.0dip[/COLOR]" android:maxHeight="[COLOR="Red"]480.0dip[/COLOR]" android:soundEffectsEnabled="false" android:contentDescription="@string/spb_accessibility_edit_contact_photo_txt" android:layout_marginEnd="@dimen/detail_header_padding" style="?android:attr/quickContactBadgeStyleWindowLarge" />

Done. Save And Exit From Editor

Go To Phonebook\smali\com\android\contacts\Detail\ContactPhotoHeaderLayout.smali

Look For This Line

iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

Then Add One Line Above That Line. Exactly Like This

[COLOR="Red"]const v7, 0x1f4[/COLOR]
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

Then Look For This Line

iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

Then Add One Line Above That Line. Exactly Like This

[COLOR="Red"]const v7, 0x378[/COLOR]
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

Done. Save And Exit From The Editor

Go To Phonebook/res/layout/item_photo_editor.xml

Search For This Line

<FrameLayout android:background="@drawable/spb_addphoto_box" android:layout_width="[COLOR="Red"]@dimen/raw_contact_edit_photo_picture_siz[/COLOR]e" android:layout_height="[COLOR="red"]@dimen/raw_contact_edit_photo_picture_size"[/COLOR]>
<include layout="@layout/photo_editor_view_default_image" />
<ImageView android:id="@id/photo" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]fill_parent[/COLOR]" android:scaleType="centerCrop" />

Then Change It To This

<FrameLayout android:background="@drawable/spb_addphoto_box" android:layout_width="[COLOR="red"]110.0dip[/COLOR]" android:layout_height=[COLOR="red"]"183.0dip"[/COLOR]>
<include layout="@layout/photo_editor_view_default_image" />
<ImageView android:id="@id/photo" android:layout_width="[COLOR="red"]96.0dip[/COLOR]" android:layout_height="[COLOR="red"]170.0dip[/COLOR]" android:scaleType="centerCrop" />

Done. Save And Recompile The Use.

FOR XXHDPI Screens

De Compile Phonebook.apk

Got To res/layout/contact_detail_static_header_container.xml

Look For This Line

<QuickContactBadge android:id="@id/photo" android:duplicateParentState="true" android:layout_width="0.0px" android:layout_height="0.0px" android:src="@null" android:scaleType="centerCrop" android:maxWidth="[COLOR="Red"]200.0dip[/COLOR]" android:maxHeight="[COLOR="Red"]200.0dip[/COLOR]" android:soundEffectsEnabled="false" android:contentDescription="@string/spb_accessibility_edit_contact_photo_txt" android:layout_marginEnd="@dimen/detail_header_padding" style="?android:attr/quickContactBadgeStyleWindowLarge" />

Replace With This Line

<QuickContactBadge android:id="@id/photo" android:duplicateParentState="true" android:layout_width="0.0px" android:layout_height="0.0px" android:src="@null" android:scaleType="centerCrop" android:maxWidth="[COLOR="Red"]410.0dip[/COLOR]" android:maxHeight="[COLOR="Red"]729.0dip[/COLOR]" android:soundEffectsEnabled="false" android:contentDescription="@string/spb_accessibility_edit_contact_photo_txt" android:layout_marginEnd="@dimen/detail_header_padding" style="?android:attr/quickContactBadgeStyleWindowLarge" />

Done. Save And Exit From Editor

Go To Phonebook\smali\com\android\contacts\Detail\ContactPhotoHeaderLayout.smali

Look For This Line

iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

Then Add One Line Above That Line. Exactly Like This

[COLOR="Red"]const v7, 0x1f4[/COLOR]
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

Then Look For This Line

iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

Then Add One Line Above That Line. Exactly Like This

[COLOR="Red"]const v7, 0x378[/COLOR]
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

Done. Save And Exit From The Editor

Go To Phonebook/res/layout/item_photo_editor.xml

Search For This Line

<FrameLayout android:background="@drawable/spb_addphoto_box" android:layout_width="[COLOR="Red"]@dimen/raw_contact_edit_photo_picture_siz[/COLOR]e" android:layout_height="[COLOR="red"]@dimen/raw_contact_edit_photo_picture_size"[/COLOR]>
<include layout="@layout/photo_editor_view_default_image" />
<ImageView android:id="@id/photo" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]fill_parent[/COLOR]" android:scaleType="centerCrop" />

Then Change It To This

<FrameLayout android:background="@drawable/spb_addphoto_box" android:layout_width="[COLOR="red"]113.0dip[/COLOR]" android:layout_height=[COLOR="red"]"186.0dip"[/COLOR]>
<include layout="@layout/photo_editor_view_default_image" />
<ImageView android:id="@id/photo" android:layout_width="[COLOR="red"]96.0dip[/COLOR]" android:layout_height="[COLOR="red"]171.0dip[/COLOR]" android:scaleType="centerCrop" />

Done. Save And Recompile The Use.

Here Is A Sample Screenshots. U Can See The Difference In Before and After Pictures. Click Me !

(a) Add Flash Light In Status Bar ( For 4.1 and 4.3 Only )

De Compile SystemUI.apk

Go To res/values/ids.xml

Add This Line

<item type="id" name="ButtonFlashLight">false</item>

Save and Exit

Open "AndroidManifest".xml and Add This Line

<uses-permission android:name="android.permission.CAMERA"/>

Save and Exit

Go To res/layout and Open "status_bar_expanded_header".xml

Add This Line

<com.android.systemui.buttons.ButtonFlashLight android:id="@id/ButtonFlashLight" android:background="@drawable/button_flash_light" android:layout_width="41.0dip" android:layout_height="52.0dip" android:textOn="" android:textOff="" android:paddingEnd="6.0dip" />

For Example It Should Be Like This : -

<Button android:id="@id/clear_all_button" android:layout_width="90.0dip" android:layout_height="wrap_content" android:text="@string/status_bar_clear_all_button" android:contentDescription="@string/accessibility_clear_all" android:paddingStart="0.0dip" android:paddingEnd="2.0dip" android:layout_alignParentEnd="true" style="@style/ClearAllButtonStyle" />
[COLOR="Red"]<com.android.systemui.buttons.ButtonFlashLight android:id="@id/ButtonFlashLight" android:background="@drawable/button_flash_light" android:layout_width="41.0dip" android:layout_height="52.0dip" android:textOn="" android:textOff="" android:paddingEnd="6.0dip" />
[/COLOR]

Save and Exit

Then Download This File And Paste In res/drawable Folder

Then Download This Pngs And Paste In res/drawable-xhdpi Folder ( Or HDPI )

Done. Re Compile and Use It..

Here Is One Sample Screenshot For Ur Reference . Click Me !