[Verizon Samsung Galaxy S 4] sbreen94:
Hey Galaxy S4 Community! Thought I would post some How-To guides on some features found in my roms and how to enable some features in your rom or on your phone.These would probably benefit rom developers the most, but hopefully they will help everyone to learn a bit! These mods are written for the Galaxy s4 on Android 4.2.2 but most will probably work on other Samsung Galaxy Devices as Samsungs has pretty similar software.

For these Mods you will need basic knowledge about the following tools and skills, i won't go over the processes.

notepad++

apktool

smali/baksmali

How to Enable Camera Shutter Sound Menu

Navigate to system/csc/feature.xml

Find this line:

<CscFeature_Camera_ShutterSoundMenu>false</CscFeature_Camera_ShutterSoundMenu>

Change false to true

Done!

How to Disable the Backup Assitant Popup in Contacts

Navigate to system/csc/feature.xml

Find this line under <!-- Contacts -->:

<CscFeature_Contact_EnableBackupAssistance>true</CscFeature_Contact_EnableBackupAssistance>

Change True to false

Done!

Enable (Almost) Unlimited Contact Linking

Navigate to system/csc/feature.xml

Find or add this line under <!-- Contacts -->:

<CscFeature_Contact_SetLinkCountMaxAs>10</CscFeature_Contact_SetLinkCountMaxAs>

Change 10 value to whatever you want (like 100000 or whatever) that value is the number of linkable contacts

Done!

Enable (Almost) Unlimited Contact Name Length

Navigate to system/csc/feature.xml

Find or add this line under <!-- Contacts -->:

<CscFeature_Contact_LimitNameLength>1</CscFeature_Contact_LimitNameLength>

Change 1 value to whatever you want (like 100000 or whatever) that value is the max name length

Done!

How to Enable the Exit an Terminate Options in Browser

Navigate to system/csc/feature.xml

Add these lines to the <!-- WEB --> Section:

<CscFeature_Web_AddOptionToTerminate>true</CscFeature_Web_AddOptionToTerminate>
<CscFeature_Web_EnablePromptToExit>true</CscFeature_Web_EnablePromptToExit>

Done!

How to Enable Almost Unlimited Tabs in Browser

Navigate to system/csc/feature.xml

Add this line to the <!-- WEB --> Section:

<CscFeature_Web_EnableMaxTabs>10000</CscFeature_Web_EnableMaxTabs>

Done!

How to Enable Full Page Looping in launcher

Navigate to system/csc/feature.xml

Find this line :

<CscFeature_Launcher_DisablePageRotation>true</CscFeature_Launcher_DisablePageRotation>

Change True to false

Done!

How to Hide an App from the App Drawer

Decompile your apk you want to hide

Navigate to AndroidManifest.xml

Find this line:

<category android:name="android.intent.category.LAUNCHER" />

Change to:

<category android:name="android.intent.category.GADGET" />

Now recompile your app, and you have to do one other thing. Whenever editing the AndroidManifest you must resign your app or it will force close. You can use a program like APK-Multi Tool to do this if you want!

How to Enable Full 4 Way (360) Device Rotation

Decompile framework-res.apk with apktool

Navigate to res/values/bools.xml

Find:

<bool name="config_allowAllRotations">false</bool>

Change To:

Code:

<bool name="config_allowAllRotations">true</bool>

Save, Compile and You're done

How to make your Rom/Phone Multilanguage

This will enabled about 20-30 extra languages to choose from in settings

Add in the lines so your file looks like this:

Navigae to system/csc/language.xml

<SamsungMobileLanguage>
<Country>USA</Country>
<CountryISO>en</CountryISO>
<SalesCode>VZW</SalesCode>
<LanguageSet>
<Display>
en_US;en_GB;en_AU;en_IE;en_NZ;en_ZA;ko_KR;de_AT;de_DE;de_CH;fr_FR;fr_CH;
bg_BG;cs_CZ;da_DK;el_GR;es_ES;et_EE;fi_FI;ga_IE;hr_HR;hu_HU;is_IS;it_IT;
lt_LT;lv_LV;mk_MK;nb_NO;nl_NL;nl_BE;pl_PL;pt_PT;ro_RO;sr_RS;sv_SE;tr_TR;
ca_ES;eu_ES;gl_ES;kk_KZ;ru_RU; sk_SK; sl_SI; uk_UA;
az_AZ;hy_AM; ka_GE;
ja_JP;en_PH;in_ID;ms_MY;th_TH;vi_VN;
es_US;pt_BR;
en_CA;fr_CA;zh_CN;
</Display>
<Input>
<SupportList>
en_US;en_GB;az;ca;cs;da;de;et;es;eu;el;fr;gl;ka;hr;it;is;kk;lv;lt;hu;nb;nl;pl;pt;ru;ro;fi;sr;sk;sl;sv;tr;uk;ko;hy;bg;ja;in;ms;th;vi;zh_CN;
</SupportList>
<EnableList>
</EnableList>
</Input>
</LanguageSet>
</SamsungMobileLanguage>

And you're done

How to disable Signature Check

This will disable Signature checking on System Apps

Decompile Services.jar with smali/baksmali

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

Search For:

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

Replace the whole method with this:

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

const-string p0, "SBreen:"

const-string p1, "Skip signature check"

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

const/4 v6, 0x0

return v6
.end method

Save, Recompile and You're done!

How to disable Unplug from USB Turns on Screen

Decompile framework-res.apk

Navigate to res/values/bools.xml

Find

<bool name="config_unplugTurnsOnScreen">true</bool>

Change to:

<bool name="config_unplugTurnsOnScreen">false</bool>

Save, Recompile and you're done

Permantly Disable Help Text on Lockscreen

Decompile framework-res.apk

Navigate to res/values/bools.xml

Find

<bool name="config_isHelpOverlayEnabled">true</bool>

Change to:

<bool name="config_isHelpOverlayEnabled">false</bool>

Save, Recompile and you're done

Change Low Battery Values

Decompile framework-res.apk

Navigate to res/values/integers.xml

Find:

<integer name="config_criticalBatteryWarningLevel">5</integer>
<integer name="config_lowBatteryWarningLevel">15</integer>
<integer name="config_lowBatteryCloseWarningLevel">20</integer>

Change To:

<integer name="config_criticalBatteryWarningLevel">1</integer>
<integer name="config_lowBatteryWarningLevel">5</integer>
<integer name="config_lowBatteryCloseWarningLevel">10</integer>

You can change these to whatever you want but this is what i have.

Save, Recompile and you're done

Add a Custom Help Text to the Lockscreen

Navigate to res/values/strings.xml

Find:

<string name="lockscreen_unlock_guide_text">Swipe Screen to Unlock.</string>

Change To:

<string name="lockscreen_unlock_guide_text">HYPERDRIVE</string>

You can change this text to have it say whatever you want on the lockscreen

Save, Recompile and you're done

Hit Thanks if you like these Guides!

Credits/Thanks

DSA