UNITED NATIONS CONVENTION ON THE LAW OF THE SEA
Article19
Meaning of innocent passage
1. Passage is innocent so long as it is not prejudicial to the peace, good order or security of the coastal State. Such passage shall take place in conformity with this Convention and with other rules of international law.
2. Passage of a foreign ship shall be considered to be prejudicial to the peace, good order or security of the coastal State if in the territorial sea it engages in any of the following activities:
(a) any threat or use of force against the sovereignty, territorial integrity or political independence of the coastal State, or in any other manner in violation of the principles of international law embodied in the Charter of the United Nations;
(b) any exercise or practice with weapons of any kind;
(c) any act aimed at collecting information to the prejudice of the defence or security of the coastal State;
(d) any act of propaganda aimed at affecting the defence or security of the coastal State;
(e) the launching, landing or taking on board of any aircraft;
(f) the launching, landing or taking on board of any military device;
(g) the loading or unloading of any commodity, currency or person contrary to the customs, fiscal, immigration or sanitary laws and regulations of the coastal State;
(h) any act of wilful and serious pollution contrary to this Convention;
(i) any fishing activities;
(j) the carrying out of research or survey activities;
(k) any act aimed at interfering with any systems of communication or any other facilities or installations of the coastal State;
(l) any other activity not having a direct bearing on passage.
===
Before people jump all over the highlighted, Asian countries have known for decades that the PLAN conducted intelligence gathering inside their EEZ.