[HOW-TO]Activation Smart Rotation in JB [LIB/LIH/DLJ4]

Препод

Member
Oct 5, 2011
31
89
0
36
Чита
4pda.ru
Screen display direction adjusts to your angle of sights.
Hi XDA! I decided to write-step how to add a Smart rotation on SGS III. A similar setup is in the SGN II.

Maybe someone will come in handy


We shall start.

How to:

-Decompile SecSettings.apk and go to smali/com/android/settings/DisplaySettings

-Open this smali file with a text editor and look for

Code:
    .line 352
    - invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
    -
    - move-result-object v12
    -
    - iget-object v13, p0, Lcom/android/settings/DisplaySettings;->mSmartRotation:Landroid/preference/CheckBoxPreference;
    -
    - invoke-virtual {v12, v13}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z

And just delete these lines


-Recompile and enjoy

Thanks - Credits:

Author sorg took of his firmware hope he does not mind.

Google translator

For Stock ROM LIB. Download and flash CWM

Smart Rotation Stock ROM LIB (Deodex)
Smart Rotation Stock ROM LIH (Deodex)
Smart Rotation Stock ROM DLJ4 (Deodex)
 

Attachments

Last edited:

czar22

Senior Member
Apr 19, 2011
452
608
133
Screen display direction adjusts to your angle of sights.
Hi XDA! I decided to write-step how to add a Smart rotation on SGS III. A similar setup is in the SGN II.

Maybe someone will come in handy


We shall start.

How to:

-Decompile SecSettings.apk and go to smali/com/android/settings/DisplaySettings

-Open this smali file with a text editor and look for

Code:
    .line 352
    - invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
    -
    - move-result-object v12
    -
    - iget-object v13, p0, Lcom/android/settings/DisplaySettings;->mSmartRotation:Landroid/preference/CheckBoxPreference;
    -
    - invoke-virtual {v12, v13}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z

And just delete these lines


-Recompile and enjoy

Google translator


can you make a CWM zip ?
 

IamIrene

Senior Member
Mar 15, 2011
2,321
818
0
same here, can't even understand

---------- Post added at 10:55 PM ---------- Previous post was at 10:52 PM ----------

get it already
saw the number then type it
after type click the button below the bar to type the code
then you will saw a bar, untick it, then click that link to download