Profile

Cover photo
Adam Farden
1,315 followers|792,784 views
AboutPostsPhotosYouTube+1'sReviews

Stream

Adam Farden

Shared publicly  - 
 
CM breaks All the things!
 
It ain't no fun to play with Toybox (yet)!

This might sound cryptic to most readers, but for most GApps developers 2016 did start with a lot of bug reports from CM Recovery users. Reports with errors like “I got error 255” while we don't have such error code specified ourselves, or “mount failed with error 1”. Cause of all this trouble is a new command line tool called Toybox and the decision of Cyanogenmod that the Christmas holidays were the perfect moment to embed it in their recovery instead of Busybox.

Most users will probably wonder: what is Toybox and why did Cyanogenmod switch to it and what was Busybox in the first place?

Let's start with the last question first: what is Busybox? Busybox is a GPL-licensed effort that offers many Unix tools (commands that offer functionality like “copy this file”, “search for this string”, “mount this partition”) in a single small binary and already exists since 1999. The concept of it is great, it offers a lot of functionality, comparable to an operating system, but within a small 2MiB binary. As such Busybox is perfect for use in embedded software or, more applicable to our situation, the Android recovery.
That is why TWRP, CWM and until recently CM Recovery were all using Busybox as core provider of functionality. It is a powerful tool that enabled us to use advanced logic within the Open GApps installer.

But “what is Toybox”? Toybox's goal and functionality are meant to be just like Busybox and it is even being developed by the very same person that maintained Busybox for many years (+Rob Landley). But where Busybox is licensed as GPLv2, Toybox is using the BSD license. Because Google has chosen for a policy to not include any GPL in Android's user space, it disqualified Busybox to be included in Android's upstream AOSP recovery repository. But Toybox does have a compatible license which enables it to be upstreamed into AOSP. This is in general a very positive development, because a more powerful recovery in AOSP is very welcome.

Toybox is not yet finished though (see the current status at http://landley.net/toybox/status.html ). While the original recovery in the AOSP project had barely any capabilities, for them the adaptation of the still under-development Toybox is a huge step forward. But the alternative recoveries were using the powerful Busybox. CM Recovery decided to switch from Busybox to Toybox. But because Toybox still does miss some essential commands that we rely on in the Open GApps installer (unzip, awk, xz) that are not implemented (yet). This breaks the Open GApps installer on CM Recoveries that are bundled with the CM13 nightlies.

“Why did Cyanogenmod switch?” We don't know. Of course it convenient to stay as close as possible to upstream as possible, but in our opinion Cyanogenmod has switched way too early from Busybox to Toybox. As Open GApps we are very unhappy with the timing of their decision. We believe that at least the posix subset should have been fully implemented in Toybox before they should have switched. As Open GApps we now have the choice whether 1) we will rewrite our code to the limited Toybox capabilities (if possible at all), 2) defy CM Recovery as supportable effort, 3) bundle our own Busybox in the installer, 4) hope that Toybox will develop the missing commands at lightspeed or 5) that Cyanogenmod reconsiders their decision.
17 comments on original post
5
Add a comment...

Adam Farden

Shared publicly  - 
 
Very, very impressive speech by Shadow Foreign Secretary Hilary Benn. Is he soon to be the next Leader of the Labour Party?
1
Add a comment...

Adam Farden

Shared publicly  - 
 
Get experimenting! Look out for this in FXP releases very soon...
Learn about Sony's open source camera, which experienced developers can use to innovate.
5
Alexandre Lissy's profile photo
 
Soon on B2G ? :-)
Add a comment...

Adam Farden

Shared publicly  - 
 
Oomph so fab!

+Tim Graham​
7
Kilian von Pflugk (jumoog)'s profile photoAdam Farden's profile photoEspen Flagtvedt Olsen's profile photoTim Graham's profile photo
5 comments
 
Awww, you guys
Add a comment...

Adam Farden

Shared publicly  - 
 
OMG it's finally happening!!!*

*In June!!!
2
Add a comment...

Adam Farden

Shared publicly  - 
 
Stayed up to catch the #SuperBloodMoon and even got out the old telescope! Pity I don't have any cameras anymore to mount on it, but #XperiaM4 was good enough.

If only James Bond had come round this weekend with his new Sony gadgets...
6
Shane Francis's profile photo
 
Nice :) that M4 does pretty well 
Add a comment...
In his circles
89 people
Have him in circles
1,315 people
NUR LAN's profile photo
Tom Carding's profile photo
Ghniyu Iddrisu's profile photo
МАСХУТ ФАЗЫЛОВ's profile photo
Franco Vaccari's profile photo
Antonio Michael's profile photo
José Santos's profile photo
Piotr Lewandowski's profile photo
Tasso Gomes's profile photo

Adam Farden

Shared publicly  - 
 
Mind Blown! That was amazing! I was not expecting Han to team up with Spock to save the day like that! 
1
Add a comment...

Adam Farden

Shared publicly  - 
 
"The researchers also tried a "flock-sourcing" approach. This involved pooling the decisions from a group of four birds, and led to an impressive 99% accuracy in diagnosis."

Mind. Blown.
A study finds that pigeons, with training, can identify breast cancer in mammagrams just as accurately as human experts.
1
Add a comment...

Adam Farden

Shared publicly  - 
 
Good job +Google. The new Google+ webapp is really fast on my tablet. Because it doesn't show anything, perhaps?
6
Juhani Lehtimäki's profile photoAdam Farden's profile photo
4 comments
 
Aaaaaand success! A Google webapp that works perfectly on Firefox OS!
Add a comment...

Adam Farden

Shared publicly  - 
 
Just caught the sunset from my office. 🌇

Can't wait to get some better opportunities.

#XperiaZ5
4
Add a comment...

Adam Farden

Shared publicly  - 
 
Hello PlayStation People! Sean Murray from Hello Games here, working on No Man’s Sky, and I’m incredibly excited to bring you our news. Since E3 our release date has now become clear. The game, our ambition and some key developments have fallen into place. It’s incredibly hard work, but development is going really well. This …
4
Sebastian Mauer's profile photo
 
June 2016...well, still rooting for #NoMansSky  
Add a comment...

Adam Farden

Shared publicly  - 
 
Nooooo! Damn you not-suitable-for-production Ubuntu beta, why did you eat yourself after update?!

Well, now I have something to do this weekend...
1
Add a comment...
People
In his circles
89 people
Have him in circles
1,315 people
NUR LAN's profile photo
Tom Carding's profile photo
Ghniyu Iddrisu's profile photo
МАСХУТ ФАЗЫЛОВ's profile photo
Franco Vaccari's profile photo
Antonio Michael's profile photo
José Santos's profile photo
Piotr Lewandowski's profile photo
Tasso Gomes's profile photo
Work
Occupation
English Teacher
Links
Contributor to
Story
Tagline
Teacher by day, CyanogenMod hacker by night
Basic Information
Gender
Male
Other names
adəɱ fɑːdn̩, AdFad666
Apps with Google+ Sign-in
  • Atomas
Adam Farden's +1's are the things they like, agree with, or want to recommend.
No Man's Sky release date announced at Paris Games Week - PlayStation.Bl...
blog.eu.playstation.com

Hello PlayStation People! Sean Murray from Hello Games here, working on No Man’s Sky, and I’m incredibly excited to bring you our news. Sinc

SlimRoms
www.slimroms.net

Hey folks,. it's been a while… A long while... We feel it's time to shed light on what happened, what is happening, and what will be happeni

FXP Blog - Sony introduces Xperia Z5 series
www.fxpblog.co

FXP Blog provides news for Sony Mobile Xperia devices concerning FreeXperia Project Android development, CyanogenMod ROM flashing, Android a

Ready Steady Bang
market.android.com

Ready Steady Bang is A beautifully addictive quick-fire dueling game. Play face-to-face with a friend on a single screen in 2 player mode or

CyanogenMod
plus.google.com

A community, developer-friendly Android distribution for 80+ devices

Vodafone CZ
plus.google.com

Oficiální Google+ stránka českého Vodafonu

Dev-Host - The Ultimate Free File Hosting / File Sharing Service
dev-host.org

Dev-Host is the #1 free file hosting and file sharing service to store and share your file(s) online. We offer storage sizes and rentention

Clink Hostel • London Hostels - for backpackers on a budget | Clink Hostels
www.clinkhostels.com

Clink Hostels in London, England offers budget accommodation in a mix of private and dorm rooms in the very heart of the city. Check our roo

Well Behaved Tyre
www.youtube.com

A tyre bounces of a V8 Supercar and rolls down the track to go hang out with another bunch of tyres...

The marina looks quite luxurious and the website advertises a camping site. However they directed us to the _actual_ campsite down the road which is, quire frankly, a shithole with zero facilities, only drunk perverts looking for the opportunity to steal your belongings. AVOID. The "autocamp Slavoj" in Litoměřice is 1000x times better.
Public - 6 months ago
reviewed 6 months ago
Lovely building, the artwork changes regularly so every visit is different GREAT pizzas and pasta!!!
Food: Very GoodDecor: Very GoodService: Good
Public - 2 years ago
reviewed 2 years ago
2 reviews
Map
Map
Map