[Galaxy S III Android Development] DSA:
Hi guys,

I created a same thread a while ago for the SII - here These same mods can be applied to the SIII Samsung ICS & JellyBean ROMS

To enable these mods you need:

apktool 1.5.2 or the latest APK Manager

smali/baksmali

Knowledge of decompiling/recompiling

knowledge of how to read logcats

framework-res.apk

services.jar

SecSettings.apk

SecSettingsProvider.apk

framework-res.apk

Navigate to: /res/values/bools.xml

On Screen Nav Buttons (GNexus Style):

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

Change to:

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

4 Way Rotation:

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

Change to:

[CENTER]<bool name="config_allowAllRotations">[COLOR="red"]true[/COLOR]</bool>[/CENTER]

Lock Screen Rotation:

[CENTER]<bool name="config_enableLockScreenRotation">[COLOR="red"]false[/COLOR]</bool>[/CENTER]

Change to:

[CENTER]<bool name="config_enableLockScreenRotation">[COLOR="red"]true[/COLOR]</bool>[/CENTER]

and

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

change to

[CENTER]<bool name="lockscreen_isPortrait">[COLOR="red"]false[/COLOR]</bool>[/CENTER]

Disable Keyboard Switch In StatusBar When Typing

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

Change to:

[CENTER]<bool name="show_ongoing_ime_switcher">[COLOR="red"]false[/COLOR]</bool>[/CENTER]

Unplugging From USB doesn't Turn Screen On

[CENTER]<bool name="config_unplugTurnsOnScreen">[COLOR="red"]true[/COLOR]</bool>[/CENTER]

Change to:

[CENTER]<bool name="config_unplugTurnsOnScreen">[COLOR="red"]false[/COLOR]</bool>[/CENTER]

To remove 'Unlock lockscreen with menu key' For AOSP Lockscreen:

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

Change to:

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

To remove Help Overlay for Touchwiz Lockscreen:

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

Change to:

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

To permanently disable Multi Windows:

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

Change to:

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

Brightness Values:

res/values/arrays

Change the following values (Taken from mattiadj's brightness fix thread - thanks)

<integer-array name="config_autoBrightnessLevels">
<item>0</item>
<item>1</item>
<item>20</item>
<item>150</item>
<item>400</item>
<item>800</item>
<item>1500</item>
<item>3000</item>
<item>6000</item>
<item>9000</item>
<item>15000</item>
</integer-array>
<integer-array name="config_autoBrightnessHysteresisLevels">
<item>0</item>
<item>2</item>
<item>50</item>
<item>110</item>
<item>320</item>
<item>900</item>
<item>2000</item>
<item>6000</item>
<item>8000</item>
<item>10000</item>
<item>12000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>30</item>
<item>30</item>
<item>50</item>
<item>60</item>
<item>80</item>
<item>100</item>
<item>120</item>
<item>150</item>
<item>190</item>
<item>210</item>
<item>230</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>255</item>
<item>200</item>
<item>100</item>
<item>0</item>
<item>0</item>
</integer-array>
<integer-array name="config_autoBrightnessKeyboardBacklightValues ">
<item>255</item>
<item>200</item>
<item>100</item>
<item>0</item>
<item>0</item>
</integer-array>

SecSettingsProvider.apk

To enable installation of non market (3rd party) apps by default:

Navigate to: /res/values/bools.xml

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

Change to:

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

To disable the lockscreen completely:

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

Change to:

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

To enable Wifi from boot:

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

Change to:

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

SecSettings.apk

To enable Device Status Info "Normal" Instead Of "Modified":

Navigate to: smali/com/android/settings/deviceinfo/Status.smali

Search for:

.method private changeSysScopeStatus()V

Change entire method to:

.method private changeSysScopeStatus()V
.locals 2

const-string v0, "sysscope_status"

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

move-result-object v0

const v1, [COLOR="deepskyblue"]0x7f090128 #sysscope_normal[/COLOR]

invoke-virtual {p0, v1}, Lcom/android/settings/deviceinfo/Status;->getString(I)Ljava/lang/String;

move-result-object v1

invoke-virtual {v0, v1}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

return-void
.end method

Now navigate to /res/values/public

Search for "sysscope_normal" (Without quotes) - take the 0x7 number associated with it and paste it over the number in the above code with #sysscope_normal at the side of it (the one given isn't correct for your phone)

services.jar

To disable signature checks on system apps:

Navigate to: /smali/com/android/server/pm/PackageManagerService.smali

Search for

.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I

Change entire method to:

.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.locals 7

const-string p0, "DSA:"

const-string p1, "Skip signatures check"

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

const/4 v6, 0x0

return v6
.end method

I'll be adding more mods to this over the coming weeks

Please no more requests for ICS/Stock animations, thats not what this thread is for

Update 26/05/13

framework-res.apk:

Added mod for disabling help overlay on Touchwiz lockscreen

Added brightness fix values

Added mod to disable MultiWindow

SecSettingsProvider.apk:

- Enable Wifi from boot

- Install non market apps by default

- To disable the lockscreen completely

SecSettings.apk:

- To enable Device Status Info "Normal" Instead Of "Modified"

Services.jar:

- To disable signature checks on system apps

Update 24/01/13

Added mod for AOSP Lockscreen menu key disable

Reuploaded APK Manager folder for users (Includes apktool 1.5.1 and latest relevant aapt)​

Thanks:

jovy23

Wanam

Mattiadj
​