* Migrate existing users to default version code if they have -1 set
* Also add issue IDs infront of migrations if available
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
We have multiple checks implemented at this point in splashFragment to ensure
proper validation and navigation. If a user logs out and hits back button, he still
gets to browse Aurora Store which is an unintended behaviour.
Instead of handling same logic twice everywhere, make AccountFragment minimal and only
handle logging out here.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Instead of showing version below login buttons (that for some reason has never been shown),
link about fragment in the menu button which provides more information.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This ensures that users aren't shown Aurora Services as a valid installer
in case it is disabled by user or system.
* Also hardcode the required version to be 9 or above as it is the case right now.
Test: adb shell pm disable com.aurora.services
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Android 12 and above devices have system based accent color system known as monet
that is highly customizable compared to our offerings.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
We are not an expedited nor in foreground, no need to have foregroundInfo method
with an ongoing notification.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This also switchers to default gson instance without any modifier
changes fixing issues happening with missing params.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Other than Session and Native, all installers require third-party apps. No need to pollute
installers list with them if they are unavailable as users often gets confused otherwise.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
* This makes onboarding minimal and only required screens are shown
* SessionInstaller is the recommended choice, user who needs a different can configure in settings
* Instead of showing minimal list, show installer fragment that contains more information
* Also show all installers like before
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
SessionInstaller can commit silent installs if the app is device owner. Implemented on
request of users.
This still needs user to set the app as device owner manually using ADB (only possible
if the device has no accounts setup yet).
Co-authored-by: Syuugo <pub@s1204.me>
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
* Don't filter InputStream updates as we are already guarding UI updates against total progress
* Update downloadedBytes based on bytesCopied to reflect real progress
* Use collect instead of collectLatest to ensure all updates from flow are handled
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>