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.
How to Enable Camera Shutter Sound Menu
How to Disable the Backup Assitant Popup in Contacts
Enable (Almost) Unlimited Contact Linking
Enable (Almost) Unlimited Contact Name Length
How to Enable the Exit an Terminate Options in Browser
How to Enable Almost Unlimited Tabs in Browser
How to Enable Full Page Looping in launcher
How to Hide an App from the App Drawer
How to Enable Full 4 Way (360) Device Rotation
How to make your Rom/Phone Multilanguage
How to disable Signature Check
How to disable Unplug from USB Turns on Screen
Permantly Disable Help Text on Lockscreen
Change Low Battery Values
Add a Custom Help Text to the Lockscreen
Hit Thanks if you like these Guides!
Credits/Thanks
DSA
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:
Change false to true
Done!
Find this line:
Code:
<CscFeature_Camera_ShutterSoundMenu>false</CscFeature_Camera_ShutterSoundMenu>
Done!
How to Disable the Backup Assitant Popup in Contacts
Navigate to system/csc/feature.xml
Find this line under <!-- Contacts -->:
Change True to false
Done!
Find this line under <!-- Contacts -->:
Code:
<CscFeature_Contact_EnableBackupAssistance>true</CscFeature_Contact_EnableBackupAssistance>
Done!
Enable (Almost) Unlimited Contact Linking
Navigate to system/csc/feature.xml
Find or add this line under <!-- Contacts -->:
Change 10 value to whatever you want (like 100000 or whatever) that value is the number of linkable contacts
Done!
Find or add this line under <!-- Contacts -->:
Code:
<CscFeature_Contact_SetLinkCountMaxAs>10</CscFeature_Contact_SetLinkCountMaxAs>
Done!
Enable (Almost) Unlimited Contact Name Length
Navigate to system/csc/feature.xml
Find or add this line under <!-- Contacts -->:
Change 1 value to whatever you want (like 100000 or whatever) that value is the max name length
Done!
Find or add this line under <!-- Contacts -->:
Code:
<CscFeature_Contact_LimitNameLength>1</CscFeature_Contact_LimitNameLength>
Done!
How to Enable the Exit an Terminate Options in Browser
Navigate to system/csc/feature.xml
Add these lines to the <!-- WEB --> Section:
Done!
Add these lines to the <!-- WEB --> Section:
Code:
<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:
Done!
Add this line to the <!-- WEB --> Section:
Code:
<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 :
Change True to false
Done!
Find this line :
Code:
<CscFeature_Launcher_DisablePageRotation>true</CscFeature_Launcher_DisablePageRotation>
Done!
How to Hide an App from the App Drawer
Decompile your apk you want to hide
Navigate to AndroidManifest.xml
Find this line:
Change to:
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!
Navigate to AndroidManifest.xml
Find this line:
Code:
<category android:name="android.intent.category.LAUNCHER" />
Code:
<category android:name="android.intent.category.GADGET" />
How to Enable Full 4 Way (360) Device Rotation
Decompile framework-res.apk with apktool
Navigate to res/values/bools.xml
Find:
Change To:
Code:
Save, Compile and You're done
Navigate to res/values/bools.xml
Find:
Code:
<bool name="config_allowAllRotations">false</bool>
Code:
Code:
<bool name="config_allowAllRotations">true</bool>
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
And you're done
Add in the lines so your file looks like this:
Navigae to system/csc/language.xml
Code:
<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>
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:
Replace the whole method with this:
Save, Recompile and You're done!
Decompile Services.jar with smali/baksmali
Navigate to: /smali/com/android/server/pm/PackageManagerService.smali
Search For:
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
Code:
.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
How to disable Unplug from USB Turns on Screen
Decompile framework-res.apk
Navigate to res/values/bools.xml
Find
Change to:
Save, Recompile and you're done
Navigate to res/values/bools.xml
Find
Code:
<bool name="config_unplugTurnsOnScreen">true</bool>
Code:
<bool name="config_unplugTurnsOnScreen">false</bool>
Permantly Disable Help Text on Lockscreen
Decompile framework-res.apk
Navigate to res/values/bools.xml
Find
Change to:
Save, Recompile and you're done
Navigate to res/values/bools.xml
Find
Code:
<bool name="config_isHelpOverlayEnabled">true</bool>
Code:
<bool name="config_isHelpOverlayEnabled">false</bool>
Change Low Battery Values
Decompile framework-res.apk
Navigate to res/values/integers.xml
Find:
Change To:
You can change these to whatever you want but this is what i have.
Save, Recompile and you're done
Navigate to res/values/integers.xml
Find:
Code:
<integer name="config_criticalBatteryWarningLevel">5</integer>
<integer name="config_lowBatteryWarningLevel">15</integer>
<integer name="config_lowBatteryCloseWarningLevel">20</integer>
Code:
<integer name="config_criticalBatteryWarningLevel">1</integer>
<integer name="config_lowBatteryWarningLevel">5</integer>
<integer name="config_lowBatteryCloseWarningLevel">10</integer>
Save, Recompile and you're done
Add a Custom Help Text to the Lockscreen
Navigate to res/values/strings.xml
Find:
Change To:
You can change this text to have it say whatever you want on the lockscreen
Save, Recompile and you're done
Find:
Code:
<string name="lockscreen_unlock_guide_text">Swipe Screen to Unlock.</string>
Code:
<string name="lockscreen_unlock_guide_text">HYPERDRIVE</string>
Save, Recompile and you're done
Hit Thanks if you like these Guides!
Credits/Thanks
DSA
Last edited: