1 page.title= 2 page.keywords=preview,sdk,compatibility 3 meta.tags="preview", "compatibility" 4 page.tags="preview", "developer preview" 5 page.image=images/cards/card-n-changes_2x.png 6 @jd:body 7 8 9 <div id="tb-wrapper"> 10 <div id="tb"> 11 12 <h2></h2> 13 14 <ol> 15 <li><a href="#perf"></a> 16 <ol> 17 <li><a href="#doze"></a></li> 18 <li><a href="#bg-opt"></a></li> 19 </ol> 20 </li> 21 <li><a href="#perm"></a></li> 22 <li><a href="#accessibility"></a> 23 <ol> 24 <li><a href="#screen-zoom"></a></li> 25 <li><a href="#vision-settings"></a></li> 26 </ol> 27 </li> 28 <li><a href="#ndk">NDK </a></li> 29 <li><a href="#afw">Android for Work</a></li> 30 </ol> 31 32 <h2></h2> 33 <ol> 34 <li><a href="{@docRoot}preview/api-overview.html">Android N API </a> 35 </li> 36 </ol> 37 38 </div> 39 </div> 40 41 42 <p> 43 Android N API 44 45 46 47 </p> 48 49 <p> 50 Android 51 52 </p> 53 54 55 <h2 id="perf"></h2> 56 57 <p> 58 Android N RAM 59 60 61 62 63 </p> 64 65 <h3 id="doze"></h3> 66 67 <p> 68 Android 6.0 (API 23) CPU Android N () CPU 69 70 71 72 73 74 </p> 75 76 77 <img src="{@docRoot}images/android-7.0/doze-diagram-1.png" alt="" height="251px" id="figure1" /> 78 <p class="img-caption"> 79 <strong> 1.</strong> 80 81 </p> 82 83 <p> 84 {@link android.os.PowerManager.WakeLock} 85 {@link android.app.AlarmManager} GPS Wi-Fi / 86 87 88 89 90 91 92 93 </p> 94 95 96 <img src="{@docRoot}images/android-7.0/doze-diagram-2.png" alt="" id="figure2" /> 97 <p class="img-caption"> 98 <strong> 2.</strong> 99 100 </p> 101 102 <p> 103 Android 6.0 (API 23) <a href="{@docRoot}training/monitoring-device-state/doze-standby.html"></a> Google (GCM) 104 105 106 107 108 109 110 111 112 </p> 113 114 115 <h3 id="bg-opt"> Svelte</h3> 116 117 <p> 118 Android N 119 120 121 122 123 </p> 124 125 <p> 126 Wi-Fi {@link 127 android.net.ConnectivityManager#CONNECTIVITY_ACTION} broadcast in their 128 129 130 131 132 133 </p> 134 135 <p> 136 () {@link 137 android.hardware.Camera#ACTION_NEW_PICTURE} {@link 138 android.hardware.Camera#ACTION_NEW_VIDEO} 139 140 141 </p> 142 143 <p> 144 Android N 145 146 </p> 147 148 <ul> 149 <li> Android N {@link 150 android.net.ConnectivityManager#CONNECTIVITY_ACTION} {@code CONNECTIVITY_CHANGE} {@link 151 android.content.BroadcastReceiver} 152 153 154 155 </li> 156 157 <li> {@link 158 android.hardware.Camera#ACTION_NEW_PICTURE} {@link 159 android.hardware.Camera#ACTION_NEW_VIDEO} Android N 160 161 </li> 162 </ul> 163 164 <p> 165 Android 166 167 168 169 </p> 170 171 <p> 172 Android {@link 173 android.app.job.JobScheduler} API () {@link 174 android.app.job.JobScheduler} 175 176 177 178 </p> 179 180 <p> 181 <a href="{@docRoot}preview/features/background-optimization.html"></a> 182 183 184 </p> 185 186 187 <h2 id="perm"></h2> 188 189 <p> 190 Android N 191 192 193 194 </p> 195 196 <ul> 197 <li>{@code GET_ACCOUNTS} () 198 <p> 199 GET_ACCOUNTS Android N 200 201 </p> 202 </li> 203 204 </ul> 205 206 207 208 <h2 id="accessibility"></h2> 209 210 <p> 211 Android N 212 213 214 215 216 </p> 217 218 219 <h3 id="screen-zoom"></h3> 220 221 <p> 222 Android N <strong></strong> <a href="http://developer.android.com/guide/topics/resources/providing-resources.html">sw320dp</a> (Nexus 4 ) 223 224 225 226 227 </p> 228 229 <div class="cols"> 230 231 <div class="col-6"> 232 <img src="{@docRoot}images/android-7.0/screen-zoom-1.png" alt="" height="XXX" id="figure1" /> 233 </div> 234 <div class="col-6"> 235 <img src="{@docRoot}images/android-7.0/screen-zoom-2.png" alt="" height="XXX" id="figure1" /> 236 </div> 237 238 </div> <!-- end cols --> 239 <p class="img-caption"> 240 <strong> 3.</strong> Android N 241 242 </p> 243 244 245 <p> 246 247 248 </p> 249 250 <ul> 251 <li> API 23 <em>[]</em> <strong>[]</strong> <a href="{@docRoot}guide/topics/resources/runtime-changes.html"></a> 252 253 254 255 256 257 258 259 </li> 260 261 <li> Android N () <a href="{@docRoot}guide/topics/resources/runtime-changes.html"></a> 262 263 264 265 </li> 266 </ul> 267 268 <p> 269 Android 270 271 </p> 272 273 <ul> 274 <li> <code><a href= 275 "{@docRoot}guide/topics/resources/providing-resources.html">sw320dp</a></code> 276 277 </li> 278 279 <li> 280 281 282 283 <p class="note"> 284 <strong></strong> 285 286 287 288 289 </p> 290 </li> 291 292 <li><a href="{@docRoot}guide/practices/screens_support.html"></a> (<code>dp</code>) 293 294 295 </li> 296 </ul> 297 298 <h3 id="vision-settings"></h3> 299 300 <p> 301 Android N <strong></strong><strong></strong><strong></strong> <strong>TalkBack</strong> [] > []<strong></strong> 302 303 304 305 306 307 308 309 </p> 310 311 <h2 id="ndk">NDK </h2> 312 313 <p> 314 Android N API NDK Android API Android API 315 316 317 318 </p> 319 320 <p> 321 API API Android N logcat API 322 323 324 325 326 327 </p> 328 329 <p> 330 NDK API API ( <code>libpng</code>) NDK APK .so 331 332 333 334 335 336 </p> 337 338 <p class="caution"> 339 <strong></strong> API Android 340 341 342 </p> 343 344 <p> 345 NDK Android OpenSSL BoringSSL NDK NDK Android API 346 347 348 349 350 351 352 </p> 353 354 <p> 355 Android N Java NDK 356 357 </p> 358 359 <p>Java </p> 360 <pre class="no-pretty-print"> 361 java.lang.UnsatisfiedLinkError: dlopen failed: library "/system/lib/libcutils.so" 362 is not accessible for the namespace "classloader-namespace" 363 </pre> 364 365 <p>NDK </p> 366 <pre class="no-pretty-print"> 367 dlopen failed: cannot locate symbol "__system_property_get" referenced by ... 368 </pre> 369 370 371 <p> 372 373 </p> 374 375 <ul> 376 <li> JNI libandroid_runtime.so getJavaVM getJNIEnv 377 378 <pre class="no-pretty-print"> 379 AndroidRuntime::getJavaVM -> GetJavaVM from <jni.h> 380 AndroidRuntime::getJNIEnv -> JavaVM::GetEnv or 381 JavaVM::AttachCurrentThread from <jni.h>. 382 </pre> 383 </li> 384 385 <li> {@code __system_property_get} {@code libcutils.so} {@code property_get} {@code __system_property_get} include 386 387 388 <pre> 389 #include <sys/system_properties.h> 390 </pre> 391 </li> 392 393 <li> {@code libcrypto.so} {@code SSL_ctrl} {@code .so} {@code libcyrpto.a} BoringSSL OpenSSL {@code libcrypto.so} 394 395 396 397 </li> 398 </ul> 399 400 <h2 id="afw">Android for Work</h2> 401 <p> 402 Android N Android for Work Android for Work 403 404 405 406 407 </p> 408 409 <ul> 410 <li>DPC N SDK (DPC) <code>DevicePolicyManager.setCertInstallerPackage()</code> <code>IllegalArgumentException</code> 411 412 413 414 415 416 417 </li> 418 419 <li> <code>DevicePolicyManager.resetPassword()</code> PIN 420 421 422 423 424 </li> 425 426 <li> <code>DISALLOW_MODIFY_ACCOUNTS</code> API 427 428 429 </li> 430 431 <li> <code>DISALLOW_ADD_USER</code> <code>CreateUser()</code> <code>createAndInitial()</code> <code>DevicePolicyManager.createAndManageUser()</code> 432 433 434 435 436 437 </li> 438 439 <li> <code>DevicePolicyManagewr.getWifiMacAddress()</code> Wi-Fi MAC Wi-Fi {@code null} 440 441 442 443 </li> 444 </ul> 445 446 <p> 447 Android N Android for Work <a href="{@docRoot}preview/features/afw.html">Android for Work </a> 448 449 </p> 450 451 <h2 id="other"></h2> 452 453 <ul> 454 <li> Android N API 455 456 457 458 459 <p> 460 DDMS 461 462 463 464 </p> 465 466 <p> 467 N 468 469 </p> 470 </li> 471 472 <li> 473 Android N ([]<strong></strong> > []<strong></strong> > []<strong></strong>) 474 475 476 477 478 </li> 479 </ul> 480 481