Samsung Galaxy S6 Lite Tablet Pen: Palm Rejection in Android
Not sure if they have any software incorporated that can do the palm detection.
However, you can use an hand glove (buy one or make a DIY from an old sock) to prevent your palm to be detected as input.
Hope that this can help you somehow.