title: Renaming the Package Name inside an APK
body: <p>I have created an <strong>AIR app</strong> that is currently on the market. To update the app, obviously I must keep the same package name. My first version's were packaged using <strong>Eclipse</strong> with the ADT plugin.</p>
  
  <p>Now to use <strong>AIR 3.0 Native Extensions</strong> (ANE) which were not available when I first developed the app, I currently must create my APK using AIR's command line tools. Unfortunately, these command line tools force you to have a package name that starts with the word "air". For example, I need the package name "com.example". AIR creates the package name as "air.com.example".</p>
  
  <p>So now, I cannot update my app in the market since the package name has changed. Adobe has this horrific article to help you rename and remove the "air" in the package. I'm not a great programmer so this has really stumped me.
  <a href="http://kb2.adobe.com/cps/875/cpsid_87562.html" rel="noreferrer">http://kb2.adobe.com/cps/875/cpsid_87562.html</a></p>
  
  <p>Apparently this info is out of date or incorrect in a few areas.
  I have completely stumbled at step 12 which uses <strong>apkbuilder</strong>:</p>
  
  <pre><code> apkbuilder final.apk -u -z resources.arsc -f classes.dex
  </code></pre>
  
  <p>I am getting this error message:</p>
  
  <p><em>THIS TOOL IS DEPRECATED. See --help for more information.
  java.io.FileNotFoundException: <strong>resources.arsc</strong> does not exist</em></p>
  
  <p>I have used step 10 to create the new <strong>resources.arsc</strong> file. It clearly DOES exist and in the correct location. I tried using apkbuilder with other resources.arsc files taken from other projects. I still get the same error message.</p>
  
  <p>Is there a chance in hell of this working? If anyone is interested in this, I have a zip file with a sample AIR apk, windows bat files for all the command line work, and all the needed utilities so they don't need to be downloaded. To get started you just need to change my path.bat to fit your system. And you need notepad++ (or an equivalent) to batch automate renaming the package name across several files.
  <a href="http://bradwallacedesign.com/dktimer/renameApkProject.zip" rel="noreferrer">bradwallacedesign.com/dktimer/renameApkProject.zip</a></p>
  
  <p>Thanks so much!</p>