Closed Bug 988644 Opened 11 years ago Closed 11 years ago

reviewer (and dev) instance of APK Factory should set android:debuggable flag

Categories

(Marketplace Graveyard :: Integration, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2014-04-15

People

(Reporter: myk, Assigned: ozten)

References

Details

The reviewer (and dev) instance of the APK Factory is supposed to set the android:debuggable attribute in AndroidManifest.xml to "true", so the remote debugger server starts in app processes, and developers (and reviewers) can attach remote developer tools to apps. But that isn't happening. android:debuggable is described here: http://developer.android.com/guide/topics/manifest/application-element.html This resource suggests "ant debug" is the equivalent of "ant release" but sets the flag: http://stackoverflow.com/questions/4580595/what-would-happen-if-android-app-is-released-with-debuggable-on
If I switch to `ant debug` instead of `ant release`, I'm getting Error: SIGNER_REFUSED_REQUEST Proposed fix https://github.com/mozilla/apk-factory-service/pull/63 ant debug output http://pastebin.mozilla.org/4695450 this build step results in bin/FbImport-debug.apk bin/FbImport-debug-unaligned.apk I'm passing FbImport-debug.apk over to the signer.
I've ask for review in the pull request, adding needs info flag here also.
Flags: needinfo?(kumar.mcmillan)
Flags: needinfo?(jhugman)
(In reply to Austin King [:ozten] from comment #1) > If I switch to `ant debug` instead of `ant release`, I'm getting > > Error: SIGNER_REFUSED_REQUEST Could you grab the actual response/status from here? https://github.com/mozilla/apk-factory-service/blob/master/lib/apk_signer_client.js#L51-L52
Flags: needinfo?(kumar.mcmillan) → needinfo?(ozten.bugs)
Thanks for the review. Of course it's working now that I went to capture the error.
Flags: needinfo?(ozten.bugs)
Fixed in e54dd9bf7e53 Deployment to dev failed, filed bug#988912
Status: NEW → ASSIGNED
Depends on: 988912
Flags: needinfo?(jhugman)
Depends on: 989041
In my integration tests, I'm seeing SigningError: Failed to sign APK: ID 441cb9e98bae62ac93d29794dcc4c0ba8c76c206: jarsigner failed: jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 469 but got 468 bytes) http://sentry.shared.us-east-1.stage.mozaws.net/apk/apk-signer-stage/group/4594/
We should not call into the APK Signer for reviewer builds. We'll call `ant debug` and then stream the resulting .apk back to the client. Background: Sample Debug APK http://ozten.com/random/apk-factory/TestAppdeltron30333review-debug.apk looks good to myk, except for a client side issue to be investigated around remote debugging.
Assignee: nobody → ozten.bugs
Fixed in https://github.com/mozilla/apk-factory-service/pull/68 Queueing up for release today to stage in release-2014-04-02-01
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
This is staged, ready for testing.
myk and/or jhugman can you verify that the apk has the properties you want out of a debuggable apk? curl https://apk-controller-review.stage.mozaws.net/application.apk?manifestUrl=http://chat.messageme.com/manifest.webapp -o messageme.apk
Flags: needinfo?(myk)
Flags: needinfo?(jhugman)
(In reply to Austin King [:ozten] from comment #10) > myk and/or jhugman can you verify that the apk has the properties you want > out of a debuggable apk? I would love to! But currently I'm hitting bug 993164 when I try to download the APK, so I'll watch that bug and try again once it's resolved. In the meantime, I'll leave the needinfo request here to remind me to come back to this.
Although I'm still seeing bug 993164 right now, I did manage to download an APK from stage-review yesterday (on the second attempt), and I was able to confirm that the android:debuggable attribute is set to "true" in the APK's AndroidManifest.xml file, and the remote debugger server starts when the app is launched! So this has indeed been resolved.
Flags: needinfo?(myk)
Target Milestone: --- → 2014-04-15
Please add STR here or mark it with [qa-] if no QA is needed.
MessageMe shows the debuggable flag set correctly.
Flags: needinfo?(jhugman)
You need to log in before you can comment on or make changes to this bug.