Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,145 Members 42,012 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][MOD][How to Enable Horizontal Calibration In Stock JB]

Tip us?
 
AmniX
Old
#1  
AmniX's Avatar
Senior Member - OP
Thanks Meter 2632
Posts: 325
Join Date: Jul 2012
Location: India

 
DONATE TO ME
Tutorial [GUIDE][MOD][How to Enable Horizontal Calibration In Stock JB]

As in ICS We Have An Option to Calibrate accelerometer In settings.
But..
In JB..??
No..!!
In JB this Feature is missing.
but After some digging in Secsettings.apk i am able to Find This
As i belive in Sharing is Caring Then I am Sharing The Method to Enable This Feature.
Soo.. Here We Goo..


Requirements:-
1. ApkTool And knowledge to use It
2. Stock JB
3. Basics Knowledge of Copy/Paste

1. First Decompile SecSettings.apk
2. When Done, Go to res/xml/ And Look For a File Called motion_sensitivity_settings.xml
3. When You Will Open This File. You Will Find These Lines

Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sensitivity_settings_title" android:key="parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <Preference android:persistent="false" android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" android:fragment="com.android.settings.motion.GlanceViewSettings" />
    <PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
    </PreferenceScreen>
    <PreferenceCategory android:persistent="false" android:title="@string/sensitivity_settings_title" android:key="category_sensitivity_setting" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/tilt_title" android:key="tilt_sensitivity" android:summary="@string/tilt_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list_sensitivity" android:summary="@string/tilt_to_scroll_list_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/pan_title" android:key="pan_sensitivity" android:summary="@string/pan_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image_sensitivity" android:summary="@string/pan_to_browse_image_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
</PreferenceScreen>
4.Replace All lines as given bleow:-

Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sensitivity_settings_title" android:key="parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <Preference android:persistent="false" android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" android:fragment="com.android.settings.motion.GlanceViewSettings" />
    <PreferenceScreen android:title="@string/a_sensor_title" android:key="a_sensor" android:summary="@string/a_sensor_summary">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ASensorSettings" />
    </PreferenceScreen>
    <PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
    </PreferenceScreen>
    <PreferenceCategory android:persistent="false" android:title="@string/sensitivity_settings_title" android:key="category_sensitivity_setting" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/tilt_title" android:key="tilt_sensitivity" android:summary="@string/tilt_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list_sensitivity" android:summary="@string/tilt_to_scroll_list_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/pan_title" android:key="pan_sensitivity" android:summary="@string/pan_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image_sensitivity" android:summary="@string/pan_to_browse_image_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
</PreferenceScreen>
And Then Save it.

6.Now Decompile File And Push to Your Phone.
When You Will Do the All Things you Will Found this Settings in Settings/motion/Sensitivity Settings/<here> As Given in Screenshot:-


Its DONE.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2013-04-11-20-19-09_note2013-04-14_17-19-30.jpg
Views:	4652
Size:	24.8 KB
ID:	1919708  
↓"Did you like my work?"↓

And Press "thanks" button too!
---------------------------------------------------
► All of my work on xda is here ◄
--------------------------------------------------


The Following 15 Users Say Thank You to AmniX For This Useful Post: [ Click to Expand ]
 
harrold11237
Old
#2  
Member
Thanks Meter 23
Posts: 97
Join Date: Dec 2012
Works Great AmniX!

Y'All Should try it. Finally Real Racing 3 Is accurate!!
 
Noble.med
Old
#3  
Member
Thanks Meter 2
Posts: 42
Join Date: May 2009
Thank you very much....You are the Man
 
zviki
Old
#4  
zviki's Avatar
Senior Member
Thanks Meter 199
Posts: 1,236
Join Date: Dec 2008
Location: Maribor

 
DONATE TO ME
Hm.So gyroscope calibration isn't the same? A lot of things was lost from GB & ICS...

...from SG NOTE N7000 with Tapatalk 2
 
alvinhaw
Old
#5  
Senior Member
Thanks Meter 53
Posts: 253
Join Date: Oct 2012
Quote:
Originally Posted by zviki View Post
Hm.So gyroscope calibration isn't the same? A lot of things was lost from GB & ICS...

...from SG NOTE N7000 with Tapatalk 2
gyroscope calibration*is still in jelly bean it located at display last section !
so i don't think i need extra gyroscope calibration*:p
but anyway thanks to Amnix for the update..
 
nokiamodeln91
Old
#6  
nokiamodeln91's Avatar
Senior Member
Thanks Meter 2628
Posts: 7,015
Join Date: Jun 2012
it used to be there but for JB its in motion>sensitivity settings
 
shsleo
Old
#7  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Nov 2010
Location: São Paulo
Wink Help

Hi, I'm trying to deconpiled de SecSettings.apk but appers lots of erros and not all the files are decompressed, can u post the stock file with only this bug corretion. I would apreciated that.

Sorry the english.

Thanks in advance
 
pheakpeplay
Old
#8  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jun 2014
Smile Horizontal calibration request on galaxy s2 jelly bean

hi what programe's name you usE to decompile
 
mirash khan
Old
#9  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Jun 2014
Phone note 2

Quote:
Originally Posted by AmniX View Post
As in ICS We Have An Option to Calibrate accelerometer In settings.
But..
In JB..??
No..!!
In JB this Feature is missing.
but After some digging in Secsettings.apk i am able to Find This
As i belive in Sharing is Caring Then I am Sharing The Method to Enable This Feature.
Soo.. Here We Goo..


Requirements:-
1. ApkTool And knowledge to use It
2. Stock JB
3. Basics Knowledge of Copy/Paste

1. First Decompile SecSettings.apk
2. When Done, Go to res/xml/ And Look For a File Called motion_sensitivity_settings.xml
3. When You Will Open This File. You Will Find These Lines

Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sensitivity_settings_title" android:key="parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <Preference android:persistent="false" android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" android:fragment="com.android.settings.motion.GlanceViewSettings" />
    <PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
    </PreferenceScreen>
    <PreferenceCategory android:persistent="false" android:title="@string/sensitivity_settings_title" android:key="category_sensitivity_setting" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/tilt_title" android:key="tilt_sensitivity" android:summary="@string/tilt_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list_sensitivity" android:summary="@string/tilt_to_scroll_list_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/pan_title" android:key="pan_sensitivity" android:summary="@string/pan_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image_sensitivity" android:summary="@string/pan_to_browse_image_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
</PreferenceScreen>
4.Replace All lines as given bleow:-

Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sensitivity_settings_title" android:key="parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <Preference android:persistent="false" android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" android:fragment="com.android.settings.motion.GlanceViewSettings" />
    <PreferenceScreen android:title="@string/a_sensor_title" android:key="a_sensor" android:summary="@string/a_sensor_summary">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ASensorSettings" />
    </PreferenceScreen>
    <PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
    </PreferenceScreen>
    <PreferenceCategory android:persistent="false" android:title="@string/sensitivity_settings_title" android:key="category_sensitivity_setting" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/tilt_title" android:key="tilt_sensitivity" android:summary="@string/tilt_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list_sensitivity" android:summary="@string/tilt_to_scroll_list_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/pan_title" android:key="pan_sensitivity" android:summary="@string/pan_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
    <com.android.settings.motion.SensitivityPreference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image_sensitivity" android:summary="@string/pan_to_browse_image_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
</PreferenceScreen>
And Then Save it.

6.Now Decompile File And Push to Your Phone.
When You Will Do the All Things you Will Found this Settings in Settings/motion/Sensitivity Settings/<here> As Given in Screenshot:-


Its DONE.
is this method is same for note 2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes