Changing Package Name of an AIR apk

Hi. I have created an AIR app that is currently in the market. To update the app, obviously I must keep the same package name. My first version's were packaged using Eclipse with the ADT plugin.
Now to use AIR 3.0 Native Extensions (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".
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.
http://kb2.adobe.com/cps/875/cpsid_87562.html
Apparently this info is out of date or incorrect in a few areas.
I have completely stumbled at step 12 which uses apkbuilder:
apkbuilder final.apk -u -z resources.arsc -f classes.dex
I am getting this error message:
THIS TOOL IS DEPRECATED. See --help for more information.
java.io.FileNotFoundException: resources.arsc does not exist
I have used step 10 to create the new resources.arsc 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.
Maybe there is another way to do this using another tool like like apkTool. http://code.google.com/p/android-apktool/
I tried this but then couldn't get jarsigner to sign the apk properly.
Is there a chance in hell of this working? There doesn't seem to be much about this topic on the internet. 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.
http://bradwallacedesign.com/dktimer/renameApkProject.zip
Thanks so much!

If the DisplayObject is on the timeline then its name cannot
be modified, but the name property of dynamically created
DisplayObjects can be changed. (DisplayObject.name:String
read/write).

Similar Messages

  • Change package name of RFC Model in NWDS

    Hi All,
    Is there a way to change Package Name of Adaptive RFC model in NWDS? I can do that by deleting the existing model and creating a new one, but is there a way to achive it without deleting the model?
    Thanks in advance,
    Pravin

    i dont think there z any other way out...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df
    page 5

  • Change package name of a form

    Hi,
    I want to change the package name of a Form in se71 from $TMP to a company package name. I would like to know the step by step process and direct answer please!
    Points will be rewarded!
    Thanks!

    Hi there,
    I believe the only solution for your issue is to open the form in the change mode,
    then click on the File--> Save As and then give some name and assign the package,,
    then you can always delete the previous form save in $tmp.
    Let me know if you need further help.
    Thanks-

  • App-V Server : Changing Package Name through Powershell.

    Hi,
    Is it possible to change the package name through powershell ?
    Here is the sequence i tried which didn't work...
     $package=Get-AppvServerPackage -PackageID ""
     $package.name="<new name>"
     Set-AppvServerPackage -AppvServerPackage $package
    And also the version set to all the packages is set to 0.0.0.1 , Is there any other place where they save the version of software or they don't deal with software version ?
    Any help on this would be great...
    Thanks,
    Sumit.

    I doubt that you can modify the package name 'afterwards'. If the package name really is a concern (users usually don't see that), it should be modified using the Sequencer or Application Virtualization Explorer.
    Falko
    Twitter
    @kirk_tn   |   Blog
    kirxblog   |   Web
    kirx.org   |   Fireside
    appvbook.com

  • I need to remove "air." from package name. I'm get a Layout xml error when repackaging android app..

    So, i'm doing this on my own app. I made an update for an older app that was build using Native Android. But this time, i used Adobe AIR... The catch is Adobe likes to append a "air." to the front of your package name without asking you. So basically I can't upload my update because it has a new package name is now "air.com.mycompany.myapp" rather than the original "com.mycompany.myapp"
    Basically I'm going through this guide..
    http://helpx.adobe.com/air/kb/opt-out-air-application-analytics.html
    I followed all the steps, made all the adjustments to the androidmanifest.xml like it asks.
    But after going along with the above guide, with no issues when i get to the step that says
    "Run the following command to create the resource file for the updated AndroidManifest.xml:"
    I run this..
        "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platform-tools/aapt" package -f -M AndroidManifest.xml -F resources.arsc -I "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platforms/android-8/android.jar" -S ./res
    But I keep getting the same error regarding the xml files in res/layout
        ./res/layout/expandable_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/expandable_multiple_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/main.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/multiple_file_selection_panel.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/ssl_certificate_warning.xml:1: error: Error parsing XML: not well-formed (invalid token)
    The guide doesn't say anything about these xml files, and im not sure what to do with these or how to handle them.
    If i go into the res/layout folder, and just delete these (i know they're necessary. But i just deleted them as a test, to get through the rest of the guide...)
    I was able to get through the rest of the steps in the guide fine, make an apk, and put it on my phone...only to find out the app will crash the moment you try to run it. Probably because i deleted the layout xml files...But i cant get the command i need to run above to accept them!
    So, earlier in the guide they have me use thing thing called the "AXMLPrinter2.jar" to make the AndroidManifest.xml readable so i can edit it.
    I run something like this:
        java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" AndroidManifest.xml > AndroidManifest.xml.bk
    This makes a new file "AndroidManifest.xml.bk" and i can edit that.
    So, I was thinking with all of these layout xml files, maybe I could run this "AXMLPrinter2.jar" on them and then edit them. Because right now if you open them they're not human readable, and its hard for me to work on them if they're not...
    I tried this thinking i could do the same thing...
        java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" main.xml > main.xml.bk
    Just get a blank file and a console erorr when trying to use the AXMLPrinter2.jar on the layout xml files...
        java.lang.ArrayIndexOutOfBoundsException: 67
                  at android.content.res.StringBlock.getShort(StringBlock.java:231)
                  at android.content.res.StringBlock.getString(StringBlock.java:91)
                  at android.content.res.AXmlResourceParser.getName(AXmlResourceParser.java:140)
                  at test.AXMLPrinter.main(AXMLPrinter.java:56)
    So, I think my whole issue is based around these XML files not being converted to human readable before i try and re-package....
    EDIT:::
    Ok, so I found a site that talks about the error I'm getting but it's in chinese, and even after translating the page...I'm still not well versed with terminal and this stuff to get it.
    It reads:
    "Error.
    Final conclusion:
    In minSdkVersion <= 7, AXMLPrinter2.jar can normally decompile xml file
    Greater than 7 can not be normal decompile xml file (AndroidManifest.xml except)
    Give way to share a batch decompile xml file:
    First, create a *. Txt file
    Stresses inside the content authoring
    for / r layout%% a in (*. xml) do @ java-jar AXMLPrinter2.jar "%% a" >> "%% a". txt
    Then this txt file extension into bat form, and this BAT the file and AXMLPrinter2.jar on the same directory will be decompiled xml into the layout directory
    Decompilation results can be generated by executing the bat file multiple xml files."
    - http://hi.baidu.com/ghcghc/item/ecbaa1ce997cb225a0b50ac2
    Maybe someone with more know-how could explain what they're explaining? I get that he's saying the issue im seeing appears when you're using minSdK <=7 but I need to use minSdk 8. Does anyone understand this work around? And how I might go about it on a Mac with terminal?
    I wish adobe would make it easy to remove the "air." from the package name. If they want to convert old Native devs to AIR devs...the transition needs to be seamless. But now I'm about to have to go back to Native because I can't update an app I already have out on the market with an air app.

    Hello~
         I also tried to remove "air." package name in air application. And i encounter the same problem.
         I do not find any solution to decode the xml inside res folder by AXMLPrinter2.jar. And those xml inside is compressed which is unreadable.
         However, what you can do is copying the structure of res folder. And go to your air sdk file path -  adobeair-sdk-folder/lib/android/lib/resources/
         Replace those file exists in your res folder. And copy "values" folder to your res folder.
         Hope this solve your problem~

  • Will a jni header accept a package name with "." in between

    My java class for native function call is included in a package with name like "xxx.yyy.zzz"
    So when I edit the jni class in header file generated to include the package name ,it shows error.
    Is it possible to write jni class for a native function defined in java class which such package name?

    My java class is like this.
    package aaa.bbb.ccc;
    public class Sample{
         static {
              try {
                   System.loadLibrary("WMSMS");
              } catch (UnsatisfiedLinkError e) {
                   System.err.println("WMSMS.dll failed to load. \n" + e);
                   System.exit(1);
         final static native int SendSMS(boolean a, boolean b, String SMSC,String phno, String msg);
         public static int sendSMS(String phoneno, String message){
              int msent = SendSMS(false,true,"",phoneno,message);
              return msent;
    }The header file generated has function like:
    JNIEXPORT jint JNICALL  Java_Sample_SendSMS
      (JNIEnv *, jclass, jboolean, jboolean, jstring, jstring, jstring);So I changed it to
    JNIEXPORT jint JNICALL Java_aaa.bbb.ccc_WMSMS_SendSMS
      (JNIEnv *, jclass, jboolean, jboolean, jstring, jstring, jstring);But then the cpp code showed errors on compiling.
    I dont want to change package name ,since all other classes of the project are included in it and we use this format to easily distinguish the packages (for more clarity) .
    Otherwise using a simple package name works fine and i m able to call the cpp dll with the jni.

  • My i pad was purchased by my husband using his credit card but now when i send mails using icloud account to shows like is coming from him. how can i change his name to mine

    my i pad was purchased by my husband using his credit card but now when i send mails using icloud account to shows like is coming from him. how can i change his name to mine

    MacBook Airs won't run Classic, nor will Classic connect to iCloud accounts.    You will need your Mac OS X version to answer the question involved.    Go to Apple menu -> About This Mac, and post in the appropriate forum in the link below:
    https://discussions.apple.com/docs/DOC-2463

  • How do I change the name I have called my MacBook Air so I can add 11" and 13" into the title of whose computer this is for more clarity when I set up Time Machine and save to it with both computers?  Both are named with "my name and MacBook Air"

    I'm still learning the whole Mac thing but these are great machines!  I purchased a MacBook Air 13" and then thought I should also get a MacBook Air 11" for travel.  When I set it up at the Apple store I told the assistant the exact same name for each machine, i.e., "my name and MacBook Air."  What I want to do is go back in and rename both of them adding the 11" and 13" designation to the name so that when I set up Time Machine or whatever else I know exactly which machine is what.  I'm sure it is very simple but I cannot seem to figure it out.  Help please. Thanks.

    Go to System Preferences - Sharing and change the computer name there. You can also, optionally, change the name of your hard drive to further clarify the origin of your backups. Click once on the "Macintosh HD" on your desktop, then click its name to allow you to edit it.
    Matt

  • How to change the package name of Managed Bean class

    Hi: Gurus, when ever I create a new JSP page the Creator creates a code behind file with a package name untitled. Is there any way to change this package name? Can't the Creator gives us an option before genereating manged bean page to choose a package name? And then create the Java source directory structure on the basis of the pakcage name?
    Regards,
    Rashid.

    In the Project Navigator (default location is middle right), go to Java Sources, and you can rename the package ("untitled") to something else by right-clicking it or by left-clicking (just like Windows Explorer).
    I agree, though, that giving the developer an option during creation of the JSP page would be nice.

  • How do I change the name of my new computer from "MacBook Air-2" to "iMac"?

    How do I change the name of my new computer from "MacBook Air-2" to "iMac"?

    Open the Sharing pane of System Preferences and change it.
    (95420)

  • How to change the package name of View or Window

    Hi all,
    i have created the Webdynpro Application.i have some Views and Windows in the WebDynpro Peoject.i want to change the package Names of Views.is it possible???
    thanks in advance
    regards
    Naidu

    Hi Naidu
        Though you rename the package name, the view in that package refers to the old package and hence that view can be used in other views by including the old package name only. Renaming doesn't have significance that you expect. You can create a new package and views in it and copy the implementation of views from the old package to the views in the new package.
    Regards
    Vijayakhanna Raman

  • How to change the package name for a msg class

    Can anybody tell me how to change the package name for a message class.
    and how will it effect in the rerport?
    thanks in advance
    kp

    >>and how will it effect in the report?
    You wouldn't see any direct effect on the Report.. But if you transport the report to QA & leave the Message class in Dev, it might result in syntax issues & you will not be able to execute the report. Just ensure that both of them get transported to QA & you will be fine.
    ~Suresh

  • [SOLVED] Any guidelines for changing AUR package name?

    I have TTWM in the AUR, and I'm changing the name to Alopex.
    I can revise the PKGBUILD to change the name, and put ttwm-git in the "replaces" and/or "conflicts" array, but when I submit this to the AUR will there then be two AUR packages?
    There is no need for the ttwm-git package to remain in the aur as they will be identical - it's just a name change.  I don't want to needlessly clutter the AUR, so if there are any guidelines or best practices for renaming AUR packages, let me know.
    Last edited by Trilby (2013-04-20 11:12:07)

    If the wiki is unclear, please edit it https://wiki.archlinux.org/index.php/AUR#Other_requests
    Package merging has been implemented, users still have to resubmit a package under a new name and may request merging of the old version's comments and votes on the mailing list.

  • Changing the BC4J package name?

    Hi All
    I created New Business Components Package for a project as xxxx.oracle.apps.pji.projperf.reporting.server.
    Now i need to change the name from xxxx to yyyy as
    yyyy.oracle.apps.pji.projperf.reporting.server.
    Please let me know how can i change the name of the package.
    Its urgent.
    Thanks

    Create your new BC4J package yyyy.oracle.apps.pji.projperf.reporting.server
    Now right click on each of the view objects in xxxx.oracle.apps.pji.projperf.reporting.server and select "Move package", choose your new BC4J package.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Suggestions for substituting a package name that constantly changes

    I work with an organization that constantly changes their package names. I am tired of going to each program and changing them on a whim. I wanted to know if there is a procedure for making package names replaceable. This would be mostly a preventive method used to avoid using "find and replace" in huge, enterprise projects.
    For example, one day it is as follows:
    package com.megacorp.myclass;
    The next day I want it to be changed as follows:
    package com.mymegacorp.myclass;
    Maybe the approach I was looking for was something like a .properties file or context containing the package name and I would substitute it using a variable like the following:
    package ${constantly.changing.megacorp.name}.myclass;
    This example my not be clear. Feel free to swing away as I cry tears of BLooD. Any info or suggestions would be greatly appreciated though. Thanks.

    Refactoring is definitely what this kind of thing would be called. What you suggested isn't supported in Java, so you'd have to use some third party preprocessor-like tool (I've never looked into this sort of thing, I don't know what's out there) to replace your placeholders. It would have to become part of your build process, and could possibly introduce new bugs to your code if it didn't work properly every time. That sounds a lot more dangerous and dependent than using Eclipse's (or whatever IDE you fancy) refactor function, which is dead simple, and only has to be done once each time the package names change, so you can refactor, test, and forget about it.

Maybe you are looking for