[Sprint  Galaxy Note 4 General] robinhood1808:
Guys, I'm sharing few tips to enable S-Pen features on CM/AOSP based ROMs for Note series devices (works like a charm on Note 4 & Note 3).

The S-Pen feature is sorely missed by the users of Note Series and there are certain apps available on PlayStore which restore the maximum possible functionality on above mentioned ROMs. However, since these apps are not known by many, I've decided to make a thread which can benefit users who want CM/AOSP based ROMs without loosing the S-Pen functionality.

Hence, here are the steps:

1. I've tested this on recently released CM 14.1 ROM by [MENTION=5868929]hsbadr[/MENTION] for Galaxy Note 4 and it works flawlessly. Do checkout his ROM & appreciate his work by thanks and/or a donation.

2. Install following apps from the PlayStore:

a) CM S-Pen

https://play.google.com/store/apps/details?id=com.tushar.cmspen2&hl=en

b) Note Buddy

https://play.google.com/store/apps/details?id=com.tushar.spen_helper&hl=en

c) Screenshot Crop & Share

https://play.google.com/store/apps/details?id=com.flextrick.universalcropper

d) Sketchbook

https://play.google.com/store/apps/details?id=com.adsk.sketchbook&hl=en

e) Scrrenshot Ultimate (Optional as Screenshot Crop & Share is good too)

https://play.google.com/store/apps/details?id=com.icecoldapps.screenshotultimate

3. It is recommended to install SuperSU as well because some apps may not work well with in-built root of the ROM. (I used Emotion AOSP in the past with in-built root and the apps did not work properly but with CM 14.1, apps work fine with in-built root. So, test your options. For some it may work & for some, it may not...)

4. Also, due to SELinux policies, a problem might occur that may hamper apps functionality. So, for that an app called SELinux Policy Changer (not available on PlayStore because of Google's policy, but available on XDA) can be used.

5. Open CM S-Pen AddOn app & tap on "Detection Disabled" to change into "Detection Enabled".

6. Open Note Buddy App & tap on "S Pen" tab. Enable this feature & then tap on "Auto Launch" menu.

Enable it. Tap the button below that says blank+ and choose Application Shade. Give it a name as per your liking. Close out the window & then Pull out the S Pen. Tap on the + symbol in the top right hand corner & tap on applications and add Sketchbook. Tap on shortcuts and add Take Screen shots for screen-write. Also, tap on shortcuts and add Take Screen shots for screen-write.

7. For S-Pen sounds, take a look at the below thread:

http://xdaforums.com/showthread.php?t=2474218

(Since I don't use sounds for S-Pen, I've no experience on how it sounds or work)

8. Open the Screenshot Crop & Share app & enable all the permissions that it needs. For simplicity, you can use "Floating Bubble" feature that places a bubble (similar to FB's Messenger Chat Head) which will let you to take a screen-shot with all the available features with just a click.

9. If you want a pointer for your S Pen then it can be enabled through phone's settings under Language & input. Scroll down to the end of the page & enable "Show icon when using Stylus" for a pointer.

10. Screenshot Ultimate is full of features but it might give some errors to some users or some users might find it bit finicky to use. So, I would suggest to use Screenshot Crop & Share.

For setting up Screenshot Ultimate, open the app. Let SuperSU give it root access. Next, the app will take a minute to set itself up. After it is done, click on Triggers and scroll down to custom shortcut and open custom shortcut settings. Select as follows:

When clicked----------> Take Screen-shot

After screen-shot---------> Edit

Notifications--------->Vibration, sound & toast

Timeout----------> 1 second

Go back to the app's home screen & scroll to settings and open open "General Settings." Change format and quality to your liking. Scroll to timeout and click Disable all timeouts. Close the app.

11. For performing the screen-shot writing:

Pull out the S Pen & once the window opens, click on Take a Screen-shot. After the Screen-shot, a screen titled EDIT options should pop up. Click on Draw. Draw something. Click on settings and save it. Click on view and open it in your gallery. From there you can share it on any app as per your choice.

That's all.

Start using S-Pen features on CM/AOSP based ROMs with ease.

In case of any issues, write in comments section & I'll try to help you out in minimising them.

If everything works, don't hesitate to hit the "Thanks" button. ;)