Khác biệt giữa bản sửa đổi của “Android (hệ điều hành)”

Nội dung được xóa Nội dung được thêm vào
Không có tóm lược sửa đổi
Thẻ: Thêm thẻ nowiki Soạn thảo trực quan
n →‎Linux: using AWB
Dòng 90:
Nhân Linux dùng cho Android đã được Google thực hiện nhiều thay đổi về kiến trúc so với nhân Linux gốc.<ref>{{cite video |url=http://www.youtube.com/watch?v=QBGfUs9mQYY |title= Androidology – Part 1 of 3 – Architecture Overview |medium=Video |publisher=[[YouTube]] |date=ngày 6 tháng 9 năm 2008 |accessdate= 7 tháng 11 năm 2007}}</ref> Android không có sẵn [[Hệ thống X Window|X Window System]] cũng không hỗ trợ các thư viện [[Dự án GNU|GNU]] chuẩn, nên việc chuyển các ứng dụng hoặc thư viện Linux có sẵn sang Android rất khó khăn.<ref>{{chú thích web |url=http://arstechnica.com/open-source/reviews/2009/02/an-introduction-to-google-android-for-developers.ars |title=Dream(sheep++): A developer's introduction to Google Android |date=ngày 23 tháng 2 năm 2009 |last=Paul |first=Ryan |work=[[Ars Technica]] |accessdate= 15 tháng 2 năm 2012}}</ref> Các ứng dụng C đơn giản và [[Simple DirectMedia Layer|SDL]] cũng được hỗ trợ bằng cách chèn những đoạn [[shim]] Java và sử dụng tương tự [[JNI]]<ref name="sdlandroid">{{chú thích web|url=http://www.libsdl.org/tmp/SDL/README.android |title=Simple DirectMedia Layer for Android |quote=''How the port works, - Android applications are Java-based, optionally with parts written in C, - As SDL apps are C-based, we use a small Java shim that uses JNI to talk to the SDL library, - This means that your application C code must be placed inside an android Java project, along with some C support code that communicates with Java, - This eventually produces a standard Android.apk package''|date = ngày 12 tháng 8 năm 2012 |accessdate= 9 tháng 9 năm 2012 |publisher=sdl.org}}</ref>, như khi người ta chuyển [[Jagged Alliance 2]] sang Android.<ref name="ja2forandroid">[http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=273148&page=1 JA2 Stracciatella Feedback » Jagged Alliance 2 Android Stracciatella Port RC2 Release - please test] on the Bear's Pit Forum, ngày 3 tháng 10 năm 2011</ref>
 
Một số tính năng cũng được Google đóng góp ngược vào nhân Linux, đáng chú ý là tính năng quản lý nguồn điện có tên wakelock, nhưng bị những người lập trình chính cho nhân từ chối vì họ cảm thấy Google không có ý định sẽ tiếp tục bảo trì đoạn mã do họ viết.<ref name="hartmann2">{{chú thích web |url=http://www.zdnet.com/news/linux-developer-explains-android-kernel-code-removal/389733 |title=Linux developer explains Android kernel code removal |author=David Meyer |date=ngày 3 tháng 2 năm 2010 |publisher=[[ZDNet]] |accessdate= 20 tháng 2 năm 2012}}</ref><ref name="hartmann">{{chú thích web |url=http://www.kroah.com/log/linux/android-kernel-problems.html |title=Android and the Linux kernel community |author=[[Greg Kroah-Hartman]] |date=ngày 2 tháng 2 năm 2010 |accessdate= 20 tháng 2 năm 2012 |quote=''Google shows no sign of working to get their code upstream anymore. Some companies are trying to strip the Android-specific interfaces from their codebase and push that upstream, but that causes a much larger engineering effort, and is a pain that just should not be necessary.''}}</ref><ref>{{chú thích web |url=https://www.linux.com/news/embedded-mobile/mobile-linux/344486-garretta-linuxcon-talk-emphasizes-lessons-learned-from-androidkernel-saga |title=Garrett's LinuxCon Talk Emphasizes Lessons Learned from Android/Kernel Saga |author=Brian Proffitt |date=ngày 10 tháng 8 năm 2010 |publisher=[[Linux.com]] |accessdate= 21 tháng 2 năm 2012}}</ref> Google thông báo vào tháng 4 năm 2010 rằng họ sẽ thuê hai nhân viên để làm việc với cộng đồng nhân Linux,<ref>{{chú thích web |url=http://www.zdnet.com/blog/open-source/dibona-google-will-hire-two-android-coders-to-work-with-kernelorg/6274 |title=DiBona: Google will hire two Android coders to work with kernel.org |work=www.zdnet.com |author=Brian Proffitt |date=ngày 15 tháng 4 năm 2010 |accessdate= 20 tháng 2 năm 2012}}</ref> nhưng [[Greg Kroah-Hartman]], người bảo trì nhân [[Linux]] hiện tại của nhánh ổn định, đã nói vào tháng 12 năm 2010 rằng ông ta lo ngại rằng Google không còn muốn đưa những thay đổi của mình vào [[Linux]] dòng chính nữa.<ref name="hartmann"/> Một số lập trình viên Android của Google tỏ ý rằng "nhóm [[Android]] thấy chán với quy trình đó," vì nhóm họ không có nhiều người và có nhiều việc khẩn cấp cần làm với [[Android]] hơn.<ref>{{chú thích web |url=http://blogs.computerworld.com/16900/android_linux_kernel_fight_continues |title=Android/Linux kernel fight continues |publisher=[[Computerworld]] |author=Steven J. Vaughan-Nichols |date=ngày 7 tháng 9 năm 2010 |accessdate= 20 tháng 2 năm 2012}}</ref>
 
Tháng 8 năm 2011, [[Linus Torvalds]] nói rằng "rốt cuộc thì Android và Linux cũng sẽ trở lại với một bộ nhân chung, nhưng điều đó có thể sẽ không xảy ra trong 4 hoặc 5 năm nữa".<ref>{{chú thích web |url=http://www.zdnet.com/blog/open-source/linus-torvalds-on-android-the-linux-fork/9426 |title=Linus Torvalds on Android, the Linux fork |author=Steven J. Vaughan-Nichols |work=zdnet.com |date=ngày 18 tháng 8 năm 2011 |accessdate= 15 tháng 2 năm 2012}}</ref> Tháng 12 năm 2011, [[Greg Kroah-Hartman]] thông báo kích hoạt Android Mainlining Project, nhắm tới việc đưa một số [[driver]], bản vá và tính năng của Android ngược vào nhân Linux, bắt đầu từ Linux 3.3.<ref>{{chú thích web |url=http://www.h-online.com/open/news/item/Android-drivers-to-be-included-in-Linux-3-3-kernel-1400996.html |title=Android drivers to be included in Linux 3.3 kernel |author=Chris von Eitzen |work=h-online.com |date=ngày 23 tháng 12 năm 2011 |accessdate= 15 tháng 2 năm 2012}}</ref> Linux cũng đưa tính năng autosleep (tự nghỉ hoạt động) và wakelocks vào nhân 3.5, sau nhiều nỗ lực phối trộn trước đó. Tương tác thì vẫn vậy nhưng bản hiện thực trên Linux dòng chính cho phép hai chế độ nghỉ: bộ nhớ (dạng nghỉ truyền thống mà Android sử dụng), và đĩa (là ngủ đông trên máy tính để bàn).<ref>{{chú thích web|last=Jonathan|first=Corbet|title=Autosleep and wakelocks|url=https://lwn.net/Articles/479841/|publisher=LWN}}</ref> Việc trộn sẽ hoàn tất kể từ nhân 3.8, Google đã công khai kho mã nguồn trong đó có những đoạn thử nghiệm đưa Android về lại nhân 3.8.<ref>{{chú thích web |url=http://www.phoronix.com/scan.php?page=news_item&px=MTMxMzc |title=Google Working On Android Based On Linux 3.8 |date=ngày 28 tháng 2 năm 2013 |accessdate= 28 tháng 2 năm 2013}}</ref>