A 25-year-old Baldivis man has been charged after allegedly throwing rocks at a police dog and his handler.
Police were called to a disturbance at an apartment block on Mounts Bay Road in Perth around 12.45am on Thursday.
It's alleged the man had smashed several car windows that were parked in the area before fleeing on foot.
The man ran up Jacobs Ladder before jumping into bushland and running back towards Mount Street.
Police Dog Razor was deployed to find the man, later locating his scent in an elevated garden bed about two metres above him.
The man allegedly sat up from the garden bed and PD Razor started barking.
He then threw a large rock at the dog team, narrowly missing PD Razor and his handler.
The man allegedly continued to throw rocks in their direction and they had to take evasive action to avoid serious injury.
Another officer was able to reach the man and he was taken into custody.
A 25-year-old man from Baldivis appeared before the Perth Magistrates Court on Thursday.
He's been charged with three counts of criminal damage, one count of assaulting a public officer and one count of failing to comply with a request to give police personal details.

Pop-up ice skating rink glides back into Mandurah for winter school holidays
Federal opposition leader Angus Taylor sits down with local business owners in Mandurah
Police search for missing man last seen leaving Rockingham Hospital
West Aussies urged to be on high alert after surge in winter house fires
New $3.4 million boardwalk to be constructed at Lake Clifton thrombolites
City of Mandurah rolls out new tactile bin lids, accessibility stickers to support residents with low vision
Driver dies in hospital after Australind crash
Welfare concerns for woman with dementia last seen in Cooloongup
Charges laid over fatal West Coolup crash
