1. 08 Oct, 2012 1 commit
  2. 30 Sep, 2012 1 commit
  3. 26 Sep, 2012 1 commit
    • Elliott Hughes's avatar
      Log if dlopen(3) fails. · 6567510b
      Elliott Hughes authored
      It turns out that some apps swallow the UnsatisfiedLinkError, making it
      really hard to work out why they failed to launch.
      
      Before:
        D dalvikvm: Trying to load lib /data/app-lib/com.adobe.air-1/libCore.so 0x415be8a8
        W dalvikvm: No implementation found for native Lcom/adobe/air/AIRWindowSurfaceView;.nativeSurfaceCreated:()V
      
      After:
        D dalvikvm: Trying to load lib /data/app-lib/com.adobe.air-1/libCore.so 0x415be8a8
        E dalvikvm: dlopen("/data/app-lib/com.adobe.air-1/libCore.so") failed: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "_ZN7android10VectorImpl19reservedVectorImpl1Ev" referenced by "libCore.so"...
        W dalvikvm: No implementation found for native Lcom/adobe/air/AIRWindowSurfaceView;.nativeSurfaceCreated:()V
      
      Bug: 7093208
      Change-Id: Ib751fb959d49cb872d586f299e62ed6aae783de9
      6567510b
  4. 25 Sep, 2012 2 commits
  5. 24 Sep, 2012 1 commit
    • Jeff Sharkey's avatar
      Move multi-user OBB under user-specific path. · 5005743f
      Jeff Sharkey authored
      Support apps that may manually build OBB paths using
      getExternalStorageDirectory() by making multi-user OBB paths live
      under user-specific path.
      
      This new structure means we can simplify the emulated_legacy paths
      to be a single recursive bind mount.
      
      Bug: 7212801
      Change-Id: I85a0caebca52a6ff3bfe61c961518a91f0b8f8ff
      5005743f
  6. 21 Sep, 2012 2 commits
    • Jean-Baptiste Queru's avatar
      am 9bd5a9db: Reconcile jb-dev and AOSP · 74573701
      Jean-Baptiste Queru authored
      * commit '9bd5a9db':
        Fix an ugly bug where try/catch offsets weren't being mapped properly. do not merge.
        Fix a bug where the max blowup of annotations was incorrect. do not merge.
        Fix a bug where debugInfos' size wasn't being computed. do not merge.
        Make dex merging stateless. do not merge.
        Support debug info in dexmerge. do not merge.
      74573701
    • Jean-Baptiste Queru's avatar
      Reconcile jb-dev and AOSP · 9bd5a9db
      Jean-Baptiste Queru authored
      Change-Id: If3d2ce0f23b929f92d49649e015386670ed16863
      9bd5a9db
  7. 20 Sep, 2012 5 commits
  8. 19 Sep, 2012 1 commit
    • Andy McFadden's avatar
      Log when the native trace is unavailable · b3667a19
      Andy McFadden authored
      This should allow us to differentiate between "couldn't get the
      stack" and "didn't try to get the stack".  Also show the thread's
      state (e.g. 'R' for running, 'D' for uninterruptible syscall).
      
      Bug 7053953
      
      Change-Id: Ibc9e6a6f0fc855a4e5e8e133122232dc939bcb16
      b3667a19
  9. 17 Sep, 2012 7 commits
  10. 14 Sep, 2012 5 commits
  11. 12 Sep, 2012 4 commits
  12. 11 Sep, 2012 1 commit
  13. 08 Sep, 2012 1 commit
    • Jeff Sharkey's avatar
      Include user identifier in external storage paths. · d8de46c4
      Jeff Sharkey authored
      When building external storage paths, always include user in path
      to enable cross-user paths and aid debugging.
      
      Each Zygote process continues to only have access to the appropriate
      user-specific emulated storage through bind mounts. A second set of
      mounts continue supporting legacy /sdcard-style paths. For example,
      a process running as owner has these mount points:
      
      /storage/emulated_legacy
      /storage/emulated_legacy/Android/obb
      /storage/emulated/0
      /storage/emulated/obb
      
      This change also creates two nested namespaces around zygote. The
      first namespace is created when the zygote starts, and it holds a
      single writable tmpfs, since rootfs is ro. The second namespace is
      created quickly after forking, and is used to hold the private
      user-specific bind mounts. (This design saves us from creating a
      tmpfs-per-process.)
      
      Bug: 7131382
      Change-Id: Id80403ec956f0bff6997411cb1f82f273c76b85f
      d8de46c4
  14. 06 Sep, 2012 4 commits
    • Jesse Wilson's avatar
      Fix an ugly bug where try/catch offsets weren't being mapped properly. do not merge. · 15e631eb
      Jesse Wilson authored
      In dex files, there are several places where one object refers
      to another object by its position in the file. The dex merger
      is generally very careful to adjust these mappings when combining
      dex files.
      
      Unfortunately one of these cases was broken. Each try_item refers
      to a corresponding encoded_catch_handler by its byte offset in a
      list. Most of the time this byte offset is the same in the input
      dex file and the output dex file. But encoded_catch_handlers are
      variable-length because they use a variable-length uleb128 encoding
      to address the type_idx being caught. When dex files are merged,
      some exception types may go from having a small index to having
      a large index, increasing the number of bytes required to encode
      that index. This breaks our ability to directly copy over offsets
      as we were doing previously.
      
      Bug: http://code.google.com/p/android/issues/detail?id=36490
      
      (cherry picked from commit d43341a2)
      
      Change-Id: I4e6ab791925a918513122b46e039c02dfef62ace
      15e631eb
    • Jesse Wilson's avatar
      Fix a bug where the max blowup of annotations was incorrect. do not merge. · 52dc08d4
      Jesse Wilson authored
      I'm not sure where the 1.34 number comes from but it's incorrect.
      From the spec, the encoded_annotation is made up of a single byte
      plus an unlimited number of uleb128 values. Each of these values
      can double in width in the worst case. I received (personal) email
      from one user who'd run into a case worse than the incorrect 1.34
      limit.
      
      (cherry picked from commit bf7dfeea)
      
      Change-Id: I033a0d76ea0324d434d732e7757df0c3fd925b68
      52dc08d4
    • Jesse Wilson's avatar
      Fix a bug where debugInfos' size wasn't being computed. do not merge. · 963b13a8
      Jesse Wilson authored
      Previously debugInfos' size of 0 caused a malformed dex file
      because debug data was present but not mentioned in the table
      of contents.
      
      (cherry picked from commit 55ac44b6)
      
      Change-Id: I2084c06521ea200772c523cdaa28c8019fa76025
      963b13a8
    • Jeff Sharkey's avatar
      Remove /sdcard hack for shell users. · 21c93dc7
      Jeff Sharkey authored
      Using a /storage/sdcard0 symlink and a tmpfs staging area was used
      to enable "/sdcard" paths for both zygote processes and the shell
      user, but it breaks on devices with both emulated and physical
      external storage.
      
      Specifically, vold can't mount a physical sdcard onto the primary
      storage symlink, and zygote can't re-bind-mount when secondary
      storage is remounted after dropping privileges.
      
      Bug: 7094858, 7064600
      Change-Id: Id91e3b3e521a3b3e1bb5358920adc66a0a43917f
      21c93dc7
  15. 05 Sep, 2012 4 commits