No smoking of any kind (cigarettes, vapes, e-cigarettes) anywhere on a commercial aircraft, including the lavatories. This applies for the entire flight, not just takeoff/landing.
Disabling or tampering with a lavatory smoke detector to hide vaping is treated as a serious security violation, not just an etiquette breach, and can result in the flight being diverted.
The ban wasn’t universal overnight: Cuba was the last country to fully ban in-flight smoking in 2014, and China only announced a full ban across its airlines in 2017, giving carriers a two-year window to comply. On any airline flying today, though, the rule is absolute.