Advanced detection of rooting