News for hackers. Stuff that matters.
Re:Google Play Dumps APKs for the More Google-Controlled “An... by izacus on Friday July 02, 2021 @09:07AM (#27711002)
The title is misleading on a technicality though - Android will continue to deploy applications via APKs. Developers will have to upload apps as AppBundles, which the Play Store service will repackage, resign and deliver to the devices as a set of APKs.

Which means: the devices will continue to be able to install APKs. The major massive difference is that the apps will now be signed by Google on servers and not by developers on their local machines.

I'm wondering why Google doesn't allow developers to build the optimizes APKs still - the Android build system does have that capability. Noone really used it, but it's there - there should be a way to opt out of signing key sharing.

Re:Google Play Dumps APKs for the More Google-Controlled “An... by diegoperini on Friday July 02, 2021 @11:44AM (#27712983)
One important distinction is that now Google is able to inject code to apps without notice since they are the ones who sign the final APKs.
Re:Google Play Dumps APKs for the More Google-Controlled “An... by Someone1234 on Friday July 02, 2021 @12:52PM (#27713941)
Google has always been able to do that. Just alter and re-sign the APK with their own key(s), since Google's keys are trusted by Google Play Services (third party app stores also trust Google's signing keys for compatibility reasons).

The way the Play Store is currently designed, end users don't even have the ability to view the key-path before installing a package. So detecting if it is Google Vs. app developer's signing key is extremely unlikely without copying that APK off-device and inspecting it.

All users know is: Is this using a signing key trusted by Google? Yay/Nay.

Re:Google Play Dumps APKs for the More Google-Controlled “An... by psykus on Friday July 02, 2021 @01:41PM (#27714467)
That's true for new installs at least. But Android won't let you install an update to an existing app with a different signing key, it'll error out with something generic.
Re:Google Play Dumps APKs for the More Google-Controlled “An... by jeeeb on Friday July 02, 2021 @06:51PM (#27717854)
As an explanation as to why Google has gone down this design path, I think this makes sense. Basically it’s easier to maintain compatibility with existing devices this way.

From a security perspective I don’t think it makes the slightest difference. Google controls the logic that prevents updating apps with a different signing key.

There are so many conceivable ways that Google could inject arbitrary code into each process (e.g. silently cause a different “shadow” app bundle to be launched, play with LD_LIBRARY_PATH, play with the Dalvik VM, modify Java/system libraries, etc) or read processes’ memory, that it’s safe to assume that if Google wants (or is forced to) to modify your app’s behaviour or exfiltrate sensitive data from your device then it’s absolutely within their power to do that.

Re:Google Play Dumps APKs for the More Google-Controlled “An... by UncleMeat on Friday July 02, 2021 @04:49PM (#27716690)
A threat model that only concerns updates and not new installs is incoherent.
Re:Google Play Dumps APKs for the More Google-Controlled “An... by Avamander on Friday July 02, 2021 @05:36PM (#27717234)
Less incoherent than a total lack of all chances to stop tampering though.
Re:Google Play Dumps APKs for the More Google-Controlled “An... by UncleMeat on Friday July 02, 2021 @06:57PM (#27717890)
People are concerned about Google editing code, which would be detectable through the signed code section or just basic decompilation and would be a nightmare for PR. But people are apparently not concerned with

1. Nothing has ever prevented tampering with the signature before first install.

2. Google owns and writes the OS.

3. Libraries like WebView are both security critical and updated via ordinary app updates, and are provided by Google.

4. The dex bytecode isn't actually run on modern devices. Instead it is compiled into an executable by code owned by... Google.

5. The large majority of developers are using compilers and other tooling provided by Google.

This is why the concern over this change is ludicrous. When you installed Signal or whatever for the first time did you check the signature? Did it bother you that it was technically possible for Play to substitute code? No. Because you are using an Android phone and trusting the OS developer is a requirement for everything.

And there isn't a "total lack of chances to stop tampering", since the code section can still be signed with a different key.

So why is everybody suddenly claiming a conspiracy here?

Re:Google Play Dumps APKs for the More Google-Controlled “An... by Dylan16807 on Saturday July 03, 2021 @01:00PM (#27723022)
The main threat model is that google is influenced into editing a specific app or few for certain users or locations, not that the company is going to turn the entire OS into a backdoor. So most of your bullet points aren't very relevant. This threat model isn't a "conspiracy" either.
Re:Google Play Dumps APKs for the More Google-Controlled “An... by ehsankia on Friday July 02, 2021 @03:03PM (#27715449)
Is that true if you use code transparency signing key?

https://developer.android.com/guide/app-bundle/code-transpar...

Re:Google Play Dumps APKs for the More Google-Controlled “An... by Avamander on Friday July 02, 2021 @05:47PM (#27717346)
Yes.

> Important: The Android OS does not verify code transparency files at install time, and continues to rely on the APK signing schemes for verification of any installed APKs.

It's pretty much useless because no-fscking-body is going to build a service to gather signatures from a bunch of devices in hopes to catch Google in the act.

Re:Google Play Dumps APKs for the More Google-Controlled “An... by techrat on Friday July 02, 2021 @10:09AM (#27711726)
Yep. The end format is still APK. What is being dumped is the unnecessary libraries/APIs that are not relevant to the device that is receiving the APK.

This doesn't affect sideloading in the slightest.

Re:Google Play Dumps APKs for the More Google-Controlled “An... by shaftway on Friday July 02, 2021 @12:23PM (#27713545)
> I'm wondering why Google doesn't allow developers to build the optimizes APKs still

> Noone really used it

I think you answered your own question

Re:Google Play Dumps APKs for the More Google-Controlled “An... by tut-urut-utut on Friday July 02, 2021 @12:36PM (#27713738)
How forbidding something that is not used makes sense?

They could still let the people who want to produce their own optimized APKs and sign them with their key just do it as before, while defaulting to whatever they plan to do now.

Re:Google Play Dumps APKs for the More Google-Controlled “An... by cyanydeez on Friday July 02, 2021 @10:37PM (#27718934)
not just signed, but now googles app not your app. this breaks trust and if anyone was trying to market a play store alternative, this and amazons store gives great marketing gristle.