News for hackers. Stuff that matters.
Re:Fossdroid.com: Free and open source Android applications by Dosenpfand on Sunday April 19, 2015 @12:29PM (#9403722)
I really like the popular "popular" sections, the one thing that's missing from f-droid. What could be improved:

1. HTTPS, especially for APK downloads

2. Information about the APKs: built/signed by whom

Re:Fossdroid.com: Free and open source Android applications by SnaKeZ on Sunday April 19, 2015 @12:32PM (#9403734)
Thanks for the suggestions :)
Re:Fossdroid.com: Free and open source Android applications by higherpurpose on Sunday April 19, 2015 @12:48PM (#9403806)
And if you're going to add signatures please don't make them MD5/SHA1. I don't understand why so many sites still offer those. Is it some default feature of some software stack where developers just "check" a button for signatures and it only supports MD5/SHA1? Otherwise I can't explain it.
Re:Fossdroid.com: Free and open source Android applications by JohnTHaller on Sunday April 19, 2015 @01:10PM (#9403880)
In Windows world, you basically have to use SHA1 digests for digital signatures (though you use SHA2 certs to do the signing) as Windows XP doesn't support SHA2 at all, Windows Vista SP1 or SP2 prior to a patch a view years ago won't run the EXE or show an error due to a buffer overrun, and Windows Vista's Internet Explorer full patched will show the download as "reported unsafe" due to an unfixed bug in IE.
Re:Fossdroid.com: Free and open source Android applications by CyberShadow on Sunday April 19, 2015 @04:21PM (#9404712)
What do APK signatures have to do with Windows?
Re:Fossdroid.com: Free and open source Android applications by JohnTHaller on Sunday April 19, 2015 @09:29PM (#9405673)
I was giving an example of a context when using something stronger than SHA1 doesn't work even though it is supported. To show that there are sometimes reasons other than laziness and on the off chance that there may be something similar with specific versions of Android or possibly some software that deals with APKs.
Re:Fossdroid.com: Free and open source Android applications by sarciszewski on Sunday April 19, 2015 @12:59PM (#9403839)
I recommend RSA (GnuPG) or Ed25519 signatures with two key pairs: A weekly/monthly signing key pair, and a long-term one that is only used to validate the short-term public key.

https://scott.arciszewski.me/blog/2015/01/package-signing-th...

Re:Fossdroid.com: Free and open source Android applications by eropple on Sunday April 19, 2015 @02:02PM (#9404078)
That's an excellent way to ensure nobody checks your signatures, though. Making it hard means they will be ignored.
Re:Fossdroid.com: Free and open source Android applications by drdaeman on Sunday April 19, 2015 @04:55PM (#9404847)
Key rollover and certificate trust chains don't work in Android world.
Re:Fossdroid.com: Free and open source Android applications by justonepost on Sunday April 19, 2015 @05:01PM (#9404861)
Google has made it so you can't enforce APK signatures via PKI on android os. Gee, I wonder why!
Re:Fossdroid.com: Free and open source Android applications by icebraining on Sunday April 19, 2015 @05:10PM (#9404895)
Sure you can. Android itself just doesn't do it for you, but the F-Droid installer could very well verify the APK before installing it.
Re:Fossdroid.com: Free and open source Android applications by eighthave on Monday April 20, 2015 @01:49PM (#9409679)
Verifying signing keys is one thing, but even better, f-droid.org can verify that the APK builds 100% from source, and that the APK f-droid.org builds matches the developer's official released APK: https://f-droid.org/wiki/page/Deterministic,_Reproducible_Bu...
Re:Fossdroid.com: Free and open source Android applications by justonepost on Sunday April 19, 2015 @06:14PM (#9405083)
No doubt. But it's pretty funny that Google refuses to add a few lines of code to do it via the OS installer.
Re:Fossdroid.com: Free and open source Android applications by icebraining on Sunday April 19, 2015 @07:14PM (#9405281)
What would the OS check the signature against, though? The certs that come with the OS are for validating sites, not apps, so passing a check wouldn't tell you much. It seems that Android would have to add a whole new cert store (and mechanism for adding certs), not just a couple of lines.
Re:Fossdroid.com: Free and open source Android applications by justonepost on Sunday April 19, 2015 @10:23PM (#9405818)
That's not true at all. CA and leaf Certs have extensions and policies and can be used for any particular purposes. All the cert verification has to do is check for the code signing extension / policy.
Re:Fossdroid.com: Free and open source Android applications by vetinari on Monday April 20, 2015 @03:05AM (#9406552)
You can use self-signed certificate to sign APKs. Once you publish the signed package, you have to use this same certificate for the package forever.

When updating, the system checks, whether the newer APK is signed by the same certificate and refuses update, if the certificate differs.

It simply does not matter, whether your cert is vetted by CA or not. So using PKI would not make sense there.

The rationale was not forcing the developers to purchase signing certificates in order to publish for the platform. It does not make difference anyway.

Re:Fossdroid.com: Free and open source Android applications by justonepost on Monday April 20, 2015 @07:28PM (#9411441)
The rationale was that Google doesn't want a secure code signing mode as it would undermine their thesis that turning off the Google Play store is insecure.

At least even MacOS has a App Store + Identified Developers. Though of course, iOS doesn't have that..

Re:Fossdroid.com: Free and open source Android applications by vetinari on Thursday April 23, 2015 @10:53AM (#9427108)
> it would undermine their thesis that turning off the Google Play store is insecure.

I don't quite understand. How do you turn off the Play store?

It is necessary to make a distinction between what you want to believe and the reality. The reality is, that requiring validated keys would put the keys to the "official Android" kingdom into CA's hands. In addition, because Android is an open-source project, any alternative distribution would disable that. It would cause real fragmentation of the platform, where apps would run on one distribution and not on another, the difference would be only the signature. Google (correctly) decided, that they do not have to fight this fight.

A side note: getting CA verified can be problem in some parts of the world. What if you are Chinese? Crimean? You can still use Android as it is; you can't use any platform, that requires to be "Identified" by CA.

Re:Fossdroid.com: Free and open source Android applications by pserwylo on Sunday April 19, 2015 @08:19PM (#9405465)
It is worth keeping in mind that the download stats which determine popularity [0, 1] should consumed with care. They represent HTTP requests which hit the server to download a particular apk file. Thus, things such as web crawlers can trigger downloads, which result in incrementing the download count.

Having said this, they definitely seem to be useful as a general rule of thumb about how apps are more popular, _relative to other apps_.

[0] - https://gitlab.com/fdroid/fdroiddata/blob/master/stats/total...

[1] - https://gitlab.com/fdroid/fdroiddata/blob/master/stats/total...

Re:Fossdroid.com: Free and open source Android applications by SnaKeZ on Friday May 01, 2015 @05:29AM (#9470307)
Now Fossdroid in on HTTPS