Removing Java Reflection to get context in device data hook