অ্যান্ড্রয়েড 4.3 সামঞ্জস্যের সংজ্ঞা

রিভিশন ঘ
সর্বশেষ আপডেট: জুলাই 23, 2013

কপিরাইট © 2013, Google Inc. সর্বস্বত্ব সংরক্ষিত৷
compatibility@android.com

সুচিপত্র

1। পরিচিতি
2. সম্পদ
3. সফটওয়্যার
3.1। পরিচালিত API সামঞ্জস্য
3.2। সফট এপিআই সামঞ্জস্য
3.3। নেটিভ API সামঞ্জস্য
3.4। ওয়েব সামঞ্জস্যতা
3.5। API আচরণগত সামঞ্জস্য
3.6। API নামস্থান
3.7। ভার্চুয়াল মেশিন সামঞ্জস্য
3.8। ইউজার ইন্টারফেস সামঞ্জস্য
3.9 ডিভাইস প্রশাসন
3.10 অ্যাক্সেসযোগ্যতা
3.11 টেক্সট-টু-স্পিচ
4. অ্যাপ্লিকেশন প্যাকেজিং সামঞ্জস্য
5. মাল্টিমিডিয়া সামঞ্জস্য
6. বিকাশকারীর সরঞ্জাম এবং বিকল্পগুলির সামঞ্জস্য
7. হার্ডওয়্যার সামঞ্জস্য
7.1। ডিসপ্লে এবং গ্রাফিক্স
7.2। ইনপুট ডিভাইস
7.3। সেন্সর
7.4। ডেটা সংযোগ
7.5। ক্যামেরা
7.6। মেমরি এবং স্টোরেজ
7.7। ইউএসবি
8. কর্মক্ষমতা সামঞ্জস্য
9. নিরাপত্তা মডেল সামঞ্জস্য
10. সফ্টওয়্যার সামঞ্জস্য পরীক্ষা
11. আপডেটযোগ্য সফটওয়্যার
12. আমাদের সাথে যোগাযোগ করুন

1। পরিচিতি

এই দস্তাবেজটি Android 4.3 এর সাথে সামঞ্জস্যপূর্ণ ডিভাইসগুলির জন্য প্রয়োজনীয় প্রয়োজনীয়তাগুলিকে গণনা করে৷

"অবশ্যই", "অবশ্যই নয়", "প্রয়োজনীয়", "হবে", "হবে না", "উচিত", "উচিত নয়", "প্রস্তাবিত", "মে" এবং "ঐচ্ছিক" ব্যবহার IETF মান অনুযায়ী RFC2119 [ সম্পদ, 1 ] এ সংজ্ঞায়িত।

এই নথিতে যেমন ব্যবহার করা হয়েছে, একজন "ডিভাইস ইমপ্লিমেন্টার" বা "বাস্তবায়নকারী" হল একজন ব্যক্তি বা সংস্থা যা Android 4.3 চালিত একটি হার্ডওয়্যার/সফ্টওয়্যার সমাধান তৈরি করে। একটি "ডিভাইস বাস্তবায়ন" বা "বাস্তবায়ন" হল হার্ডওয়্যার/সফ্টওয়্যার সমাধান তাই উন্নত।

অ্যান্ড্রয়েড 4.3-এর সাথে সামঞ্জস্যপূর্ণ বলে বিবেচিত হতে, ডিভাইস বাস্তবায়নকে অবশ্যই এই সামঞ্জস্যের সংজ্ঞায় উপস্থাপিত প্রয়োজনীয়তাগুলি পূরণ করতে হবে, রেফারেন্সের মাধ্যমে অন্তর্ভুক্ত করা যেকোনো নথি সহ।

যেখানে এই সংজ্ঞা বা বিভাগ 10- এ বর্ণিত সফ্টওয়্যার পরীক্ষাগুলি নীরব, অস্পষ্ট বা অসম্পূর্ণ, সেখানে বিদ্যমান বাস্তবায়নের সাথে সামঞ্জস্যতা নিশ্চিত করা ডিভাইস বাস্তবায়নকারীর দায়িত্ব৷

এই কারণে, অ্যান্ড্রয়েড ওপেন সোর্স প্রজেক্ট [ সম্পদ, 3 ] হল অ্যান্ড্রয়েডের রেফারেন্স এবং পছন্দের বাস্তবায়ন। ডিভাইস ইমপ্লিমেন্টারদের জোরালোভাবে উত্সাহিত করা হয় যে তারা Android ওপেন সোর্স প্রজেক্ট থেকে উপলব্ধ "আপস্ট্রিম" সোর্স কোডের উপর তাদের বাস্তবায়নকে সর্বাধিক পরিমাণে ভিত্তি করে। যদিও কিছু উপাদান অনুমানমূলকভাবে বিকল্প বাস্তবায়নের সাথে প্রতিস্থাপিত হতে পারে এই অনুশীলনটি দৃঢ়ভাবে নিরুৎসাহিত করা হয়, কারণ সফ্টওয়্যার পরীক্ষায় উত্তীর্ণ হওয়া যথেষ্ট কঠিন হয়ে উঠবে। সামঞ্জস্য পরীক্ষা স্যুট সহ এবং এর বাইরেও আদর্শ Android বাস্তবায়নের সাথে সম্পূর্ণ আচরণগত সামঞ্জস্য নিশ্চিত করা বাস্তবায়নকারীর দায়িত্ব। পরিশেষে, মনে রাখবেন যে কিছু উপাদান প্রতিস্থাপন এবং পরিবর্তনগুলি এই নথি দ্বারা স্পষ্টভাবে নিষিদ্ধ।

2. সম্পদ

  1. IETF RFC2119 প্রয়োজনীয়তার স্তর: http://www.ietf.org/rfc/rfc2119.txt
  2. অ্যান্ড্রয়েড সামঞ্জস্যতা প্রোগ্রাম ওভারভিউ: http://source.android.com/docs/compatibility/index.html
  3. অ্যান্ড্রয়েড ওপেন সোর্স প্রজেক্ট: http://source.android.com/
  4. API সংজ্ঞা এবং ডকুমেন্টেশন: http://developer.android.com/reference/packages.html
  5. অ্যান্ড্রয়েড অনুমতির রেফারেন্স: http://developer.android.com/reference/android/Manifest.permission.html
  6. android.os.Build রেফারেন্স: http://developer.android.com/reference/android/os/Build.html
  7. Android 4.3 অনুমোদিত সংস্করণ স্ট্রিং: http://source.android.com/docs/compatibility/4.3/versions.html
  8. রেন্ডারস্ক্রিপ্ট: http://developer.android.com/guide/topics/graphics/renderscript.html
  9. হার্ডওয়্যার ত্বরণ: http://developer.android.com/guide/topics/graphics/hardware-accel.html
  10. android.webkit.WebView ক্লাস: http://developer.android.com/reference/android/webkit/WebView.html
  11. HTML5: http://www.whatwg.org/specs/web-apps/current-work/multipage/
  12. HTML5 অফলাইন ক্ষমতা: http://dev.w3.org/html5/spec/Overview.html#offline
  13. HTML5 ভিডিও ট্যাগ: http://dev.w3.org/html5/spec/Overview.html#video
  14. HTML5/W3C ভূ-অবস্থান API: http://www.w3.org/TR/geolocation-API/
  15. HTML5/W3C ওয়েবডেটাবেস API: http://www.w3.org/TR/webdatabase/
  16. HTML5/W3C IndexedDB API: http://www.w3.org/TR/IndexedDB/
  17. ডালভিক ভার্চুয়াল মেশিন স্পেসিফিকেশন: অ্যান্ড্রয়েড সোর্স কোডে, ডালভিক/ডক্সে উপলব্ধ
  18. AppWidgets: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
  19. বিজ্ঞপ্তি: http://developer.android.com/guide/topics/ui/notifiers/notifications.html
  20. অ্যাপ্লিকেশন সংস্থান: http://code.google.com/android/reference/available-resources.html
  21. স্ট্যাটাস বার আইকন শৈলী নির্দেশিকা: http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html
  22. অনুসন্ধান ম্যানেজার: http://developer.android.com/reference/android/app/SearchManager.html
  23. টোস্ট: http://developer.android.com/reference/android/widget/Toast.html
  24. থিম: http://developer.android.com/guide/topics/ui/themes.html
  25. R.style ক্লাস: http://developer.android.com/reference/android/R.style.html
  26. লাইভ ওয়ালপেপার: https://android-developers.googleblog.com/2010/02/live-wallpapers.html
  27. অ্যান্ড্রয়েড ডিভাইস অ্যাডমিনিস্ট্রেশন: http://developer.android.com/guide/topics/admin/device-admin.html
  28. DevicePolicyManager রেফারেন্স: http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html
  29. অ্যান্ড্রয়েড অ্যাক্সেসিবিলিটি সার্ভিস API: http://developer.android.com/reference/android/accessibilityservice/package-summary.html
  30. অ্যান্ড্রয়েড অ্যাক্সেসিবিলিটি API: http://developer.android.com/reference/android/view/accessibility/package-summary.html
  31. আইস ফ্রি প্রোজেক্ট: http://code.google.com/p/eyes-free
  32. টেক্সট-টু-স্পীচ API: http://developer.android.com/reference/android/speech/tts/package-summary.html
  33. রেফারেন্স টুল ডকুমেন্টেশন (adb, aapt, ddms, systrace এর জন্য): http://developer.android.com/guide/developing/tools/index.html
  34. Android apk ফাইলের বিবরণ: http://developer.android.com/guide/topics/fundamentals.html
  35. ম্যানিফেস্ট ফাইল: http://developer.android.com/guide/topics/manifest/manifest-intro.html
  36. বানর পরীক্ষার টুল: https://developer.android.com/studio/test/other-testing-tools/monkey
  37. Android android.content.pm.PackageManager ক্লাস এবং হার্ডওয়্যার বৈশিষ্ট্যের তালিকা: http://developer.android.com/reference/android/content/pm/PackageManager.html
  38. একাধিক স্ক্রীন সমর্থন করে: http://developer.android.com/guide/practices/screens_support.html
  39. android.util.DisplayMetrics: http://developer.android.com/reference/android/util/DisplayMetrics.html
  40. android.content.res.Configuration: http://developer.android.com/reference/android/content/res/Configuration.html
  41. android.hardware.SensorEvent: http://developer.android.com/reference/android/hardware/SensorEvent.html
  42. ব্লুটুথ API: http://developer.android.com/reference/android/bluetooth/package-summary.html
  43. এনডিইএফ পুশ প্রোটোকল: http://source.android.com/docs/compatibility/ndef-push-protocol.pdf
  44. MIFARE MF1S503X: http://www.nxp.com/documents/data_sheet/MF1S503x.pdf
  45. MIFARE MF1S703X: http://www.nxp.com/documents/data_sheet/MF1S703x.pdf
  46. MIFARE MF0ICU1: http://www.nxp.com/documents/data_sheet/MF0ICU1.pdf
  47. MIFARE MF0ICU2: http://www.nxp.com/documents/short_data_sheet/MF0ICU2_SDS.pdf
  48. MIFARE AN130511: http://www.nxp.com/documents/application_note/AN130511.pdf
  49. MIFARE AN130411: http://www.nxp.com/documents/application_note/AN130411.pdf
  50. ক্যামেরা ওরিয়েন্টেশন API: http://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int)
  51. ক্যামেরা: http://developer.android.com/reference/android/hardware/Camera.html
  52. অ্যান্ড্রয়েড ওপেন আনুষাঙ্গিক: http://developer.android.com/guide/topics/usb/accessory.html
  53. USB হোস্ট API: http://developer.android.com/guide/topics/usb/host.html
  54. অ্যান্ড্রয়েড নিরাপত্তা এবং অনুমতির রেফারেন্স: http://developer.android.com/guide/topics/security/security.html
  55. অ্যান্ড্রয়েডের জন্য অ্যাপস: http://code.google.com/p/apps-for-android
  56. অ্যান্ড্রয়েড ডাউনলোডম্যানেজার: http://developer.android.com/reference/android/app/DownloadManager.html
  57. অ্যান্ড্রয়েড ফাইল ট্রান্সফার: http://www.android.com/filetransfer
  58. অ্যান্ড্রয়েড মিডিয়া ফর্ম্যাট: http://developer.android.com/guide/appendix/media-formats.html
  59. HTTP লাইভ স্ট্রিমিং ড্রাফ্ট প্রোটোকল: http://tools.ietf.org/html/draft-pantos-http-live-streaming-03
  60. NFC সংযোগ হস্তান্তর: http://www.nfc-forum.org/specs/spec_list/#conn_handover
  61. NFC ব্যবহার করে ব্লুটুথ সুরক্ষিত সহজ পেয়ারিং: http://www.nfc-forum.org/resources/AppDocs/NFCForum_AD_BTSSP_1_0.pdf
  62. ওয়াইফাই মাল্টিকাস্ট API: http://developer.android.com/reference/android/net/wifi/WifiManager.MulticastLock.html
  63. অ্যাকশন অ্যাসিস্ট: http://developer.android.com/reference/android/content/Intent.html#ACTION_ASSIST
  64. ইউএসবি চার্জিং স্পেসিফিকেশন: http://www.usb.org/developers/devclass_docs/USB_Battery_Charging_1.2.pdf
  65. অ্যান্ড্রয়েড বিম: http://developer.android.com/guide/topics/nfc/nfc.html
  66. অ্যান্ড্রয়েড ইউএসবি অডিও: http://developer.android.com/reference/android/hardware/usb/UsbConstants.html#USB_CLASS_AUDIO
  67. Android NFC শেয়ারিং সেটিংস: http://developer.android.com/reference/android/provider/Settings.html#ACTION_NFCSHARING_SETTINGS
  68. Wifi Direct (Wifi P2P): http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.html
  69. লক এবং হোম স্ক্রীন উইজেট: http://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html
  70. UserManager রেফারেন্স: http://developer.android.com/reference/android/os/UserManager.html
  71. এক্সটার্নাল স্টোরেজ রেফারেন্স: https://source.android.com/docs/core/storage
  72. বাহ্যিক সঞ্চয়স্থান API: http://developer.android.com/reference/android/os/Environment.html
  73. এসএমএস শর্ট কোড: http://en.wikipedia.org/wiki/Short_code
  74. মিডিয়া রিমোট কন্ট্রোল ক্লায়েন্ট: http://developer.android.com/reference/android/media/RemoteControlClient.html
  75. ডিসপ্লে ম্যানেজার: http://developer.android.com/reference/android/hardware/display/DisplayManager.html
  76. স্বপ্ন: http://developer.android.com/reference/android/service/dreams/DreamService.html
  77. অ্যান্ড্রয়েড অ্যাপ্লিকেশন ডেভেলপমেন্ট-সম্পর্কিত সেটিংস: http://developer.android.com/reference/android/provider/Settings.html#ACTION_APPLICATION_DEVELOPMENT_SETTINGS
  78. ক্যামেরা: http://developer.android.com/reference/android/hardware/Camera.Parameters.html
  79. EGL এক্সটেনশন-EGL_ANDROID_RECORDABLE: http://www.khronos.org/registry/egl/extensions/ANDROID/EGL_ANDROID_recordable.txt
  80. মোশন ইভেন্ট API: http://developer.android.com/reference/android/view/MotionEvent.html
  81. টাচ ইনপুট কনফিগারেশন: http://source.android.com/docs/core/interaction/input/touch-devices.html

এই সম্পদগুলির অনেকগুলি প্রত্যক্ষ বা পরোক্ষভাবে Android 4.3 SDK থেকে প্রাপ্ত, এবং সেই SDK-এর ডকুমেন্টেশনের তথ্যের সাথে কার্যকরীভাবে অভিন্ন হবে৷ যে কোনো ক্ষেত্রে যেখানে এই সামঞ্জস্যতা সংজ্ঞা বা সামঞ্জস্য পরীক্ষা স্যুট SDK ডকুমেন্টেশনের সাথে একমত নয়, SDK ডকুমেন্টেশনকে প্রামাণিক বলে মনে করা হয়। উপরে অন্তর্ভুক্ত রেফারেন্সে প্রদত্ত যেকোন প্রযুক্তিগত বিশদ এই সামঞ্জস্যতার সংজ্ঞার অংশ হিসাবে অন্তর্ভুক্তির দ্বারা বিবেচনা করা হয়।

3. সফটওয়্যার

3.1। পরিচালিত API সামঞ্জস্য

পরিচালিত (ডালভিক-ভিত্তিক) এক্সিকিউশন এনভায়রনমেন্ট হল অ্যান্ড্রয়েড অ্যাপ্লিকেশনের প্রাথমিক বাহন। অ্যান্ড্রয়েড অ্যাপ্লিকেশান প্রোগ্রামিং ইন্টারফেস (API) হল অ্যান্ড্রয়েড প্ল্যাটফর্ম ইন্টারফেসগুলির একটি সেট যা পরিচালিত VM পরিবেশে চলমান অ্যাপ্লিকেশনগুলির সংস্পর্শে আসে৷ ডিভাইস বাস্তবায়ন অবশ্যই Android 4.3 SDK দ্বারা উন্মোচিত যেকোন নথিভুক্ত API এর সমস্ত নথিভুক্ত আচরণ সহ সম্পূর্ণ বাস্তবায়ন প্রদান করতে হবে [ সম্পদ, 4 ]৷

এই সামঞ্জস্যতা সংজ্ঞা দ্বারা বিশেষভাবে অনুমোদিত স্থান ব্যতীত ডিভাইস বাস্তবায়নে কোনো পরিচালিত API বাদ দেওয়া, API ইন্টারফেস বা স্বাক্ষর পরিবর্তন করা, নথিভুক্ত আচরণ থেকে বিচ্যুত হওয়া, বা নো-অপস অন্তর্ভুক্ত করা উচিত নয়।

এই সামঞ্জস্যতার সংজ্ঞাটি এমন কিছু হার্ডওয়্যারের অনুমতি দেয় যার জন্য Android এ API গুলিকে ডিভাইস বাস্তবায়ন দ্বারা বাদ দেওয়া হয়। এই ধরনের ক্ষেত্রে, APIগুলি অবশ্যই উপস্থিত থাকতে হবে এবং যুক্তিসঙ্গতভাবে আচরণ করতে হবে। এই দৃশ্যের জন্য নির্দিষ্ট প্রয়োজনীয়তার জন্য বিভাগ 7 দেখুন।

3.2। সফট এপিআই সামঞ্জস্য

বিভাগ 3.1 থেকে পরিচালিত API গুলি ছাড়াও, Android-এ একটি উল্লেখযোগ্য রানটাইম-শুধুমাত্র "সফ্ট" API অন্তর্ভুক্ত রয়েছে, যেমন উদ্দেশ্য, অনুমতি এবং Android অ্যাপ্লিকেশনগুলির অনুরূপ দিকগুলির আকারে যা অ্যাপ্লিকেশন কম্পাইলের সময় প্রয়োগ করা যায় না।

3.2.1। অনুমতি

ডিভাইস ইমপ্লিমেন্টারদের অবশ্যই অনুমতির রেফারেন্স পৃষ্ঠা [ সম্পদ, 5 ] দ্বারা নথিভুক্ত সমস্ত অনুমতি ধ্রুবক সমর্থন এবং প্রয়োগ করতে হবে। মনে রাখবেন যে বিভাগ 9 এ অ্যান্ড্রয়েড নিরাপত্তা মডেলের সাথে সম্পর্কিত অতিরিক্ত প্রয়োজনীয়তা তালিকাভুক্ত করা হয়েছে।

3.2.2। প্যারামিটার তৈরি করুন

অ্যান্ড্রয়েড এপিআই-এ android.os.Build ক্লাস [ রিসোর্স, 6 ]-এ বেশ কয়েকটি ধ্রুবক অন্তর্ভুক্ত রয়েছে যা বর্তমান ডিভাইস বর্ণনা করার উদ্দেশ্যে। ডিভাইস বাস্তবায়ন জুড়ে সামঞ্জস্যপূর্ণ, অর্থপূর্ণ মান প্রদান করার জন্য, নীচের সারণীতে এই মানগুলির ফর্ম্যাটগুলির উপর অতিরিক্ত বিধিনিষেধ অন্তর্ভুক্ত করা হয়েছে যা ডিভাইস বাস্তবায়নকে অবশ্যই মেনে চলতে হবে।

প্যারামিটার মন্তব্য
android.os.Build.VERSION.RELEASE মানব-পাঠযোগ্য বিন্যাসে বর্তমানে কার্যকর করা Android সিস্টেমের সংস্করণ। এই ক্ষেত্রে অবশ্যই [ সম্পদ, 7 ]-এ সংজ্ঞায়িত স্ট্রিং মানগুলির একটি থাকতে হবে।
android.os.Build.VERSION.SDK বর্তমানে কার্যকর করা Android সিস্টেমের সংস্করণ, তৃতীয় পক্ষের অ্যাপ্লিকেশন কোডে অ্যাক্সেসযোগ্য একটি বিন্যাসে। অ্যান্ড্রয়েড 4.3-এর জন্য, এই ক্ষেত্রে অবশ্যই পূর্ণসংখ্যার মান 18 থাকতে হবে।
android.os.Build.VERSION.SDK_INT বর্তমানে কার্যকর করা Android সিস্টেমের সংস্করণ, তৃতীয় পক্ষের অ্যাপ্লিকেশন কোডে অ্যাক্সেসযোগ্য একটি বিন্যাসে। অ্যান্ড্রয়েড 4.3-এর জন্য, এই ক্ষেত্রে অবশ্যই পূর্ণসংখ্যার মান 18 থাকতে হবে।
android.os.Build.VERSION.INCREMENTAL মানব-পঠনযোগ্য বিন্যাসে বর্তমানে কার্যকর করা Android সিস্টেমের নির্দিষ্ট বিল্ডকে মনোনীত করে ডিভাইস বাস্তবায়নকারী দ্বারা নির্বাচিত একটি মান। শেষ ব্যবহারকারীদের জন্য উপলব্ধ করা বিভিন্ন বিল্ডের জন্য এই মানটি পুনরায় ব্যবহার করা উচিত নয়। এই ক্ষেত্রের একটি সাধারণ ব্যবহার হল বিল্ড তৈরি করতে কোন বিল্ড নম্বর বা উৎস-নিয়ন্ত্রণ পরিবর্তন শনাক্তকারী ব্যবহার করা হয়েছে তা নির্দেশ করা। এই ক্ষেত্রের নির্দিষ্ট বিন্যাসে কোন প্রয়োজনীয়তা নেই, এটি শূন্য বা খালি স্ট্রিং ("") হওয়া উচিত নয়।
android.os.Build.BOARD মানব-পাঠযোগ্য বিন্যাসে ডিভাইস দ্বারা ব্যবহৃত নির্দিষ্ট অভ্যন্তরীণ হার্ডওয়্যার সনাক্ত করে ডিভাইস বাস্তবায়নকারী দ্বারা নির্বাচিত একটি মান। এই ক্ষেত্রের একটি সম্ভাব্য ব্যবহার হল ডিভাইসটিকে পাওয়ারিং বোর্ডের নির্দিষ্ট সংশোধন নির্দেশ করা। এই ক্ষেত্রের মান অবশ্যই 7-বিট ASCII হিসাবে এনকোডযোগ্য হতে হবে এবং রেগুলার এক্সপ্রেশন "^[a-zA-Z0-9.,_-]+$" সাথে মেলে।
android.os.Build.BRAND ডিভাইস বাস্তবায়নকারীর দ্বারা নির্বাচিত একটি মান যা মানব-পাঠযোগ্য বিন্যাসে ডিভাইসটি উৎপাদনকারী কোম্পানি, সংস্থা, ব্যক্তি, ইত্যাদির নাম সনাক্ত করে। এই ক্ষেত্রের একটি সম্ভাব্য ব্যবহার হল OEM এবং/অথবা বাহককে নির্দেশ করা যে ডিভাইসটি বিক্রি করেছে। এই ক্ষেত্রের মান অবশ্যই 7-বিট ASCII হিসাবে এনকোডযোগ্য হতে হবে এবং রেগুলার এক্সপ্রেশন "^[a-zA-Z0-9.,_-]+$" সাথে মেলে।
android.os.Build.CPU_ABI নেটিভ কোডের নির্দেশ সেটের নাম (CPU প্রকার + ABI কনভেনশন)। বিভাগ 3.3 দেখুন: নেটিভ API সামঞ্জস্য
android.os.Build.CPU_ABI2 নেটিভ কোডের দ্বিতীয় নির্দেশ সেটের নাম (CPU প্রকার + ABI কনভেনশন)। বিভাগ 3.3 দেখুন: নেটিভ API সামঞ্জস্য
android.os.Build.DEVICE ডিভাইস বাস্তবায়নকারীর দ্বারা নির্বাচিত একটি মান যা ডিভাইসের নির্দিষ্ট কনফিগারেশন বা বডির সংশোধন (কখনও কখনও "ইন্ডাস্ট্রিয়াল ডিজাইন" বলা হয়) সনাক্ত করে। এই ক্ষেত্রের মান অবশ্যই 7-বিট ASCII হিসাবে এনকোডযোগ্য হতে হবে এবং রেগুলার এক্সপ্রেশন "^[a-zA-Z0-9.,_-]+$" সাথে মেলে।
android.os.Build.FINGERPRINT একটি স্ট্রিং যা এই বিল্ডটিকে অনন্যভাবে সনাক্ত করে। এটা যুক্তিসঙ্গতভাবে মানুষের পঠনযোগ্য হওয়া উচিত. এটি অবশ্যই এই টেমপ্লেটটি অনুসরণ করবে:
$(BRAND)/$(PRODUCT)/$(DEVICE):$(VERSION.RELEASE)/$(ID)/$(VERSION.INCREMENTAL):$(TYPE)/$(TAGS)
উদাহরণ স্বরূপ:
acme/mydevice/generic:4.3/JRN53/3359:userdebug/test-keys
ফিঙ্গারপ্রিন্টে হোয়াইটস্পেস অক্ষর অন্তর্ভুক্ত করা উচিত নয়। উপরের টেমপ্লেটে অন্তর্ভুক্ত অন্যান্য ক্ষেত্রে যদি সাদা স্থানের অক্ষর থাকে, তবে সেগুলিকে অবশ্যই বিল্ড ফিঙ্গারপ্রিন্টে অন্য অক্ষর দিয়ে প্রতিস্থাপিত করতে হবে, যেমন আন্ডারস্কোর ("_") অক্ষর৷ এই ক্ষেত্রের মান অবশ্যই 7-বিট ASCII হিসাবে এনকোডযোগ্য হতে হবে।
android.os.Build.HARDWARE হার্ডওয়্যারের নাম (কার্নেল কমান্ড লাইন বা /proc থেকে)। এটা যুক্তিসঙ্গতভাবে মানুষের পঠনযোগ্য হওয়া উচিত. এই ক্ষেত্রের মান অবশ্যই 7-বিট ASCII হিসাবে এনকোডযোগ্য হতে হবে এবং রেগুলার এক্সপ্রেশন "^[a-zA-Z0-9.,_-]+$" সাথে মেলে।
android.os.Build.HOST একটি স্ট্রিং যা মানব পাঠযোগ্য বিন্যাসে নির্মিত হোস্টটিকে অনন্যভাবে সনাক্ত করে। এই ক্ষেত্রের নির্দিষ্ট বিন্যাসে কোন প্রয়োজনীয়তা নেই, এটি শূন্য বা খালি স্ট্রিং ("") হওয়া উচিত নয়।
android.os.Build.ID মানব পাঠযোগ্য বিন্যাসে একটি নির্দিষ্ট রিলিজ উল্লেখ করার জন্য ডিভাইস বাস্তবায়নকারী দ্বারা নির্বাচিত একটি শনাক্তকারী। এই ক্ষেত্রটি android.os.Build.VERSION.INCREMENTAL এর মতোই হতে পারে, তবে সফ্টওয়্যার বিল্ডগুলির মধ্যে পার্থক্য করতে শেষ ব্যবহারকারীদের জন্য যথেষ্ট অর্থবহ একটি মান হওয়া উচিত৷ এই ক্ষেত্রের মান অবশ্যই 7-বিট ASCII হিসাবে এনকোডযোগ্য হতে হবে এবং রেগুলার এক্সপ্রেশন "^[a-zA-Z0-9.,_-]+$" সাথে মেলে।
android.os.Build.MANUFACTURER৷ পণ্যটির আসল সরঞ্জাম প্রস্তুতকারকের (OEM) ট্রেড নাম। এই ক্ষেত্রের নির্দিষ্ট বিন্যাসে কোন প্রয়োজনীয়তা নেই, এটি শূন্য বা খালি স্ট্রিং ("") হওয়া উচিত নয়।
android.os.Build.MODEL ডিভাইস বাস্তবায়নকারীর দ্বারা নির্বাচিত একটি মান যাতে ডিভাইসের নাম থাকে যা শেষ ব্যবহারকারীর কাছে পরিচিত। এটি একই নামে হওয়া উচিত যার অধীনে ডিভাইসটি বাজারজাত করা হয় এবং শেষ ব্যবহারকারীদের কাছে বিক্রি করা হয়। এই ক্ষেত্রের নির্দিষ্ট বিন্যাসে কোন প্রয়োজনীয়তা নেই, এটি শূন্য বা খালি স্ট্রিং ("") হওয়া উচিত নয়।
android.os.Build.PRODUCT পণ্যের উন্নয়ন নাম বা কোড নাম (SKU) ধারণকারী ডিভাইস বাস্তবায়নকারী দ্বারা নির্বাচিত একটি মান। মানুষের পঠনযোগ্য হতে হবে, কিন্তু শেষ ব্যবহারকারীদের দেখার জন্য অগত্যা নয়। এই ক্ষেত্রের মান অবশ্যই 7-বিট ASCII হিসাবে এনকোডযোগ্য হতে হবে এবং রেগুলার এক্সপ্রেশন "^[a-zA-Z0-9.,_-]+$" সাথে মেলে।
android.os.Build.SERIAL একটি হার্ডওয়্যার সিরিয়াল নম্বর, যদি উপলব্ধ থাকে। এই ক্ষেত্রের মান অবশ্যই 7-বিট ASCII হিসাবে এনকোডযোগ্য হতে হবে এবং রেগুলার এক্সপ্রেশন "^([a-zA-Z0-9]{0,20})$" সাথে মেলে।
android.os.Build.TAGS ডিভাইস বাস্তবায়নকারী দ্বারা নির্বাচিত ট্যাগগুলির একটি কমা দ্বারা পৃথক করা তালিকা যা বিল্ডটিকে আরও আলাদা করে। উদাহরণস্বরূপ, "আনসাইন করা, ডিবাগ"। এই ক্ষেত্রের মান অবশ্যই 7-বিট ASCII হিসাবে এনকোডযোগ্য হতে হবে এবং রেগুলার এক্সপ্রেশন "^[a-zA-Z0-9.,_-]+$" সাথে মেলে।
android.os.Build.TIME বিল্ড কখন হয়েছিল তার টাইমস্ট্যাম্পের প্রতিনিধিত্বকারী একটি মান।
android.os.Build.TYPE বিল্ডের রানটাইম কনফিগারেশন নির্দিষ্ট করে ডিভাইস বাস্তবায়নকারীর দ্বারা নির্বাচিত একটি মান। এই ক্ষেত্রটিতে তিনটি সাধারণ অ্যান্ড্রয়েড রানটাইম কনফিগারেশনের সাথে সম্পর্কিত মানগুলির মধ্যে একটি থাকা উচিত: "ব্যবহারকারী", "ইউজারডেবগ", বা "এনজি"। এই ক্ষেত্রের মান অবশ্যই 7-বিট ASCII হিসাবে এনকোডযোগ্য হতে হবে এবং রেগুলার এক্সপ্রেশন "^[a-zA-Z0-9.,_-]+$" সাথে মেলে।
android.os.Build.USER ব্যবহারকারীর (বা স্বয়ংক্রিয় ব্যবহারকারী) একটি নাম বা ব্যবহারকারী আইডি যা বিল্ড তৈরি করেছে। এই ক্ষেত্রের নির্দিষ্ট বিন্যাসে কোন প্রয়োজনীয়তা নেই, এটি শূন্য বা খালি স্ট্রিং ("") হওয়া উচিত নয়।

3.2.3। অভিপ্রায় সামঞ্জস্য

ডিভাইস বাস্তবায়ন অবশ্যই Android এর লুজ-কাপলিং ইন্টেন্ট সিস্টেমকে সম্মান করবে, যেমনটি নীচের বিভাগে বর্ণিত হয়েছে। "সম্মানিত" দ্বারা বোঝানো হয়েছে যে ডিভাইস বাস্তবায়নকারীকে অবশ্যই একটি Android কার্যকলাপ বা পরিষেবা প্রদান করতে হবে যা একটি ম্যাচিং ইন্টেন্ট ফিল্টার নির্দিষ্ট করে এবং প্রতিটি নির্দিষ্ট ইন্টেন্ট প্যাটার্নের জন্য সঠিক আচরণের সাথে আবদ্ধ এবং প্রয়োগ করে৷

3.2.3.1। মূল আবেদন উদ্দেশ্য

অ্যান্ড্রয়েড আপস্ট্রিম প্রজেক্ট অনেকগুলি মূল অ্যাপ্লিকেশনকে সংজ্ঞায়িত করে, যেমন পরিচিতি, ক্যালেন্ডার, ফটো গ্যালারি, মিউজিক প্লেয়ার ইত্যাদি। ডিভাইস বাস্তবায়নকারীরা বিকল্প সংস্করণ দিয়ে এই অ্যাপ্লিকেশনগুলি প্রতিস্থাপন করতে পারে৷

যাইহোক, এই ধরনের যেকোনো বিকল্প সংস্করণকে অবশ্যই আপস্ট্রিম প্রজেক্টের দ্বারা প্রদত্ত একই অভিপ্রায়ের ধরণগুলিকে সম্মান করতে হবে। উদাহরণস্বরূপ, যদি একটি ডিভাইসে একটি বিকল্প মিউজিক প্লেয়ার থাকে, তবে এটি এখনও একটি গান বাছাই করার জন্য তৃতীয় পক্ষের অ্যাপ্লিকেশনগুলির দ্বারা জারি করা ইন্টেন্ট প্যাটার্নকে সম্মান করতে হবে।

নিম্নলিখিত অ্যাপ্লিকেশনগুলিকে মূল অ্যান্ড্রয়েড সিস্টেম অ্যাপ্লিকেশন হিসাবে বিবেচনা করা হয়:

  • ডেস্ক ঘড়ি
  • ব্রাউজার
  • ক্যালেন্ডার
  • পরিচিতি
  • গ্যালারি
  • গ্লোবাল সার্চ
  • লঞ্চার
  • সঙ্গীত
  • সেটিংস

মূল অ্যান্ড্রয়েড সিস্টেম অ্যাপ্লিকেশনগুলির মধ্যে রয়েছে বিভিন্ন কার্যকলাপ, বা পরিষেবা উপাদান যা "পাবলিক" হিসাবে বিবেচিত হয়। অর্থাৎ, অ্যাট্রিবিউট "android:exported" অনুপস্থিত হতে পারে, অথবা "true" মান থাকতে পারে।

মূল Android সিস্টেম অ্যাপগুলির মধ্যে একটিতে সংজ্ঞায়িত প্রতিটি অ্যাক্টিভিটি বা পরিষেবার জন্য যা একটি android:এক্সপোর্টেড অ্যাট্রিবিউটের মাধ্যমে "false" মান সহ অ-পাবলিক হিসাবে চিহ্নিত করা হয়নি, ডিভাইস বাস্তবায়নে একই ধরনের একটি উপাদান অন্তর্ভুক্ত করা আবশ্যক যাতে একই ইন্টেন্ট ফিল্টার প্রয়োগ করা হয় মূল অ্যান্ড্রয়েড সিস্টেম অ্যাপ হিসাবে নিদর্শন।

অন্য কথায়, একটি ডিভাইস বাস্তবায়ন মূল অ্যান্ড্রয়েড সিস্টেম অ্যাপগুলিকে প্রতিস্থাপন করতে পারে; যাইহোক, যদি এটি হয়ে থাকে, ডিভাইস বাস্তবায়ন অবশ্যই প্রতিটি মূল অ্যান্ড্রয়েড সিস্টেম অ্যাপ দ্বারা সংজ্ঞায়িত সমস্ত ইন্টেন্ট প্যাটার্নকে সমর্থন করবে।

3.2.3.2। অভিপ্রায় ওভাররাইড করে

যেহেতু অ্যান্ড্রয়েড একটি এক্সটেনসিবল প্ল্যাটফর্ম, তাই ডিভাইস বাস্তবায়ন অবশ্যই 3.2.3.2 ধারায় উল্লেখ করা প্রতিটি ইন্টেন্ট প্যাটার্নকে তৃতীয় পক্ষের অ্যাপ্লিকেশনগুলিকে ওভাররাইড করার অনুমতি দিতে হবে। আপস্ট্রিম অ্যান্ড্রয়েড ওপেন সোর্স বাস্তবায়ন ডিফল্টরূপে এটির অনুমতি দেয়; ডিভাইস ইমপ্লিমেন্টারদের অবশ্যই সিস্টেম অ্যাপ্লিকেশনগুলির এই ইন্টেন্ট প্যাটার্নগুলির ব্যবহারে বিশেষ সুবিধা সংযুক্ত করা উচিত নয়, বা তৃতীয় পক্ষের অ্যাপ্লিকেশনগুলিকে এই প্যাটার্নগুলির সাথে আবদ্ধ হওয়া এবং নিয়ন্ত্রণ করা থেকে বিরত রাখা উচিত নয়৷ এই নিষেধাজ্ঞাটি বিশেষভাবে "নির্বাচনকারী" ব্যবহারকারী ইন্টারফেস নিষ্ক্রিয় করার মধ্যেই সীমাবদ্ধ নয় যা ব্যবহারকারীকে একাধিক অ্যাপ্লিকেশনের মধ্যে নির্বাচন করতে দেয় যা সমস্ত একই অভিপ্রায় প্যাটার্ন পরিচালনা করে।

যাইহোক, ডিভাইস বাস্তবায়ন নির্দিষ্ট URI প্যাটার্নের জন্য ডিফল্ট কার্যকলাপ প্রদান করতে পারে (যেমন। http://play.google.com) যদি ডিফল্ট কার্যকলাপ ডেটা URI-এর জন্য আরও নির্দিষ্ট ফিল্টার প্রদান করে। উদাহরণস্বরূপ, ডেটা URI "http://www.android.com" নির্দিষ্ট করে একটি অভিপ্রায় ফিল্টার "http://" এর জন্য ব্রাউজার ফিল্টার থেকে আরও নির্দিষ্ট। ইন্টেন্টের জন্য ডিফল্ট ক্রিয়াকলাপ সংশোধন করার জন্য ডিভাইস বাস্তবায়ন ব্যবহারকারীদের জন্য একটি ব্যবহারকারী ইন্টারফেস প্রদান করতে হবে।

3.2.3.3। অভিপ্রায় নামস্থান

ডিভাইস বাস্তবায়নে এমন কোনো অ্যান্ড্রয়েড উপাদান অন্তর্ভুক্ত করা উচিত নয় যা android.* বা com.android.* namespace-এ ACTION, CATEGORY, বা অন্যান্য কী স্ট্রিং ব্যবহার করে কোনো নতুন ইন্টেন্ট বা ব্রডকাস্ট ইনটেন্ট প্যাটার্নকে সম্মান করে। ডিভাইস ইমপ্লিমেন্টারদের এমন কোনও Android উপাদান অন্তর্ভুক্ত করা উচিত নয় যা অন্য সংস্থার অন্তর্গত প্যাকেজ স্পেসে ACTION, CATEGORY, বা অন্যান্য কী স্ট্রিং ব্যবহার করে কোনও নতুন অভিপ্রায় বা সম্প্রচার অভিপ্রায় প্যাটার্নকে সম্মান করে৷ ডিভাইস বাস্তবায়নকারীরা অবশ্যই বিভাগ 3.2.3.1-এ তালিকাভুক্ত মূল অ্যাপগুলির দ্বারা ব্যবহৃত কোনো ইন্টেন্ট প্যাটার্ন পরিবর্তন বা প্রসারিত করবেন না। ডিভাইস বাস্তবায়নের মধ্যে স্পষ্টভাবে এবং স্পষ্টভাবে তাদের নিজস্ব প্রতিষ্ঠানের সাথে যুক্ত নামস্থান ব্যবহার করে ইন্টেন্ট প্যাটার্ন অন্তর্ভুক্ত থাকতে পারে।

এই নিষেধাজ্ঞাটি বিভাগ 3.6-এ জাভা ভাষার ক্লাসের জন্য নির্দিষ্ট করা অনুরূপ।

3.2.3.4। সম্প্রচার অভিপ্রায়

থার্ড-পার্টি অ্যাপ্লিকেশনগুলি হার্ডওয়্যার বা সফ্টওয়্যার পরিবেশের পরিবর্তন সম্পর্কে তাদের অবহিত করার জন্য নির্দিষ্ট ইন্টেন্টগুলি সম্প্রচার করতে প্ল্যাটফর্মের উপর নির্ভর করে। অ্যান্ড্রয়েড-সামঞ্জস্যপূর্ণ ডিভাইসগুলিকে অবশ্যই উপযুক্ত সিস্টেম ইভেন্টগুলির প্রতিক্রিয়া হিসাবে সর্বজনীন সম্প্রচারের অভিপ্রায়গুলি সম্প্রচার করতে হবে৷ সম্প্রচারের অভিপ্রায় SDK ডকুমেন্টেশনে বর্ণনা করা হয়েছে।

3.3। নেটিভ API সামঞ্জস্য

3.3.1 অ্যাপ্লিকেশন বাইনারি ইন্টারফেস

ডালভিকে চলমান পরিচালিত কোডটি অ্যাপ্লিকেশন .apk ফাইলে প্রদত্ত নেটিভ কোডে কল করতে পারে একটি ELF হিসাবে . তাই উপযুক্ত ডিভাইস হার্ডওয়্যার আর্কিটেকচারের জন্য সংকলিত ফাইল৷ যেহেতু নেটিভ কোড অন্তর্নিহিত প্রসেসর প্রযুক্তির উপর অত্যন্ত নির্ভরশীল, তাই অ্যান্ড্রয়েড docs/CPU-ARCH-ABIS.html ফাইলে Android NDK-এ বেশ কয়েকটি অ্যাপ্লিকেশন বাইনারি ইন্টারফেস (ABIs) সংজ্ঞায়িত করে। যদি একটি ডিভাইস বাস্তবায়ন এক বা একাধিক সংজ্ঞায়িত ABI-এর সাথে সামঞ্জস্যপূর্ণ হয়, তাহলে এটিকে Android NDK-এর সাথে সামঞ্জস্য প্রয়োগ করতে হবে, নিচের মত।

যদি একটি ডিভাইস বাস্তবায়নে একটি Android ABI-এর জন্য সমর্থন অন্তর্ভুক্ত থাকে, তাহলে এটি:

  • স্ট্যান্ডার্ড জাভা নেটিভ ইন্টারফেস (JNI) শব্দার্থবিদ্যা ব্যবহার করে নেটিভ কোডে কল করার জন্য পরিচালিত পরিবেশে চলমান কোডের সমর্থন অন্তর্ভুক্ত করতে হবে
  • নীচের তালিকায় প্রতিটি প্রয়োজনীয় লাইব্রেরির সাথে উত্স-সামঞ্জস্যপূর্ণ (যেমন শিরোনাম সামঞ্জস্যপূর্ণ) এবং বাইনারি-সামঞ্জস্যপূর্ণ (ABI-এর জন্য) হতে হবে
  • android.os.Build.CPU_ABI API এর মাধ্যমে ডিভাইস দ্বারা সমর্থিত নেটিভ অ্যাপ্লিকেশন বাইনারি ইন্টারফেস (ABI) সঠিকভাবে রিপোর্ট করতে হবে
  • docs/CPU-ARCH-ABIS.txt ফাইলে শুধুমাত্র Android NDK-এর সর্বশেষ সংস্করণে নথিভুক্ত করা ABI গুলি রিপোর্ট করতে হবে
  • আপস্ট্রিম অ্যান্ড্রয়েড ওপেন সোর্স প্রকল্পে উপলব্ধ সোর্স কোড এবং হেডার ফাইলগুলি ব্যবহার করে তৈরি করা উচিত৷

নিম্নলিখিত নেটিভ কোড API গুলি অবশ্যই নেটিভ কোড অন্তর্ভুক্ত করে এমন অ্যাপগুলির জন্য উপলব্ধ হতে হবে:

  • libc (সি লাইব্রেরি)
  • libm (গণিত গ্রন্থাগার)
  • C++ এর জন্য ন্যূনতম সমর্থন
  • JNI ইন্টারফেস
  • liblog (Android লগিং)
  • libz (Zlib কম্প্রেশন)
  • libdl (গতিশীল লিঙ্কার)
  • libGLESv1_CM.so (OpenGL ES 1.0)
  • libGLESv2.so (OpenGL ES 2.0)
  • libGLESv3.so (OpenGL ES 3.0)
  • libEGL.so (নেটিভ OpenGL পৃষ্ঠ ব্যবস্থাপনা)
  • libjnigraphics.so
  • libOpenSLES.so (OpenSL ES 1.0.1 অডিও সমর্থন)
  • libOpenMAXAL.so (OpenMAX AL 1.0.1 সমর্থন)
  • libandroid.so (নেটিভ অ্যান্ড্রয়েড কার্যকলাপ সমর্থন)
  • OpenGL-এর জন্য সমর্থন, নীচে বর্ণিত হিসাবে

মনে রাখবেন যে Android NDK-এর ভবিষ্যত প্রকাশগুলি অতিরিক্ত ABI-এর জন্য সমর্থন প্রবর্তন করতে পারে। যদি একটি ডিভাইস বাস্তবায়ন একটি বিদ্যমান পূর্বনির্ধারিত ABI-এর সাথে সামঞ্জস্যপূর্ণ না হয়, তাহলে এটি অবশ্যই কোনো ABI-এর জন্য সমর্থনের প্রতিবেদন করবে না।

মনে রাখবেন যে ডিভাইস বাস্তবায়নে অবশ্যই libGLESv3.so অন্তর্ভুক্ত থাকতে হবে এবং এটি libGLESv2.so-এর সাথে সিমলিঙ্ক (সিম্বলিক) লিঙ্ক আবশ্যক। OpenGL ES 3.0 এর জন্য সমর্থন ঘোষণা করে এমন ডিভাইস বাস্তবায়নে, libGLESv2. তাই OpenGL ES 3.0 ফাংশন চিহ্নগুলি ছাড়াও OpenGL ES 2.0 ফাংশন চিহ্নগুলি রপ্তানি করতে হবে৷

নেটিভ কোড সামঞ্জস্য চ্যালেঞ্জিং. এই কারণে, এটি পুনরাবৃত্তি করা উচিত যে ডিভাইস বাস্তবায়নকারীরা সামঞ্জস্য নিশ্চিত করতে সাহায্য করার জন্য উপরে তালিকাভুক্ত লাইব্রেরিগুলির আপস্ট্রিম বাস্তবায়ন ব্যবহার করার জন্য অত্যন্ত জোরালোভাবে উত্সাহিত করা হয়।

3.4। ওয়েব সামঞ্জস্য

3.4.1। ওয়েবভিউ সামঞ্জস্য

Android ওপেন সোর্স বাস্তবায়ন android.webkit.WebView [ সম্পদ, 10 ] বাস্তবায়নের জন্য ওয়েবকিট রেন্ডারিং ইঞ্জিন ব্যবহার করে। যেহেতু একটি ওয়েব রেন্ডারিং সিস্টেমের জন্য একটি বিস্তৃত পরীক্ষা স্যুট তৈরি করা সম্ভব নয়, তাই ডিভাইস বাস্তবায়নকারীদের অবশ্যই WebView বাস্তবায়নে WebKit-এর নির্দিষ্ট আপস্ট্রিম বিল্ড ব্যবহার করতে হবে। বিশেষভাবে:

  • ডিভাইস বাস্তবায়নের android.webkit.WebView বাস্তবায়ন অবশ্যই Android 4.3 এর জন্য আপস্ট্রিম অ্যান্ড্রয়েড ওপেন সোর্স ট্রি থেকে 534.30 ওয়েবকিট বিল্ডের উপর ভিত্তি করে হওয়া উচিত। এই বিল্ডটিতে WebView-এর জন্য কার্যকারিতা এবং নিরাপত্তা ফিক্সের একটি নির্দিষ্ট সেট অন্তর্ভুক্ত রয়েছে। ডিভাইস বাস্তবায়নকারীরা WebKit বাস্তবায়নে কাস্টমাইজেশন অন্তর্ভুক্ত করতে পারে; যাইহোক, এই ধরনের কোনো কাস্টমাইজেশন অবশ্যই রেন্ডারিং আচরণ সহ WebView-এর আচরণকে পরিবর্তন করবে না।
  • WebView দ্বারা রিপোর্ট করা ব্যবহারকারী এজেন্ট স্ট্রিং এই বিন্যাসে হওয়া আবশ্যক:
    Mozilla/5.0 (Linux; U; Android $(VERSION); $(LOCALE); $(MODEL) Build/$(BUILD)) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
    • $(VERSION) স্ট্রিংটির মান অবশ্যই android.os.Build.VERSION.RELEASE এর মানের সমান হতে হবে
    • $(LOCALE) স্ট্রিংয়ের মানটি দেশের কোড এবং ভাষার জন্য ISO নিয়মগুলি অনুসরণ করা উচিত এবং ডিভাইসের বর্তমান কনফিগার করা লোকেলকে উল্লেখ করা উচিত
    • $(MODEL) স্ট্রিংয়ের মান অবশ্যই android.os.Build.MODEL এর মানের সমান হতে হবে
    • $(BUILD) স্ট্রিংটির মান অবশ্যই android.os.Build.ID এর মানের সমান হতে হবে
    • ডিভাইস বাস্তবায়ন ব্যবহারকারী এজেন্ট স্ট্রিং-এ Mobile বাদ দিতে পারে

WebView উপাদানটিতে যতটা সম্ভব HTML5 [ সম্পদ, 11 ] এর জন্য সমর্থন অন্তর্ভুক্ত করা উচিত। সর্বনিম্নভাবে, ডিভাইস বাস্তবায়নকে অবশ্যই WebView-এ HTML5-এর সাথে যুক্ত এই APIগুলির প্রত্যেকটিকে সমর্থন করতে হবে:

উপরন্তু, ডিভাইস বাস্তবায়ন অবশ্যই HTML5/W3C ওয়েবস্টোরেজ API [ সম্পদ, 15 ] সমর্থন করবে এবং HTML5/W3C IndexedDB API [ সম্পদ, 16 ] সমর্থন করবে। নোট করুন যে ওয়েব ডেভেলপমেন্ট স্ট্যান্ডার্ড সংস্থাগুলি ওয়েবস্টোরেজের উপর IndexedDB-এর পক্ষে রূপান্তরিত হচ্ছে, IndexedDB Android এর ভবিষ্যতের সংস্করণে একটি প্রয়োজনীয় উপাদান হয়ে উঠবে বলে আশা করা হচ্ছে।

HTML5 APIs, সমস্ত JavaScript API-এর মতো, একটি WebView-এ ডিফল্টরূপে অক্ষম করা আবশ্যক, যদি না বিকাশকারী স্বাভাবিক Android API-এর মাধ্যমে তাদের স্পষ্টভাবে সক্ষম করে।

3.4.2। ব্রাউজার সামঞ্জস্য

ডিভাইস বাস্তবায়নে সাধারণ ব্যবহারকারীর ওয়েব ব্রাউজিংয়ের জন্য একটি স্বতন্ত্র ব্রাউজার অ্যাপ্লিকেশন অন্তর্ভুক্ত করা আবশ্যক। স্বতন্ত্র ব্রাউজারটি WebKit ছাড়া অন্য কোন ব্রাউজার প্রযুক্তির উপর ভিত্তি করে হতে পারে। যাইহোক, এমনকি যদি একটি বিকল্প ব্রাউজার অ্যাপ্লিকেশন ব্যবহার করা হয়, তৃতীয় পক্ষের অ্যাপ্লিকেশনগুলিতে প্রদত্ত android.webkit.WebView উপাদানটি অবশ্যই WebKit-এর উপর ভিত্তি করে হতে হবে, যেমনটি 3.4.1 বিভাগে বর্ণিত হয়েছে।

বাস্তবায়ন স্বতন্ত্র ব্রাউজার অ্যাপ্লিকেশনে একটি কাস্টম ব্যবহারকারী এজেন্ট স্ট্রিং পাঠাতে পারে।

স্বতন্ত্র ব্রাউজার অ্যাপ্লিকেশন (আপস্ট্রিম ওয়েবকিট ব্রাউজার অ্যাপ্লিকেশন বা তৃতীয় পক্ষের প্রতিস্থাপনের উপর ভিত্তি করে) যতটা সম্ভব HTML5 [ সম্পদ, 11 ] এর জন্য সমর্থন অন্তর্ভুক্ত করা উচিত। ন্যূনতমভাবে, এইচটিএমএল 5 এর সাথে যুক্ত এই APIগুলির প্রতিটিকে ডিভাইস বাস্তবায়নকে সমর্থন করতে হবে:

উপরন্তু, ডিভাইস বাস্তবায়ন অবশ্যই HTML5/W3C ওয়েবস্টোরেজ API [ সম্পদ, 15 ] সমর্থন করবে এবং HTML5/W3C IndexedDB API [ সম্পদ, 16 ] সমর্থন করবে। নোট করুন যে ওয়েব ডেভেলপমেন্ট স্ট্যান্ডার্ড সংস্থাগুলি ওয়েবস্টোরেজের উপর IndexedDB-এর পক্ষে রূপান্তরিত হচ্ছে, IndexedDB Android এর ভবিষ্যতের সংস্করণে একটি প্রয়োজনীয় উপাদান হয়ে উঠবে বলে আশা করা হচ্ছে।

3.5। API আচরণগত সামঞ্জস্য

প্রতিটি API প্রকারের আচরণ (পরিচালিত, নরম, নেটিভ এবং ওয়েব) অবশ্যই আপস্ট্রিম অ্যান্ড্রয়েড ওপেন সোর্স প্রকল্পের পছন্দের বাস্তবায়নের সাথে সামঞ্জস্যপূর্ণ হতে হবে [ সম্পদ, 3 ]। সামঞ্জস্যের কিছু নির্দিষ্ট ক্ষেত্র হল:

  • ডিভাইসগুলি অবশ্যই একটি আদর্শ অভিপ্রায়ের আচরণ বা শব্দার্থ পরিবর্তন করবে না৷
  • ডিভাইসগুলি অবশ্যই একটি নির্দিষ্ট ধরণের সিস্টেম উপাদানের জীবনচক্র বা জীবনচক্রের শব্দার্থ পরিবর্তন করবে না (যেমন পরিষেবা, কার্যকলাপ, সামগ্রী সরবরাহকারী, ইত্যাদি)
  • ডিভাইসগুলি অবশ্যই একটি আদর্শ অনুমতির শব্দার্থ পরিবর্তন করবে না৷

উপরের তালিকাটি ব্যাপক নয়। কম্প্যাটিবিলিটি টেস্ট স্যুট (সিটিএস) আচরণগত সামঞ্জস্যের জন্য প্ল্যাটফর্মের উল্লেখযোগ্য অংশ পরীক্ষা করে, কিন্তু সবগুলো নয়। Android ওপেন সোর্স প্রকল্পের সাথে আচরণগত সামঞ্জস্য নিশ্চিত করা বাস্তবায়নকারীর দায়িত্ব। এই কারণে, ডিভাইস বাস্তবায়নকারীদের সিস্টেমের উল্লেখযোগ্য অংশগুলিকে পুনরায় প্রয়োগ করার পরিবর্তে যেখানে সম্ভব Android ওপেন সোর্স প্রকল্পের মাধ্যমে উপলব্ধ সোর্স কোড ব্যবহার করা উচিত।

3.6। API নামস্থান

অ্যান্ড্রয়েড জাভা প্রোগ্রামিং ভাষা দ্বারা সংজ্ঞায়িত প্যাকেজ এবং ক্লাস নেমস্পেস কনভেনশন অনুসরণ করে। তৃতীয় পক্ষের অ্যাপ্লিকেশনগুলির সাথে সামঞ্জস্য নিশ্চিত করতে, ডিভাইস বাস্তবায়নকারীরা এই প্যাকেজ নেমস্পেসগুলিতে কোনও নিষিদ্ধ পরিবর্তন (নীচে দেখুন) করবেন না:

  • java.*
  • javax.*
  • সূর্য।*
  • অ্যান্ড্রয়েড।*
  • com.android.*

নিষিদ্ধ পরিবর্তন অন্তর্ভুক্ত:

  • ডিভাইস বাস্তবায়নের জন্য অ্যান্ড্রয়েড প্ল্যাটফর্মে সর্বজনীনভাবে প্রকাশ করা APIগুলিকে কোনও পদ্ধতি বা শ্রেণি স্বাক্ষর পরিবর্তন করে, বা ক্লাস বা শ্রেণি ক্ষেত্রগুলি সরিয়ে দিয়ে সংশোধন করা উচিত নয়।
  • ডিভাইস বাস্তবায়নকারীরা এপিআই-এর অন্তর্নিহিত বাস্তবায়ন সংশোধন করতে পারে, কিন্তু এই ধরনের পরিবর্তনগুলি প্রকাশ্যে প্রকাশ করা কোনও API-এর বিবৃত আচরণ এবং জাভা-ভাষা স্বাক্ষরকে প্রভাবিত করবে না।
  • ডিভাইস ইমপ্লিমেন্টারদের অবশ্যই উপরের API-এ কোনো প্রকাশ্য উপাদান (যেমন ক্লাস বা ইন্টারফেস, বা বিদ্যমান ক্লাস বা ইন্টারফেসে ক্ষেত্র বা পদ্ধতি) যোগ করা উচিত নয়।

একটি "পাবলিকলি এক্সপোজড এলিমেন্ট" হল যেকোন কনস্ট্রাক্ট যা আপস্ট্রিম অ্যান্ড্রয়েড সোর্স কোডে ব্যবহৃত "@hide" মার্কার দিয়ে সজ্জিত নয়। অন্য কথায়, ডিভাইস বাস্তবায়নকারীরা অবশ্যই নতুন APIs প্রকাশ করবেন না বা উপরে উল্লিখিত নেমস্পেসগুলিতে বিদ্যমান APIগুলিকে পরিবর্তন করবেন না। ডিভাইস বাস্তবায়নকারীরা শুধুমাত্র অভ্যন্তরীণ পরিবর্তনগুলি করতে পারে, তবে সেই পরিবর্তনগুলিকে বিজ্ঞাপন দেওয়া বা অন্যথায় বিকাশকারীদের কাছে প্রকাশ করা উচিত নয়৷

ডিভাইস বাস্তবায়নকারীরা কাস্টম এপিআই যোগ করতে পারে, কিন্তু এই ধরনের কোনো এপিআই অবশ্যই অন্য প্রতিষ্ঠানের মালিকানাধীন নামস্থানে থাকা উচিত নয়। উদাহরণস্বরূপ, ডিভাইস বাস্তবায়নকারীরা অবশ্যই com.google.* বা অনুরূপ নামস্থানে API যোগ করবেন না; শুধুমাত্র Google তা করতে পারে। একইভাবে, Google অন্য কোম্পানির নামস্থানে API যোগ করবে না। অতিরিক্তভাবে, যদি কোনও ডিভাইস বাস্তবায়নে স্ট্যান্ডার্ড অ্যান্ড্রয়েড নেমস্পেসের বাইরে কাস্টম এপিআই অন্তর্ভুক্ত থাকে তবে সেই এপিআইগুলিকে অবশ্যই একটি অ্যান্ড্রয়েড শেয়ার্ড লাইব্রেরিতে প্যাকেজ করা উচিত যাতে কেবলমাত্র অ্যাপ্লিকেশনগুলি সেগুলি স্পষ্টভাবে ব্যবহার করে (< <uses-library> প্রক্রিয়াটির মাধ্যমে) বর্ধিত মেমরি ব্যবহারের দ্বারা প্রভাবিত হয় যেমন apis এর।

যদি কোনও ডিভাইস প্রয়োগকারী উপরের কোনও প্যাকেজের নেমস্পেসগুলি উন্নত করার প্রস্তাব দেয় (যেমন কোনও বিদ্যমান এপিআইতে দরকারী নতুন কার্যকারিতা যুক্ত করে, বা একটি নতুন এপিআই যুক্ত করে), প্রয়োগকারীকে উত্স.অ্যান্ড্রয়েড.কম পরিদর্শন করা উচিত এবং পরিবর্তনগুলি অবদানের জন্য প্রক্রিয়া শুরু করা এবং প্রক্রিয়া শুরু করা উচিত কোড, সেই সাইটের তথ্য অনুযায়ী।

নোট করুন যে উপরের বিধিনিষেধগুলি জাভা প্রোগ্রামিং ভাষায় এপিআই নামকরণের জন্য স্ট্যান্ডার্ড কনভেনশনগুলির সাথে মিলে যায়; এই বিভাগটি কেবল সেই সম্মেলনগুলিকে শক্তিশালী করা এবং এই সামঞ্জস্যতা সংজ্ঞাতে অন্তর্ভুক্তির মাধ্যমে তাদের বাধ্যতামূলক করা।

3.7। ভার্চুয়াল মেশিনের সামঞ্জস্য

ডিভাইস বাস্তবায়নগুলি অবশ্যই সম্পূর্ণ ডালভিক এক্সিকিউটেবল (ডেক্স) বাইটকোড স্পেসিফিকেশন এবং ডালভিক ভার্চুয়াল মেশিন শব্দার্থবিজ্ঞান [ সংস্থানসমূহ, 17 ] সমর্থন করবে।

ডিভাইস বাস্তবায়নগুলি ডালভিককে আপস্ট্রিম অ্যান্ড্রয়েড প্ল্যাটফর্ম অনুসারে মেমরি বরাদ্দ করতে এবং নিম্নলিখিত সারণী দ্বারা নির্দিষ্ট হিসাবে কনফিগার করতে হবে। (পর্দার আকার এবং স্ক্রিন ঘনত্বের সংজ্ঞাগুলির জন্য বিভাগ 7.1.1 দেখুন))

নোট করুন যে নীচে বর্ণিত মেমরির মানগুলি ন্যূনতম মান হিসাবে বিবেচিত হয় এবং ডিভাইস বাস্তবায়নগুলি অ্যাপ্লিকেশন প্রতি আরও মেমরি বরাদ্দ করতে পারে।

পর্দার আকার পর্দার ঘনত্ব অ্যাপ্লিকেশন মেমরি
ছোট / স্বাভাবিক / বড় এলডিপিআই / এমডিপিআই 16MB
ছোট / স্বাভাবিক / বড় টিভিডিপিআই / এইচডিপিআই 32MB
ছোট / স্বাভাবিক / বড় xhdpi 64 এমবি
বড় এমডিপিআই 32MB
বড় টিভিডিপিআই / এইচডিপিআই 64 এমবি
বড় xhdpi 128MB

3.8। ব্যবহারকারী ইন্টারফেসের সামঞ্জস্যতা

3.8.1। লঞ্চার (হোম স্ক্রিন)

অ্যান্ড্রয়েড ৪.৩ এর মধ্যে একটি লঞ্চার অ্যাপ্লিকেশন (হোম স্ক্রিন) এবং ডিভাইস লঞ্চার (হোম স্ক্রিন) প্রতিস্থাপনের জন্য তৃতীয় পক্ষের অ্যাপ্লিকেশনগুলির জন্য সমর্থন অন্তর্ভুক্ত রয়েছে। ডিভাইস বাস্তবায়নগুলি যা তৃতীয় পক্ষের অ্যাপ্লিকেশনগুলিকে ডিভাইস হোম স্ক্রিনটি প্রতিস্থাপনের অনুমতি দেয় প্ল্যাটফর্ম বৈশিষ্ট্যটি android.software.home_screen ঘোষণা করতে হবে।

3.8.2। উইজেট

অ্যান্ড্রয়েড একটি উপাদান প্রকার এবং সংশ্লিষ্ট এপিআই এবং লাইফসাইকেলকে সংজ্ঞায়িত করে যা অ্যাপ্লিকেশনগুলিকে শেষ ব্যবহারকারীর কাছে একটি "অ্যাপউইজেট" প্রকাশ করতে দেয় [ সংস্থানসমূহ, 18 ]। হোম স্ক্রিনে এম্বেডিং উইজেটগুলিকে সমর্থন করে এমন ডিভাইস বাস্তবায়নগুলি অবশ্যই নিম্নলিখিত প্রয়োজনীয়তাগুলি পূরণ করতে হবে এবং প্ল্যাটফর্ম বৈশিষ্ট্য android.software.app_widgets এর জন্য সমর্থন ঘোষণা করতে হবে।

  • ডিভাইস লঞ্চারগুলি অবশ্যই অ্যাপউইজেটগুলির জন্য অন্তর্নির্মিত সমর্থন অন্তর্ভুক্ত করতে হবে এবং সরাসরি লঞ্চারের মধ্যে অ্যাপউইডেটগুলি যুক্ত, কনফিগার করতে, দেখুন এবং অপসারণ করতে ইউজার ইন্টারফেসের সাশ্রয়ীগুলি প্রকাশ করতে হবে।
  • ডিভাইস বাস্তবায়নগুলি অবশ্যই স্ট্যান্ডার্ড গ্রিড আকারে 4 x 4 এর উইজেটগুলি রেন্ডারিং করতে সক্ষম হতে হবে। (বিশদগুলির জন্য অ্যান্ড্রয়েড এসডিকে ডকুমেন্টেশন [ সংস্থানসমূহ, 18 ] এ অ্যাপ উইজেট ডিজাইনের নির্দেশিকাগুলি দেখুন।
  • লক স্ক্রিনের জন্য সমর্থন অন্তর্ভুক্ত ডিভাইস বাস্তবায়নগুলিতে অবশ্যই লক স্ক্রিনে অ্যাপ্লিকেশন উইজেটগুলি সমর্থন করতে হবে।

3.8.3। বিজ্ঞপ্তি

অ্যান্ড্রয়েডে এপিআই অন্তর্ভুক্ত রয়েছে যা বিকাশকারীদের ডিভাইসের হার্ডওয়্যার এবং সফ্টওয়্যার বৈশিষ্ট্যগুলি ব্যবহার করে উল্লেখযোগ্য ইভেন্টগুলি [ সংস্থানসমূহ, 19 ] ব্যবহারকারীদের অবহিত করার অনুমতি দেয়।

কিছু এপিআই অ্যাপ্লিকেশনগুলিকে বিজ্ঞপ্তিগুলি সম্পাদন করতে বা হার্ডওয়্যার, বিশেষত শব্দ, কম্পন এবং আলো ব্যবহার করে মনোযোগ আকর্ষণ করার অনুমতি দেয়। ডিভাইস বাস্তবায়নগুলি অবশ্যই এসডিকে ডকুমেন্টেশনে বর্ণিত হিসাবে এবং ডিভাইস বাস্তবায়ন হার্ডওয়্যার দিয়ে যতটা সম্ভব সম্ভব হার্ডওয়্যার বৈশিষ্ট্যগুলি ব্যবহার করে এমন বিজ্ঞপ্তিগুলি সমর্থন করতে হবে। উদাহরণস্বরূপ, যদি কোনও ডিভাইস বাস্তবায়নে একটি ভাইব্রেটার অন্তর্ভুক্ত থাকে তবে এটি অবশ্যই কম্পন এপিআইগুলি সঠিকভাবে প্রয়োগ করতে হবে। যদি কোনও ডিভাইস বাস্তবায়নের হার্ডওয়্যারের অভাব থাকে তবে সংশ্লিষ্ট এপিআইগুলি অবশ্যই নো-অপ হিসাবে প্রয়োগ করতে হবে। নোট করুন যে এই আচরণটি বিভাগ 7 এ আরও বিশদ।

অতিরিক্তভাবে, বাস্তবায়নটি এপিআইগুলিতে [ সংস্থানসমূহ, 20 ], বা স্ট্যাটাস/সিস্টেম বার আইকন স্টাইল গাইড [ সংস্থানসমূহ, 21 ] এ সরবরাহ করা সমস্ত সংস্থান (আইকন, সাউন্ড ফাইল ইত্যাদি) সঠিকভাবে রেন্ডার করতে হবে। ডিভাইস প্রয়োগকারীরা রেফারেন্স অ্যান্ড্রয়েড ওপেন সোর্স বাস্তবায়নের দ্বারা সরবরাহিত বিজ্ঞপ্তিগুলির জন্য বিকল্প ব্যবহারকারীর অভিজ্ঞতা সরবরাহ করতে পারে; তবে, এই জাতীয় বিকল্প বিজ্ঞপ্তি সিস্টেমগুলি অবশ্যই উপরের হিসাবে বিদ্যমান বিজ্ঞপ্তি সংস্থানগুলিকে সমর্থন করবে।

অ্যান্ড্রয়েড 4.3 এর মধ্যে সমৃদ্ধ বিজ্ঞপ্তিগুলির জন্য সমর্থন অন্তর্ভুক্ত রয়েছে, যেমন চলমান বিজ্ঞপ্তিগুলির জন্য ইন্টারেক্টিভ ভিউ। ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যান্ড্রয়েড এপিআইগুলিতে নথিভুক্ত হিসাবে সমৃদ্ধ বিজ্ঞপ্তিগুলি সঠিকভাবে প্রদর্শন এবং সম্পাদন করতে হবে।

অ্যান্ড্রয়েডে এপিআই [ সংস্থানসমূহ, 22 ] অন্তর্ভুক্ত রয়েছে যা বিকাশকারীদের তাদের অ্যাপ্লিকেশনগুলিতে অনুসন্ধান অন্তর্ভুক্ত করতে এবং তাদের অ্যাপ্লিকেশনটির ডেটা গ্লোবাল সিস্টেম অনুসন্ধানে প্রকাশ করতে দেয়। সাধারণভাবে বলতে গেলে, এই কার্যকারিতাটি একটি একক, সিস্টেম-প্রশস্ত ইউজার ইন্টারফেস নিয়ে গঠিত যা ব্যবহারকারীদের ক্যোয়ারীগুলিতে প্রবেশ করতে, ব্যবহারকারীদের টাইপ হিসাবে পরামর্শ প্রদর্শন করতে এবং ফলাফল প্রদর্শন করতে দেয়। অ্যান্ড্রয়েড এপিআইগুলি বিকাশকারীদের তাদের নিজস্ব অ্যাপ্লিকেশনগুলির মধ্যে অনুসন্ধান সরবরাহ করার জন্য এই ইন্টারফেসটিকে পুনরায় ব্যবহার করার অনুমতি দেয় এবং বিকাশকারীদের সাধারণ গ্লোবাল অনুসন্ধান ইউজার ইন্টারফেসে ফলাফল সরবরাহ করার অনুমতি দেয়।

ডিভাইস বাস্তবায়নে অবশ্যই ব্যবহারকারীর ইনপুটটির প্রতিক্রিয়াতে রিয়েল-টাইম পরামর্শগুলিতে সক্ষম একটি একক, ভাগ করা, সিস্টেম-প্রশস্ত অনুসন্ধান ব্যবহারকারী ইন্টারফেস অন্তর্ভুক্ত থাকতে হবে। ডিভাইস বাস্তবায়নগুলি অবশ্যই এপিআইগুলি প্রয়োগ করতে হবে যা বিকাশকারীদের তাদের নিজস্ব অ্যাপ্লিকেশনগুলির মধ্যে অনুসন্ধান সরবরাহ করতে এই ব্যবহারকারী ইন্টারফেসটিকে পুনরায় ব্যবহার করতে দেয়। ডিভাইস বাস্তবায়নগুলি অবশ্যই এপিআইগুলি প্রয়োগ করতে হবে যা তৃতীয় পক্ষের অ্যাপ্লিকেশনগুলিকে গ্লোবাল অনুসন্ধান মোডে চালিত হলে অনুসন্ধান বাক্সে পরামর্শ যুক্ত করার অনুমতি দেয়। যদি কোনও তৃতীয় পক্ষের অ্যাপ্লিকেশনগুলি ইনস্টল না করা হয় যা এই কার্যকারিতাটি ব্যবহার করে তবে ডিফল্ট আচরণটি ওয়েব অনুসন্ধান ইঞ্জিনের ফলাফল এবং পরামর্শগুলি প্রদর্শন করা উচিত।

3.8.5। টোস্ট

অ্যাপ্লিকেশনগুলি "টোস্ট" এপিআই ([ সংস্থানসমূহে সংজ্ঞায়িত, 23 ] সংজ্ঞায়িত) ব্যবহার করতে পারে শেষ ব্যবহারকারীর কাছে সংক্ষিপ্ত নন-মডেল স্ট্রিংগুলি প্রদর্শন করতে, যা একটি সংক্ষিপ্ত সময়ের পরে অদৃশ্য হয়ে যায়। ডিভাইস বাস্তবায়নগুলি অবশ্যই কিছু উচ্চ-দৃশ্যমানতার পদ্ধতিতে ব্যবহারকারীদের শেষ পর্যন্ত অ্যাপ্লিকেশনগুলি থেকে টোস্টগুলি প্রদর্শন করতে হবে।

3.8.6। থিম

অ্যান্ড্রয়েড সম্পূর্ণ ক্রিয়াকলাপ বা অ্যাপ্লিকেশন জুড়ে স্টাইল প্রয়োগ করার জন্য অ্যাপ্লিকেশনগুলির একটি প্রক্রিয়া হিসাবে "থিমগুলি" সরবরাহ করে। অ্যান্ড্রয়েড ৪.৩ এর মধ্যে একটি "হলো" বা "হলোগ্রাফিক" থিম অন্তর্ভুক্ত রয়েছে অ্যাপ্লিকেশন বিকাশকারীদের যদি তারা অ্যান্ড্রয়েড এসডিকে [ সংস্থানসমূহ, 24 ] দ্বারা সংজ্ঞায়িত হিসাবে হোলো থিম চেহারাটি মেলে এবং অনুভব করতে চান তবে ব্যবহার করার জন্য সংজ্ঞায়িত শৈলীর একটি সেট হিসাবে একটি "হলো" বা "হলোগ্রাফিক" থিম অন্তর্ভুক্ত রয়েছে। ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যাপ্লিকেশনগুলির সংস্পর্শে থাকা কোনও হলো থিম বৈশিষ্ট্যগুলিকে পরিবর্তন করতে হবে না [ সংস্থানসমূহ, 25 ]।

অ্যান্ড্রয়েড ৪.৩ এর মধ্যে অ্যাপ্লিকেশন বিকাশকারীদের ডিভাইস প্রয়োগকারী দ্বারা সংজ্ঞায়িত হিসাবে ডিভাইস থিমের চেহারা এবং অনুভূতির সাথে মেলে যদি তারা ব্যবহারের জন্য সংজ্ঞায়িত শৈলীর একটি সেট হিসাবে একটি নতুন "ডিভাইস ডিফল্ট" থিম অন্তর্ভুক্ত করে। ডিভাইস বাস্তবায়নগুলি অ্যাপ্লিকেশনগুলির সংস্পর্শে থাকা ডিভাইসফাল্ট থিম বৈশিষ্ট্যগুলিকে সংশোধন করতে পারে [ সংস্থানসমূহ, 25 ]।

3.8.7। লাইভ ওয়ালপেপার

অ্যান্ড্রয়েড একটি উপাদান প্রকার এবং সংশ্লিষ্ট এপিআই এবং লাইফসাইকেল সংজ্ঞায়িত করে যা অ্যাপ্লিকেশনগুলিকে শেষ ব্যবহারকারীর কাছে এক বা একাধিক "লাইভ ওয়ালপেপার" প্রকাশ করতে দেয় [ সংস্থানসমূহ, 26 ]। লাইভ ওয়ালপেপারগুলি হ'ল অ্যানিমেশন, নিদর্শন বা অনুরূপ চিত্রগুলি সীমিত ইনপুট ক্ষমতা সহ যা ওয়ালপেপার হিসাবে প্রদর্শিত হয়, অন্যান্য অ্যাপ্লিকেশনগুলির পিছনে।

হার্ডওয়্যারটি নির্ভরযোগ্যভাবে লাইভ ওয়ালপেপারগুলি চালাতে সক্ষম বলে বিবেচিত হয় যদি এটি সমস্ত লাইভ ওয়ালপেপারগুলি চালাতে পারে, কার্যকারিতার কোনও সীমাবদ্ধতা ছাড়াই, যুক্তিসঙ্গত ফ্রেমরেটে অন্য অ্যাপ্লিকেশনগুলিতে কোনও বিরূপ প্রভাব ফেলে না। যদি হার্ডওয়্যারের সীমাবদ্ধতাগুলি ওয়ালপেপার এবং/অথবা অ্যাপ্লিকেশনগুলিকে ক্র্যাশ, ত্রুটিযুক্ত করে, অতিরিক্ত সিপিইউ বা ব্যাটারি শক্তি গ্রহণ করে বা অগ্রহণযোগ্য কম ফ্রেমের হারে চালায়, হার্ডওয়্যারটি লাইভ ওয়ালপেপার চালাতে অক্ষম বলে বিবেচিত হয়। উদাহরণস্বরূপ, কিছু লাইভ ওয়ালপেপারগুলি তাদের সামগ্রী রেন্ডার করতে একটি ওপেন জিএল 1.0 বা 2.0 প্রসঙ্গ ব্যবহার করতে পারে। লাইভ ওয়ালপেপারটি হার্ডওয়্যারের উপর নির্ভরযোগ্যভাবে চলবে না যা একাধিক ওপেনজিএল প্রসঙ্গ সমর্থন করে না কারণ একটি ওপেনজিএল প্রসঙ্গের লাইভ ওয়ালপেপার ব্যবহার অন্যান্য অ্যাপ্লিকেশনগুলির সাথে বিরোধ করতে পারে যা একটি ওপেনজিএল প্রসঙ্গও ব্যবহার করে।

উপরে বর্ণিত হিসাবে লাইভ ওয়ালপেপারগুলি নির্ভরযোগ্যভাবে চালাতে সক্ষম ডিভাইস বাস্তবায়নগুলি লাইভ ওয়ালপেপারগুলি প্রয়োগ করা উচিত। ডিভাইস বাস্তবায়নগুলি উপরে বর্ণিত হিসাবে লাইভ ওয়ালপেপারগুলি নির্ভরযোগ্যভাবে না চালানোর জন্য নির্ধারিত হয়েছে অবশ্যই লাইভ ওয়ালপেপারগুলি প্রয়োগ করা উচিত নয়।

3.8.8। সাম্প্রতিক অ্যাপ্লিকেশন প্রদর্শন

উজান অ্যান্ড্রয়েড ৪.৩ উত্স কোডে অ্যাপ্লিকেশনটির গ্রাফিকাল অবস্থার থাম্বনেইল চিত্র ব্যবহার করে সাম্প্রতিক অ্যাপ্লিকেশনগুলি প্রদর্শনের জন্য একটি ব্যবহারকারী ইন্টারফেস অন্তর্ভুক্ত রয়েছে যে মুহুর্তে ব্যবহারকারী শেষটি অ্যাপ্লিকেশনটি ছেড়ে চলে গেছে। ডিভাইস বাস্তবায়ন এই ব্যবহারকারী ইন্টারফেস পরিবর্তন বা অপসারণ করতে পারে; তবে অ্যান্ড্রয়েডের ভবিষ্যতের সংস্করণটি এই কার্যকারিতাটির আরও বিস্তৃত ব্যবহার করার পরিকল্পনা করা হয়েছে। ডিভাইস বাস্তবায়নগুলি সাম্প্রতিক অ্যাপ্লিকেশনগুলির জন্য উজানের অ্যান্ড্রয়েড 4.3 ইউজার ইন্টারফেস (বা অনুরূপ থাম্বনেইল-ভিত্তিক ইন্টারফেস) ব্যবহার করতে উত্সাহিত করা হয়, অন্যথায় তারা অ্যান্ড্রয়েডের ভবিষ্যতের সংস্করণের সাথে সামঞ্জস্যপূর্ণ নাও হতে পারে।

3.8.9। ইনপুট পরিচালনা

অ্যান্ড্রয়েড 4.3 ইনপুট পরিচালনার জন্য সমর্থন এবং তৃতীয় পক্ষের ইনপুট পদ্ধতি সম্পাদকদের জন্য সমর্থন অন্তর্ভুক্ত। ডিভাইস বাস্তবায়নগুলি যা ব্যবহারকারীদের ডিভাইসে তৃতীয় পক্ষের ইনপুট পদ্ধতিগুলি ব্যবহার করতে দেয় তা অবশ্যই প্ল্যাটফর্ম বৈশিষ্ট্যটি android.software.input_methods ঘোষণা করতে হবে এবং অ্যান্ড্রয়েড এসডিকে ডকুমেন্টেশনে সংজ্ঞায়িত আইএমই এপিআইগুলিকে সমর্থন করবে।

ডিভাইস বাস্তবায়নগুলি যা android.software.input_methods বৈশিষ্ট্যটি ঘোষণা করে তা অবশ্যই তৃতীয় পক্ষের ইনপুট পদ্ধতিগুলি যুক্ত এবং কনফিগার করার জন্য একটি ব্যবহারকারী-অ্যাক্সেসযোগ্য প্রক্রিয়া সরবরাহ করতে হবে। ডিভাইস বাস্তবায়নগুলি অবশ্যই android.settings.INPUT_METHOD_SETTINGS অভিপ্রায়টির প্রতিক্রিয়া হিসাবে সেটিংস ইন্টারফেসটি প্রদর্শন করতে হবে।

3.8.10। লক স্ক্রিন মিডিয়া রিমোট কন্ট্রোল

অ্যান্ড্রয়েড ৪.৩ এর মধ্যে রিমোট কন্ট্রোল এপিআইয়ের সমর্থন অন্তর্ভুক্ত রয়েছে যা মিডিয়া অ্যাপ্লিকেশনগুলিকে প্লেব্যাক নিয়ন্ত্রণের সাথে একীভূত করতে দেয় যা ডিভাইস লক স্ক্রিনের মতো প্রত্যন্ত দৃশ্যে প্রদর্শিত হয় [ সংস্থানসমূহ,] ৪ ]। ডিভাইসে লক স্ক্রিনকে সমর্থন করে এবং ব্যবহারকারীদের হোম স্ক্রিনে উইজেট যুক্ত করার অনুমতি দেয় এমন ডিভাইস বাস্তবায়নগুলি অবশ্যই ডিভাইস লক স্ক্রিনে রিমোট কন্ট্রোল এম্বেড করার জন্য সমর্থন অন্তর্ভুক্ত করতে হবে [ সংস্থানসমূহ, 69 ]।

3.8.11। স্বপ্ন

অ্যান্ড্রয়েড 4.3 এর মধ্যে ইন্টারেক্টিভ স্ক্রিনসেভারগুলির জন্য ড্রিমস [ রিসোর্সস, 76 ] এর সমর্থন অন্তর্ভুক্ত রয়েছে। স্বপ্নগুলি যখন কোনও চার্জিং ডিভাইস নিষ্ক্রিয় থাকে বা ডেস্ক ডকে ডক করা হয় তখন ব্যবহারকারীদের অ্যাপ্লিকেশনগুলির সাথে ইন্টারঅ্যাক্ট করতে দেয়। ডিভাইস বাস্তবায়নে অবশ্যই স্বপ্নের জন্য সমর্থন অন্তর্ভুক্ত থাকতে হবে এবং ব্যবহারকারীদের স্বপ্নগুলি কনফিগার করার জন্য একটি সেটিংস বিকল্প সরবরাহ করতে হবে।

3.9 ডিভাইস প্রশাসন

অ্যান্ড্রয়েড ৪.৩ এর মধ্যে এমন বৈশিষ্ট্য অন্তর্ভুক্ত রয়েছে যা সুরক্ষা-সচেতন অ্যাপ্লিকেশনগুলিকে সিস্টেম পর্যায়ে ডিভাইস প্রশাসনের কার্য সম্পাদন করতে দেয়, যেমন পাসওয়ার্ড নীতি প্রয়োগ করা বা অ্যান্ড্রয়েড ডিভাইস প্রশাসন এপিআই [ সংস্থানসমূহ, ২ ]] এর মাধ্যমে পাসওয়ার্ড নীতিগুলি প্রয়োগ করা বা দূরবর্তী ওয়াইপ সম্পাদন করা। ডিভাইস বাস্তবায়নগুলি অবশ্যই DevicePolicyManager শ্রেণীর একটি বাস্তবায়ন সরবরাহ করতে হবে [ সংস্থানসমূহ, ২৮ ]। লক স্ক্রিনের জন্য সমর্থন অন্তর্ভুক্ত ডিভাইস বাস্তবায়নগুলিতে অবশ্যই অ্যান্ড্রয়েড এসডিকে ডকুমেন্টেশনে সংজ্ঞায়িত ডিভাইস প্রশাসনের নীতিগুলির সম্পূর্ণ পরিসীমা সমর্থন করতে হবে [ সংস্থানসমূহ, ২ 27 ]।

3.10 অ্যাক্সেসযোগ্যতা

অ্যান্ড্রয়েড 4.3 একটি অ্যাক্সেসযোগ্যতা স্তর সরবরাহ করে যা প্রতিবন্ধী ব্যবহারকারীদের তাদের ডিভাইসগুলি আরও সহজেই নেভিগেট করতে সহায়তা করে। তদতিরিক্ত, অ্যান্ড্রয়েড 4.3 প্ল্যাটফর্ম এপিআই সরবরাহ করে যা অ্যাক্সেসিবিলিটি পরিষেবা বাস্তবায়নগুলি ব্যবহারকারী এবং সিস্টেম ইভেন্টগুলির জন্য কলব্যাকগুলি গ্রহণ করতে এবং বিকল্প প্রতিক্রিয়া প্রক্রিয়া তৈরি করতে সক্ষম করে, যেমন পাঠ্য-থেকে-স্পিচ, হ্যাপটিক প্রতিক্রিয়া এবং ট্র্যাকবল/ডি-প্যাড নেভিগেশন [ সংস্থানসমূহ, 29 ] . ডিভাইস বাস্তবায়নগুলি অবশ্যই ডিফল্ট অ্যান্ড্রয়েড বাস্তবায়নের সাথে সামঞ্জস্য রেখে অ্যান্ড্রয়েড অ্যাক্সেসযোগ্যতা কাঠামোর একটি বাস্তবায়ন সরবরাহ করতে হবে। বিশেষত, ডিভাইস বাস্তবায়নগুলি অবশ্যই নিম্নলিখিত প্রয়োজনীয়তাগুলি পূরণ করতে হবে।

  • ডিভাইস বাস্তবায়নগুলি অবশ্যই android.accessibilityservice মাধ্যমে তৃতীয় পক্ষের অ্যাক্সেসিবিলিটি পরিষেবা বাস্তবায়নগুলিকে সমর্থন করতে হবে acc
  • ডিভাইস বাস্তবায়নগুলি অবশ্যই AccessibilityEvents তৈরি করতে হবে এবং এই ইভেন্টগুলি সমস্ত নিবন্ধিত AccessibilityService বাস্তবায়নে ডিফল্ট অ্যান্ড্রয়েড বাস্তবায়নের সাথে সামঞ্জস্য রেখে সরবরাহ করতে হবে।
  • ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যাক্সেসিবিলিটি পরিষেবাগুলি সক্ষম এবং অক্ষম করার জন্য একটি ব্যবহারকারী-অ্যাক্সেসযোগ্য প্রক্রিয়া সরবরাহ করতে হবে এবং android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS অভিপ্রায়টির প্রতিক্রিয়া হিসাবে এই ইন্টারফেসটি প্রদর্শন করতে হবে।

অতিরিক্তভাবে, ডিভাইস বাস্তবায়নগুলি ডিভাইসে অ্যাক্সেসযোগ্যতা পরিষেবার প্রয়োগ সরবরাহ করা উচিত এবং ডিভাইস সেটআপের সময় অ্যাক্সেসযোগ্যতা পরিষেবা সক্ষম করার জন্য ব্যবহারকারীদের জন্য একটি ব্যবস্থা সরবরাহ করা উচিত। আইস ফ্রি প্রকল্প [ সংস্থানসমূহ, ৩১ ] থেকে অ্যাক্সেসযোগ্যতা পরিষেবার একটি ওপেন সোর্স বাস্তবায়ন পাওয়া যায়।

3.11 পাঠ্য থেকে স্পিচ

অ্যান্ড্রয়েড ৪.৩ এর মধ্যে এপিআই অন্তর্ভুক্ত রয়েছে যা অ্যাপ্লিকেশনগুলিকে পাঠ্য-থেকে-স্পিচ (টিটিএস) পরিষেবাগুলি ব্যবহার করার অনুমতি দেয় এবং পরিষেবা সরবরাহকারীদের টিটিএস পরিষেবাদির বাস্তবায়ন সরবরাহ করতে দেয় [ সংস্থানসমূহ, 32 ]। ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যান্ড্রয়েড টিটিএস ফ্রেমওয়ার্ক সম্পর্কিত এই প্রয়োজনীয়তাগুলি পূরণ করতে হবে:

  • ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যান্ড্রয়েড টিটিএস ফ্রেমওয়ার্ক এপিআইগুলিকে সমর্থন করবে এবং ডিভাইসে উপলব্ধ ভাষাগুলিকে সমর্থন করে এমন একটি টিটিএস ইঞ্জিন অন্তর্ভুক্ত করা উচিত। নোট করুন যে উজান অ্যান্ড্রয়েড ওপেন সোর্স সফ্টওয়্যারটিতে একটি পূর্ণ বৈশিষ্ট্যযুক্ত টিটিএস ইঞ্জিন বাস্তবায়ন অন্তর্ভুক্ত রয়েছে।
  • ডিভাইস বাস্তবায়নগুলি অবশ্যই তৃতীয় পক্ষের টিটিএস ইঞ্জিনগুলির ইনস্টলেশনকে সমর্থন করবে।
  • ডিভাইস বাস্তবায়নগুলি অবশ্যই একটি ব্যবহারকারী-অ্যাক্সেসযোগ্য ইন্টারফেস সরবরাহ করতে হবে যা ব্যবহারকারীদের সিস্টেম পর্যায়ে ব্যবহারের জন্য একটি টিটিএস ইঞ্জিন নির্বাচন করতে দেয়।

4. অ্যাপ্লিকেশন প্যাকেজিং সামঞ্জস্য

ডিভাইস বাস্তবায়নগুলি অবশ্যই অফিসিয়াল অ্যান্ড্রয়েড এসডিকে [ সংস্থানসমূহ, 33 ] অন্তর্ভুক্ত "এএপ্ট" সরঞ্জাম দ্বারা উত্পাদিত অ্যান্ড্রয়েড ".apk" ফাইলগুলি ইনস্টল এবং চালাতে হবে।

ডিভাইসগুলি বাস্তবায়নগুলি অবশ্যই .apk [ সংস্থানসমূহ, 34 ], অ্যান্ড্রয়েড ম্যানিফেস্ট [ সংস্থানসমূহ, 35 ], ডালভিক বাইটকোড [ সংস্থানসমূহ, 17 ], বা রেন্ডারস্ক্রিপ্ট বাইটকোড ফর্ম্যাটগুলি এমনভাবে প্রসারিত করতে হবে না যা এই ফাইলগুলি সঠিকভাবে ইনস্টল করা এবং চালানো থেকে বিরত রাখতে পারে অন্যান্য সামঞ্জস্যপূর্ণ ডিভাইস। ডিভাইস প্রয়োগকারীদের ডালভিকের রেফারেন্স প্রবাহ বাস্তবায়ন এবং রেফারেন্স বাস্তবায়নের প্যাকেজ পরিচালনা ব্যবস্থা ব্যবহার করা উচিত।

5. মাল্টিমিডিয়া সামঞ্জস্যতা

ডিভাইস বাস্তবায়নে অবশ্যই অডিও আউটপুটের কমপক্ষে একটি ফর্ম অন্তর্ভুক্ত থাকতে হবে, যেমন স্পিকার, হেডফোন জ্যাক, বাহ্যিক স্পিকার সংযোগ ইত্যাদি।

5.1। মিডিয়া কোডেক

ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যান্ড্রয়েড এসডিকে ডকুমেন্টেশন [ রিসোর্স, 58 ] এ উল্লিখিত মূল মিডিয়া ফর্ম্যাটগুলিকে সমর্থন করতে হবে যেখানে এই নথিতে স্পষ্টভাবে অনুমোদিত। বিশেষত, ডিভাইস বাস্তবায়নগুলি অবশ্যই নীচের টেবিলগুলিতে সংজ্ঞায়িত মিডিয়া ফর্ম্যাট, এনকোডার, ডিকোডার, ফাইলের ধরণ এবং ধারক ফর্ম্যাটগুলিকে সমর্থন করবে। এই সমস্ত কোডেকগুলি অ্যান্ড্রয়েড ওপেন সোর্স প্রকল্প থেকে পছন্দসই অ্যান্ড্রয়েড বাস্তবায়নে সফ্টওয়্যার বাস্তবায়ন হিসাবে সরবরাহ করা হয়।

দয়া করে নোট করুন যে গুগল বা ওপেন হ্যান্ডসেট জোট কেউই কোনও উপস্থাপনা করে না যে এই কোডেকগুলি তৃতীয় পক্ষের পেটেন্টগুলি দ্বারা নিরবচ্ছিন্ন। হার্ডওয়্যার বা সফ্টওয়্যার পণ্যগুলিতে এই উত্স কোডটি ব্যবহার করার ইচ্ছা পোষণকারীদের পরামর্শ দেওয়া হয় যে ওপেন সোর্স সফ্টওয়্যার বা শেয়ারওয়্যার সহ এই কোডটির বাস্তবায়নের জন্য প্রাসঙ্গিক পেটেন্টধারীদের পেটেন্ট লাইসেন্সের প্রয়োজন হতে পারে।

নোট করুন যে এই টেবিলগুলি বেশিরভাগ ভিডিও কোডেকগুলির জন্য নির্দিষ্ট বিটরেট প্রয়োজনীয়তাগুলি তালিকাভুক্ত করে না কারণ বর্তমান ডিভাইস হার্ডওয়্যার অগত্যা বিটরেটগুলিকে সমর্থন করে না যে মানচিত্রটি প্রাসঙ্গিক মান দ্বারা নির্দিষ্ট করা প্রয়োজনীয় বিটরেটগুলিতে ঠিক সঠিকভাবে সমর্থন করে। পরিবর্তে, ডিভাইস বাস্তবায়নগুলি স্পেসিফিকেশন দ্বারা সংজ্ঞায়িত সীমা পর্যন্ত হার্ডওয়্যারটিতে সর্বোচ্চ বিটরেট ব্যবহারিক সমর্থন করা উচিত।

টাইপ ফর্ম্যাট / কোডেক এনকোডার ডিকোডার বিস্তারিত ফাইলের ধরণ (গুলি) / ধারক ফর্ম্যাট
শ্রুতি এমপিইজি -4 এএসি প্রোফাইল (এএসি এলসি) মাইক্রোফোন হার্ডওয়্যার অন্তর্ভুক্ত ডিভাইস বাস্তবায়নের জন্য প্রয়োজনীয় এবং android.hardware.microphone সংজ্ঞায়িত করুন। প্রয়োজন মনো/স্টেরিও/5.0/5.1* এর জন্য সমর্থন 8 থেকে 48 কেএইচজেডের স্ট্যান্ডার্ড স্যাম্পলিং হারের সাথে সামগ্রী।
  • 3 জিপিপি (.3 জিপি)
  • এমপিইজি -4 (.এমপি 4, .এম 4 এ)
  • ADTS কাঁচা এএসি (.aac, অ্যান্ড্রয়েড 3.1+ এ ডিকোড করুন, অ্যান্ড্রয়েড 4.0+ এ এনকোড, এডিআইএফ সমর্থিত নয়)
  • এমপিইজি-টিএস (.ts, সন্ধানযোগ্য নয়, অ্যান্ড্রয়েড 3.0+)
এমপিইজি -4 তিনি এএসি প্রোফাইল (এএসি+) মাইক্রোফোন হার্ডওয়্যার অন্তর্ভুক্ত ডিভাইস বাস্তবায়নের জন্য প্রয়োজনীয় এবং android.hardware.microphone সংজ্ঞায়িত প্রয়োজন মনো/স্টেরিও/5.0/5.1* এর জন্য সমর্থন 16 থেকে 48 কেএইচজেডের স্ট্যান্ডার্ড স্যাম্পলিং হারের সাথে সামগ্রী।
এমপিইজি -4 তিনি এএসি ভি 2 প্রোফাইল (বর্ধিত এএসি+) প্রয়োজন মনো/স্টেরিও/5.0/5.1* এর জন্য সমর্থন 16 থেকে 48 কেএইচজেডের স্ট্যান্ডার্ড স্যাম্পলিং হারের সাথে সামগ্রী।
এমপিইজি -4 অডিও অবজেক্ট টাইপ ইআর এএসি এল্ড (বর্ধিত কম বিলম্ব এএসি) মাইক্রোফোন হার্ডওয়্যার অন্তর্ভুক্ত ডিভাইস বাস্তবায়নের জন্য প্রয়োজনীয় এবং android.hardware.microphone সংজ্ঞায়িত প্রয়োজন 16 থেকে 48 কেএইচজেডের স্ট্যান্ডার্ড স্যাম্পলিং হারের সাথে মনো/স্টেরিও সামগ্রীর জন্য সমর্থন।
এএমআর-এনবি মাইক্রোফোন হার্ডওয়্যার অন্তর্ভুক্ত ডিভাইস বাস্তবায়নের জন্য প্রয়োজনীয় এবং android.hardware.microphone সংজ্ঞায়িত করুন। প্রয়োজন 4.75 থেকে 12.2 কেবিপিএস নমুনা @ 8kHz 3 জিপিপি (.3 জিপি)
AMR-WB মাইক্রোফোন হার্ডওয়্যার অন্তর্ভুক্ত ডিভাইস বাস্তবায়নের জন্য প্রয়োজনীয় এবং android.hardware.microphone সংজ্ঞায়িত করুন। প্রয়োজন 6.60 কিবিট/এস থেকে 23.85 কিবিট/এস নমুনা @ 16kHz থেকে 9 টি হার 3 জিপিপি (.3 জিপি)
FLAC প্রয়োজন
(অ্যান্ড্রয়েড 3.1+)
মনো/স্টেরিও (কোনও মাল্টিচ্যানেল নেই)। 48 কেএইচজেড পর্যন্ত নমুনার হার (তবে 44.1 কেএইচজেডের আউটপুট সহ ডিভাইসগুলিতে 44.1 কেজি হার্জ পর্যন্ত সুপারিশ করা হয়, কারণ 48 থেকে 44.1 কেএইচজেড ডাউনস্যাম্পলারে লো-পাস ফিল্টার অন্তর্ভুক্ত নয়)। 16-বিট প্রস্তাবিত; 24-বিটের জন্য কোনও আবেদন করা হয়নি। কেবল flac (.flac)
MP3 প্রয়োজন মনো/স্টেরিও 8-320 কেবিপিএস কনস্ট্যান্ট (সিবিআর) বা ভেরিয়েবল বিট-রেট (ভিবিআর) এমপি 3 (.এমপি 3)
MIDI প্রয়োজন এমআইডিআই টাইপ 0 এবং 1. ডিএলএস সংস্করণ 1 এবং 2. এক্সএমএফ এবং মোবাইল এক্সএমএফ। রিংটোন ফর্ম্যাটগুলি আরটিটিটিএল/আরটিএক্স, ওটিএ এবং ইমলোডি জন্য সমর্থন
  • 0 এবং 1 টাইপ করুন (.mid, .xmf, .mxmf)
  • আরটিটিএল/আরটিএক্স (.আরটিটিএল, .আরটিএক্স)
  • ওটা (.োটা)
  • আইমেলোডি (.আইএমওয়াই)
ভরবিস প্রয়োজন
  • ওজিজি (.ওজিজি)
  • ম্যাট্রোস্কা (.mkv)
পিসিএম/তরঙ্গ প্রয়োজন প্রয়োজন 8-বিট এবং 16-বিট লিনিয়ার পিসিএম ** (হার্ডওয়ারের সীমাবদ্ধতা পর্যন্ত হার)। ডেভিসগুলি অবশ্যই 8000,16000 এবং 44100 হার্জ ফ্রিকোয়েন্সিগুলিতে কাঁচা পিসিএম রেকর্ডিংয়ের জন্য নমুনা হারকে সমর্থন করতে হবে তরঙ্গ (.wav)
ছবি জেপিইজি প্রয়োজন প্রয়োজন বেস+প্রগতিশীল JPEG (.jpg)
জিআইএফ প্রয়োজন GIF (.gif)
পিএনজি প্রয়োজন প্রয়োজন PNG (.png)
বিএমপি প্রয়োজন BMP (.bmp)
WEBP প্রয়োজন প্রয়োজন ওয়েবপি (.উইবিপি)
ভিডিও H.263 ডিভাইস বাস্তবায়নের জন্য প্রয়োজনীয় যা ক্যামেরা হার্ডওয়্যার অন্তর্ভুক্ত করে এবং android.hardware.camera বা android.hardware.camera.front সংজ্ঞায়িত করে। প্রয়োজন
  • 3 জিপিপি (.3 জিপি)
  • এমপিইজি -4 (.এমপি 4)
H.264 AVC ডিভাইস বাস্তবায়নের জন্য প্রয়োজনীয় যা ক্যামেরা হার্ডওয়্যার অন্তর্ভুক্ত করে এবং android.hardware.camera বা android.hardware.camera.front সংজ্ঞায়িত করে। প্রয়োজন বেসলাইন প্রোফাইল (BP)
  • 3 জিপিপি (.3 জিপি)
  • এমপিইজি -4 (.এমপি 4)
  • এমপিইজি-টিএস (.ts, কেবল এএসি অডিও, সন্ধানযোগ্য নয়, অ্যান্ড্রয়েড 3.0+)
এমপিইজি -4 এসপি প্রয়োজন 3 জিপিপি (.3 জিপি)
VP8 প্রয়োজন
(অ্যান্ড্রয়েড 4.3+)
প্রয়োজন
(অ্যান্ড্রয়েড 2.3.3+)
ওয়েবএম (.উইবিএম) এবং ম্যাট্রোস্কা (.mkv, অ্যান্ড্রয়েড 4.0+) ***
  • *দ্রষ্টব্য: কেবলমাত্র 5.0/5.1 সামগ্রীর ডাউনমিক্সের প্রয়োজন; 2 টিরও বেশি চ্যানেলের রেকর্ডিং বা রেন্ডারিং al চ্ছিক।
  • ** দ্রষ্টব্য: 16-বিট লিনিয়ার পিসিএম ক্যাপচার বাধ্যতামূলক। 8-বিট লিনিয়ার পিসিএম ক্যাপচার বাধ্যতামূলক নয়।
  • *** দ্রষ্টব্য: ডিভাইস বাস্তবায়নে ম্যাট্রোস্কা ওয়েবএম ফাইলগুলি লেখার পক্ষে সমর্থন করা উচিত।

5.2 ভিডিও এনকোডিং

অ্যান্ড্রয়েড ডিভাইস বাস্তবায়ন যা একটি রিয়ার-ফেসিং ক্যামেরা অন্তর্ভুক্ত করে এবং android.hardware.camera ঘোষণা করে। ক্যামেরার নিম্নলিখিত এইচ .264 ভিডিও এনকোডিং প্রোফাইলগুলি সমর্থন করা উচিত।

এসডি (নিম্ন মানের) এসডি (উচ্চ মানের) এইচডি (যখন হার্ডওয়্যার দ্বারা সমর্থিত)
ভিডিও রেজল্যুশন 176 এক্স 144 পিএক্স 480 x 360 পিএক্স 1280 x 720 পিক্সেল
ভিডিও ফ্রেম রেট 12 fps 30 fps 30 fps
ভিডিও বিটরেট 56 Kbps 500 কেবিপিএস বা উচ্চতর 2 এমবিপিএস বা উচ্চতর
অডিও কোডেক AAC-LC AAC-LC AAC-LC
অডিও চ্যানেল 1 (মনো) 2 (স্টেরিও) 2 (স্টেরিও)
অডিও বিটরেট 24 কেবিপিএস 128 Kbps 192 কেবিপিএস

অ্যান্ড্রয়েড ডিভাইস বাস্তবায়ন যা একটি রিয়ার-ফেসিং ক্যামেরা অন্তর্ভুক্ত করে এবং android.hardware.camera ঘোষণা করে নিম্নলিখিত ভিপি 8 ভিডিও এনকোডিং প্রোফাইলগুলি সমর্থন করা উচিত

এসডি (নিম্ন মানের) এসডি (উচ্চ মানের) HD 720p
(যখন হার্ডওয়্যার দ্বারা সমর্থিত)
HD 1080p
(যখন হার্ডওয়্যার দ্বারা সমর্থিত)
ভিডিও রেজল্যুশন 320 x 180 পিএক্স 640 x 360 পিএক্স 1280 x 720 পিক্সেল 1920 এক্স 1080 পিএক্স
ভিডিও ফ্রেম রেট 30 fps 30 fps 30 fps 30 fps
ভিডিও বিটরেট 800 কেবিপিএস 2 এমবিপিএস 4 এমবিপিএস 10 Mbps

5.3 ভিডিও ডিকোডিং

অ্যান্ড্রয়েড ডিভাইস বাস্তবায়নের নিম্নলিখিত ভিপি 8 এবং এইচ .264 ভিডিও ডিকোডিং প্রোফাইলগুলি সমর্থন করা উচিত।

এসডি (নিম্ন মানের) এসডি (উচ্চ মানের) HD 720p
(যখন হার্ডওয়্যার দ্বারা সমর্থিত)
HD 1080p
(যখন হার্ডওয়্যার দ্বারা সমর্থিত)
ভিডিও রেজল্যুশন 320 x 180 পিএক্স 640 x 360 পিএক্স 1280 x 720 পিক্সেল 1920 এক্স 1080 পিএক্স
ভিডিও ফ্রেম রেট 30 fps 30 fps 30 fps 30 fps
ভিডিও বিটরেট 800 কেবিপিএস 2 এমবিপিএস 8 এমবিপিএস 20 Mbps

5.4। অডিও রেকর্ডিং

যখন কোনও অ্যাপ্লিকেশন অডিও স্ট্রিম রেকর্ডিং শুরু করতে android.media.AudioRecord API ব্যবহার করে, তখন ডিভাইস বাস্তবায়নগুলিতে মাইক্রোফোন হার্ডওয়্যার অন্তর্ভুক্ত থাকে এবং android.hardware.microphone এই প্রতিটি আচরণের সাথে অডিওর নমুনা এবং রেকর্ড করতে হবে:

  • ডিভাইসটি ফ্রিকোয়েন্সি বৈশিষ্ট্যগুলির তুলনায় প্রায় সমতল প্রশস্ততা প্রদর্শন করা উচিত; বিশেষত, 100 হার্জ থেকে 4000 হার্জ থেকে ± 3 ডিবি
  • অডিও ইনপুট সংবেদনশীলতা এমন সেট করা উচিত যে 90 ডিবি সাউন্ড পাওয়ার লেভেল (এসপিএল) উত্স 1000 হার্জ এ 16-বিট নমুনার জন্য 2500 এর আরএমএস ফলন করে।
  • পিসিএম প্রশস্ততা স্তরগুলি মাইক্রোফোনে -18 ডিবি থেকে +12 ডিবি আরই 90 ডিবি এসপিএল থেকে কমপক্ষে 30 ডিবি রেঞ্জের উপর লিনিয়ারলি ট্র্যাক ইনপুট এসপিএল পরিবর্তনগুলি ট্র্যাক করা উচিত।
  • মোট সুরেলা বিকৃতি 90 ডিবি এসপিএল ইনপুট স্তরে 1kHz এর জন্য 1% এর চেয়ে কম হওয়া উচিত।

উপরোক্ত রেকর্ডিং স্পেসিফিকেশন ছাড়াও, যখন কোনও অ্যাপ্লিকেশন android.media.MediaRecorder.AudioSource.VOICE_RECOGNITION অডিও উত্স ব্যবহার করে একটি অডিও স্ট্রিম রেকর্ডিং শুরু করেছে:

  • শব্দ হ্রাস প্রক্রিয়াজাতকরণ, উপস্থিত থাকলে অবশ্যই অক্ষম করা উচিত।
  • স্বয়ংক্রিয় লাভ নিয়ন্ত্রণ, যদি উপস্থিত থাকে তবে অবশ্যই অক্ষম করা উচিত।

দ্রষ্টব্য: উপরে বর্ণিত কিছু প্রয়োজনীয়তা অ্যান্ড্রয়েড 4.3 এর জন্য "হওয়া উচিত" হিসাবে বর্ণিত হয়েছে, ভবিষ্যতের সংস্করণের জন্য সামঞ্জস্যতা সংজ্ঞাটি এগুলিকে "আবশ্যক" এ পরিবর্তন করার পরিকল্পনা করা হয়েছে। এটি হ'ল, এই প্রয়োজনীয়তাগুলি অ্যান্ড্রয়েড 4.3 এ al চ্ছিক তবে ভবিষ্যতের সংস্করণ দ্বারা প্রয়োজনীয় হবে । অ্যান্ড্রয়েড 4.3 চালানো বিদ্যমান এবং নতুন ডিভাইসগুলি অ্যান্ড্রয়েড 4.3 -এ এই প্রয়োজনীয়তাগুলি পূরণ করতে খুব দৃ strongly ়ভাবে উত্সাহিত করা হয়, বা ভবিষ্যতের সংস্করণে আপগ্রেড করার সময় তারা অ্যান্ড্রয়েডের সামঞ্জস্যতা অর্জন করতে সক্ষম হবে না।

5.5। অডিও লেটেন্সি

অডিও লেটেন্সি হ'ল অডিও সিগন্যাল কোনও সিস্টেমের মধ্য দিয়ে যাওয়ার সাথে সাথে সময় বিলম্ব। রিয়েল-টাইম সাউন্ড এফেক্টগুলি অর্জনের জন্য অ্যাপ্লিকেশনগুলির অনেক শ্রেণি সংক্ষিপ্ত বিলম্বের উপর নির্ভর করে।

এই বিভাগের উদ্দেশ্যে:

  • "আউটপুট ল্যাটেন্সি" যখন কোনও অ্যাপ্লিকেশন পিসিএম-কোডেড ডেটার একটি ফ্রেম লেখেন এবং যখন সম্পর্কিত শব্দটি কোনও বাহ্যিক শ্রোতার দ্বারা শোনা যায় বা ট্রান্সডুসার দ্বারা পর্যবেক্ষণ করা যায় তখন এর মধ্যে ব্যবধান হিসাবে সংজ্ঞায়িত হয়
  • "কোল্ড আউটপুট ল্যাটেন্সি" প্রথম ফ্রেমের জন্য আউটপুট ল্যাটেন্সি হিসাবে সংজ্ঞায়িত করা হয়, যখন অডিও আউটপুট সিস্টেমটি অনুরোধের আগে অলস এবং চালিত হয়
  • ডিভাইসটি ইতিমধ্যে অডিও খেলার পরে "অবিচ্ছিন্ন আউটপুট ল্যাটেন্সি" পরবর্তী ফ্রেমগুলির জন্য আউটপুট ল্যাটেন্সি হিসাবে সংজ্ঞায়িত করা হয়
  • "ইনপুট ল্যাটেন্সি" হ'ল যখন কোনও বাহ্যিক শব্দ ডিভাইসে উপস্থাপন করা হয় এবং যখন কোনও অ্যাপ্লিকেশন পিসিএম-কোডেড ডেটার সংশ্লিষ্ট ফ্রেমটি পড়ে
  • "কোল্ড ইনপুট লেটেন্সি" কে প্রথম ফ্রেমের জন্য হারানো ইনপুট সময় এবং ইনপুট ল্যাটেন্সির যোগ হিসাবে সংজ্ঞায়িত করা হয়, যখন অডিও ইনপুট সিস্টেমটি অনুরোধের আগে অলস এবং চালিত হয়
  • "অবিচ্ছিন্ন ইনপুট লেটেন্সি" পরবর্তী ফ্রেমগুলির জন্য ইনপুট ল্যাটেন্সি হিসাবে সংজ্ঞায়িত করা হয়, যখন ডিভাইসটি ইতিমধ্যে অডিও ক্যাপচার করছে
  • "ওপেনসএল ইএস পিসিএম বাফার কিউ এপিআই" হ'ল অ্যান্ড্রয়েড এনডিকে-র মধ্যে পিসিএম সম্পর্কিত ওপেনএসএল এস এপিআইগুলির সেট; ndk_root /docs/opensles/index.html দেখুন

অনুচ্ছেদ 5 অনুযায়ী, সমস্ত সামঞ্জস্যপূর্ণ ডিভাইস বাস্তবায়নে অবশ্যই অডিও আউটপুটের কমপক্ষে একটি ফর্ম অন্তর্ভুক্ত থাকতে হবে। ডিভাইস বাস্তবায়নগুলি এই আউটপুট ল্যাটেন্সির প্রয়োজনীয়তাগুলি পূরণ বা অতিক্রম করা উচিত:

  • 100 মিলিসেকেন্ড বা তার চেয়ে কম শীতের আউটপুট বিলম্ব
  • 45 মিলিসেকেন্ড বা তার চেয়ে কম অবিচ্ছিন্ন আউটপুট বিলম্ব

অবিচ্ছিন্ন আউটপুট লেটেন্সি এবং কোল্ড আউটপুট ল্যাটেন্সির জন্য কমপক্ষে একটি সমর্থিত অডিও আউটপুট ডিভাইসের জন্য যদি কোনও ডিভাইস বাস্তবায়ন ওপেনসএল ইএস পিসিএম বাফার ক্যু এপিআই ব্যবহার করার সময় কোনও প্রাথমিক ক্রমাঙ্কনের পরে এই বিভাগের প্রয়োজনীয়তা পূরণ করে তবে এটি কম-লেটেন্সি অডিওর জন্য সমর্থন প্রতিবেদন করতে পারে , android.content.pm.PackageManager ক্লাসের মাধ্যমে "android.hardware.audio.low-latency" বৈশিষ্ট্যটি প্রতিবেদন করে। [ সংস্থানসমূহ, ৩ ]] বিপরীতে, যদি ডিভাইস বাস্তবায়ন এই প্রয়োজনীয়তাগুলি পূরণ না করে তবে এটি অবশ্যই কম-ল্যাটেন্সি অডিওর জন্য সমর্থন রিপোর্ট করবে না।

বিভাগ 7.2.5 অনুযায়ী, মাইক্রোফোন হার্ডওয়্যার ডিভাইস বাস্তবায়ন দ্বারা বাদ দেওয়া যেতে পারে।

মাইক্রোফোন হার্ডওয়্যার অন্তর্ভুক্ত ডিভাইস বাস্তবায়নগুলি এবং android.hardware.microphone ঘোষণা করুন এই ইনপুট অডিও লেটেন্সির প্রয়োজনীয়তাগুলি পূরণ করা উচিত:

  • 100 মিলিসেকেন্ড বা তারও কমের শীতল ইনপুট বিলম্ব
  • 50 মিলিসেকেন্ড বা তারও কম অবিচ্ছিন্ন ইনপুট লেটেন্সি

5.6। নেটওয়ার্ক প্রোটোকল

ডিভাইসগুলি অবশ্যই অ্যান্ড্রয়েড এসডিকে ডকুমেন্টেশন [ সংস্থানসমূহ, 58 ] এ উল্লিখিত অডিও এবং ভিডিও প্লেব্যাকের জন্য মিডিয়া নেটওয়ার্ক প্রোটোকলগুলিকে সমর্থন করতে হবে। বিশেষত, ডিভাইসগুলি অবশ্যই নিম্নলিখিত মিডিয়া নেটওয়ার্ক প্রোটোকলগুলিকে সমর্থন করবে:

  • RTSP (RTP, SDP)
  • এইচটিটিপি (গুলি) প্রগতিশীল স্ট্রিমিং
  • HTTP (গুলি) লাইভ স্ট্রিমিং খসড়া প্রোটোকল, সংস্করণ 3 [ সংস্থানসমূহ, 59 ]

6. বিকাশকারী সরঞ্জাম এবং বিকল্পগুলির সামঞ্জস্যতা

6.1 বিকাশকারী সরঞ্জাম

ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যান্ড্রয়েড এসডিকে সরবরাহিত অ্যান্ড্রয়েড বিকাশকারী সরঞ্জামগুলিকে সমর্থন করবে। বিশেষত, অ্যান্ড্রয়েড-সামঞ্জস্যপূর্ণ ডিভাইসগুলির সাথে অবশ্যই সামঞ্জস্যপূর্ণ হতে হবে:

  • অ্যান্ড্রয়েড ডিবাগ ব্রিজ (এডিবি হিসাবে পরিচিত) [ সংস্থানসমূহ, ৩৩ ]
    ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যান্ড্রয়েড এসডিকে নথিভুক্ত হিসাবে সমস্ত adb ফাংশনগুলিকে সমর্থন করবে। ডিভাইস-সাইড adb ডেমন অবশ্যই ডিফল্টরূপে নিষ্ক্রিয় হতে হবে এবং অ্যান্ড্রয়েড ডিবাগ ব্রিজটি চালু করার জন্য অবশ্যই একটি ব্যবহারকারী-অ্যাক্সেসযোগ্য প্রক্রিয়া থাকতে হবে।
  • অ্যান্ড্রয়েড 4.3 সুরক্ষিত এডিবির জন্য সমর্থন অন্তর্ভুক্ত। সুরক্ষিত এডিবি পরিচিত অনুমোদিত হোস্টগুলিতে এডিবি সক্ষম করে। ডিভাইস বাস্তবায়নগুলি অবশ্যই সুরক্ষিত এডিবি সমর্থন করবে।
  • ডালভিক ডিবাগ মনিটর পরিষেবা (ডিডিএমএস হিসাবে পরিচিত) [ সংস্থানসমূহ, ৩৩ ]
    ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যান্ড্রয়েড এসডিকে নথিভুক্ত হিসাবে সমস্ত ddms বৈশিষ্ট্যগুলিকে সমর্থন করবে। যেহেতু ddms adb ব্যবহার করে, ddms জন্য সমর্থন ডিফল্টরূপে নিষ্ক্রিয় হওয়া উচিত, তবে যখনই ব্যবহারকারী উপরের মতো অ্যান্ড্রয়েড ডিবাগ ব্রিজটি সক্রিয় করে রাখেন তখন অবশ্যই এটি সমর্থন করা উচিত।
  • বানর [ সংস্থানসমূহ, ৩ ]]
    ডিভাইস বাস্তবায়নে অবশ্যই বানরের কাঠামো অন্তর্ভুক্ত থাকতে হবে এবং অ্যাপ্লিকেশনগুলি ব্যবহারের জন্য এটি উপলব্ধ করতে হবে।
  • Systrace [ সংস্থানসমূহ, 33 ]
    ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যান্ড্রয়েড এসডিকে নথিভুক্ত হিসাবে সিস্ট্রেস সরঞ্জাম সমর্থন করবে। সিরস্ট্রেস অবশ্যই ডিফল্টরূপে নিষ্ক্রিয় হওয়া উচিত এবং সিস্টেমটি চালু করার জন্য অবশ্যই একটি ব্যবহারকারী-অ্যাক্সেসযোগ্য প্রক্রিয়া থাকতে হবে।

বেশিরভাগ লিনাক্স-ভিত্তিক সিস্টেম এবং অ্যাপল ম্যাকিনটোস সিস্টেমগুলি অতিরিক্ত সমর্থন ছাড়াই স্ট্যান্ডার্ড অ্যান্ড্রয়েড এসডিকে সরঞ্জামগুলি ব্যবহার করে অ্যান্ড্রয়েড ডিভাইসগুলি সনাক্ত করে; তবে মাইক্রোসফ্ট উইন্ডোজ সিস্টেমগুলিতে সাধারণত নতুন অ্যান্ড্রয়েড ডিভাইসের জন্য ড্রাইভার প্রয়োজন। (উদাহরণস্বরূপ, নতুন বিক্রেতার আইডি এবং কখনও কখনও নতুন ডিভাইস আইডিগুলির উইন্ডোজ সিস্টেমগুলির জন্য কাস্টম ইউএসবি ড্রাইভারগুলির প্রয়োজন হয়)) যদি কোনও ডিভাইস বাস্তবায়ন স্ট্যান্ডার্ড অ্যান্ড্রয়েড এসডিকে প্রদত্ত adb সরঞ্জাম দ্বারা স্বীকৃত না হয় তবে ডিভাইস প্রয়োগকারীদের অবশ্যই উইন্ডোজ ড্রাইভারদের সরবরাহ করতে হবে বিকাশকারীদের সংযোগের অনুমতি দেয় adb প্রোটোকল ব্যবহার করে ডিভাইস। এই ড্রাইভারগুলি 32-বিট এবং 64-বিট উভয় সংস্করণে উইন্ডোজ এক্সপি, উইন্ডোজ ভিস্তা, উইন্ডোজ 7 এবং উইন্ডোজ 8 এর জন্য সরবরাহ করতে হবে।

6.2 বিকাশকারী বিকল্প

অ্যান্ড্রয়েড 4.3 এ অ্যাপ্লিকেশন বিকাশ-সম্পর্কিত সেটিংস কনফিগার করার জন্য বিকাশকারীদের সমর্থন অন্তর্ভুক্ত করে। ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যান্ড্রয়েড.সেটেটিংসকে সম্মান করতে হবে app অ্যাপ্লিকেশন বিকাশ-সম্পর্কিত সেটিংস [ সংস্থানসমূহ, 77 ] দেখানোর উদ্দেশ্যে অ্যাপ্লিকেশন_ ডেভেলপমেন্ট_সেটটিংসের অভিপ্রায়। উজানের অ্যান্ড্রয়েড বাস্তবায়ন ডিফল্টরূপে বিকাশকারী বিকল্প মেনুটি লুকিয়ে রাখে এবং ডিভাইস সম্পর্কে সেটিংস> ডিভাইস> বিল্ড নম্বর মেনু আইটেমটি তৈরি করে সেটিংসে সাত (7) বার টিপানোর পরে বিকাশকারী বিকল্পগুলি চালু করতে সক্ষম করে। ডিভাইস বাস্তবায়নগুলি অবশ্যই বিকাশকারী বিকল্পগুলির জন্য একটি ধারাবাহিক অভিজ্ঞতা সরবরাহ করতে হবে। বিশেষত, ডিভাইস বাস্তবায়নগুলি অবশ্যই ডিফল্টরূপে বিকাশকারী বিকল্পগুলি আড়াল করতে হবে এবং বিকাশকারী বিকল্পগুলি সক্ষম করার জন্য একটি প্রক্রিয়া সরবরাহ করতে হবে যা উজানের অ্যান্ড্রয়েড বাস্তবায়নের সাথে সামঞ্জস্যপূর্ণ।

7. হার্ডওয়্যার সামঞ্জস্যতা

যদি কোনও ডিভাইসে কোনও নির্দিষ্ট হার্ডওয়্যার উপাদান অন্তর্ভুক্ত থাকে যা তৃতীয় পক্ষের বিকাশকারীদের জন্য সম্পর্কিত এপিআই রয়েছে, তবে ডিভাইস বাস্তবায়ন অবশ্যই অ্যান্ড্রয়েড এসডিকে ডকুমেন্টেশনে বর্ণিত হিসাবে সেই এপিআই বাস্তবায়ন করতে হবে। যদি এসডিকে -তে কোনও এপিআই একটি হার্ডওয়্যার উপাদানগুলির সাথে যোগাযোগ করে যা al চ্ছিক বলে বর্ণিত এবং ডিভাইস বাস্তবায়ন সেই উপাদানটির অধিকারী হয় না:

  • সম্পূর্ণ শ্রেণীর সংজ্ঞা (এসডিকে দ্বারা নথিভুক্ত হিসাবে) উপাদানটির এপিআইগুলির জন্য এখনও উপস্থিত থাকতে হবে
  • এপিআইয়ের আচরণগুলি অবশ্যই কিছু যুক্তিসঙ্গত ফ্যাশনে নো-অপ হিসাবে প্রয়োগ করা উচিত
  • এসডিকে ডকুমেন্টেশন দ্বারা অনুমোদিত যেখানে এপিআই পদ্ধতিগুলি অবশ্যই নাল মানগুলি ফিরিয়ে দিতে হবে
  • এপিআই পদ্ধতিগুলি অবশ্যই ক্লাসগুলির নো-অপারেশন বাস্তবায়নগুলি ফেরত দিতে হবে যেখানে এসডিকে ডকুমেন্টেশন দ্বারা নাল মানগুলি অনুমোদিত নয়
  • এপিআই পদ্ধতিগুলি অবশ্যই এসডিকে ডকুমেন্টেশন দ্বারা নথিভুক্ত ব্যতিক্রমগুলি ছুঁড়ে দেওয়া উচিত নয়

এমন একটি দৃশ্যের একটি সাধারণ উদাহরণ যেখানে এই প্রয়োজনীয়তাগুলি প্রয়োগ করা হয় টেলিফোনি এপিআই: এমনকি নন-ফোন ডিভাইসগুলিতেও এই এপিআইগুলি অবশ্যই যুক্তিসঙ্গত নো-অপ হিসাবে প্রয়োগ করতে হবে।

ডিভাইস বাস্তবায়নগুলি অবশ্যই getSystemAvailableFeatures() এবং Hasystystemfeature android.content.pm.PackageManager শ্রেণিতে hasSystemFeature(String) পদ্ধতিগুলির মাধ্যমে সঠিক হার্ডওয়্যার কনফিগারেশন সম্পর্কিত তথ্যগুলি সঠিকভাবে প্রতিবেদন করতে হবে। [ সংস্থানসমূহ, ৩ ]]

7.1। ডিসপ্লে এবং গ্রাফিক্স

অ্যান্ড্রয়েড ৪.৩ এর মধ্যে এমন সুবিধা অন্তর্ভুক্ত রয়েছে যা ডিভাইসের জন্য স্বয়ংক্রিয়ভাবে অ্যাপ্লিকেশন সম্পদ এবং ইউআই লেআউটগুলি সামঞ্জস্য করে, যাতে তৃতীয় পক্ষের অ্যাপ্লিকেশনগুলি বিভিন্ন হার্ডওয়্যার কনফিগারেশনে [ সংস্থানসমূহ, 38 ] ভালভাবে চালিত হয় তা নিশ্চিত করতে। ডিভাইসগুলি অবশ্যই এই বিভাগে বিশদ হিসাবে এই এপিআই এবং আচরণগুলি যথাযথভাবে প্রয়োগ করতে হবে।

এই বিভাগে প্রয়োজনীয়তা দ্বারা উল্লিখিত ইউনিটগুলি নিম্নলিখিত হিসাবে সংজ্ঞায়িত করা হয়েছে:

  • "শারীরিক তির্যক আকার" হ'ল প্রদর্শনের আলোকিত অংশের দুটি বিরোধী কোণগুলির মধ্যে ইঞ্চি দূরত্ব।
  • "ডিপিআই" (অর্থ "প্রতি ইঞ্চি বিন্দু") হ'ল 1 "এর লিনিয়ার অনুভূমিক বা উল্লম্ব স্প্যান দ্বারা অন্তর্ভুক্ত পিক্সেলের সংখ্যা। যেখানে ডিপিআই মানগুলি তালিকাভুক্ত করা হয়, উভয় অনুভূমিক এবং উল্লম্ব ডিপিআই অবশ্যই সীমার মধ্যে পড়তে হবে।
  • "দিক অনুপাত" হ'ল সংক্ষিপ্ত মাত্রায় স্ক্রিনের দীর্ঘ মাত্রার অনুপাত। উদাহরণস্বরূপ, 480x854 পিক্সেলের একটি প্রদর্শন 854 /480 = 1.779, বা মোটামুটি "16: 9" হবে।
  • একটি "ঘনত্ব-স্বতন্ত্র পিক্সেল" বা ("ডিপি") হ'ল ভার্চুয়াল পিক্সেল ইউনিটটি 160 ডিপিআই স্ক্রিনে স্বাভাবিক করা হয়, এটি হিসাবে গণনা করা হয়: pixels = dps * (density / 160)

7.1.1। স্ক্রিন কনফিগারেশন

পর্দার আকার

অ্যান্ড্রয়েড ইউআই ফ্রেমওয়ার্ক বিভিন্ন স্ক্রিন আকারকে বিভিন্ন ধরণের সমর্থন করে এবং অ্যাপ্লিকেশনগুলিকে ডিভাইস স্ক্রিনের আকার (ওরফে "স্ক্রিন লেআউট") এর মাধ্যমে android.content.res.Configuration.screenLayout SCREENLAYOUT_SIZE_MASK সাথে জিজ্ঞাসা করতে দেয়। ডিভাইস বাস্তবায়নগুলি অবশ্যই অ্যান্ড্রয়েড এসডিকে ডকুমেন্টেশন [ সংস্থানসমূহ, 38 ] এ সংজ্ঞায়িত হিসাবে সঠিক স্ক্রিনের আকারটি রিপোর্ট করতে হবে এবং উজানের অ্যান্ড্রয়েড প্ল্যাটফর্ম দ্বারা নির্ধারিত হতে হবে। বিশেষত, ডিভাইস বাস্তবায়নগুলি অবশ্যই নিম্নলিখিত লজিকাল ঘনত্ব-স্বতন্ত্র পিক্সেল (ডিপি) স্ক্রিনের মাত্রা অনুসারে সঠিক স্ক্রিনের আকারটি রিপোর্ট করতে হবে।

  • ডিভাইসগুলির অবশ্যই কমপক্ষে 426 ডিপি এক্স 320 ডিপি ('ছোট') এর স্ক্রিন আকার থাকতে হবে
  • স্ক্রিনের আকার 'সাধারণ' প্রতিবেদন করে এমন ডিভাইসগুলি অবশ্যই কমপক্ষে 480 ডিপি এক্স 320 ডিপি এর স্ক্রিন আকার থাকতে হবে
  • স্ক্রিনের আকার 'বড়' প্রতিবেদনকারী ডিভাইসগুলি অবশ্যই কমপক্ষে 640 ডিপি এক্স 480 ডিপি এর স্ক্রিন আকার থাকতে হবে
  • স্ক্রিনের আকার 'xlarge' রিপোর্ট করে এমন ডিভাইসগুলি অবশ্যই কমপক্ষে 960 ডিপি এক্স 720 ডিপি এর স্ক্রিন আকার থাকতে হবে

এছাড়াও, ডিভাইসগুলির অবশ্যই শারীরিক তির্যক আকারে কমপক্ষে 2.5 ইঞ্চি স্ক্রিন আকার থাকতে হবে।

ডিভাইসগুলি অবশ্যই তাদের রিপোর্ট করা স্ক্রিনের আকার যে কোনও সময় পরিবর্তন করবে না।

অ্যাপ্লিকেশনগুলি andradially- options চ্ছিকভাবে নির্দেশ করে যে তারা অ্যান্ড্রয়েডম্যানিফেস্ট.এক্সএমএল ফাইলটিতে <supports-screens> স্ক্রিনস> বৈশিষ্ট্যের মাধ্যমে কোন স্ক্রিন আকারগুলি সমর্থন করে। ডিভাইস বাস্তবায়নগুলি অ্যান্ড্রয়েড এসডিকে ডকুমেন্টেশনে বর্ণিত হিসাবে ছোট, সাধারণ, বৃহত এবং এক্সলার্জ স্ক্রিনগুলির জন্য অ্যাপ্লিকেশনগুলির যথাযথ সমর্থনকে সঠিকভাবে সম্মান করতে হবে।

স্ক্রীন অ্যাসপেক্ট রেশিও

দিক অনুপাতটি অবশ্যই 1.3333 (4: 3) এবং 1.85 (16: 9) এর মধ্যে হতে হবে।

পর্দার ঘনত্ব

অ্যান্ড্রয়েড ইউআই ফ্রেমওয়ার্ক অ্যাপ্লিকেশন বিকাশকারীদের লক্ষ্য অ্যাপ্লিকেশন সংস্থানগুলিকে লক্ষ্য করতে সহায়তা করার জন্য স্ট্যান্ডার্ড লজিকাল ঘনত্বের একটি সেটকে সংজ্ঞায়িত করে। ডিভাইস বাস্তবায়নগুলি অবশ্যই android.util.DisplayMetrics এপিআইগুলির মাধ্যমে নিম্নলিখিত লজিক্যাল অ্যান্ড্রয়েড ফ্রেমওয়ার্কের ঘনত্বগুলির একটি প্রতিবেদন করতে হবে এবং এই স্ট্যান্ডার্ড ঘনত্বে অ্যাপ্লিকেশনগুলি কার্যকর করতে হবে।

  • 120 ডিপিআই, 'এলডিপিআই' নামে পরিচিত
  • 160 ডিপিআই, 'এমডিপিআই' নামে পরিচিত
  • 213 ডিপিআই, 'টিভিডিপিআই' নামে পরিচিত
  • 240 ডিপিআই, 'এইচডিপিআই' নামে পরিচিত
  • 320 ডিপিআই, 'xhdpi' নামে পরিচিত
  • 480 ডিপিআই, 'xxhdpi' নামে পরিচিত
  • 640 ডিপিআই, 'xxxhdpi' নামে পরিচিত
ডিভাইস বাস্তবায়নগুলি স্ট্যান্ডার্ড অ্যান্ড্রয়েড ফ্রেমওয়ার্ক ঘনত্বকে সংজ্ঞায়িত করা উচিত যা স্ক্রিনের শারীরিক ঘনত্বের সংখ্যাগতভাবে নিকটতম, যদি না লজিকাল ঘনত্ব ন্যূনতম সমর্থিতের নীচে রিপোর্ট করা স্ক্রিনের আকারকে ধাক্কা দেয়। যদি স্ট্যান্ডার্ড অ্যান্ড্রয়েড ফ্রেমওয়ার্ক ঘনত্ব যা শারীরিক ঘনত্বের নিকটতম নিকটতম হয় এমন একটি স্ক্রিনের আকারের ফলাফল যা ক্ষুদ্রতম সমর্থিত সামঞ্জস্যপূর্ণ স্ক্রিনের আকার (320 ডিপি প্রস্থ) এর চেয়ে ছোট, তবে ডিভাইস বাস্তবায়নের পরবর্তী নিম্নতম স্ট্যান্ডার্ড অ্যান্ড্রয়েড ফ্রেমওয়ার্ক ঘনত্বের প্রতিবেদন করা উচিত।

7.1.2। মেট্রিক প্রদর্শন

ডিভাইস বাস্তবায়নগুলি অবশ্যই android.util.DisplayMetrics [ সংস্থানসমূহ, 39 ] এ সংজ্ঞায়িত সমস্ত ডিসপ্লে মেট্রিকগুলির জন্য সঠিক মানগুলি প্রতিবেদন করতে হবে।

7.1.3। স্ক্রিন ওরিয়েন্টেশন

ডিভাইসগুলি অবশ্যই প্রতিকৃতি বা ল্যান্ডস্কেপ স্ক্রিন ওরিয়েন্টেশনে অ্যাপ্লিকেশনগুলির মাধ্যমে গতিশীল ওরিয়েন্টেশনকে সমর্থন করতে পারে। এটি হ'ল, ডিভাইসটি অবশ্যই একটি নির্দিষ্ট স্ক্রিন ওরিয়েন্টেশনের জন্য অ্যাপ্লিকেশনটির অনুরোধটিকে সম্মান করতে হবে। ডিভাইস বাস্তবায়নগুলি ডিফল্ট হিসাবে প্রতিকৃতি বা ল্যান্ডস্কেপ ওরিয়েন্টেশন নির্বাচন করতে পারে।

ডিভাইসগুলিকে অবশ্যই ডিভাইসের বর্তমান ওরিয়েন্টেশনের জন্য সঠিক মানটি রিপোর্ট করতে হবে, যখনই অ্যান্ড্রয়েড.কন্টেন্ট.আরএস.কনফিগারেশন.অরিয়েন্টেশন, অ্যান্ড্রয়েড.ভিউ.ডিসপ্লে.গেটরিয়েন্টেশন (), বা অন্যান্য এপিআইগুলির মাধ্যমে অনুসন্ধান করা উচিত।

ওরিয়েন্টেশন পরিবর্তন করার সময় ডিভাইসগুলি অবশ্যই রিপোর্ট করা স্ক্রিনের আকার বা ঘনত্ব পরিবর্তন করতে হবে না।

Devices MUST report which screen orientations they support ( android.hardware.screen.portrait and/or android.hardware.screen.landscape ) and MUST report at least one supported orientation. For example, a device with a fixed-orientation landscape screen, such as a television or laptop, MUST only report android.hardware.screen.landscape .

7.1.4। 2D and 3D Graphics Acceleration

Device implementations MUST support both OpenGL ES 1.0 and 2.0, as embodied and detailed in the Android SDK documentations. Device implementations SHOULD support OpenGL ES 3.0 on devices capable of supporting OpenGL ES 3.0. Device implementations MUST also support Android Renderscript, as detailed in the Android SDK documentation [ Resources, 8 ].

Device implementations MUST also correctly identify themselves as supporting OpenGL ES 1.0, OpenGL ES 2.0, or OpenGL ES 3.0. এটাই:

  • The managed APIs (such as via the GLES10.getString() method) MUST report support for OpenGL ES 1.0 and OpenGL ES 2.0
  • The native C/C++ OpenGL APIs (that is, those available to apps via libGLES_v1CM.so, libGLES_v2.so, or libEGL.so) MUST report support for OpenGL ES 1.0 and OpenGL ES 2.0.
  • Device implementations that declare support for OpenGL ES 3.0 MUST support OpenGL ES 3.0 managed APIs and include support for native C/C++ APIs. On device implementations that declare support for OpenGL ES 3.0, libGLESv2.so MUST export the OpenGL ES 3.0 function symbols in addition to the OpenGL ES 2.0 function symbols.

Device implementations MAY implement any desired OpenGL ES extensions. However, device implementations MUST report via the OpenGL ES managed and native APIs all extension strings that they do support, and conversely MUST NOT report extension strings that they do not support.

Note that Android 4.3 includes support for applications to optionally specify that they require specific OpenGL texture compression formats. These formats are typically vendor-specific. Device implementations are not required by Android 4.3 to implement any specific texture compression format. However, they SHOULD accurately report any texture compression formats that they do support, via the getString() method in the OpenGL API.

Android 4.3 includes a mechanism for applications to declare that they wanted to enable hardware acceleration for 2D graphics at the Application, Activity, Window or View level through the use of a manifest tag android:hardwareAccelerated or direct API calls [ Resources, 9 ].

In Android 4.3, device implementations MUST enable hardware acceleration by default, and MUST disable hardware acceleration if the developer so requests by setting android:hardwareAccelerated="false" or disabling hardware acceleration directly through the Android View APIs.

In addition, device implementations MUST exhibit behavior consistent with the Android SDK documentation on hardware acceleration [ Resources, 9 ].

Android 4.3 includes a TextureView object that lets developers directly integrate hardware-accelerated OpenGL ES textures as rendering targets in a UI hierarchy. Device implementations MUST support the TextureView API, and MUST exhibit consistent behavior with the upstream Android implementation.

Android 4.3 includes support for EGL_ANDROID_RECORDABLE , a EGLConfig attribute that indicates whether the EGLConfig supports rendering to an ANativeWindow that records images to a video. Device implementations MUST support EGL_ANDROID_RECORDABLE extension [ Resources, 79 ].

7.1.5। Legacy Application Compatibility Mode

Android 4.3 specifies a "compatibility mode" in which the framework operates in an 'normal' screen size equivalent (320dp width) mode for the benefit of legacy applications not developed for old versions of Android that pre-date screen-size independence. Device implementations MUST include support for legacy application compatibility mode as implemented by the upstream Android open source code. That is, device implementations MUST NOT alter the triggers or thresholds at which compatibility mode is activated, and MUST NOT alter the behavior of the compatibility mode itself.

7.1.6। Screen Types

Device implementation screens are classified as one of two types:

  • Fixed-pixel display implementations: the screen is a single panel that supports only a single pixel width and height. Typically the screen is physically integrated with the device. Examples include mobile phones, tablets, and so on.
  • Variable-pixel display implementations: the device implementation either has no embedded screen and includes a video output port such as VGA, HDMI or a wireless port for display, or has an embedded screen that can change pixel dimensions. Examples include televisions, set-top boxes, and so on.

Fixed-Pixel Device Implementations

Fixed-pixel device implementations MAY use screens of any pixel dimensions, provided that they meet the requirements defined this Compatibility Definition.

Fixed-pixel implementations MAY include a video output port for use with an external display. However, if that display is ever used for running apps, the device MUST meet the following requirements:

  • The device MUST report the same screen configuration and display metrics, as detailed in Sections 7.1.1 and 7.1.2, as the fixed-pixel display.
  • The device MUST report the same logical density as the fixed-pixel display.
  • The device MUST report screen dimensions that are the same as, or very close to, the fixed-pixel display.

For example, a tablet that is 7" diagonal size with a 1024x600 pixel resolution is considered a fixed-pixel large mdpi display implementation. If it contains a video output port that displays at 720p or 1080p, the device implementation MUST scale the output so that applications are only executed in a large mdpi window, regardless of whether the fixed-pixel display or video output port is in use.

Variable-Pixel Device Implementations

Variable-pixel device implementations MUST support one or both of 1280x720, or 1920x1080 (that is, 720p or 1080p). Device implementations with variable-pixel displays MUST NOT support any other screen configuration or mode. Device implementations with variable-pixel screens MAY change screen configuration or mode at runtime or boot-time. For example, a user of a set-top box may replace a 720p display with a 1080p display, and the device implementation may adjust accordingly.

Additionally, variable-pixel device implementations MUST report the following configuration buckets for these pixel dimensions:

  • 1280x720 (also known as 720p): 'large' screen size, 'tvdpi' (213 dpi) density
  • 1920x1080 (also known as 1080p): 'large' screen size, 'xhdpi' (320 dpi) density

For clarity, device implementations with variable pixel dimensions are restricted to 720p or 1080p in Android 4.3, and MUST be configured to report screen size and density buckets as noted above.

7.1.7। স্ক্রিন প্রযুক্তি

The Android platform includes APIs that allow applications to render rich graphics to the display. Devices MUST support all of these APIs as defined by the Android SDK unless specifically allowed in this document. বিশেষভাবে:

  • Devices MUST support displays capable of rendering 16-bit color graphics and SHOULD support displays capable of 24-bit color graphics.
  • Devices MUST support displays capable of rendering animations.
  • The display technology used MUST have a pixel aspect ratio (PAR) between 0.9 and 1.1. That is, the pixel aspect ratio MUST be near square (1.0) with a 10% tolerance.

7.1.8। বাহ্যিক প্রদর্শন

Android 4.3 includes support for secondary display to enable media sharing capabilities and developer APIs for accessing external displays. If a device supports an external display either via a wired, wireless or an embedded additional display connection then the device implementation MUST implement the display manager API as described in the Android SDK documentation [ Resources, 75 ]. Device implementations that support secure video output and are capable of supporting secure surfaces MUST declare support for Display.FLAG_SECURE . Specifically, device implementations that declare support for Display.FLAG_SECURE , MUST support HDCP 2.x or higher for Miracast wireless displays or HDCP 1.2 or higher for wired displays. The upstream Android open source implementation includes support for wireless (Miracast) and wired (HDMI) displays that satisfies this requirement.

7.2। ইনপুট ডিভাইস

7.2.1। কীবোর্ড

Device implementations:

  • MUST include support for the Input Management Framework (which allows third party developers to create Input Management Engines - ie soft keyboard) as detailed at http://developer.android.com
  • MUST provide at least one soft keyboard implementation (regardless of whether a hard keyboard is present)
  • MAY include additional soft keyboard implementations
  • MAY include a hardware keyboard
  • MUST NOT include a hardware keyboard that does not match one of the formats specified in android.content.res.Configuration.keyboard [ Resources, 40 ] (that is, QWERTY, or 12-key)

7.2.2। Non-touch Navigation

Device implementations:

  • MAY omit a non-touch navigation option (that is, may omit a trackball, d-pad, or wheel)
  • MUST report the correct value for android.content.res.Configuration.navigation [ Resources, 40 ]
  • MUST provide a reasonable alternative user interface mechanism for the selection and editing of text, compatible with Input Management Engines. The upstream Android open source implementation includes a selection mechanism suitable for use with devices that lack non-touch navigation inputs.

7.2.3। নেভিগেশন কী

The Home, Menu and Back functions are essential to the Android navigation paradigm. Device implementations MUST make these functions available to the user at all times when running applications. These functions MAY be implemented via dedicated physical buttons (such as mechanical or capacitive touch buttons), or MAY be implemented using dedicated software keys, gestures, touch panel, etc. Android 4.3 supports both implementations.

Android 4.3 includes support for assist action [ Resources, 63 ]. Device implementations MUST make the assist action available to the user at all times when running applications. This function MAY be implemented via hardware or software keys.

Device implementations MAY use a distinct portion of the screen to display the navigation keys, but if so, MUST meet these requirements:

  • Device implementation navigation keys MUST use a distinct portion of the screen, not available to applications, and MUST NOT obscure or otherwise interfere with the portion of the screen available to applications.
  • Device implementations MUST make available a portion of the display to applications that meets the requirements defined in Section 7.1.1 .
  • Device implementations MUST display the navigation keys when applications do not specify a system UI mode, or specify SYSTEM_UI_FLAG_VISIBLE .
  • Device implementations MUST present the navigation keys in an unobtrusive "low profile" (eg. dimmed) mode when applications specify SYSTEM_UI_FLAG_LOW_PROFILE .
  • Device implementations MUST hide the navigation keys when applications specify SYSTEM_UI_FLAG_HIDE_NAVIGATION .
  • Device implementation MUST present a Menu key to applications when targetSdkVersion <= 10 and SHOULD NOT present a Menu key when the targetSdkVersion > 10.

7.2.4। Touchscreen input

Device implementations SHOULD have a pointer input system of some kind (either mouse-like, or touch). However, if a device implementation does not support a pointer input system, it MUST NOT report the android.hardware.touchscreen or android.hardware.faketouch feature constant. Device implementations that do include a pointer input system:

  • SHOULD support fully independently tracked pointers, if the device input system supports multiple pointers
  • MUST report the value of android.content.res.Configuration.touchscreen [ Resources, 40 ] corresponding to the type of the specific touchscreen on the device

Android 4.3 includes support for a variety of touch screens, touch pads, and fake touch input devices. Touch screen based device implementations are associated with a display [ Resources, 81 ] such that the user has the impression of directly manipulating items on screen. Since the user is directly touching the screen, the system does not require any additional affordances to indicate the objects being manipulated. In contrast, a fake touch interface provides a user input system that approximates a subset of touchscreen capabilities. For example, a mouse or remote control that drives an on-screen cursor approximates touch, but requires the user to first point or focus then click. Numerous input devices like the mouse, trackpad, gyro-based air mouse, gyro-pointer, joystick, and multi-touch trackpad can support fake touch interactions. Android 4.0 includes the feature constant android.hardware.faketouch , which corresponds to a high-fidelity non-touch (that is, pointer-based) input device such as a mouse or trackpad that can adequately emulate touch-based input (including basic gesture support), and indicates that the device supports an emulated subset of touchscreen functionality. Device implementations that declare the fake touch feature MUST meet the fake touch requirements in Section 7.2.5 .

Device implementations MUST report the correct feature corresponding to the type of input used. Device implementations that include a touchscreen (single-touch or better) MUST report the platform feature constant android.hardware.touchscreen . Device implementations that report the platform feature constant android.hardware.touchscreen MUST also report the platform feature constant android.hardware.faketouch . Device implementations that do not include a touchscreen (and rely on a pointer device only) MUST NOT report any touchscreen feature, and MUST report only android.hardware.faketouch if they meet the fake touch requirements in Section 7.2.5 .

7.2.5। Fake touch input

Device implementations that declare support for android.hardware.faketouch

  • MUST report the absolute X and Y screen positions of the pointer location and display a visual pointer on the screen [ Resources, 80 ]
  • MUST report touch event with the action code [ Resources, 80 ] that specifies the state change that occurs on the pointer going down or up on the screen [ Resources, 80 ]
  • MUST support pointer down and up on an object on the screen, which allows users to emulate tap on an object on the screen
  • MUST support pointer down , pointer up , pointer down then pointer up in the same place on an object on the screen within a time threshold, which allows users to emulate double tap on an object on the screen [ Resources, 80 ]
  • MUST support pointer down on an arbitrary point on the screen, pointer move to any other arbitrary point on the screen, followed by a pointer up , which allows users to emulate a touch drag
  • MUST support pointer down then allow users to quickly move the object to a different position on the screen and then pointer up on the screen, which allows users to fling an object on the screen

Devices that declare support for android.hardware.faketouch.multitouch.distinct MUST meet the requirements for faketouch above, and MUST also support distinct tracking of two or more independent pointer inputs.

7.2.6। মাইক্রোফোন

Device implementations MAY omit a microphone. However, if a device implementation omits a microphone, it MUST NOT report the android.hardware.microphone feature constant, and must implement the audio recording API as no-ops, per Section 7 . Conversely, device implementations that do possess a microphone:

  • MUST report the android.hardware.microphone feature constant
  • SHOULD meet the audio quality requirements in Section 5.4
  • SHOULD meet the audio latency requirements in Section 5.5

7.3। সেন্সর

Android 4.3 includes APIs for accessing a variety of sensor types. Devices implementations generally MAY omit these sensors, as provided for in the following subsections. If a device includes a particular sensor type that has a corresponding API for third-party developers, the device implementation MUST implement that API as described in the Android SDK documentation. For example, device implementations:

  • MUST accurately report the presence or absence of sensors per the android.content.pm.PackageManager class. [ Resources, 37 ]
  • MUST return an accurate list of supported sensors via the SensorManager.getSensorList() and similar methods
  • MUST behave reasonably for all other sensor APIs (for example, by returning true or false as appropriate when applications attempt to register listeners, not calling sensor listeners when the corresponding sensors are not present; etc.)
  • MUST report all sensor measurements using the relevant International System of Units (ie metric) values for each sensor type as defined in the Android SDK documentation [ Resources, 41 ]

The list above is not comprehensive; the documented behavior of the Android SDK is to be considered authoritative.

Some sensor types are synthetic, meaning they can be derived from data provided by one or more other sensors. (Examples include the orientation sensor, and the linear acceleration sensor.) Device implementations SHOULD implement these sensor types, when they include the prerequisite physical sensors.

The Android 4.3 includes a notion of a "streaming" sensor, which is one that returns data continuously, rather than only when the data changes. Device implementations MUST continuously provide periodic data samples for any API indicated by the Android 4.3 SDK documentation to be a streaming sensor. Note that the device implementations MUST ensure that the sensor stream must not prevent the device CPU from entering a suspend state or waking up from a suspend state.

7.3.1। অ্যাক্সিলোমিটার

Device implementations SHOULD include a 3-axis accelerometer. If a device implementation does include a 3-axis accelerometer, it:

  • SHOULD be able to deliver events at 120 Hz or greater. Note that while the accelerometer frequency above is stated as "SHOULD" for Android 4.3, the Compatibility Definition for a future version is planned to change these to "MUST". That is, these standards are optional in Android 4.3 but will be required in future versions. Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to the future platform releases
  • MUST comply with the Android sensor coordinate system as detailed in the Android APIs (see [ Resources, 41 ])
  • MUST be capable of measuring from freefall up to twice gravity (2g) or more on any three-dimensional vector
  • MUST have 8-bits of accuracy or more
  • MUST have a standard deviation no greater than 0.05 m/s^2

7.3.2। ম্যাগনেটোমিটার

Device implementations SHOULD include a 3-axis magnetometer (ie compass.) If a device does include a 3-axis magnetometer, it:

  • MUST be able to deliver events at 10 Hz or greater
  • MUST comply with the Android sensor coordinate system as detailed in the Android APIs (see [ Resources, 41 ]).
  • MUST be capable of sampling a range of field strengths adequate to cover the geomagnetic field
  • MUST have 8-bits of accuracy or more
  • MUST have a standard deviation no greater than 0.5 µT

7.3.3। জিপিএস

Device implementations SHOULD include a GPS receiver. If a device implementation does include a GPS receiver, it SHOULD include some form of "assisted GPS" technique to minimize GPS lock-on time.

7.3.4। জাইরোস্কোপ

Device implementations SHOULD include a gyroscope (ie angular change sensor.) Devices SHOULD NOT include a gyroscope sensor unless a 3-axis accelerometer is also included. If a device implementation includes a gyroscope, it:

  • MUST be temperature compensated
  • MUST be capable of measuring orientation changes up to 5.5*Pi radians/second (that is, approximately 1,000 degrees per second)
  • SHOULD be able to deliver events at 200 Hz or greater. Note that while the gyroscope frequency above is stated as "SHOULD" for Android 4.3, the Compatibility Definition for a future version is planned to change these to "MUST". That is, these standards are optional in Android 4.3 but will be required in future versions. Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to the future platform releases
  • MUST have 12-bits of accuracy or more
  • MUST have a variance no greater than 1e-7 rad^2 / s^2 per Hz (variance per Hz, or rad^2 / s). The variance is allowed to vary with the sampling rate, but must be constrained by this value. In other words, if you measure the variance of the gyro at 1 Hz sampling rate it should be no greater than 1e-7 rad^2/s^2.
  • MUST have timestamps as close to when the hardware event happened as possible. The constant latency must be removed.

7.3.5। ব্যারোমিটার

Device implementations MAY include a barometer (ie ambient air pressure sensor.) If a device implementation includes a barometer, it:

  • MUST be able to deliver events at 5 Hz or greater
  • MUST have adequate precision to enable estimating altitude
  • MUST be temperature compensated

7.3.6। থার্মোমিটার

Device implementations MAY but SHOULD NOT include a thermometer (ie temperature sensor.) If a device implementation does include a thermometer, it MUST measure the temperature of the device CPU. It MUST NOT measure any other temperature. (Note that this sensor type is deprecated in the Android 4.3 APIs.)

7.3.7। ফটোমিটার

Device implementations MAY include a photometer (ie ambient light sensor.)

7.3.8। নৈকট্য সেন্সর

Device implementations MAY include a proximity sensor. If a device implementation does include a proximity sensor, it MUST measure the proximity of an object in the same direction as the screen. That is, the proximity sensor MUST be oriented to detect objects close to the screen, as the primary intent of this sensor type is to detect a phone in use by the user. If a device implementation includes a proximity sensor with any other orientation, it MUST NOT be accessible through this API. If a device implementation has a proximity sensor, it MUST be have 1-bit of accuracy or more.

7.4। ডেটা সংযোগ

7.4.1। টেলিফোনি

"Telephony" as used by the Android 4.3 APIs and this document refers specifically to hardware related to placing voice calls and sending SMS messages via a GSM or CDMA network. While these voice calls may or may not be packet-switched, they are for the purposes of Android 4.3 considered independent of any data connectivity that may be implemented using the same network. In other words, the Android "telephony" functionality and APIs refer specifically to voice calls and SMS; for instance, device implementations that cannot place calls or send/receive SMS messages MUST NOT report the "android.hardware.telephony" feature or any sub-features, regardless of whether they use a cellular network for data connectivity.

Android 4.3 MAY be used on devices that do not include telephony hardware. That is, Android 4.3 is compatible with devices that are not phones. However, if a device implementation does include GSM or CDMA telephony, it MUST implement full support for the API for that technology. Device implementations that do not include telephony hardware MUST implement the full APIs as no-ops.

7.4.2। IEEE 802.11 (ওয়াইফাই)

Android 4.3 device implementations SHOULD include support for one or more forms of 802.11 (b/g/a/n, etc.) If a device implementation does include support for 802.11, it MUST implement the corresponding Android API.

Device implementations MUST implement the multicast API as described in the SDK documentation [ Resources, 62 ]. Device implementations that do include Wifi support MUST support multicast DNS (mDNS). Device implementations MUST NOT filter mDNS packets (224.0.0.251) at any time of operation including when the screen is not in an active state.

7.4.2.1। ওয়াই - ফাই ডিরেক্ট

Device implementations SHOULD include support for Wifi direct (Wifi peer-to-peer). If a device implementation does include support for Wifi direct, it MUST implement the corresponding Android API as described in the SDK documentation [ Resources, 68 ]. If a device implementation includes support for Wifi direct, then it:

  • MUST support regular Wifi operation
  • SHOULD support concurrent wifi and wifi Direct operation

7.4.3। ব্লুটুথ

Device implementations SHOULD include a Bluetooth transceiver. Device implementations that do include a Bluetooth transceiver MUST enable the RFCOMM-based Bluetooth API as described in the SDK documentation and declare hardware feature android.hardware.bluetooth [ Resources, 42 ]. Device implementations SHOULD implement relevant Bluetooth profiles, such as A2DP, AVRCP, OBEX, etc. as appropriate for the device.

Device implementations that do include support for Bluetooth GATT (generic attribute profile) to enable communication with Bluetooth Smart or Smart Ready devices MUST enable the GATT-based Bluetooth API as described in the SDK documentation and declare hardware feature android.hardware.bluetooth_le [ Resources, 42 ]।

7.4.4। Near-Field Communications

Device implementations SHOULD include a transceiver and related hardware for Near-Field Communications (NFC). If a device implementation does include NFC hardware, then it:

  • MUST report the android.hardware.nfc feature from the android.content.pm.PackageManager.hasSystemFeature() method. [ Resources, 37 ]
  • MUST be capable of reading and writing NDEF messages via the following NFC standards:
    • MUST be capable of acting as an NFC Forum reader/writer (as defined by the NFC Forum technical specification NFCForum-TS-DigitalProtocol-1.0) via the following NFC standards:
      • NfcA (ISO14443-3A)
      • NfcB (ISO14443-3B)
      • NfcF (JIS 6319-4)
      • IsoDep (ISO 14443-4)
      • NFC Forum Tag Types 1, 2, 3, 4 (defined by the NFC Forum)
  • SHOULD be capable of reading and writing NDEF messages via the following NFC standards. Note that while the NFC standards below are stated as "SHOULD" for Android 4.3, the Compatibility Definition for a future version is planned to change these to "MUST". That is, these standards are optional in Android 4.3 but will be required in future versions. Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to the future platform releases.
    • NfcV (ISO 15693)
  • MUST be capable of transmitting and receiving data via the following peer-to-peer standards and protocols:
    • ISO 18092
    • LLCP 1.0 (defined by the NFC Forum)
    • SDP 1.0 (defined by the NFC Forum)
    • NDEF Push Protocol [ Resources, 43 ]
    • SNEP 1.0 (defined by the NFC Forum)
  • MUST include support for Android Beam [ Resources, 65 ]:
    • MUST implement the SNEP default server. Valid NDEF messages received by the default SNEP server MUST be dispatched to applications using the android.nfc.ACTION_NDEF_DISCOVERED intent. Disabling Android Beam in settings MUST NOT disable dispatch of incoming NDEF message.
    • Device implementations MUST honor the android.settings.NFCSHARING_SETTINGS intent to show NFC sharing settings [ Resources, 67 ].
    • MUST implement the NPP server. Messages received by the NPP server MUST be processed the same way as the SNEP default server.
    • MUST implement a SNEP client and attempt to send outbound P2P NDEF to the default SNEP server when Android Beam is enabled. If no default SNEP server is found then the client MUST attempt to send to an NPP server.
    • MUST allow foreground activities to set the outbound P2P NDEF message using android.nfc.NfcAdapter.setNdefPushMessage, and android.nfc.NfcAdapter.setNdefPushMessageCallback, and android.nfc.NfcAdapter.enableForegroundNdefPush.
    • SHOULD use a gesture or on-screen confirmation, such as 'Touch to Beam', before sending outbound P2P NDEF messages.
    • SHOULD enable Android Beam by default
    • MUST support NFC Connection handover to Bluetooth when the device supports Bluetooth Object Push Profile. Device implementations must support connection handover to Bluetooth when using android.nfc.NfcAdapter.setBeamPushUris, by implementing the "Connection Handover version 1.2" [ Resources, 60 ] and "Bluetooth Secure Simple Pairing Using NFC version 1.0" [ Resources, 61 ] specs from the NFC Forum. Such an implementation SHOULD use SNEP GET requests for exchanging the handover request / select records over NFC, and it MUST use the Bluetooth Object Push Profile for the actual Bluetooth data transfer.
  • MUST poll for all supported technologies while in NFC discovery mode.
  • SHOULD be in NFC discovery mode while the device is awake with the screen active and the lock-screen unlocked.

(Note that publicly available links are not available for the JIS, ISO, and NFC Forum specifications cited above.)

Additionally, device implementations MAY include reader/writer support for the following MIFARE technologies.

Note that Android 4.3 includes APIs for these MIFARE types. If a device implementation supports MIFARE in the reader/writer role, it:

  • MUST implement the corresponding Android APIs as documented by the Android SDK
  • MUST report the feature com.nxp.mifare from the android.content.pm.PackageManager.hasSystemFeature() method. [ Resources, 37 ] Note that this is not a standard Android feature, and as such does not appear as a constant on the PackageManager class.
  • MUST NOT implement the corresponding Android APIs nor report the com.nxp.mifare feature unless it also implements general NFC support as described in this section

If a device implementation does not include NFC hardware, it MUST NOT declare the android.hardware.nfc feature from the android.content.pm.PackageManager.hasSystemFeature() method [ Resources, 37 ], and MUST implement the Android 4.3 NFC API as a no-op.

As the classes android.nfc.NdefMessage and android.nfc.NdefRecord represent a protocol-independent data representation format, device implementations MUST implement these APIs even if they do not include support for NFC or declare the android.hardware.nfc feature.

7.4.5। Minimum Network Capability

Device implementations MUST include support for one or more forms of data networking. Specifically, device implementations MUST include support for at least one data standard capable of 200Kbit/sec or greater. Examples of technologies that satisfy this requirement include EDGE, HSPA, EV-DO, 802.11g, Ethernet, etc.

Device implementations where a physical networking standard (such as Ethernet) is the primary data connection SHOULD also include support for at least one common wireless data standard, such as 802.11 (WiFi).

Devices MAY implement more than one form of data connectivity.

7.5। ক্যামেরা

Device implementations SHOULD include a rear-facing camera, and MAY include a front-facing camera. A rear-facing camera is a camera located on the side of the device opposite the display; that is, it images scenes on the far side of the device, like a traditional camera. A front-facing camera is a camera located on the same side of the device as the display; that is, a camera typically used to image the user, such as for video conferencing and similar applications.

7.5.1। রিয়ার-ফেসিং ক্যামেরা

Device implementations SHOULD include a rear-facing camera. If a device implementation includes a rear-facing camera, it:

  • MUST have a resolution of at least 2 megapixels
  • SHOULD have either hardware auto-focus, or software auto-focus implemented in the camera driver (transparent to application software)
  • MAY have fixed-focus or EDOF (extended depth of field) hardware
  • MAY include a flash. If the Camera includes a flash, the flash lamp MUST NOT be lit while an android.hardware.Camera.PreviewCallback instance has been registered on a Camera preview surface, unless the application has explicitly enabled the flash by enabling the FLASH_MODE_AUTO or FLASH_MODE_ON attributes of a Camera.Parameters object. Note that this constraint does not apply to the device's built-in system camera application, but only to third-party applications using Camera.PreviewCallback .

7.5.2। ফ্রন্ট-ফেসিং ক্যামেরা

Device implementations MAY include a front-facing camera. If a device implementation includes a front-facing camera, it:

  • MUST have a resolution of at least VGA (that is, 640x480 pixels)
  • MUST NOT use a front-facing camera as the default for the Camera API. That is, the camera API in Android 4.3 has specific support for front-facing cameras, and device implementations MUST NOT configure the API to to treat a front-facing camera as the default rear-facing camera, even if it is the only camera on যন্ত্র.
  • MAY include features (such as auto-focus, flash, etc.) available to rear-facing cameras as described in Section 7.5.1.
  • MUST horizontally reflect (ie mirror) the stream displayed by an app in a CameraPreview, as follows:
    • If the device implementation is capable of being rotated by user (such as automatically via an accelerometer or manually via user input), the camera preview MUST be mirrored horizontally relative to the device's current orientation.
    • If the current application has explicitly requested that the Camera display be rotated via a call to the android.hardware.Camera.setDisplayOrientation() [ Resources, 50 ] method, the camera preview MUST be mirrored horizontally relative to the orientation specified by the application.
    • Otherwise, the preview MUST be mirrored along the device's default horizontal axis.
  • MUST mirror the image displayed by the postview in the same manner as the camera preview image stream. (If the device implementation does not support postview, this requirement obviously does not apply.)
  • MUST NOT mirror the final captured still image or video streams returned to application callbacks or committed to media storage

7.5.3। Camera API Behavior

Device implementations MUST implement the following behaviors for the camera-related APIs, for both front- and rear-facing cameras:

  1. If an application has never called android.hardware.Camera.Parameters.setPreviewFormat(int) , then the device MUST use android.hardware.PixelFormat.YCbCr_420_SP for preview data provided to application callbacks.
  2. If an application registers an android.hardware.Camera.PreviewCallback instance and the system calls the onPreviewFrame() method when the preview format is YCbCr_420_SP, the data in the byte[] passed into onPreviewFrame() must further be in the NV21 encoding format. That is, NV21 MUST be the default.
  3. Device implementations MUST support the YV12 format (as denoted by the android.graphics.ImageFormat.YV12 constant) for camera previews for both front- and rear-facing cameras. (The hardware video encoder and camera may use any native pixel format, but the device implementation MUST support conversion to YV12.)

Device implementations MUST implement the full Camera API included in the Android 4.3 SDK documentation [ Resources, 51 ]), regardless of whether the device includes hardware autofocus or other capabilities. For instance, cameras that lack autofocus MUST still call any registered android.hardware.Camera.AutoFocusCallback instances (even though this has no relevance to a non-autofocus camera.) Note that this does apply to front-facing cameras; for instance, even though most front-facing cameras do not support autofocus, the API callbacks must still be "faked" as described.

Device implementations MUST recognize and honor each parameter name defined as a constant on the android.hardware.Camera.Parameters class, if the underlying hardware supports the feature. If the device hardware does not support a feature, the API must behave as documented. Conversely, Device implementations MUST NOT honor or recognize string constants passed to the android.hardware.Camera.setParameters() method other than those documented as constants on the android.hardware.Camera.Parameters . That is, device implementations MUST support all standard Camera parameters if the hardware allows, and MUST NOT support custom Camera parameter types. For instance, device implementations that support image capture using high dynamic range (HDR) imaging techniques MUST support camera parameter Camera.SCENE_MODE_HDR [ Resources, 78 ]).

Device implementations MUST broadcast the Camera.ACTION_NEW_PICTURE intent whenever a new picture is taken by the camera and the entry of the picture has been added to the media store.

Device implementations MUST broadcast the Camera.ACTION_NEW_VIDEO intent whenever a new video is recorded by the camera and the entry of the picture has been added to the media store.

7.5.4। Camera Orientation

Both front- and rear-facing cameras, if present, MUST be oriented so that the long dimension of the camera aligns with the screen's long dimension. That is, when the device is held in the landscape orientation, cameras MUST capture images in the landscape orientation. This applies regardless of the device's natural orientation; that is, it applies to landscape-primary devices as well as portrait-primary devices.

7.6। মেমরি এবং স্টোরেজ

7.6.1। Minimum Memory and Storage

Device implementations MUST have at least 340MB of memory available to the kernel and userspace. The 340MB MUST be in addition to any memory dedicated to hardware components such as radio, video, and so on that is not under the kernel's control.

Device implementations MUST have at least 512MB of non-volatile storage available for application private data. That is, the /data partition MUST be at least 512MB. Device implementations that run Android 4.3 are very strongly encouraged to have at least 1GB of non-volatile storage for application private data so they will be able to upgrade to the future platform releases.

The Android APIs include a Download Manager that applications may use to download data files [ Resources, 56 ]. The device implementation of the Download Manager MUST be capable of downloading individual files of at least 100MB in size to the default "cache" location.

7.6.2। Application Shared Storage

Device implementations MUST offer shared storage for applications. The shared storage provided MUST be at least 1GB in size.

Device implementations MUST be configured with shared storage mounted by default, "out of the box". If the shared storage is not mounted on the Linux path /sdcard , then the device MUST include a Linux symbolic link from /sdcard to the actual mount point.

Device implementations MUST enforce as documented the android.permission.WRITE_EXTERNAL_STORAGE permission on this shared storage. Shared storage MUST otherwise be writable by any application that obtains that permission.

Device implementations MAY have hardware for user-accessible removable storage, such as a Secure Digital card. Alternatively, device implementations MAY allocate internal (non-removable) storage as shared storage for apps.

Regardless of the form of shared storage used, device implementations MUST provide some mechanism to access the contents of shared storage from a host computer, such as USB mass storage (UMS) or Media Transfer Protocol (MTP). Device implementations MAY use USB mass storage, but SHOULD use Media Transfer Protocol. If the device implementation supports Media Transfer Protocol:

  • The device implementation SHOULD be compatible with the reference Android MTP host, Android File Transfer [ Resources, 57 ].
  • The device implementation SHOULD report a USB device class of 0x00 .
  • The device implementation SHOULD report a USB interface name of 'MTP'.

If the device implementation lacks USB ports, it MUST provide a host computer with access to the contents of shared storage by some other means, such as a network file system.

It is illustrative to consider two common examples. If a device implementation includes an SD card slot to satisfy the shared storage requirement, a FAT-formatted SD card 1GB in size or larger MUST be included with the device as sold to users, and MUST be mounted by default. Alternatively, if a device implementation uses internal fixed storage to satisfy this requirement, that storage MUST be 1GB in size or larger and mounted on /sdcard (or /sdcard MUST be a symbolic link to the physical location if it is mounted elsewhere.)

Device implementations that include multiple shared storage paths (such as both an SD card slot and shared internal storage) SHOULD modify the core applications such as the media scanner and ContentProvider to transparently support files placed in both locations.

7.7। ইউএসবি

Device implementations SHOULD include a USB client port, and SHOULD include a USB host port.

If a device implementation includes a USB client port:

  • the port MUST be connectable to a USB host with a standard USB-A port
  • the port SHOULD use the micro USB form factor on the device side. Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to the future platform releases
  • the port SHOULD be centered in the middle of an edge. Device implementations SHOULD either locate the port on the bottom of the device (according to natural orientation) or enable software screen rotation for all apps (including home screen), so that the display draws correctly when the device is oriented with the port at bottom. Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to future platform releases.
  • if the device has other ports (such as a non-USB charging port) it SHOULD be on the same edge as the micro-USB port
  • it MUST allow a host connected to the device to access the contents of the shared storage volume using either USB mass storage or Media Transfer Protocol
  • it MUST implement the Android Open Accessory API and specification as documented in the Android SDK documentation, and MUST declare support for the hardware feature android.hardware.usb.accessory [ Resources, 52 ]
  • it MUST implement the USB audio class as documented in the Android SDK documentation [ Resources, 66 ]
  • it SHOULD implement support for USB battery charging specification [ Resources, 64 ] Existing and new devices that run Android 4.3 are very strongly encouraged to meet these requirements in Android 4.3 so they will be able to upgrade to the future platform releases

If a device implementation includes a USB host port:

  • it MAY use a non-standard port form factor, but if so MUST ship with a cable or cables adapting the port to standard USB-A
  • it MUST implement the Android USB host API as documented in the Android SDK, and MUST declare support for the hardware feature android.hardware.usb.host [ Resources, 53 ]

Device implementations MUST implement the Android Debug Bridge. If a device implementation omits a USB client port, it MUST implement the Android Debug Bridge via local-area network (such as Ethernet or 802.11)

8. কর্মক্ষমতা সামঞ্জস্য

Device implementations MUST meet the key performance metrics of an Android 4.3 compatible device defined in the table below:

মেট্রিক Performance Threshold মন্তব্য
Application Launch Time The following applications should launch within the specified time.
  • Browser: less than 1300ms
  • Contacts: less than 700ms
  • Settings: less than 700ms
The launch time is measured as the total time to complete loading the default activity for the application, including the time it takes to start the Linux process, load the Android package into the Dalvik VM, and call onCreate.
Simultaneous Applications When multiple applications have been launched, re-launching an already-running application after it has been launched must take less than the original launch time.

9. Security Model Compatibility

Device implementations MUST implement a security model consistent with the Android platform security model as defined in Security and Permissions reference document in the APIs [ Resources, 54 ] in the Android developer documentation. Device implementations MUST support installation of self-signed applications without requiring any additional permissions/certificates from any third parties/authorities. Specifically, compatible devices MUST support the security mechanisms described in the follow sub-sections.

9.1। অনুমতি

Device implementations MUST support the Android permissions model as defined in the Android developer documentation [ Resources, 54 ]. Specifically, implementations MUST enforce each permission defined as described in the SDK documentation; no permissions may be omitted, altered, or ignored. Implementations MAY add additional permissions, provided the new permission ID strings are not in the android.* namespace.

9.2। UID and Process Isolation

Device implementations MUST support the Android application sandbox model, in which each application runs as a unique Unix-style UID and in a separate process. Device implementations MUST support running multiple applications as the same Linux user ID, provided that the applications are properly signed and constructed, as defined in the Security and Permissions reference [ Resources, 54 ].

9.3। ফাইল সিস্টেম অনুমতি

Device implementations MUST support the Android file access permissions model as defined in the Security and Permissions reference [ Resources, 54 ].

9.4। Alternate Execution Environments

Device implementations MAY include runtime environments that execute applications using some other software or technology than the Dalvik virtual machine or native code. However, such alternate execution environments MUST NOT compromise the Android security model or the security of installed Android applications, as described in this section.

Alternate runtimes MUST themselves be Android applications, and abide by the standard Android security model, as described elsewhere in Section 9.

Alternate runtimes MUST NOT be granted access to resources protected by permissions not requested in the runtime's AndroidManifest.xml file via the <uses-permission> mechanism.

Alternate runtimes MUST NOT permit applications to make use of features protected by Android permissions restricted to system applications.

Alternate runtimes MUST abide by the Android sandbox model. বিশেষভাবে:

  • Alternate runtimes SHOULD install apps via the PackageManager into separate Android sandboxes (that is, Linux user IDs, etc.)
  • Alternate runtimes MAY provide a single Android sandbox shared by all applications using the alternate runtime
  • Alternate runtimes and installed applications using an alternate runtime MUST NOT reuse the sandbox of any other app installed on the device, except through the standard Android mechanisms of shared user ID and signing certificate
  • Alternate runtimes MUST NOT launch with, grant, or be granted access to the sandboxes corresponding to other Android applications

Alternate runtimes MUST NOT be launched with, be granted, or grant to other applications any privileges of the superuser (root), or of any other user ID.

The .apk files of alternate runtimes MAY be included in the system image of a device implementation, but MUST be signed with a key distinct from the key used to sign other applications included with the device implementation.

When installing applications, alternate runtimes MUST obtain user consent for the Android permissions used by the application. That is, if an application needs to make use of a device resource for which there is a corresponding Android permission (such as Camera, GPS, etc.), the alternate runtime MUST inform the user that the application will be able to access that resource . If the runtime environment does not record application capabilities in this manner, the runtime environment MUST list all permissions held by the runtime itself when installing any application using that runtime.

9.5। মাল্টি-ইউজার সাপোর্ট

Android 4.3 includes support for multiple users and provides support for full user isolation [ Resources, 70 ].

Device implementations MUST meet these requirements related to multi-user support [ Resources, 71 ]:

  • As the behavior of the telephony APIs on devices with multiple users is currently undefined, device implementations that declare android.hardware.telephony MUST NOT enable multi-user support.
  • Device implementations MUST, for each user, implement a security model consistent with the Android platform security model as defined in Security and Permissions reference document in the APIs [Resources, 54]
  • Android 4.3 includes support for restricted profiles, a feature that allows device owners to manage additional users and their capabilities on the device. With restricted profiles, device owners can quickly set up separate environments for additional users to work in, with the ability to manage finer-grained restrictions in the apps that are available in those environments. Device implementations that include support for multiple users MUST include support for restricted profiles. The upstream Android Open Source Project includes an implementation that satisfies this requirement.

Each user instance on an Android device MUST have separate and isolated external storage directories. Device implementations MAY store multiple users' data on the same volume or filesystem. However, the device implementation MUST ensure that applications owned by and running on behalf a given user cannot list, read, or write to data owned by any other user. Note that removable media, such as SD card slots, can allow one user to access another's data by means of a host PC. For this reason, device implementations that use removable media for the external storage APIs MUST encrypt the contents of the SD card if multi-user is enabled using a key stored only on non-removable media accessible only to the system. As this will make the media unreadable by a host PC, device implementations will be required to switch to MTP or a similar system to provide host PCs with access to the current user's data. Accordingly, device implementations MAY but SHOULD NOT enable multi-user if they use removable media [ Resources, 72 ] for primary external storage. The upstream Android Open Source Project includes an implementation that uses internal device storage for application external storage APIs; device implementations SHOULD use this configuration and software implementation. Device implementations that include multiple external storage paths MUST NOT allow Android applications to write to the secondary external storage.

9.6। Premium SMS Warning

Android 4.3 includes support for warning users for any outgoing premium SMS message [ Resources, 73 ] . Premium SMS messages are text messages sent to a service registered with a carrier that may incur a charge to the user. Device implementations that declare support for android.hardware.telephony MUST warn users before sending a SMS message to numbers identified by regular expressions defined in /data/misc/sms/codes.xml file in the device. The upstream Android Open Source Project provides an implementation that satisfies this requirement.

৯.৭। Kernel Security Features

The Android Sandbox in Android 4.3 includes features that can use the SELinux mandatory access control system (MAC) and other security features in the Linux kernel. Device implementations MUST support SELinux MAC. Note that the upstream Android Open Source Project provides an implementation that satisfies this requirement.

SELinux or any security features implemented below the Android framework MUST maintain compatibility with existing applications. These features SHOULD be invisible to users and developers. These features SHOULD NOT be user or developer configurable. If any API for configuration of policy is exposed to an application that can affect another application (such as a Device Administration API), the API MUST NOT allow configurations that break compatibility. To ensure continued compatibility the reference implementation allows the use of SELinux in a permissive mode and supports dynamic policy updates without requiring a system image update. Device implementations using SELinux MUST support this permissive mode, support dynamic policy updates and log any policy violations without breaking applications or affecting system behavior. Implementations using SELinux SHOULD load policy from /sepolicy file on the device. The upstream Android Open Source Project provides an implementation that satisfies this requirement. Device implementations SHOULD use the reference implementation in the Android Open Source Project, and device implementations MUST be compatible with the upstream Android Open Source Project.

10. Software Compatibility Testing

Device implementations MUST pass all tests described in this section.

However, note that no software test package is fully comprehensive. For this reason, device implementers are very strongly encouraged to make the minimum number of changes as possible to the reference and preferred implementation of Android 4.3 available from the Android Open Source Project. This will minimize the risk of introducing bugs that create incompatibilities requiring rework and potential device updates.

10.1। Compatibility Test Suite

Device implementations MUST pass the Android Compatibility Test Suite (CTS) [ Resources, 2 ] available from the Android Open Source Project, using the final shipping software on the device. Additionally, device implementers SHOULD use the reference implementation in the Android Open Source tree as much as possible, and MUST ensure compatibility in cases of ambiguity in CTS and for any reimplementations of parts of the reference source code.

The CTS is designed to be run on an actual device. Like any software, the CTS may itself contain bugs. The CTS will be versioned independently of this Compatibility Definition, and multiple revisions of the CTS may be released for Android 4.3. Device implementations MUST pass the latest CTS version available at the time the device software is completed.

10.2। CTS যাচাইকারী

Device implementations MUST correctly execute all applicable cases in the CTS Verifier. The CTS Verifier is included with the Compatibility Test Suite, and is intended to be run by a human operator to test functionality that cannot be tested by an automated system, such as correct functioning of a camera and sensors.

The CTS Verifier has tests for many kinds of hardware, including some hardware that is optional. Device implementations MUST pass all tests for hardware which they possess; for instance, if a device possesses an accelerometer, it MUST correctly execute the Accelerometer test case in the CTS Verifier. Test cases for features noted as optional by this Compatibility Definition Document MAY be skipped or omitted.

Every device and every build MUST correctly run the CTS Verifier, as noted above. However, since many builds are very similar, device implementers are not expected to explicitly run the CTS Verifier on builds that differ only in trivial ways. Specifically, device implementations that differ from an implementation that has passed the CTS Verifier only by the set of included locales, branding, etc. MAY omit the CTS Verifier test.

10.3। রেফারেন্স অ্যাপ্লিকেশন

Device implementers MUST test implementation compatibility using the following open source applications:

  • The "Apps for Android" applications [ Resources, 55 ]
  • Replica Island (available in Google Play Store)

Each app above MUST launch and behave correctly on the implementation, for the implementation to be considered compatible.

11. Updatable Software

Device implementations MUST include a mechanism to replace the entirety of the system software. The mechanism need not perform "live" upgrades - that is, a device restart MAY be required.

Any method can be used, provided that it can replace the entirety of the software preinstalled on the device. For instance, any of the following approaches will satisfy this requirement:

  • Over-the-air (OTA) downloads with offline update via reboot
  • "Tethered" updates over USB from a host PC
  • "Offline" updates via a reboot and update from a file on removable storage

The update mechanism used MUST support updates without wiping user data. That is, the update mechanism MUST preserve application private data and application shared data. Note that the upstream Android software includes an update mechanism that satisfies this requirement.

If an error is found in a device implementation after it has been released but within its reasonable product lifetime that is determined in consultation with the Android Compatibility Team to affect the compatibility of third-party applications, the device implementer MUST correct the error via a software update available that can be applied per the mechanism just described.

12. আমাদের সাথে যোগাযোগ করুন

You can contact the document authors at compatibility@android.com for clarifications and to bring up any issues that you think the document does not cover.