Closed
Bug 1207194
(targetSdkVersion23)
Opened 9 years ago
Closed 9 years ago
[meta] Set targetSdkVersion = 23
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect)
Firefox Build System
Android Studio and Gradle Integration
All
Android
Tracking
(firefox46 fixed)
RESOLVED
FIXED
mozilla46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: sebastian, Assigned: sebastian)
References
Details
(Keywords: meta)
Attachments
(1 file, 2 obsolete files)
In bug 1183061 we are tracking the work needed to build with Android SDK 23. This does not include setting targetSdkVersion to 23 (to get the new API features) because this will require us to handle all kinds of behavior changes (new permission system, auto backup, ..). This is the meta bug to track exactly this work.
Assignee | ||
Updated•9 years ago
|
Alias: targetSdkVersion23
Assignee | ||
Updated•9 years ago
|
Depends on: runtime-permissions
Assignee | ||
Comment 1•9 years ago
|
||
I just realized that I made a mistake in this commit:
https://hg.mozilla.org/mozilla-central/rev/a51020a4a9c2
The mach based build (and therefore Nightly) has already targetSdkVersion set to 23 now.
The "good" news is that when upgrading from targetSdkVersion 22 to 23 the app keeps all previous permissions. So Android M/6.0 users upgrading to the latest Nightly version will still have all permissions. The bad news is a fresh installation of Nightly on Android 6.0 will not have any permissions.
To make things worse an app with targetSdkVersion=23 can't be downgraded to a version with targetSdkVersion=22:
> Failed to finalize session : -26: Package org.mozilla.fennec_sebastian new target SDK 22 doesn't
> support runtime permissions but the old target SDK 23 does.
Accessing an API without the appropriate permission will throw a SecurityException. This is different to manually revoking a permission previously (with targetSdkVersion=22) where no exception was thrown.
Should we go ahead and support runtime permissions in FxA 44? We could start by asking for all needed permissions at app start (To fix Nightly) and then move the requests to the place in code where they are actually needed.
Flags: needinfo?(mark.finkle)
Flags: needinfo?(margaret.leibovic)
Assignee | ||
Comment 2•9 years ago
|
||
The only other option I see is downgrading targetSdkVersion and basically stranding current Android 6.0 Nightly users (in the hope there are not many) until we go back to 23 (or they re-install).
Comment 3•9 years ago
|
||
My personal vote would be to go back and strand the nightly users...that's one of the risks you run when you install nightly software.
I would also guess that there aren't *too* many of them - and the sooner it is rolled back, the fewer there will be.
That's the whole purpose of having the nightly build anyway, isn't it? To find problems like this before they get too far along?
BTW - those are just my personal opinions...so take it with a grain of salt.
Comment 4•9 years ago
|
||
(In reply to Sebastian Kaspari (:sebastian) from comment #1)
> Should we go ahead and support runtime permissions in FxA 44? We could start
> by asking for all needed permissions at app start (To fix Nightly) and then
> move the requests to the place in code where they are actually needed.
I don't think we feel we are ready to move to runtime permission support yet, right? I think we should flip back to SDK 22 and strand some nightly users. We can post to Twitter and the mailing list about the issue.
Flags: needinfo?(mark.finkle)
Assignee | ||
Comment 5•9 years ago
|
||
Argh. I thought @ANDROID_TARGET_SDK@ in AndroidManifest.xml.in is fed by ANDROID_TARGET_SDK in android.py. But it seems like this is always the same as the build SDK version and can't be configured independently.
@nalexander: Is this correct?
Flags: needinfo?(nalexander)
Comment 6•9 years ago
|
||
(In reply to Sebastian Kaspari (:sebastian) from comment #5)
> Argh. I thought @ANDROID_TARGET_SDK@ in AndroidManifest.xml.in is fed by
> ANDROID_TARGET_SDK in android.py. But it seems like this is always the same
> as the build SDK version and can't be configured independently.
>
> @nalexander: Is this correct?
Unfortunately yes: mozboot is independent from the rest of the build system. Bug 1207680 tracks unifying this so that issues like this don't happen.
ANDROID_TARGET_SDK comes from https://dxr.mozilla.org/mozilla-central/source/build/autoconf/android.m4#391, which comes from https://dxr.mozilla.org/mozilla-central/source/configure.in#4070.
Flags: needinfo?(nalexander)
Assignee | ||
Comment 7•9 years ago
|
||
This patch temporarily hardcodes targetSdkVersion to 22 in AndroidManifest.xml.
Flags: needinfo?(margaret.leibovic)
Attachment #8671443 -
Flags: review?(nalexander)
Assignee | ||
Updated•9 years ago
|
Keywords: leave-open
Comment 8•9 years ago
|
||
Comment on attachment 8671443 [details] [diff] [review]
targetSdkVersion22.patch
Review of attachment 8671443 [details] [diff] [review]:
-----------------------------------------------------------------
Set Robocop's SDK version too.
Attachment #8671443 -
Flags: review?(nalexander) → review+
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8671443 -
Attachment is obsolete: true
Attachment #8671449 -
Flags: review?(nalexander)
Updated•9 years ago
|
Attachment #8671449 -
Flags: review?(nalexander) → review+
Comment 11•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8671449 -
Attachment is obsolete: true
Assignee | ||
Comment 12•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/28883/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/28883/
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → s.kaspari
Assignee | ||
Comment 13•9 years ago
|
||
Comment on attachment 8703540 [details]
MozReview Request: Bug 1207194 - Set targetSdkVersion to 23. r=nalexander
I just bumped the hardcoded targetSdkVersion in AndroidManifest.xml.in instead of using the MOZ_* constant again (Just to avoid problem when the version numbers differentiate again)
Attachment #8703540 -
Flags: review?(nalexander)
Comment 14•9 years ago
|
||
Comment on attachment 8703540 [details]
MozReview Request: Bug 1207194 - Set targetSdkVersion to 23. r=nalexander
https://reviewboard.mozilla.org/r/28883/#review26311
There's no technical issue with this patch, only landing/ordering issues. I trust you to get those right :)
Attachment #8703540 -
Flags: review?(nalexander) → review+
Assignee | ||
Comment 15•9 years ago
|
||
Comment on attachment 8703540 [details]
MozReview Request: Bug 1207194 - Set targetSdkVersion to 23. r=nalexander
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/28883/diff/1-2/
Assignee | ||
Comment 16•9 years ago
|
||
Comment on attachment 8703540 [details]
MozReview Request: Bug 1207194 - Set targetSdkVersion to 23. r=nalexander
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/28883/diff/2-3/
Attachment #8703540 -
Attachment description: MozReview Request: Bug 1207194 - Set targetSdkVersion to 23. r? → MozReview Request: Bug 1207194 - Set targetSdkVersion to 23. r=nalexander
Assignee | ||
Comment 17•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/581a08d46be49fb0ee708256e496ab6de8e8770e
Bug 1207194 - Set targetSdkVersion to 23. r=nalexander
Assignee | ||
Updated•9 years ago
|
Keywords: leave-open
Comment 18•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
Updated•5 years ago
|
Product: Firefox for Android → Firefox Build System
Target Milestone: Firefox 46 → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•