Foxconn, which assembles iPhones for Apple, is also looking to assemble and make more components for other companies, including Google’s Pixel smartphones.