[Galaxy Note GT-N7000 Themes and Apps] majdinj:
Another day and another tutorial mod :D.

This time, it will be my pleasure to present to you this guide about how to enable Air View Control Panel and how to port SPen Gesture function from SGN II,,

★ Air View Control Panel with SPen Gesture ★​

​

Needed Tools:

1) Baksmali tool. If you like, you can download my Baksmali Manager from here.

2) Notepad++ for smali editing part from here.

The procedure:

- Baksmali SecSettings.apk

- Navigate to classout\com\android\settings folder and open PenSettingsMenu.smali

- Our targeted codes are found within this method ".method public onCreate(Landroid/os/Bundle;)V"

- In the method ".method public onCreate(Landroid/os/Bundle;)V", locate this section and delete all colored text (don't delete the defined condition.!!):

.line 198
:cond_209

[B][COLOR="Red"] invoke-virtual {p0}, Lcom/android/settings/PenSettingsMenu;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

move-result-object v0

const-string v1, "pen_hover"

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

move-result-object v1

invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR][/B]

.line 199

[B][COLOR="Blue"]invoke-virtual {p0}, Lcom/android/settings/PenSettingsMenu;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

move-result-object v0

iget-object v1, p0, Lcom/android/settings/PenSettingsMenu;->mPenHovering:Landroid/preference/SwitchPreferenceScreen;

invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR][/B]

.line 200

[B][COLOR="Green"]invoke-virtual {p0}, Lcom/android/settings/PenSettingsMenu;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

move-result-object v0

iget-object v1, p0, Lcom/android/settings/PenSettingsMenu;->mPenHoveringSound:Landroid/preference/CheckBoxPreference;

invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR][/B]

.line 206
[B][COLOR="DarkOrange"]invoke-virtual {p0}, Lcom/android/settings/PenSettingsMenu;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

move-result-object v0

const-string v1, "pen_gesture_category"

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

move-result-object v1

invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR][/B]

.line 207
[B][COLOR="Magenta"]invoke-virtual {p0}, Lcom/android/settings/PenSettingsMenu;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

move-result-object v0

const-string v1, "pen_quick_command"

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

move-result-object v1

invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR][/B]

Legend:

Deleting red codes: This will enable Air View header.

Deleting blue codes: This will enable Air View switch with control panel.

Deleting green codes: This will enable Air View haptic feedback.

Deleting orange codes: This will enable Pen gestures header.

Deleting purple codes: This will enable Quick command main action in Pen gestures category.

You can delete or keep ".line xxx" debugging; it is up to you.!!.

- Save changes.. smali SecSettings.apk, push it to your phone and fix permissions to rw-r--r-- (644).

- Push "SPenGesturePad.apk" to your phone and fix permissions to rw-r--r-- (644).

- Reboot the phone into recovery mode and flash SGNII_VODB.zip file.

and viola you made it :o

Resources download:

- SPenGesturePad.apk with drawer visibility (thanks to [MENTION=4503214]not-i[/MENTION]) | Download |.

- Flashable SGNII_VODB.zip file | Download - size: 4.27mb |. (md5 sum: d3d7c56898ec2d430adddb7fd71a8ad7 )

Special thanks to:

[MENTION=4503214]not-i[/MENTION] for his contributing in porting the SPen gestures function, without him I wouldn't acheive the final porting.. BIG THANKS MAN :good:

Note:

- If you want to download extra languages for VODB, please see post #43

For discussing other Air View Control features, please see post #2,,,