News for hackers. Stuff that matters.
Re:Announcing Ubuntu Core, with snappy transactional updates by fidotron on Tuesday December 09, 2014 @11:58AM (#8723867)
This looks great.

It's often overlooked, but Android devices are really low system administration high availability Linux systems. That they work as well as they do is kind of crazy, and a lot of it is down to the application packaging and isolation mechanism. This Canonical stuff is going to generate a lot of noise, but it is the way forward.

Ultimately between this, containerization and virtualization, we're witnessing the death of the whole dll concept long after dll-hell became a thing.

Re:Announcing Ubuntu Core, with snappy transactional updates by dingaling on Tuesday December 09, 2014 @12:28PM (#8724111)
> Android devices are really low system administration high availability Linux systems

Low maintenance partially because they are functionally very limited ( much of what the kernel and userspace can do is locked-out) and partially because the mission-critical stuff lives in seldom-updated firmware.

High availability... Given how often 'reboot your phone' or ' clear the app data' is given as advice?

I just don't see many parallels with server environments.

Re:Announcing Ubuntu Core, with snappy transactional updates by lrem on Tuesday December 09, 2014 @06:29PM (#8726569)
I have never cleared app data and seldom reboot, neither in Nexus nor Cyanogen, despite beta-testing a lot of stuff. I just asked my wife, she never did these things on Motorola's and Sony's "roms". Are you sure that these events are that popular?
Re:Announcing Ubuntu Core, with snappy transactional updates by dmix on Tuesday December 09, 2014 @10:23PM (#8727515)
Clearing user or app data is not required when doing OTA updates on Android.

The partitions that get updating are completely separate from user data. This myth keeps spreading for some reason though...

The only time user data gets wiped is when unlocking the bootloader which is a very valid security feature in order to prevent bootkits and data theft. It gives big clear warnings to backup your data before doing so.

Re:Announcing Ubuntu Core, with snappy transactional updates by drdaeman on Wednesday December 10, 2014 @11:45AM (#8730060)
This is a "works for me"-type response.

Mine Samsung S4 mini reboots by itself once in a few days. Hadn't bothered to catch the reasons. And it surely knows how to hang itself for half a minute when doing large app updates or otherwise IO-heavy operations.

Re:Announcing Ubuntu Core, with snappy transactional updates by Florin_Andrei on Tuesday December 09, 2014 @03:15PM (#8725388)
Anything can be low-maintenance as long as you can keep users' fingers far, far away from the system's guts.
Re:Announcing Ubuntu Core, with snappy transactional updates by collyw on Tuesday December 09, 2014 @04:11PM (#8725777)
My desktop (Mint) stays up a lot longer than my phone usually, and I poke about in the guts when its needed.
Re:Announcing Ubuntu Core, with snappy transactional updates by Florin_Andrei on Tuesday December 09, 2014 @06:17PM (#8726521)
Yeah, but probably you're not a... um... "user".
Re:Announcing Ubuntu Core, with snappy transactional updates by collyw on Friday December 12, 2014 @07:03AM (#8739603)
A developer is not a user?
Re:Announcing Ubuntu Core, with snappy transactional updates by hobs on Wednesday December 10, 2014 @07:58AM (#8728892)
While the devil is certainly in the details, I think an android device would be more akin to a specific docker container running some sort of app.

A limited functionality device that services a specific purpose, if we were to take it to the world of the web, would be a webservice.

If you were having a problem with one of your puppet&co managed web servers on some cloud host, would you: a. perform root cause analysis. b. redeploy the entire machine because fuck it, you have your recipes or whatever and spinning up a new instance is a super cheap operation.

That's what I read into when I think about the grandparent.

Re:Announcing Ubuntu Core, with snappy transactional updates by shmerl on Tuesday December 09, 2014 @02:55PM (#8725250)
Android installations are also dependencies mess, i.e. you have no way to even specify them and each application has to bundle them all (unless you resort to some hackish workarounds). Such approach a stick with two ends with its won pluses and minuses.
Re:Announcing Ubuntu Core, with snappy transactional updates by chetanahuja on Tuesday December 09, 2014 @08:06PM (#8727022)
"also dependencies mess..."

"you have no way to even specify them and each application has to bundle them all..."

Yeah, I think you're confusing a dependency free heaven for a dependency mess.

Re:Announcing Ubuntu Core, with snappy transactional updates by rst on Tuesday December 09, 2014 @12:23PM (#8724077)
Android apps update frequently, but core system components (where you'd expect dependency problems and tricky compatibility issues to crop up) update hardly at all, so it's not clear that it's a model to follow.
Re:Announcing Ubuntu Core, with snappy transactional updates by izacus on Tuesday December 09, 2014 @01:21PM (#8724559)
What does vendor not deciding to update a device have to do with an actual software mechanism of applying patches?
Re:Announcing Ubuntu Core, with snappy transactional updates by Alupis on Tuesday December 09, 2014 @01:50PM (#8724773)
Even "vendors" that do update frequently like Cyanogenmod, it's usually a flash over the existing rom, not a delta or single package update. That would be tough to do with a server environment unless every server had exactly the same base (a la BSD's)
Re:Announcing Ubuntu Core, with snappy transactional updates by sp332 on Tuesday December 09, 2014 @01:18PM (#8724540)
Android has a completely different userspace from desktop or server Linux distros. They only share a kernel, which means package management techniques aren't going to transfer directly.
Re:Announcing Ubuntu Core, with snappy transactional updates by andyidsinga on Tuesday December 09, 2014 @01:30PM (#8724621)
hmmm.. I'm not sure I would call android devices high availability - they're pretty good, but I suspect the 9s of availability is much less than the average system admin's notion of high availability.

/beingargumentative :)

Re:Announcing Ubuntu Core, with snappy transactional updates by nodata on Tuesday December 09, 2014 @04:57PM (#8726102)
Erm aren't android apps basically self-contained and statically compiled?
Re:Announcing Ubuntu Core, with snappy transactional updates by _pmf_ on Tuesday December 09, 2014 @02:10PM (#8724909)
> It's often overlooked, but Android devices are really low system administration high availability Linux systems.

By all conceivable notions, no.

Re:Announcing Ubuntu Core, with snappy transactional updates by rbanffy on Tuesday December 09, 2014 @03:13PM (#8725372)
Why do you say so?

My devices restart for system updates and that's pretty much it.

Re:Announcing Ubuntu Core, with snappy transactional updates by collyw on Tuesday December 09, 2014 @04:14PM (#8725802)
My Andorid, (not an especially powerful one) feels like old versions of Windows. Leave it one for a few days and it gets sluggish, and needs a reboot. And now its almost 2 years old, all the new updates (Google maps for example) are getting really slow most of the time - unless I have just rebooted. Don't get that on my Linux desktops.
Re:Announcing Ubuntu Core, with snappy transactional updates by rbanffy on Tuesday December 09, 2014 @05:22PM (#8726247)
Slow with every new update only means the software is becoming more demanding. I have an old IBM PCServer 330 that's incredibly reliable - if it were not for me rebooting it every few weeks to make sure it brushes its teeth regularly, its uptime would be in the multi-year range. With two Pentium III processors, it's anything but fast, but it's as trustworthy as servers can be.

I'll eventually have to replace the hard disks - I have seen SCSI to CF and SCSI to SDCard adapters that may do the trick.

Re:Announcing Ubuntu Core, with snappy transactional updates by sergiosgc on Tuesday December 09, 2014 @07:15PM (#8726762)
Linux systems restart for kernel updates, and even that can be avoided with ksplice or kpatch. In terms of high availability, the Android model is from the nineties, even if it is perfect for the problem domain it is applied to.
Re:Announcing Ubuntu Core, with snappy transactional updates by xorcist on Tuesday December 09, 2014 @01:17PM (#8724530)
Android updating doesn't work at all, for any reasonable definition of to work that is applicable in the server space.

Pretty much every device out there has multiple known security holes and they're not getting updated.

Re:Announcing Ubuntu Core, with snappy transactional updates by izacus on Tuesday December 09, 2014 @01:20PM (#8724552)
I'm rather sure fidotron is talking about the technical aspect of the updates. Which has practically nothing to do with the political aspect you're talking about.

What was your point exactly in that respect?

Re:Announcing Ubuntu Core, with snappy transactional updates by xorcist on Tuesday December 09, 2014 @01:34PM (#8724651)
It's not about politics. You're putting words in my mouth. Android is pretty much devoid of an update mechanism. You're left to to swapping out the entire OS image to update it. That won't work in the server space when you need a new ssl lib deployed now.

I think this snappy scheme of Ubuntu might actually be what Android should have had from the start. It seems like it work in the embedded space when you don't want a traditional package manager.

Re:Announcing Ubuntu Core, with snappy transactional updates by dmix on Tuesday December 09, 2014 @02:58PM (#8725265)
What are you talking about? OTA updates have been in every Android version for years now. And it is not just a full image update system it also fully supports partial delta updates.

Just because a few phone vendors stop pushing out updates after a period of time after launching the phone doesn't mean that Android doesn't support it. This might have been a valid criticism about years ago. But one that should be aimed at vendors and not Android.

Regarding vendor support, Google launched an initiative called "Compatibility Program" which every vendor must now agree to. Part of the agreement means they are required to support OTA updates if they plan to use the Android OS.

https://source.android.com/compatibility/overview.html

So I don't know what you're basing this off of?

Re:Announcing Ubuntu Core, with snappy transactional updates by ChuckMcM on Tuesday December 09, 2014 @03:47PM (#8725601)
If I understand what xorcist is saying, is that Android does not have updates for components of the core system. So replacing a specific library has to wait until the next complete push of Android. Phone makers package up system updates as full android releases rather than component releases. You can update apps, but now your App is at version X and the android it is running on is at version Y.Q.R (my phone is sitting on 4.4.2 atm) so App vendors are at the mercy of keeping as many versions out there as there are Android versions (which vary with respect to the needed component).

All of which could be fixed with something like Snappy where the OS component that is improved could be pulled OTA by the customer.

The meta discussion is that customer cannot do that because a handset maker has no way of reasoning about how changes to a component of the system will affect all handsets out there, and so new versions of android sit in all-or-nothing testing limbo at the handset QA lab.

Re:Announcing Ubuntu Core, with snappy transactional updates by dmix on Tuesday December 09, 2014 @09:49PM (#8727422)
> So replacing a specific library has to wait until the next complete push of Android.

I know for a fact (because I've created my own ROM) that Android's OTA system is fully capable of updating single components. And the update the user downloads is not the entire ~200mb Android ROM, it could be a small 1mb zip file that only updates a specific library. For example a security release updating only OpenSSL.

Why Google doesn't do this and prefers using a point release system - instead of rolling releases - is a complicated question. One that I'd be curious to hear the reasoning for.

One UX consideration is that the users need to reboot their phone since the OTA update writes to the /boot partition and then triggers a reboot into recovery mode. Then recovery mode will automatically install the new update (preserving all user data) then boots back into the OS. This would be annoying to users if they had to do it often.

But the same behavior exists for any OS updates on OSX, linux, etc.

Re:Announcing Ubuntu Core, with snappy transactional updates by xorcist on Wednesday December 10, 2014 @02:11AM (#8728038)
I did not know what, I tought you had to build a new release (from which you could distribute deltas), for the simple reason that no Android device does that.

It's not a viable method for updating generic servers however. An update system needs to do a lot more than just swap out a file. You need to know about dependencies, restart services etc. It's also important for real world usage to be able to skip one update for one reason or another.

It could be interesting for single purpose Docker containers which can be restarted at will.

Re:Announcing Ubuntu Core, with snappy transactional updates by cryptoz on Tuesday December 09, 2014 @01:21PM (#8724569)
If you're going to count every derivative of AOSP Android, to make a fair comparison you'll also have to count every for single distro that is based on Ubuntu - how frequently do they all get kernel updates, etc?

Yes, the Android ecosystem has an update problem. But that problem is largely due to external companies and not a technical limitation of Android.

Re:Announcing Ubuntu Core, with snappy transactional updates by Alupis on Tuesday December 09, 2014 @01:48PM (#8724758)
I think he's talking about the literal update mechanism on your phone. It's usually a literal flash over the existing rom, not a delta or single packages like most linux distros enjoy.
Re:Announcing Ubuntu Core, with snappy transactional updates by dmix on Tuesday December 09, 2014 @03:05PM (#8725313)
Which is false because Android OTA fully supports delta updates.
Re:Announcing Ubuntu Core, with snappy transactional updates by Alupis on Tuesday December 09, 2014 @03:30PM (#8725504)
That's not always true. Most ROMS update by first downloading, then flashing the entire rom with the new version. And most OTA updates kill your root if you have it because they reset the entire system partition back to factory state, not just the updated part.
Re:Announcing Ubuntu Core, with snappy transactional updates by dmix on Tuesday December 09, 2014 @03:38PM (#8725552)
CyanogenMod OTA updates preserve root... because the OTA image contains root access and SuperSU.

So what OTA updates do you mean? If you mean stock Android updates removing root access...then that is exactly the expected behavior. Root is considered a security hazard and not supported by ASOP. As it should be.

I find it hilarious when people who use ROMs complain about how hard it is to modify the OS then complain about lack of security updates in the same thread. Bootloader locks and read-only filesystems are there for a very good reason.

Re:Announcing Ubuntu Core, with snappy transactional updates by Alupis on Tuesday December 09, 2014 @09:22PM (#8727333)
Who's complaining? Cyanogenmod absolutely does a full rom flash, you can look at the download... it's the full shebang. Other stock roms might just unzip overtop the system partition, which would "update" anything that it overwrites. They usually kill root because they reset the system partition back to stock as for a normal user is should be unmodified (yes for security reasons, but also because that's how they want it to be).

perhaps we're talking past each other... because you seemed to miss my point... phones don't update single packages as updates are available like a typical linux distro would.

Re:Announcing Ubuntu Core, with snappy transactional updates by dmix on Tuesday December 09, 2014 @10:09PM (#8727477)
Lots of ROM people complained when Android locked down bootloaders and when SELinux went into enforcing mode, making /system read-only, etc, etc. Google is attempting to help protect users from bootkits/rootkits which has a side-effect of making modding harder.

See my other comment, Android's OTA system is fully capable of updating single components. The downloads can be patch releases and not full images. Google actually recommends that vendors do this, over pushing full ROMs.

Vendors often don't do it because they are lazy or for logistical reasons. But it doesn't mean they can't.

Re:Announcing Ubuntu Core, with snappy transactional updates by Alupis on Wednesday December 10, 2014 @01:35PM (#8730806)
> when Android locked down bootloaders

That's a device/vendor choice, not Android as a whole.

> and when SELinux went into enforcing mode

On my stock rom it was in Permissive mode, as it is now on Cyanogenmod.

> Google is attempting to help protect users from bootkits/rootkits which has a side-effect of making modding harder

This is generally not Google's doing, it's the device manufacturers/carriers. And it's not always in the name of end-user security... which far too often abandon any updates on 1 year old devices.

> See my other comment, Android's OTA system is fully capable of updating single components

But it's not really. It's just downloading a zip file and extracting it. There is not 'apt-get' or 'yum update' functionality built into Android, and there probably can't be due to how custom every rom (even stock from the manufacturer/carrier) is. I would love it if my phone could do a "yum update" like thing and just yank down individual components as soon as they are available... but that's not reality unfortunately. When users do get updates, it's usually months after they were discovered to be at risk for some exploit due to carrier bureaucracy.

> Google actually recommends that vendors do this, over pushing full ROMs.

Mostly in the name of saving bandwidth for data capped users.

> Vendors often don't do it because they are lazy or for logistical reasons. But it doesn't mean they can't.

I think we agree here, but for different reasons.

Re:Announcing Ubuntu Core, with snappy transactional updates by Alupis on Tuesday December 09, 2014 @01:46PM (#8724747)
The notion of "updates" for most rom users (I'm on Cyanogenmod), is literally a flash over the existing rom.

However my busybox updater app does run in the background and does update busybox as needed automatically. Same with my su updater. So I suppose parts of my android are indeed auto-patched without my noticing.