Connecting to web.sourceforge.net... The authenticity of host 'web.sourceforge.net (216.34.181.70)' can't be established. RSA key fingerprint is b0:a8:eb:30:ce:1a:0e:6a:4d:7a:6b:3a:0a:c6:27:60. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'web.sourceforge.net,216.34.181.70' (RSA) to the list of known hosts. jsmith@web.sourceforge.net's password: sftp> cd /home/project-web/fooproject/htdocs sftp> put index.html Uploading index.html to /home/project-web/fooproject/htdocs/index.html index.html 100% 241 0.2KB/s 00:01 sftp> exit ------------- target_os ="android" target_cpu ="x86" is_debug = false system_webview_package_name ="com.android.webview" fatal_linker_warnings = false treat_warnings_as_errors=false //防止编译器将warn当作error 从而停止编译结果3 --------------- 一、使用AndroidStudio导入源码 android源码中有这么一个目录development/tools/idegen。顾名思义,是生成ide的project文件,主要是生成intellij的project文件 步骤 1.初始化命令工具 source build/envsetup.sh 2.编译 idegen 模块,生成idegen.jar mmm development/tools/idegen/ 3.生成针对 Android 开发工具的配置文件 sudo ./development/tools/idegen/idegen.sh 4.查看目录,多了2个文件:android.ipr和android.iml。 5.导入到android studio 打开Android studio,点击File > Open,选择刚刚生成的android.ipr 二.修改SetupWizard开机向导程序 1.修改时区:默认北京时区 默认北京时区 /rom-space/build/tools/buildinfo.sh 添加的这行 echo "persist.sys.timezone=Asia/Shanghai" 2.修改默认同意使用位置信息 默认同意使用位置信息,是否开启是在这个位置 /rom-space/frameworks/base/packages/SettingsProvider/res/values/defaults.xml 的这行gps 源码是gps代表的是默认选中,源码的缺省值也是 off,int mCurrentMode = Settings.Secure.LOCATION_MODE_OFF frameworks/base/packages/SettingsProvider/res/values/defaults.xml这个文件是用来存储Android系统的默认设置,而wizard程序的修改会通过 Settings.Secure.putInt(mContentResolver, Settings.Secure.LOCATION_MODE, mode);存放到contentprovider中 3.发送用户信息改为No 修改LineageSettingsActivity 的updateMetricsOption 方法; updateMetricsOption()方法是在onResume中调用的初始化方法 原有逻辑 boolean metricsChecked = !myPageBundle.containsKey(KEY_SEND_METRICS) || myPageBundle .getBoolean(KEY_SEND_METRICS); 改为 boolean metricsChecked =myPageBundle.getBoolean(KEY_SEND_METRICS);