The cleavage of ethers by halogen acids occurs by the following mechanism:
Step 1 : Ethers being Lewis bases, undergo protonation to form oxonium salts.
Step 2 : The protonated ether thus formed undergoes nucleophilic attack by the halide ion either by Sn1 or SN2 mechanism . Thus it leads to inversion of configuration.