Hmm... can we trim the garbage by just looking for this method (i.e. trim until we find `Task.getCurrentStack()`)?  That seems like it'll be a little more future-proof and will work regardless of whether we're in Android or Java.