Android Native app findElement searches element from root


I faced with problem that find element from element can find not only childs.

There are several widgets with the same structure and the same id’s in child elements that can be or not. I want to get parent that have specific child element. But somehow findelement also searches in parent siblings:

parent = driver.findElementById(appPackage + “parentelementid”);
child = parent.findElementById(appPackage + “childelementid”);