In order to make sure all the Java objects are cleaned up, add ScopedLocalFrame in each function that converts native objects to Java. This will make sure any local object will be cleaned up. Test: Builds Bug: 225287201 Change-Id: I4264d3869409597c44bcf897e4ebeae0660f252b