In the past, it was very smooth to import 2.1 source code under eclipse, and there was basically no error. I got the mtk6573 (android2.36) source code today. When importing data in eclipse, I found that android cannot be introduced in many places. OS. logoff error, found in 2.1 source code, in framework /... /The OS directory is logoff. java file, but in android2.36, this file does not exist, but logoff is found under utils. cpp file. The new version may have changed logoff to Navite code. The source code can be correctly compiled in the command line. Therefore, it is no problem to determine the source code. It may be necessary to introduce a jar library, then introduce the compiled Framework jar and solve the problem. The procedure is as follows:
Right-click the project, select "properties", select java build path, select the Libraris page, execute Add Jars, and Add the following jar from the android source code directory:
Out \ target \ common \ obj \ JAVA_LIBRARIES \ framework_intermediates \ classes. jar
Note: The premise of the above operations is that all source code must be compiled in linux first, otherwise the above jar file cannot be found.
From heart _