The drills came after Taiwan’s president, Lai Ching-te, announced measures to counter China’s influence and espionage.