I need to read a resource of a 3rd party app using its resource id(which is known to me).
I am referencing to this link:
How to read window content (using accessibilityService) and evoking UI using draw over other app permission in Android?(link is external) in order to achieve this functionality.

Problem: AccessibilityNodeInfo object source created using event.getSource() is null.

I would want to create an object of AccessibilityNodeInfo given that I know the Source class.