[LG Optimus Me P350] venkat kamesh:
Hello guys one more time with new moding

This is for cm7 roms only

Many people had different questions like......!

How to mod xloud and bravia engine ?

Is xloud works on by adding to build.prop with some files ?

How to add check option of xloud and bravia with settings like sony settings have ?

and blob blob blob....... and more questions

I had a small kit / solution / tutorial on how to add the xloud and bravia engine to your settings with 100% working condition

How / what to do ?

don't worry

1. A small thinking brain

2. To run this environment u need to have java jdk installed here u can get them click here

3. Apktools ( click here for the apktools (works only for upgraded versions of cm7 and low graded phones only ) )

3. A rooted android

4. settings.apk and framework-res.apk ( framework-res.apk should be related to same rom where the settings.apk is collected )

5. notepad++ ( click here )

6. Last but not least... follow up my instructions carefully

So let us make our hands dirt with moding

Collect the apktools i given above extract them to any folder you needed

copy the framework-res.apk and settings.apk ( which you are going to mod ) and paste them to the extracted folder of apktools

Now the framework should be added to work as key

click on cmd i given it with tools

and apply this code

apktool if framework-res.apk

Fine now you have to decompile the settings.apk

Apply this code to decompile the apk

apktool d Settings.apk

Now you will get a folder named Settings where it contains decompiled files

From here you should be careful to mod them

Download this scrips which are moded by me with minute changes click here

Extract the scripts folder and copy the files i given.....

Enter into Settings folder ( where the settings apk decompiled folder )->smali->com->android->settings at that location merge / replace with my scripts

Now the second main step need to modify value statements and xml ( settings )

1. First we go for values edit and then to xml

values :--- settings folder ( where decompiled ) -> res -> values.. there open strings.xml file with notepad++

and at the ending / bottom of the string it looks like this

Failure to connect is likely."</string>
<string name="lockfinger_enrollment_failure_default_toast">Enroll Not Successful. failure = %d.</string>
<string name="lockfinger_enrollment_database_full">Enroll Not Successful. Database is full.</string>
<string name="lockfinger_dbadmin_failure_default_toast">Database Administration operation failure: %d.</string>
<string name="lockfinger_ui_timeout_header">UI timeout!</string>
<string name="lockfinger_too_many_bad_swipes_header">Too many bad swipes!</string>
<string name="lockfinger_lockout_countdown_footer">Try again in %d seconds.</string>
</resources>

so here add this lines at the bottom / ending

<string name="xloud_strings_xloud_txt">xLOUD™</string>
<string name="xloud_strings_xloud_desc_txt">Enhance the loudness of speaker</string>

<string name="swiqi_strings_swiqi_txt">Mobile BRAVIA Engine</string>
<string name="swiqi_strings_swiqi_desc_txt">Image quality enhancer for photos and videos</string>

So finally it looks like this

Failure to connect is likely."</string>
<string name="lockfinger_enrollment_failure_default_toast">Enroll Not Successful. failure = %d.</string>
<string name="lockfinger_enrollment_database_full">Enroll Not Successful. Database is full.</string>
<string name="lockfinger_dbadmin_failure_default_toast">Database Administration operation failure: %d.</string>
<string name="lockfinger_ui_timeout_header">UI timeout!</string>
<string name="lockfinger_too_many_bad_swipes_header">Too many bad swipes!</string>
<string name="lockfinger_lockout_countdown_footer">Try again in %d seconds.</string>

<string name="xloud_strings_xloud_txt">xLOUD™</string>
<string name="xloud_strings_xloud_desc_txt">Enhance the loudness of speaker</string>

<string name="swiqi_strings_swiqi_txt">Mobile BRAVIA Engine</string>
<string name="swiqi_strings_swiqi_desc_txt">Image quality enhancer for photos and videos</string>

</resources>

So save them and close it now almost 70 % completed

2. editing xml ( The final thing )

settings folder ( where it was extracted )-> res -> xml.... there open display_settings with notepad++

this is how it looks

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/display_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.android.settings.BrightnessPreference android:title="@string/brightness" android:key="brightness" android:dialogTitle="@string/brightness" />
<CheckBoxPreference android:title="@string/accelerometer_title" android:key="accelerometer" />
<ListPreference android:persistent="false" android:entries="@array/animations_entries" android:title="@string/animations_title" android:key="animations" android:entryValues="@array/animations_values" />
<ListPreference android:persistent="false" android:entries="@array/screen_timeout_entries" android:title="@string/screen_timeout" android:key="screen_timeout" android:summary="@string/screen_timeout_summary" android:entryValues="@array/screen_timeout_values" />
</PreferenceScreen>

and add this code below the xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">

<CheckBoxPreference android:title="@string/swiqi_strings_swiqi_txt" android:key="swiqi_strings_swiqi_txt" android:summary="@string/swiqi_strings_swiqi_desc_txt" />

this is how it looks

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/display_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<CheckBoxPreference android:title="@string/swiqi_strings_swiqi_txt" android:key="swiqi_strings_swiqi_txt" android:summary="@string/swiqi_strings_swiqi_desc_txt" />
<com.android.settings.BrightnessPreference android:title="@string/brightness" android:key="brightness" android:dialogTitle="@string/brightness" />
<CheckBoxPreference android:title="@string/accelerometer_title" android:key="accelerometer" />
<ListPreference android:persistent="false" android:entries="@array/animations_entries" android:title="@string/animations_title" android:key="animations" android:entryValues="@array/animations_values" />
<ListPreference android:persistent="false" android:entries="@array/screen_timeout_entries" android:title="@string/screen_timeout" android:key="screen_timeout" android:summary="@string/screen_timeout_summary" android:entryValues="@array/screen_timeout_values" />
</PreferenceScreen>

and the same should be done with sound_settings ( open it with notepad++ ) at same location of xml folder

copy this code and add this below this line <PreferenceCategory android:title="@string/sound_category_sound_title" />

<CheckBoxPreference android:title="@string/xloud_strings_xloud_txt" android:key="xloud" android:summary="@string/xloud_strings_xloud_desc_txt" android:disableDependentsState="true" />

so it looks like this

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sound_settings" android:key="sound_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory android:title="@string/sound_category_sound_title" />
<CheckBoxPreference android:title="@string/xloud_strings_xloud_txt" android:key="xloud" android:summary="@string/xloud_strings_xloud_desc_txt" android:disableDependentsState="true" />
<CheckBoxPreference android:persistent="false" android:title="@string/silent_mode_title" android:key="silent" android:summary="@string/silent_mode_summary" android:disableDependentsState="true" />
<ListPreference android:entries="@array/vibrate_entries" android:title="@string/vibrate_title" android:key="vibrate" android:summary="@string/vibrate_summary" android:entryValues="@array/vibrate_values" />
<com.android.settings.RingerVolumePreference android:persistent="false" android:title="@string/all_volume_title" android:key="ring_volume" android:summary="@string/ring_volume_summary" android:dialogTitle="@string/all_volume_title" android:streamType="ring" />
<PreferenceCategory android:title="@string/sound_category_calls_title" />
<com.android.settings.DefaultRingtonePreference android:persistent="false" android:title="@string/ringtone_title" android:key="ringtone" android:summary="@string/ringtone_summary" android:dialogTitle="@string/ringtone_title" android:ringtoneType="ringtone" />
<PreferenceCategory android:title="@string/sound_category_notification_title" />
<com.android.settings.DefaultRingtonePreference android:persistent="false" android:title="@string/notification_sound_title" android:key="notification_sound" android:summary="@string/notification_sound_summary" android:dialogTitle="@string/notification_sound_dialog_title" android:ringtoneType="notification" />
<CheckBoxPreference android:persistent="false" android:title="@string/notification_pulse_title" android:key="notification_pulse" android:summary="@string/notification_pulse_summary" />
<CheckBoxPreference android:persistent="false" android:title="@string/notification_blink_title" android:key="notification_blink" android:summary="@string/notification_blink_summary" />
<CheckBoxPreference android:persistent="false" android:title="@string/notification_always_on_title" android:key="notification_always_on" android:summary="@string/notification_always_on_summary" />
<CheckBoxPreference android:persistent="false" android:title="@string/notification_charging_title" android:key="notification_charging" android:summary="@string/notification_charging_summary" />
<PreferenceCategory android:title="@string/sound_category_feedback_title" />
<CheckBoxPreference android:title="@string/dtmf_tone_enable_title" android:key="dtmf_tone" android:defaultValue="true" android:summaryOn="@string/dtmf_tone_enable_summary_on" android:summaryOff="@string/dtmf_tone_enable_summary_off" />
<CheckBoxPreference android:title="@string/sound_effects_enable_title" android:key="sound_effects" android:defaultValue="true" android:summaryOn="@string/sound_effects_enable_summary_on" android:summaryOff="@string/sound_effects_enable_summary_off" />
<CheckBoxPreference android:title="@string/lock_sounds_enable_title" android:key="lock_sounds" android:defaultValue="true" android:summaryOn="@string/lock_sounds_enable_summary_on" android:summaryOff="@string/lock_sounds_enable_summary_off" />
<CheckBoxPreference android:title="@string/power_sounds_enable_title" android:key="power_sounds" android:summary="@string/power_sounds_enable_summary" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/haptic_feedback_enable_title" android:key="haptic_feedback" android:defaultValue="true" android:summaryOn="@string/haptic_feedback_enable_summary_on" android:summaryOff="@string/haptic_feedback_enable_summary_off" />
<ListPreference android:entries="@array/emergency_tone_entries" android:title="@string/emergency_tone_title" android:key="emergency_tone" android:summary="@string/emergency_tone_summary" android:entryValues="@array/emergency_tone_values" />
</PreferenceScreen>

the final thing is that your edits are done and need to compile this

open cmd and apply this code to compile the apk that you moded

apktool b Settings

This should be compiled without any errors ( if you face errors report me i will try to solve it )

Now your edit is finally finished

after finished you will get new folders with in the Settings folder named build open it and open apk folder

open Settings.apk ( before edit ) using winrar or winzip replace the classes.dex, resources.arsc ( from build -> apk folder ) and the same replace xml files of display_settings, sound_settings

now your settings with xloud and bravia is ready to apply

The question is how to apply i can give a very small tut which is not long like this and it is very short

create a folder named system and with in system folder create new folder named app and place your moded app there and download this click here

extract it and place near by system folder... now select the two folder ( meta-inf and system ) and make a zip file... or using root explorer replace the settings.apk and change the permissions ......

now finished yahoo

How these works.... these are having depend files that should be added... if not volume dont work when you increase at settings option ( works perfect when incoming call and song plays )

Download this depend files click here.... copy this to sd card.. reboot into recovery and flash this patch

The final work is too add two line about xloud and bravia with build.prop

using rootexplorer open build.prop and add these lines at the bottom

the lines are

# BRAVIA HACK
ro.service.swiqi.supported=true
persist.service.swiqi.enable=1
# Xloud Engine
ro.semc.sound_effects_enabled=true
ro.semc.xloud.supported=true
persist.service.xloud.enable=1

save them and reboot

Now your work is done as well my work on making tut

Have a joy

Some times force close with dsp and some small issues