MediaTek Inc. shares are tracking toward their best quarter on record. Investors are betting on a strategic pivot toward AI chips to offset declines in the company's legacy hardware business. This shift positions the firm as a direct competitor to Qualcomm. Success depends on securing high-end smartphone contracts for on-device generative AI.