- 浏览: 497829 次
- 性别:
- 来自: 杭州
最新评论
-
coolstar1204:
请教一个问题,使用测试项目测试Activity时,因为应用一般 ...
Android的Testing和Instrumentation -
haotainan:
android:sharedUserId="andr ...
Android中startActivity中的permission检测与UID机制 -
yelinsen05:
fengyuxing168 写道yelinsen05 写道fe ...
Android RIL的java框架 -
fengyuxing168:
yelinsen05 写道fengyuxing168 写道 很 ...
Android RIL的java框架 -
yelinsen05:
fengyuxing168 写道 很酷哈~~~什么?
Android RIL的java框架
前几个星期Jimmy跟我说正带的一个项目客户是阿拉伯人!要求有阿拉伯的语言支持!指定的机型是nexus s!很困扰的是亚洲版一般都吧这一语言屏蔽了!让我想办法刷一个有阿拉伯语言支持的!前几天一直尝试自己编一个img直接刷上去!但刚好我手上的源码版本是没有阿拉伯语言设置的支持的!
当然2.3版本的源码都有DroidSansArabic.ttf这也就是说阿拉伯语言的支持都是可以的!我下了一个阿拉伯输入法果然可以保存阿拉伯文字!只是为什么设置里没有呢!跟踪代码发现
/home/deanye/Android/gingerbread0711nexus/packages/apps/Settings/src/com/android/LocalePicker.java中的
String[] locales = getAssets().getLocales();
这个localer中就没获得到ar的字符(阿拉伯语言的国际 Arabic, Egypt (ar_EG) 阿拉伯语(埃及) Arabic, Israel (ar_IL) 阿拉伯语(以色列))
这里可以对比一下手机上的数组是
模拟器上有阿拉伯语言设置它的数组是
追了下代码觉得挺麻烦的于是想下一个网上现成的!
带刷机没有自己编译源码的来的方便!
自己编译的话刷机方法如下:
下了网上的话以我下的cyanogenmod提供的为例:
首先选择自己的机型:http://www.cyanogenmod.com/devices
然后选择一个比较新的版本下载: 我选的nexus s标准版http://download.cyanogenmod.com/?type=stable&device=crespo
下面开始刷机我就直接贴官方的介绍了不翻译了:
Before you do anything — Make a backup
Don't forget to back up your data. If you have synced the device with a Google account, then the contacts, calendar, Gmail, & select other Google-related data will not be lost and will come back after the next sync. However, you should backup anything you want to keep that is not stored on the SD card:
SMS/MMS messages,
Call Log,
Bookmarks,
Applications; use Titanium Backup or the Astro File Manager, for example,
Any application data not on the SD card.
It would also be a good idea to backup everything stored on the SD card in the rare case the SD card must be formatted to resolve any major problems.
MyBackup Root, SMS Backup & Restore, and Call Backup & Restore are all free applications that can assist with backing up your data.
Unlocking the Bootloader
Warning: Unlocking the Nexus S's bootloader will void the warranty.
If the Bootloader on the Nexus S has already been unlocked, you may skip this section.
1.You will need fastboot on the computer to unlock the bootloader on the Nexus S. Follow the Android SDK guide, to get the fastboot on the computer.
2.Power the Nexus S down, and hold Volume Up & the Power button until booted into the bootloader. You should see a white screen with three skating androids.
3.Connect the Nexus S to the computer via USB.
4.On the computer, open terminal and run:
5.On the Nexus S, a prompt will open up asking you if you are sure you want to unlock the bootloader and again warning you that doing so will void your warranty. If you agree to these terms, press Volume Up to select Yes, and then press the Power button to confirm.
NOTE: Unlocking the bootloader wipes the device.
6.The Nexus S will reboot.
Installing the ClockworkMod Recovery Image
If you have already flashed a custom recovery image, skip this section.
1.Download the latest version of the ClockworkMod Recovery:
ClockworkMod Recovery 4.0.0.2: Download
2.Place the ClockworkMod Recovery Image in the same folder as fastboot (the /tools folder with the Android SDK folder).
3.Power the Nexus S down, and hold Volume Up & the Power button until booted into the bootloader. You should see a white screen with three skating androids.
4.Connect the Nexus S to the computer via USB.
5.On the computer, open terminal and run:
The ClockworkMod Recovery should now be installed on the Nexus S.
Flashing CyanogenMod
NOTE: In order to flash CyanogenMod via ROM Manager, root access is required. Attaining root access is outside the scope of this wiki page
Method via Recovery
1.Download the latest version of CyanogenMod.
Optional: Download the Google Apps for the device.
2.Place the CyanogenMod update.zip file on the root of the SD card.
Optional: Place the Google Apps .zip on the root of the SD card also.
3.Boot into the ClockworkMod Recovery.
4.Once the device boots into the ClockworkMod Recovery, use the side volume buttons to move around, and either the power button or the trackball to select.
Optional: Select backup and restore to create a backup of current installation on the Nexus S.
5.Select the option to Wipe data/factory reset.
6.Then select the option to Wipe cache partition.
7.Select Install zip from sdcard.
8.Select Choose zip from sdcard.
9.Select the CyanogenMod update.zip.
Optional: Install the Google Apps by performing steps 7 - 9 again and choosing the Google Apps update.zip.
10.Once the installation has finished, select +++++Go Back+++++ to get back to the main menu, and select the Reboot system now option. The Nexus S should now boot into CyanogenMod.
Method via ROM Manager
1.Launch RomManager.
Optional: Choose the first option in the app, Flash ClockworkMod Recovery to update to the latest version.
2.Select the Download ROM option from the main menu in the ROM Manager.
3.Select the CyanogenMod option, and then choose the latest version of CyanogenMod from the menu.
Optional: When you select the latest version of CyanogenMod, check the Google Apps* option.
4.Once the ROM is finished downloading, it asks if you would like to Backup Existing ROM and Wipe Data and Cache.
5.If Superuser prompts for root permissions check to Remember and then Allow.
6.The Nexus S will now reboot into the recovery, wipe data and cache, and then install CyanogenMod. When it's finished installing it will reboot into CyanogenMod.
刷机成功后:
阿拉伯语言设置:
当然2.3版本的源码都有DroidSansArabic.ttf这也就是说阿拉伯语言的支持都是可以的!我下了一个阿拉伯输入法果然可以保存阿拉伯文字!只是为什么设置里没有呢!跟踪代码发现
/home/deanye/Android/gingerbread0711nexus/packages/apps/Settings/src/com/android/LocalePicker.java中的
String[] locales = getAssets().getLocales();
这个localer中就没获得到ar的字符(阿拉伯语言的国际 Arabic, Egypt (ar_EG) 阿拉伯语(埃及) Arabic, Israel (ar_IL) 阿拉伯语(以色列))
这里可以对比一下手机上的数组是
[, bg, bg_BG, ca, ca_ES, cs, cs_CZ, da, da_DK, de, de_DE, el, el_GR, en, en_GB, en_US, es, es_ES, es_US, fi, fi_FI, fr, fr_FR, hr, hr_HR, hu, hu_HU, in, in_ID, it, it_IT, iw, iw_IL, ja, ja_JP, ko, ko_KR, lt, lt_LT, lv, lv_LV, nb, nb_NO, nl, nl_NL, pl, pl_PL, pt, pt_BR, pt_PT, rm, rm_CH, ro, ro_RO, ru, ru_RU, sk, sk_SK, sl, sl_SI, sr, sr_RS, sv, sv_SE, tl, tl_PH, tr, tr_TR, uk, uk_UA, vi, vi_VN, zh, zh_CN, zh_TW]
模拟器上有阿拉伯语言设置它的数组是
[, da, ja, nb, de, el, nl, pl, ko, fr, tr, cs, es, it, pt, ru, sv, en_CA, uk_UA, en_ZA, en_GB, id_ID, en_IE, bg_BG, ar_EG, en_SG, th_TH, fi_FI, sl_SI, sk_SK, zh_CN, hi_IN, en_IN, vi_VN, ro_RO, hr_HR, ca_ES, sr_RS, en_US, es_US, lt_LT, pt_PT, en_AU, hu_HU, lv_LV, zh_TW, en_NZ, fr_CA, nl_BE, fr_BE, de_DE, sv_SE, de_CH, fr_CH, it_CH, tl_PH, de_LI, da_DK, he_IL, ar_IL, nl_NL, pl_PL, nb_NO, ja_JP, pt_BR, fr_FR, el_GR, ko_KR, tr_TR, es_ES, de_AT, it_IT, ru_RU, cs_CZ, en, th, fi, ar, hu, id, he, zh, sk, uk, ro, hr, sr]
追了下代码觉得挺麻烦的于是想下一个网上现成的!
带刷机没有自己编译源码的来的方便!
自己编译的话刷机方法如下:
(1) how to build source code: http://source.android.com/source/initializing.html http://source.android.com/source/building.html (2) how to setup nexus 1. use up key+power key into setpup module on nexus 2. cd (nexus source code dir) 3. cd out/target/product/crespo/ 4. ../../../host/linux-x86/bin/fastboot flash boot boot.img 5. ../../../host/linux-x86/bin/fastboot flash system system.img 6. ../../../host/linux-x86/bin/fastboot reboot
下了网上的话以我下的cyanogenmod提供的为例:
首先选择自己的机型:http://www.cyanogenmod.com/devices
然后选择一个比较新的版本下载: 我选的nexus s标准版http://download.cyanogenmod.com/?type=stable&device=crespo
下面开始刷机我就直接贴官方的介绍了不翻译了:
Before you do anything — Make a backup
Don't forget to back up your data. If you have synced the device with a Google account, then the contacts, calendar, Gmail, & select other Google-related data will not be lost and will come back after the next sync. However, you should backup anything you want to keep that is not stored on the SD card:
SMS/MMS messages,
Call Log,
Bookmarks,
Applications; use Titanium Backup or the Astro File Manager, for example,
Any application data not on the SD card.
It would also be a good idea to backup everything stored on the SD card in the rare case the SD card must be formatted to resolve any major problems.
MyBackup Root, SMS Backup & Restore, and Call Backup & Restore are all free applications that can assist with backing up your data.
Unlocking the Bootloader
Warning: Unlocking the Nexus S's bootloader will void the warranty.
If the Bootloader on the Nexus S has already been unlocked, you may skip this section.
1.You will need fastboot on the computer to unlock the bootloader on the Nexus S. Follow the Android SDK guide, to get the fastboot on the computer.
2.Power the Nexus S down, and hold Volume Up & the Power button until booted into the bootloader. You should see a white screen with three skating androids.
3.Connect the Nexus S to the computer via USB.
4.On the computer, open terminal and run:
fastboot oem unlock
5.On the Nexus S, a prompt will open up asking you if you are sure you want to unlock the bootloader and again warning you that doing so will void your warranty. If you agree to these terms, press Volume Up to select Yes, and then press the Power button to confirm.
NOTE: Unlocking the bootloader wipes the device.
6.The Nexus S will reboot.
Installing the ClockworkMod Recovery Image
If you have already flashed a custom recovery image, skip this section.
1.Download the latest version of the ClockworkMod Recovery:
ClockworkMod Recovery 4.0.0.2: Download
2.Place the ClockworkMod Recovery Image in the same folder as fastboot (the /tools folder with the Android SDK folder).
3.Power the Nexus S down, and hold Volume Up & the Power button until booted into the bootloader. You should see a white screen with three skating androids.
4.Connect the Nexus S to the computer via USB.
5.On the computer, open terminal and run:
fastboot flash recovery recovery-clockwork-4.0.0.2-crespo.img
The ClockworkMod Recovery should now be installed on the Nexus S.
Flashing CyanogenMod
NOTE: In order to flash CyanogenMod via ROM Manager, root access is required. Attaining root access is outside the scope of this wiki page
Method via Recovery
1.Download the latest version of CyanogenMod.
Optional: Download the Google Apps for the device.
2.Place the CyanogenMod update.zip file on the root of the SD card.
Optional: Place the Google Apps .zip on the root of the SD card also.
3.Boot into the ClockworkMod Recovery.
4.Once the device boots into the ClockworkMod Recovery, use the side volume buttons to move around, and either the power button or the trackball to select.
Optional: Select backup and restore to create a backup of current installation on the Nexus S.
5.Select the option to Wipe data/factory reset.
6.Then select the option to Wipe cache partition.
7.Select Install zip from sdcard.
8.Select Choose zip from sdcard.
9.Select the CyanogenMod update.zip.
Optional: Install the Google Apps by performing steps 7 - 9 again and choosing the Google Apps update.zip.
10.Once the installation has finished, select +++++Go Back+++++ to get back to the main menu, and select the Reboot system now option. The Nexus S should now boot into CyanogenMod.
Method via ROM Manager
1.Launch RomManager.
Optional: Choose the first option in the app, Flash ClockworkMod Recovery to update to the latest version.
2.Select the Download ROM option from the main menu in the ROM Manager.
3.Select the CyanogenMod option, and then choose the latest version of CyanogenMod from the menu.
Optional: When you select the latest version of CyanogenMod, check the Google Apps* option.
4.Once the ROM is finished downloading, it asks if you would like to Backup Existing ROM and Wipe Data and Cache.
5.If Superuser prompts for root permissions check to Remember and then Allow.
6.The Nexus S will now reboot into the recovery, wipe data and cache, and then install CyanogenMod. When it's finished installing it will reboot into CyanogenMod.
刷机成功后:
阿拉伯语言设置:
- recovery-clockwork-4.0.0.2-crespo.img.zip (3.9 MB)
- 下载次数: 0
发表评论
-
在MAC上查找和设置$JAVA_HOME
2015-09-30 16:25 0最近升级了MAC OS,装了JDK7 for mac,在这里下 ... -
IntelliJ IDEA 设置
2015-01-09 11:46 0基本设置 http://www.ituring.com.c ... -
Subversion 与版本控制
2015-01-08 20:51 0装个apache HowTos/Subversion - Ce ... -
git 补充
2015-01-07 15:31 0经过一段时间的使用,大家已经可以很好的使用git了,为了提高大 ... -
Android 小型框架集合
2014-12-11 19:58 0PagerSlidingTabStrip http://blo ... -
Gitolite授权详解
2014-12-11 19:23 0前文我们提到,在gitolit ... -
xxx is not in the sudoers file.This incident will be reported.的解决方法
2014-12-11 19:22 01.切换到root用户下,怎么切换就不用说了吧,不会的自己百度 ... -
ssh: connect to host localhost port 22: Connection refused 问题
2014-12-11 19:21 0http://www.xuebuyuan.com/733655 ... -
Gitolite 配置git库
2014-12-08 21:32 0Gitolite安装: 技术文档: http://gitoli ... -
phabricator
2014-11-27 16:33 0https://secure.phabricator.com/ ... -
Robbyrussell/oh-my-zsh
2014-11-18 11:09 0https://github.com/robbyrussell ... -
TextView超过n行显示…
2014-09-11 16:29 0public static void truncate(fin ... -
Android targetSdkVersion 17 @JavascriptInterface
2014-08-01 11:04 0targetSdkVersion 是设置希望的SDK版本,如果 ... -
部分源码地址
2014-05-27 14:16 0https://github.com/Trinea/andro ... -
FrameLayou和布局优化
2014-05-26 14:48 0FrameLayout 先来看官方文档的定义:Fra ... -
android开发之——混淆编译
2014-05-12 14:13 0众所周知,android的apk文件是非常容易被反编译的,这样 ... -
高效地显示图片
2013-11-27 17:47 01由于如下这些原因,在Android程序中加载图片需要非常谨慎 ... -
多屏支持概述
2013-11-25 21:43 0屏幕尺⼨ : 实际的物理 ... -
Mac OS X下用Eclipse浏览和编译Android源代码
2013-07-31 20:46 0为了能够同时开发iPhone应用程序和Android应用程序, ... -
android自定义布局中的平滑移动
2013-01-11 10:38 0在android应用程序的开发过程中,相信我们很多人都想把应用 ...
相关推荐
- `Assistant Dean`:副院长 - `Academic Dean`:教务长 - `Department Chairman`:系主任 - `Professor`:教授 - `Associate Professor`:副教授 - `Guest Professor`:客座教授 - `Lecturer`:讲师 - `...
【新版大学英语听写教程1的词汇】涵盖了广泛的语言学习元素,旨在帮助学生提升英语能力。这个教程由上海外国教育出版社出版,不仅包含了泛读教程1的单词解释,还涉及了文章中的专业词汇和glossary(词汇表)中的内容...
**Android学习笔记之NFC近距离无线通讯技术** NFC(Near Field Communication)是一种短距离的高频无线通信技术,允许电子设备之间进行非接触式点对点数据交换。在Android系统中,NFC功能广泛应用于移动支付、数据...
3. **She's Working on a Story about a Soccer Star** - 记者正在撰写一篇关于足球明星的文章。 - 这可能是一篇专题报道,用于宣传或者深入探讨运动员的职业生涯。 - 关键词:撰写(work on)、故事(story)、足球...
【标题】"AA-Proyecto1-Backtracking-Murder:Proyecto 1 del ...通过完成这个项目,学生不仅能够掌握回溯算法的基本原理和实现,还能提升问题解决能力,学习如何将抽象概念转化为实际代码,以及如何调试和优化算法。
The-Dean-Site: My unofficial site. Copyright (C) 2020 Dean Summer This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published...
这个是Google Brain大牛Jeff dean讲课视频的ppt,讲述了目前google目前在人工智能方面的研究和进展。视频地址 https://www.youtube.com/watch?v=HcStlHGpjN8&feature=youtu.be
此教材名为《Enterprise DBA Part 1A: Architecture and Administration Volume 2》,是Oracle公司为培训其企业级数据库管理员(DBA)而出版的专业教材之一。它涵盖了Oracle数据库架构与管理的基础知识,旨在帮助...
渐进式Web应用程序-Dean Hume的书 该存储库包含Dean Hume写的《渐进式Web应用程序》一书的源代码。 渐进式Web应用程序将带您逐步学习真实的示例,并教您如何构建快速,引人入胜且可靠的网站。 您将首先了解渐进式...
Dean-Project-Sorter 该项目可以在 Eclipse 或 JGrasp 中运行。 要启动程序,请运行 runner 包中的 Runner 类,然后输入 Preferences csv 文件和 Topic List csv 文件的文件路径。 迪恩小姐是伊瑟阔高中的英语老师。...
它支持多种处理器架构,包括但不限于 x86、ARM、MIPS 和 SPARC,这使得它成为跨平台开发的首选工具之一。 #### 版本历史与贡献者 版本 2.11.90 的 GNU AS 汇编器,其开发得到了澳大利亚 Nice Computer 公司的支持...
- 职务:President(校长)、Dean(院长)、Lecturer(讲师)、Coordinator(管理员)。 2. **交通运输**: - 交通方式:Plane(飞机)、Train(火车)、Bus(公共汽车)、Bike(自行车)、Walk(步行)、Taxi...
【描述】"BH-迪恩图" 提到了一个特定的概念或工具,"迪恩图" 可能是指 Dean 图,这是一种图形表示法,常用于表示和解决运动或物理过程中的问题。在运动测试中,Dean 图可能被用来可视化运动员的动作或运动轨迹,以...
Dean,S。Sridharan,R。Vogt,M。Mason(2010)“用于评估语音活动检测算法的QUT-NOISE-TIMIT语料库”,在Interspeech会议论文集,2010年,幕张国际展览中心,幕张,日本,网址为。 该docs/Dean2010, The QUT-NOISE...
- **状态格式**:使用 `-s` 参数可以使输出更简洁,便于快速查看;`--ignored` 参数则可以查看那些被 `.gitignore` 文件忽略的文件。 #### 十、Git 存储 (Stash) **命令示例:** - `git stash`:保存当前的工作...
计算机网络技术是现代...可以通过阅读专业书籍(如曹耀钦等人编著的《计算机网络技术及应用》或Tamara Dean的《计算机网络实用教程》),参与在线学习平台(如程序员大本营)和网络技术社区,不断提升自己的专业技能。
JavaScript压缩包 简单JavaScript编译器,可使用Google编译器最小化JavaScript,然后使用Dean Edward's Packer对其进行打包 在以下位置测试该工具: :
Code With Comments Tinyhttpd 介绍:tinyhttpd 是一个不到 500 行的...介绍:Jeff Dean 和 Sanjay Ghemawat 两位超级大神实现的高效 kv 数据库。 源码分析: 以上是我觉得分析得最好的两篇。不过随着 leveldb 项目的
12. **study lounge** - 自习室:为学生提供安静学习环境的空间,有时配有舒适的座椅和沙发。 13. **periodical** - 期刊:定期出版的学术或非学术出版物,如杂志或年报。 14. **librarian** - 图书管理员:负责图书...
3. 软件设计原则:遵循SOLID原则,即单一职责原则、开闭原则、里氏替换原则、接口隔离原则和依赖倒置原则,可能是作业的要求之一。 4. 测试驱动开发(TDD):一种编程方法论,要求先写测试,再编写实现通过这些测试...