News for hackers. Stuff that matters.
Re:Mozilla has stopped all commercial development on Firefox OS by skrowl on Tuesday September 27, 2016 @09:30AM (#12589425)
Android is Linux on the phone. It's Linux kernel with stuff on top. Check out Replicant. It removes most of the stuff you might find objectionable.
Re:Mozilla has stopped all commercial development on Firefox OS by maheart on Tuesday September 27, 2016 @09:56AM (#12589581)
>> Android is Linux on the phone. It's Linux kernel with stuff on top.

Android is just the Linux kernel on the phone -- that's the issue I have with it. It comes with none of the other stuff that makes GNU/Linux great: philosophically/socially it's different, but on a technical level it's missing rest of the GNU/Linux stack (e.g. package management, and the plethora of developer tools -- including languages and libraries). The GNU/Linux stack is developed by a diverse ecosystem of contractors, big and small business, and non-for-profits (e.g. Red Hat, Intel, Mozilla, Samsung, Canonical, Document Foundation, Fujitsu, Google, etc). Android is largely controlled by one company.

Re:Mozilla has stopped all commercial development on Firefox OS by djsumdog on Tuesday September 27, 2016 @11:27AM (#12590303)
The lack of package management and standard kernel/modules is a huge issue from Android. It keeps it from being truly open. I wrote a post about this a while ago:

http://penguindreams.org/blog/android-fragmentation/

The TL;DR, Android needs to be fixed so ASOP can be installed on any phone, just like Linux/Windows. The current state is bizarre for what's essentially now a general purpose operating system.

Re:Mozilla has stopped all commercial development on Firefox OS by nix0n on Tuesday September 27, 2016 @05:09PM (#12593236)
I think you mean AOSP (Android Open Source Project) not ASOP (the linked article makes the same typo).
Re:Mozilla has stopped all commercial development on Firefox OS by djsumdog on Wednesday September 28, 2016 @12:56AM (#12595495)
Wow...I even spelled it out at one point and still screwed it up while abbreviating it! Thanks man. I'll fix it. :)
Re:Mozilla has stopped all commercial development on Firefox OS by adzm on Wednesday September 28, 2016 @02:19PM (#12599963)
I habitually think of it as 'aesop' of the fables fame in my head, even though I know it's inaccurate. Hard habit to break. Like eye-terator instead of it-erator.
Re:Mozilla has stopped all commercial development on Firefox OS by pjmlp on Tuesday September 27, 2016 @10:13AM (#12589691)
And with Brillo and Fuchsia, Google is removing whatever is left of it.
Re:Mozilla has stopped all commercial development on Firefox OS by cpeterso on Tuesday September 27, 2016 @03:34PM (#12592372)
What is Brillo taking away? I thought it was more a standardization of the HAL and Linux kernel?
Re:Mozilla has stopped all commercial development on Firefox OS by pjmlp on Tuesday September 27, 2016 @03:50PM (#12592515)
Imagine Android with the Java Frameworks replaced by a similar C++ Framework, using Android IPC (not UNIX), bionic libc and Android's own Linux kernel fork.

https://www.youtube.com/watch?v=ig9GKAFzDxQ

https://www.youtube.com/channel/UCthvmTSlmIcMH93LIJNe-2w/sea...

Re:Mozilla has stopped all commercial development on Firefox OS by ghostly_s on Tuesday September 27, 2016 @11:59AM (#12590566)
Is Tizen any closer to this?
Re:Mozilla has stopped all commercial development on Firefox OS by maheart on Tuesday September 27, 2016 @10:51PM (#12595086)
I honestly don't know what's happening with Tizen these days -- Samsung has invested money into it, but it has (IMO) very little to show. Again, my bias is showing, but I think Jolla (SailfishOS) and Canonical (Ubuntu Touch) have achieved infinitely more with smaller teams and less capital.
Re:Mozilla has stopped all commercial development on Firefox OS by josteink on Wednesday September 28, 2016 @12:58AM (#12595502)
From what I've read, you want as little as possible to do with Tizen:

https://what.thedailywtf.com/topic/15001/enlightened

Re:Mozilla has stopped all commercial development on Firefox OS by jsight on Tuesday September 27, 2016 @11:22AM (#12590273)
Taking away those things doesn't make it not Linux. Adding those things wouldn't make it not Android. These guys could have had the best of both worlds.
Re:Mozilla has stopped all commercial development on Firefox OS by LukeShu on Tuesday September 27, 2016 @11:42AM (#12590436)
He didn't say anything about it not being Linux; he said it isn't GNU/Linux, which it isn't, the GNU parts are missing.
Re:Mozilla has stopped all commercial development on Firefox OS by jsight on Tuesday September 27, 2016 @11:30PM (#12595254)
A lot of the things that he mentioned (package management, even development tools) don't necessarily require a GNU stack.
Re:Mozilla has stopped all commercial development on Firefox OS by xyzzy_plugh on Tuesday September 27, 2016 @10:13AM (#12589697)
It is, and it isn't. Android has controversial patches on Linux that aren't merged upstream. They are more significant than say the patches Linux distributions maintain in their releases.

If anything, Android is a fork of Linux.

Re:Mozilla has stopped all commercial development on Firefox OS by snuxoll on Tuesday September 27, 2016 @11:51AM (#12590490)
And the android UI framework is still garbage, having to freeze and thaw activity state just to handle screen rotation is the most insane thing I have ever heard of. Hell, even the various Symbians handled this better (I loved my Symbian S60 devices, but programming for them was an exercise in frustration).
Re:Mozilla has stopped all commercial development on Firefox OS by tjohns on Tuesday September 27, 2016 @03:47PM (#12592489)
I'm assuming you're referring to the behavior where activities are restarted on rotation and onSaveInstanceState() gets called.

This behavior is the default because it prevents developers from needing to think about their UI changing dimensions (including runtime screen size/density changes!)... but it's certainly not required by the framework.

If you set android:configChanges="orientation" in your application manifest, your app won't be automatically restarted. However, you'll become responsible for swapping out any UI resources at that point.

(Keep in mind that Android lets you declare completely different UI layouts and drawables for different device configurations, so depending on how you wrote your app, you may need to re-inflate part of your UI.)

Or just implement onSaveInstanceState() and let the OS do everything for you.

Re:Mozilla has stopped all commercial development on Firefox OS by BoorishBears on Tuesday September 27, 2016 @08:32PM (#12594514)
>This behavior is the default because it prevents developers from needing to think about their UI changing dimensions (including runtime screen size/density changes!)... but it's certainly not required by the framework.

No, the framework uses it to let you automatically handle those changes, the reason it's there is because early Android devices were weak (obviously) and the pipe dream was that we'd write apps that didn't mind randomly getting their processes killed as long as we used onSaveInstanceState... man-centuries later and it's clear the dream didn't pan out. I wonder how many billions of NPEs it was worth to be able to say Android does what iOS don't (multitasking) back then.

And that android:configChanges line misses out on many other triggers that cause you to need to handle onSaveInstanceState (like someone plugging in a keyboard). Even with every flag set for configChanges you still need to implement onSaveInstanceState for process death to work as intended.

The Android framework really is garbage. I might be biased though, I spent the day trying to trick it into not going to 7(!) FPS because our designers had the audacity to request we translate a video in an animation (and don't get me started on the insanity that is animations on Android [the X ways we've now gotten to do it which all have their own limitations]).

Re:Mozilla has stopped all commercial development on Firefox OS by snuxoll on Tuesday September 27, 2016 @04:16PM (#12592746)
Yet both Windows Mobile and iOS handle this flawlessly without having to wire all sorts of extra code up. Sure, it's possible to do it with Android, but it's a hell of a lot more work than any other platform.
Re:Mozilla has stopped all commercial development on Firefox OS by _ZeD_ on Tuesday September 27, 2016 @10:00AM (#12589606)
Android is not GNU
Re:Mozilla has stopped all commercial development on Firefox OS by AsyncAwait on Tuesday September 27, 2016 @10:17AM (#12589710)
I think @maheart knows that and that is his main problem with Android.
Re:Mozilla has stopped all commercial development on Firefox OS by pjmlp on Tuesday September 27, 2016 @10:04AM (#12589644)
Not really, there are lots of APIs missing from the NDK, UNIX IPC being a set of them.
Re:Mozilla has stopped all commercial development on Firefox OS by vegabook on Tuesday September 27, 2016 @09:54AM (#12589579)
Unfortunately it's also JVM [edit: Java] on the phone.
Re:Mozilla has stopped all commercial development on Firefox OS by pjmlp on Tuesday September 27, 2016 @10:02AM (#12589630)
It is a fork of the Java language with its own AOT/JIT compiler, nothing to do with a certified JVM.
Re:Mozilla has stopped all commercial development on Firefox OS by vegabook on Tuesday September 27, 2016 @10:50AM (#12589986)
Larry Ellison doesn't seem to agree with your "nothing to do with [...] JVM" assertion, to the tune of a 9.3 billion USD lawsuit, and indeed Google itself is developing Fuchsia with no java stack at all in it.

Moreover, it's not Linux if you have to use a Java API to do anything useful.

Re:Mozilla has stopped all commercial development on Firefox OS by pjmlp on Tuesday September 27, 2016 @12:05PM (#12590620)
Nothing to do from the point of view of the headaches that brings to those of us that care about Java.

And everything to do regarding being a fork on the Java ecosystem, and I side with Oracle.

It remains to be seen if Brillo or Fuchsia will have any relevance on the market, even when coming from Google.

Re:Mozilla has stopped all commercial development on Firefox OS by vegabook on Friday September 30, 2016 @04:02PM (#12614909)
and I'm not a java lover as you can tell, but I can super-appreciate that for java guys, having some fork that tries to be java-not-java and confuses the ecosystem, is a pain in the butt. Be java fully committed and move it forward, or leave java well alone. Don't sit there and create a java version of the Python 2/3 mess that screws everyting up. I can totally appreciate that. Well put.
Re:Mozilla has stopped all commercial development on Firefox OS by jsight on Tuesday September 27, 2016 @11:23AM (#12590279)
The lawsuit was not about the VM.
Re:Mozilla has stopped all commercial development on Firefox OS by vegabook on Tuesday September 27, 2016 @11:33AM (#12590350)
Look. The gist of the comment is that Android forces you to use java, or at the very least, a java API. You can dance around semantics as much as you like, but it will not change the fact that, unlike Linux, Android is intricately interlinked with java.
Re:Mozilla has stopped all commercial development on Firefox OS by djsumdog on Tuesday September 27, 2016 @11:31AM (#12590336)
It's a subset of Java, with a totally different compiler, JIT, etc. Newer versions don't even use Dalvic, but compile/cache the bytecode into ELF/machine code.
Re:Mozilla has stopped all commercial development on Firefox OS by vegabook on Tuesday September 27, 2016 @11:45AM (#12590457)
What does it matter what's underneath? At the visible layer which most of us have to use, it's java.