Samsung Electronics on Tuesday unveiled a foldable smartphone shaped like a large makeup compact, its second try at a novel technology that the South Korean cell phone maker hopes will set it apart from rivals Apple and Huawei.