Exxon Mobil said Thursday that net income rose 49 percent in the second quarter as it made $7.5 billion from selling company assets.

Those sales masked an otherwise tough quarter for America’s largest oil company. Exxon produced less oil and natural gas from April to June, and it sold both at lower prices. Excluding asset sales, company profit fell by 21.5 percent to $8.4 billion. That’s Exxon’s smallest profit since the third quarter of 2010.