Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Excessive permissions!

Started by user anonymous
Building remotely on Tiggzi-git

Deleting project workspace... [copy-to-slave] Copying '38526/71543/android/Web_Recipe_Manager_new/**/*', excluding nothing, from 'file:/srv/tiggzi/temp/build_temp/' on the master to 'file:/srv/tiggzi/lib/jenkins/workspace/71543-android/' on 'Tiggzi-git'.
[71543-android] $ /bin/sh -xe /tmp/hudson5227568465056560545.sh
[71543-android] $ /bin/sh -xe /tmp/hudson6027159776449709314.sh

  • TARGET_NODE=a href="mailto:tiggzi@107.22.249.220" rel="nofollow"tiggzi@107.22.249.220/a

  • TARGET_DIR=/srv/tiggzi/temp/files/BINARY/71543-android

  • SRC_DIR=38526/71543/android/Web_Recipe_Manager_new

  • WSP=/srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new

  • SSH_KEY=/srv/tiggzi/.ssh/jenkins.key

  • cd 38526/71543/android/Web_Recipe_Manager_new

  • ssh -i /srv/tiggzi/.ssh/jenkins.key a href="mailto:tiggzi@107.22.249.220" rel="nofollow"tiggzi@107.22.249.220/a 'mkdir -p /srv/tiggzi/temp/files/BINARY/71543-android; rm -f /srv/tiggzi/temp/files/BINARY/71543-android/*.apk'

  • mvn clean package -Psign
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Web_Recipe_Manager 1.1
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Web_Recipe_Manager_new ---
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources) @ Web_Recipe_Manager_new ---
    [DEBUG] Expanding: /srv/tiggzi/.m2/repository/phonegap/plugins/BarcodeScanner/1.0/BarcodeScanner-1.0.apklib into /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0
    [DEBUG] expand complete
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -m, -J, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/generated-sources/r, -M, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/res, -S, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -m, -J, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/generated-sources/r, --custom-package, com.google.zxing.client.android, -M, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/res, -S, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/assets, -A, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ Web_Recipe_Manager_new ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/src/main/resources
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/generated-sources/extracted-dependencies/src/main/resources
    [INFO] Copying 0 resource
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ Web_Recipe_Manager_new ---
    [INFO] Compiling 251 source files to /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/classes
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:proguard (default-proguard) @ Web_Recipe_Manager_new ---
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ Web_Recipe_Manager_new ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/src/test/resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ Web_Recipe_Manager_new ---
    [INFO] No sources to compile
    [INFO]
    [INFO] --- maven-surefire-plugin:2.12:test (default-test) @ Web_Recipe_Manager_new ---
    [INFO] No tests to run.
    [INFO] Surefire report directory: /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/surefire-reports

    -------------------------------------------------------
    T E S T S
    -------------------------------------------------------

    Results :

    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:dex (default-dex) @ Web_Recipe_Manager_new ---
    [INFO] /opt/jdk1.6.0_33/jre/bin/java [-jar, /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/lib/dx.jar, --dex, --output=/srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/classes.dex, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/classes, /srv/tiggzi/.m2/repository/com/google/android/gcm/gcm/r3/gcm-r3.jar, /srv/tiggzi/.m2/repository/phonegap/plugins/BarcodeScanner/1.0/BarcodeScanner-1.0.apklib, /srv/tiggzi/.m2/repository/org/apache/cordova/cordova/2.2.0/cordova-2.2.0.jar]
    [INFO]
    [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ Web_Recipe_Manager_new ---
    [INFO] Building jar: /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/Web_Recipe_Manager_new-1.1.jar
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:apk (default-apk) @ Web_Recipe_Manager_new ---
    [INFO] Copying dependency assets files to combined assets directory.
    [INFO] Copying local assets files to combined assets directory.
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -f, -M, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/res, -S, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/generated-sources/combined-assets/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar, -F, /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/Web_Recipe_Manager_new-1.1.ap_]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO]
    [INFO] --- maven-jarsigner-plugin:1.2:sign (signing) @ Web_Recipe_Manager_new ---
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 35.148s
    [INFO] Finished at: Fri Mar 01 02:38:29 UTC 2013
    [INFO] Final Memory: 12M/51M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jarsigner-plugin:1.2:sign (signing) on project Web_Recipe_Manager_new: Failed executing '/bin/sh -c cd /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new && /opt/jdk1.6.0_33/jre/../bin/jarsigner -keystore assets/www/keystore.jks -storepass '**' -keypass '**' /srv/tiggzi/lib/jenkins/workspace/71543-android/38526/71543/android/Web_Recipe_Manager_new/target/Web_Recipe_Manager_new-1.1.apk gotiggr.project' - exitcode 1 - [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/di...
    Build step 'Execute shell' marked build as failure

    Deleting project workspace... done

    Finished: FAILURE

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Excessive permissions!

Hello! Some of default permissions are nesessary to build and install your app on device (it depends on OS version and device). So if you want to change default permissions you would need to set them back to default, edit one by one and see if the build fails.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Excessive permissions!

I am only doing this as I submitted my app to amazon, and they I have permissions set which the app doesn't need so they want them removed. God knows how I figure out which ones are required.

Funny thing is that I can build a debug apk fine. What's the difference?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Excessive permissions!

Debug .apk can be installed on your phone, but not published to Google Play.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Excessive permissions!

So why can I build a debug apk without errors, but not a release one?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Excessive permissions!

That's something we'll need to test. I'm not sure why it's happening.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Excessive permissions!

Hello Barbara! Could you clarify what permissions amazon wants to be removed?

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Excessive permissions!

Excess Permissions: (Receive SMS, Record Audio, Camera, Read Contacts, Write
Contacts, Get Accounts,
com.android.browser.permission.READ_HISTORY_BOOKMARKS, Read call log, Write
call log)

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Excessive permissions!

Hi Barbara,

There were some problems with certificates. We've fixed.
Release build should work now.

Return to “Issues”