Just a personal anecdote for those of you who are curious about the safety of taking pills on a plane.
I just had a flight can -> us -> mexico and had 0 issues whatsoever taking 20x xanax bars and 20x mdma capsules. They are not looking for drugs in the xray machines, they are looking for anything that is a threat to the flight, I simply put the xanax in a generic prescription bottle (no labels) and the mdma capsules in an advil bottle. My only worry was really sniffer dogs but as I was only travelling can -> usa and didnt take the pills back from mexico -> usa on my return flight I didn't expect to encounter any problems and I didn't. Although upon my return to the usa from mexico there was a dog sniffing everyone at the baggage claim which did sketch me out.
I doubt that dog was even trained for MDMA or Xanax, more likely coke / H / weed.
Hope this helps
[deleted]