title: Where to I place the OBB file to test Android Expansion Pack Files (OBB) on my Nexus 4?
body: <p>I'm trying to test the Expansion Pack Files (OBB) In Android following the guide here:
  <a href="http://developer.android.com/google/play/expansion-files.html">http://developer.android.com/google/play/expansion-files.html</a></p>
  
  <p>I'm in the step where I need to test my app on my Nexus 4.</p>
  
  <p>I generated my .obb file with jobb and adb-pushed it in the device in this location:</p>
  
  <pre><code>/mnt/shell/emulated/0/Android/obb/my.package/main.1.my.package.obb
  </code></pre>
  
  <p>When the app run it doesn't find the file.</p>
  
  <p>Method:</p>
  
  <pre><code>Helpers.doesFileExist(context, fileName, xf.mFileSize, false)
  </code></pre>
  
  <p>return false for my file.</p>
  
  <p>I debugged and found out it is looking for the file in:</p>
  
  <pre><code>/storage/emulated/0/Android/obb/my.package/main.1.my.package.obb
  </code></pre>
  
  <p>Specifically this is the path returned by:</p>
  
  <pre><code>Helpers.generateSaveFileName(c, fileName)
  </code></pre>
  
  <p>The /storage/emulated/0, returned by Environment.getExternalStorageDirectory() doesn't exist browsing the device with adb shell.</p>
  
  <p>But it DOES at runtime, inside the app, I also checked what it contains: it contains almost the same things I found in /mnt/shell/emulated/0, it contains the Android/obb dir, which is empty.</p>
  
  <p>How I found out the path /mnt/shell/emulated/0/Android/obb/my.package/main.1.my.package.obb where I placed my obb file:</p>
  
  <pre><code>$ adb shell
  $ ls -ld sdcard
  lrwxrwxrwx root     root              2013-10-16 17:34 sdcard -&gt; /storage/emulated/legacy
  $ ls -ld /storage/emulated/legacy
  lrwxrwxrwx root     root              2013-10-16 17:34 legacy -&gt; /mnt/shell/emulated/0
  </code></pre>
  
  <p>And inside that I already found the Android/obb directory, empty.</p>
  
  <p>So the question is: where should I put my obb file for it to be in the right position at runtime?</p>
  
  <p>I did everything said there:</p>
  
  <ul>
  <li><p>created a draft application in the Market to get the public key</p></li>
  <li><p>generated a random array of 20 byte (salt)</p></li>
  <li><p>integrated play_licensing/library and play_apk_expansion/download_library</p></li>
  <li><p>wrote my Service / Receiver</p></li>
  <li><p>did the check using the Helpers etc.. exactly like the documentation say.</p></li>
  </ul>
  
  <p>I suppose everything works but I can't just yet release on Play Store! I need to test locally and I'll have the need to change my obb file pretty often in this initial phase of development.</p>
  
  <p>I can't test on the Emulator because I use 3D and device camera.</p>