[Galaxy Note GT-N7000 Android Development] omigosh:
For those who know what they're doing!

Okay, I'm not sure if this fits in the thread but here goes..

Recently, after flashing ICS i realised that I needed my vibration intensity to be lesser because it makes hell of a noise when it vibrates on my desk, especially when people floods your whatsapp :mad: So I tried to find a way to import the vibration intensity settings from the touchwiz roms.

I baksmali-ed the Settings.apk from Alba and traced the vibration intensity settings to the following files (all of these files in Alba's Settings.apk):

VibrationFeedbackPreference.smali (in settings\smali\com\android\settings\ folder) as the source code

preference_dialog_vibrationfeedback.xml (\settings\res\layout\ folder)

Several things that required to be ported over were:

The vibrationfeedbackpreference part in soundsettings.xml (\settings\res\xml folder)

vibration values in id.xml and string.xml (\settings\res\values folder)

The link attached are the files that I have successfully ported into the Stunner's Settings.apk. I tried and solved several problems using logcat to trace the root of the problem. However, I am stumped on the latest problem, using logcat to trace, the problem was in SeekBarDialogPreference.smali, line 60, if I got it correctly (Try running Settings.apk's vibration intensity while tracing through logcat)

SeekBarDialogPreference.smali is found in framework.jar, inside \android\preference\ folder. Any attempts by me to smali a modified framework.jar would result in bootloop when the phone is restarted. Is there a way to modify the Stunner's source code to implement this? I compared the SeekBarDialogPreference.smali from both Stunner 5.0 and Alba's framework, and there seem to be a slight difference in the values between both files. I am not sure if tweaking these values would result in it being usable.

Any developer with experience is able to help with this or carry on the work? I am not telling any devs to implement this, but rather, is there a viable way to implement vibration intensity into the ROMs with these info, not just Stunner but also AOSP/CM9? Or is what I have done so far just a wild goose chase/dead end? Hope to hear everyone's opinion! :)

Modified Settings.apk with Vibration Intensity Menu (BUT NOT FUNCTIONING!)

Link to the baksmali-ed and modified Stunner 5.0's Settings.apk: http://www.box.com/s/99ead646e3f6273e1926

Inside this link you will find a StunnerSettings.apk in the dist folder, you have to push it into /system/apps/ as Settings.apk. There is 1 thing i observed also, my modified Settings.apk seem to be abit laggier. All settings work except for Vibration Intensity which results in FC when you try to access that portion. DISCLAIMER: PLEASE BACKUP YOUR ORIGINAL SETTINGS.APK BEFORE YOU DO ANTHING.

Lastly, there is 2 versions of preference_dialog_vibrationfeedback,

preference_dialog_vibrationfeedback.xml

preference_dialog_vibrationfeedback2.xml

preference_dialog_vibrationfeedback2.smali is from the alba Settings.apk without any modifications, while preference_dialog_vibrationfeedback.xml is modified to be inserted into 5.0's settings.apk

OMG I think i forgot to change the permissions for framework.jar which might have resulted in the bootloops. But i'm still not sure if it would work even after doing so. Gonna go off to sleep now though.