Abstract:Aiming at the problem of porting the application from Linux to Android, the differences in Linux and Android from the ABI level were analyzed, The key issues of Linux ABI compatibility are proposed and studied, including the system directory structure consistency issue, the program loading and linking issue and other issues. On this basis, a porting method based on ABI compatible technology is implemented, which uses directory structure redirection and program dependency analysis techniques. The proposed method is verified by porting the CUPS program on Linux. The experimental result shows that this method can port complex applications, and compared with the cross compiler based transplantation method is low complexity, high versatility.