Mobile instant messaging (IM) apps allow people from everywhere to chat with each other using mobile devices, but chat between different mobile IM apps remains a problem. For example, a user who only uses WhatsApp cannot chat with another user who only uses LINE. In this work, we present CrossChat, a system that enables instant messaging across multiple mobile IM apps. Specifically, CrossChat establishes a gateway on a mobile device to connect users running different IM apps and leverages user interface (UI) techniques to capture and exchange messages across multiple mobile IM apps at run time. A main advantage of CrossChat is that no modification to the original apps' software implementation is required to realize cross-app chat. We present several use cases to show the benefits of CrossChat. Experiments were conducted on mainstream IM apps, which show that CrossChat brings slight run-time overhead and can provide a smooth user experience.
Internet-of-Things (IoT) devices can only afford very small batteries due to the size, weight, power and cost constraints. On the other hand, long battery life is expected for such devices, either for improving user experience or due to charging limitations. Therefore, it is critical to reduce the energy consumption of IoT devices. A good opportunity is to save energy on the system level, by letting the system to sleep occasionally. In this paper, we introduce Image Partitioning and Incremental Loading (IPIL), an operating-system-level sleep mechanism used in Huawei LiteOS to reduce the energy consumption of an IoT device. IPIL powers off both the CPU and the main memory during sleep to save as much energy as possible. Thus, system data have to be reloaded after the system wakes up, which may take a long time and thus reduce real-time responsiveness. To solve this problem, IPIL partitions the system image into clusters and incrementally loads the clusters on-demand, reducing the amount of data loading and time overhead in the wake-up step. Experimental results show that IPIL outperforms two widely adopted sleep approaches in terms of energy consumption. At the same time, IPIL offers satisfactory responsiveness with very short wake-up delay. We also present a case study on smart watch to demonstrate how battery life, as a core value of wearable devices, can be improved with IPIL provided by LiteOS.