Apple and ATT face a widening global gray market for the iPhone, with companies in China and Eastern Europe offering technology to open the device to almost any service provider and others selling iPhones in places where Apple is not yet marketing the device.