If there is a copy, JNI_ABORT does NOT copy back into the corresponding java array. Changing this to 0 is what you want since this will copy the data back if needed and free the temporary storage. Bug: 16858794 Change-Id: I3f3b426ea3cbba577bb720532c16ebf7493f1c1c