FORUMS
Remove All Ads from XDA

[ROM][AOSP][4.4/6.0/7.1] Unlegacy Android Project

815 posts
Thanks Meter: 8,392
 
Post Reply Email Thread
The Unlegacy-Android Project

Introduction
Unlegacy-Android started out as the OMAP4-AOSP Project. It was created in late 2015 in order to maintain a clean and organized place for pure AOSP support for various OMAP4 devices, such as the Galaxy Nexus and the Samsung Galaxy Tab 2 series. Over time this evolved to support more than just these devices, but still maintains its roots of supporting "legacy" devices that no longer receive "official" updates: hence Unlegacy-Android was born.

This organization's goal is not to create feature packed ROMs, but to create a base ROM in such a way that custom ROM developers can easily adapt the changes. We're good at (properly) fixing compatibility issues between newer Android versions and older devices, among other core things. The "bells and whistles" like themes we leave to others.

The first public build here had something exclusive for the Galaxy Nexus, yet unseen on any other OMAP4 device: all RAM carveouts reserved for Ducati (the multimedia subsystem of OMAP4, responsible for hardware-accelerated video decoding, encoding and camera functionality) have been switched over to CMA.

A few words for those who see CMA for the first time:
Quote:

The Contiguous Memory Allocator (CMA) makes it possible for device drivers to allocate big contiguous chunks of memory after the system has booted.
The main difference from the similar frameworks is the fact that CMA allows to transparently reuse memory region reserved for the big chunk allocation as a system memory, so no memory is wasted when no big chunk is allocated. Once the alloc request is issued, the framework will migrate system pages to create a required big chunk of physically contiguous memory.

This means that a total of 996 MB physical memory is available to the system, while keeping Ducati fully working - this is a huge step forward, coming from the 694 MB available in the last factory image released by Google (Android 4.3). This gives the OS access to an additional 300MB of RAM.

While CMA was just recently implemented for this device, thanks to one of our developers (let's just call him Luden), it's quite stable: even under heavy memory pressure, the system manages to free up the required memory in order to start up Ducati and launch the requested multimedia functionality in a few seconds at most.

Installation
For Marshmallow (6.0) and below, It's important that /system needs to be unmounted before installing the ROM - some recoveries tend to leave it mounted after performing operations on it.

If you're planning to install GApps, be sure to read the second post!

Aside from these, installation and upgrading is no different than on other ROMs.

Problems
While we weren't able reproduce any CMA-related problems, hidden ones can still arise. In most cases, these problems will be either lost Ducati functionality (no multimedia capabilities) until rebooting, or a kernel panic (hard reboot) - upon noticing any of these, be sure to grab a logcat/dmesg and/or last_kmsg and send it to us (preferably by attaching it to a post in this thread).
Other than that, these are bugs we're aware of in the current build:
- The RIL on LTE devices (toro, toroplus) isn't fully working; calls and texts should be OK, but expect no data.
- Sound pops can be observed, mostly when using touch sounds (this is being investigated)
- Some exotic video formats or camera modes might not be perfect - if you notice any artifacts or green spots (the issue that happened in the past), report the details in this thread
- Inverted colors mode not working
- Tricky connection to some 5 GHz Wi-Fi networks
- SELinux is in Permissive mode (this isn't a problem for most people, just mentioned it here as extra information)

If you notice anything else, be sure to report it in this thread. While we're kind of busy, we usually read the thread and acknowledge the bug reports, even if I don't reply directly to them.

Downloads
See: http://builds.unlegacy-android.org.


As usual, feedback is appreciated

Want to support development? You can consider donating, we've spent countless of hours with this (:

XDA:DevDB Information
Unlegacy Android Project, ROM for the Samsung Galaxy Nexus

Contributors
Ziyan, MWisBest, Android-Andi
Source Code: https://github.com/Unlegacy-Android/

ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.0.x

Version Information
Status: Stable

Created 2016-03-12
Last Updated 2017-04-07
Attached Thumbnails
Click image for larger version

Name:	2016-03-11 16.07.24.png
Views:	117726
Size:	56.9 KB
ID:	3679806  
The Following 133 Users Say Thank You to Ziyan For This Useful Post: [ View ]
 
 
12th March 2016, 02:42 AM |#2  
Ziyan's Avatar
OP Recognized Developer
Flag Szentes
Thanks Meter: 8,392
 
Donate to Me
More
GApps
If you want to install GApps, we recommend Open GApps Nano or BaNkS GApps.

An important note: as this is a pure AOSP ROM, installing GApps tends to be problematic: in order to try to avoid installation issues, be sure to install GApps immediately after installing the ROM, before booting the system for the first time. After the initial bootup finished, be sure to go into Settings -> Apps, and grant every permission to every Google application - most importantly, Google Play services.
In the case of an upgrade, be sure to re-install the GApps package, as upgrading wipes /system. You shouldn't need to re-set the permissions afterwards.

Quote:
Originally Posted by siealex

One more note. DO NOT set up your Google account until you grant all permissions, otherwise you will be stuck on the initial setup.

Rooting
You can flash either the latest SuperSU or OpenSource SuperUser to get rooted.
The Following 37 Users Say Thank You to Ziyan For This Useful Post: [ View ]
12th March 2016, 05:41 AM |#3  
Senior Member
Thanks Meter: 506
 
More
Incredible work! Thank you to ALL the volunteer developers for making this FREE and OPEN SOURCE progress possible! The code is free, but your time is not! Thank you!!!
The Following 8 Users Say Thank You to bamtan2 For This Useful Post: [ View ] Gift bamtan2 Ad-Free
12th March 2016, 08:12 AM |#4  
PythonNut's Avatar
Senior Member
Thanks Meter: 28
 
More
Out of curiosity, is aosp_mm_tuna_2016-03-12 running DDK1.9 or DDK1.8? I feel like it's 1.9 from your mention of recording artifacts, but I'm not an android developer, so I can't tell.

I'm running this right now, and it's awesome. Marshmallow in general seems to have much better performance than Lollipop on our device. I do miss some custom kernel flags, but I'm sure that'll come with time.
12th March 2016, 11:09 AM |#5  
Master94ga's Avatar
Senior Member
Flag Messina
Thanks Meter: 33
 
More
@Ziyan Which recovery do you recommend ?
DRM services not working means also Netflix doesn't work?
12th March 2016, 11:21 AM |#6  
Ziyan's Avatar
OP Recognized Developer
Flag Szentes
Thanks Meter: 8,392
 
Donate to Me
More
Quote:
Originally Posted by PythonNut

Out of curiosity, is aosp_mm_tuna_2016-03-12 running DDK1.9 or DDK1.8? I feel like it's 1.9 from your mention of recording artifacts, but I'm not an android developer, so I can't tell.

DDK 1.9 of course

Quote:
Originally Posted by Master94ga

@Ziyan Which recovery do you recommend ?

The latest TWRP should be fine. I might have not mentioned it in the OP, but the ROM supports F2FS as well.

Quote:
Originally Posted by Master94ga

DRM services not working means also Netflix doesn't work?

Possibly.
The Following 12 Users Say Thank You to Ziyan For This Useful Post: [ View ]
12th March 2016, 11:24 AM |#7  
Master94ga's Avatar
Senior Member
Flag Messina
Thanks Meter: 33
 
More
Quote:
Originally Posted by Ziyan

DDK 1.9 of course


The latest TWRP should be fine. I might have not mentioned it in the OP, but the ROM supports F2FS as well.


Possibly.

Thanks, 3.0 unofficial or your last recovery?
12th March 2016, 11:46 AM |#8  
Senior Member
Flag Porto
Thanks Meter: 51
 
More
You are a god!
I'm downloading and will be testing this, I'm super excited about this work.

EDIT: So, first thing I've noticed is that the phone is struggling with the configuration in the first boot. Either in the "checking connection" or in the "just a sec..." loading frame, it freezes and doesn't get past it. Is it because of google play services?
12th March 2016, 12:36 PM |#9  
Ziyan's Avatar
OP Recognized Developer
Flag Szentes
Thanks Meter: 8,392
 
Donate to Me
More
Quote:
Originally Posted by diogofd8

So, first thing I've noticed is that the phone is struggling with the configuration in the first boot. Either in the "checking connection" or in the "just a sec..." loading frame, it freezes and doesn't get past it. Is it because of google play services?

Yes Google Play Services can mess it up - I don't recall how, but I managed to press a skip button or something to easily get past it when it started looping. I guess we should add a mini how-to to the OP about it, as I really don't want to hack the framework for this.
The Following 6 Users Say Thank You to Ziyan For This Useful Post: [ View ]
12th March 2016, 12:38 PM |#10  
Master94ga's Avatar
Senior Member
Flag Messina
Thanks Meter: 33
 
More
Yep, I'm stuck in "just a sec..."

Edit: I restarted the Phone and now it works.
Netflix works too
The Following 2 Users Say Thank You to Master94ga For This Useful Post: [ View ] Gift Master94ga Ad-Free
12th March 2016, 12:46 PM |#11  
eternal70's Avatar
Senior Member
Flag Blahblah
Thanks Meter: 246
 
More
Big thanks to @Ziyan and all OMAP4 dev for all your contribution so far ! I'll test this immediately

Sent from my Galaxy Nexus using Tapatalk
The Following User Says Thank You to eternal70 For This Useful Post: [ View ] Gift eternal70 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes