aosp.py: avoid infinite recursion calling