A South Korean court has ruled that tech giants Apple and Samsung both infringed each other's patents on mobile devices.…