Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28005

Android: Unable to reinstall on apk using adb on Android 23

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: Release 9.0.3
    • Component/s: Android
    • Labels:
      None
    • Environment:

      MacOS Big Sur: 11.0 Beta
      Xcode: 12.0 Beta
      Java Version: 1.8.0_242
      Android NDK: 21.3.6528147
      Node.js: 12.18.1
      ""NPM":"5.0.0","CLI":"8.0.0""
      API23 Nexus 5X Emulator

      Description

      When reinstalling an APK on an android 23 emulator using adb the following error can be seen Failure [INSTALL_FAILED_ALREADY_EXISTS] but if you use an android 29 emulator, the issue can not be seen.

      Test Steps:

      1. Build a titanium application
      2. Find the generated .apk e.g. build/android/app/build/outputs/apk/debug/app-debug.apk
      3. Open an android 23 emulator
      4. Run adb install %Path_to_apk_goes_here% e.g. adb install /Users/samir/Desktop/Appc/Repos/Masterss/yeti/Modules/Activity_Indicator/Acceptance/App/temporaryApp/build/android/app/build/outputs/apk/debug/app-debug.apk
      5. Run the same command again

      Actual result
      Following error is shown:
      Failure [INSTALL_FAILED_ALREADY_EXISTS]

      Expected result
      For app to reinstall like on Android29

      Potential related issue in the appium Yeti suite the following error is also sometimes seen when installing the app using adb on Android23 (Android29 works fine).

       [ERROR] Error: [init({"platformName":"Android","platformVersion":"6.0","deviceName":"android-23-x86","app":"/Users/samir/Desktop/Appc/
      Repos/Masterss/yeti/Modules/Activity_Indicator/Acceptance/App/temporaryApp/build/android/app/build/outputs/apk/debug/app-debug.apk","avdArgs":"-wipe-data","avd":"android-2
      3-x86","avdReadyTimeout":180000,"avdLaunchTimeout":120000,"autoGrantPermissions":true,"appPackage":"com.appcelerator.Acceptance","appActivity":".AcceptanceActivity","uiaut
      omator2ServerLaunchTimeout":60000,"uiautomator2ServerInstallTimeout":60000,"automationName":"UiAutomator2","deviceReadyTimeout":60,"newCommandTimeout":600})] The environme
      nt you requested was unavailable.
      An unknown server-side error occurred while processing the command. Original error: pkg: /data/local/tmp/appium_cache/40f9c7c8ed2607f2e8d6338b9ab41b299111c72c.apk
      Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              smohammed Samir Mohammed
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration