yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] 73chn1c:
How to move from anoter ROM / system

I moved to CarbonROM from UBtouch: (propably will be working with any ROM or system)

1. flash official TWRP via fastboot https://dl.twrp.me/mako/

2. use repartition ZIP, read installation please (from link below)

3. flash modified TWRP via fastboot (too from link below)

https://xdaforums.com/nexus-4/orig-development/repartition-nexus-4-repartition-t3844383

4. using TWRP install CarbonROM ZIP file and without restarting flash GAPPS ARM 9.0 PICO https://opengapps.org

5. reboot, and wait looooong time for system start

6. use it! :)
[Nexus 4 Original Android Development] pxrave:
Rom works flawless and newest security updates in Board. No need to changes this device if you like it. Nitin Did a great Job to upstream All device Things. Some Things are boosted a bit but not much. Just feels more better. I would like to See android 10 when it's readY. Bad Our device dont have proper lte antennA
[Nexus 4 Original Android Development] Milan P.:
Is there anyway to make the lockscreen weather in fahrenheit instead of celsius?
[Nexus 4 Original Android Development] nitin.chobhe:
Isn't there a setting for that under lockscreen?

Nitin
[Nexus 4 Original Android Development] joelcool69:
It's posible to modify the voltage settings in this ROM?
[Nexus 4 Original Android Development] sbhajband:
I want radio modem zip file which is used in this ROM.

Can you provide me a link?

Your ROM is working great and our nexus 4 got a new life with this ROM.

Are you working on Android Q for Nexus 4?

Thanks a lot!!!
[Nexus 4 Original Android Development] sbhajband:
My screenshot
[Nexus 4 Original Android Development] nitin.chobhe:
Radio and vendor are not parts of the ROM (any ROM for that matter).

BTW, new build is out: https://get.carbonrom.org/device-mako.html

Nitin
[Nexus 4 Original Android Development] sbhajband:
The radio or modem of this ROM is best in my region and working great. Because of that I want this radio file. Please understand my fillings and provide me any idea. I want use moonshine magma Q ROM. This ROM is great but the problem is only it has a bad network strength. Half network vs you're ROMs network.

I am not interested in 4g I want only 3g & 2g
[Nexus 4 Original Android Development] lch8:
NOT working for me, I have done everything right but after 10 minutes of boot animation it restarts to Recovery.

Any advise ?
[Nexus 4 Original Android Development] sbhajband:
After flashing ROM you need to wipe data and cache and then reboot.
[Nexus 4 Original Android Development] xzyk:
I'm having the exact same problem. When you say 'wipe and reboot' do you mean

1. Install rom

2. Wipe data and cache in recovery

3. Reboot back to recovery? Or just normal reboot?

Presumably back to recovery otherwise how do you install your gapps?

I can boot fine with just the rom install but installing rom and gapps together does the 10mts boot and then goes back to recovery as stated in previous post.
[Nexus 4 Original Android Development] nitin.chobhe:
Are you new to flashing ROMs on mako? First of all increase the system partition size (if not done already), then follow these simple steps:

1. Reboot to recovery - Wipe everything except internal storage (do this from Advanced wipe screen of twrp)

2. Flash ROM zip + gapps

3. Reboot to system

Nitin
[Nexus 4 Original Android Development] xzyk:
Thanks, partition was already increased. I solved it by using MindTheGapps instead of opengapps. All good now.
[Nexus 4 Original Android Development] lch8:
Could You please provide a link to working MindTheGapps You used. ThX

openGapps (open_gapps-arm-9.0-pico-20200122.zip) Sucks...:p

---

edit: O.K I found https://androidfilehost.com/?fid=6006931924117895958
[Nexus 4 Original Android Development] ze7zez:
You must have had another problem, because opengapps works well with Carbon 7.0.

Remember to use the opengapps version with an earlier date than the date ROM.

It's best to download the oldest version.

https://sourceforge.net/projects/opengapps/files/arm/

Google apps will update automatically when you first access the internet.
[Nexus 4 Original Android Development] cchaos:
Hi there,

Is there a particular guide that you would recommend for resizing the system partitiion? And what size would you recommend increasing it to? In my case I've got a 16gb Mako.

I'm assuming this ROM works with both 8gb and 16gb versions of this phone?
[Nexus 4 Original Android Development] nitin.chobhe:
Search XDA mako section and you'll find it.

Yes, this would work on 8 and 16 GB variants.

Nitin
[Nexus 4 Original Android Development] cchaos:
First post I come across: https://xdaforums.com/nexus-4/general/guide-increase-nexus-4s-partition-space-t3800264 (I'm assuming that'll be fine? Please correct me if I am wrong - also just noticed that's also a 16gb one they have used for the guide)

Assuming I'm correct, I'm assuming any questions I have about the proceedure (ie whether to factory wipe, flash newer TWRP etc) are not really for you so I should go and ask in the correct thread.

Thankyou for the confirm.

Apologies for acting like a n00b, it's been a while since I have done anything like this and don't want to brick the phone for my stupidity...
[Nexus 4 Original Android Development] nitin.chobhe:
Procedure for flashing a ROM on mako is same across ROMs - there are NO special instructions for flashing Carbon ROM (moreover, is you still need them, they are discussed here in this thread multiple times).

Nitin
[Nexus 4 Original Android Development] nitin.chobhe:
So, finally here is the first Android Q build of Carbon ROM for mako :laugh:

Download link:

https://www.androidfilehost.com/?fid=4349826312261715076

Flashing instructions:

Same as Pie - you should have re-partitioned system to flash this. I tested without gapps, but Android 10 gapps should work without any issues :fingers-crossed:

Everything should work as expected except NFC :good:

Share your feedback about how it runs and issues that you face (if any).

Thanks a lot to [MENTION=3772648]voron00[/MENTION] for his work on mako and help that he provides. Really commendable! Thanks to Carbon ROM team for their work on the source :highfive:

Nitin
[Nexus 4 Original Android Development] mkrmec:
Does this ROM have the Navbar fix? If not, what fix would you recommend for my idiot of a phone...
[Nexus 4 Original Android Development] nitin.chobhe:
What Nav bar fix?

BTW, new weekly is out and you can get it from here: https://basketbuild.com/uploads/devs/CarbonROM/mako/CARBON-CR-5.1-MOO-WEEKLY-mako-20170627-0441.zip

Thanks!

Nitin
[Nexus 4 Original Android Development] mkrmec:
Some nexus 4 devices have the lower part od the display that died... Right where the navigation bar is. Mine has this defect. On my previous ROM there was a fix that increased the vertical height of the navbar by a little, so that when you pressed it, the navbar would work again.

https://www.google.si/amp/s/xdaforu.../wip-navbar-deadzone-workaround-t3243822/amp/
[Nexus 4 Original Android Development] nitin.chobhe:
Yes, it is there as this post on last page suggests.

Also have a look at this follow up post.

Nitin
[Nexus 4 Original Android Development] mkrmec:
Would be nice to just have an option in the setting to enable the navbarfix. This hackery with the original rom is weird.
[Nexus 4 Original Android Development] nitin.chobhe:
Yes, you are right; but who will do that for a 5 years old device and that too for very few users? I think someone from the affected users have to step up and create pull request for that ;)

Nitin
[Nexus 4 Original Android Development] ze7zez:
There is no need to torment busy developers.
[MENTION=2717563]mkrmec[/MENTION] :good: pointed out the solution and should simply use it.

1. Install Carbon ROM

2. Settings -> About phone -> Click 7x on "Build number"

3. Settings -> Developer options -> Android debugging -> switch on

4. Connect N4 to PC and check "always allow from this computer" on N4 screen and OK

5. On PC, run commands:

adb shell
wm overscan 0,0,0,90

That's all.

From now on, the navigation buttons also work after restart.
[Nexus 4 Original Android Development] dcshallot:
Thanks for your work! I'm using LineageOS but it is not compatible with SINAI-N4 kernel. Before I change to your ROM, I need to know some information ( I can't find these from your website and OP ).

Is your ROM support:

dt2w ( if does not support, can I use sinai-n4? Because it's in continuing.)

f2fs ( only /data ? or /data+/system ? or not support f2fs?)

which SU can be installed: superuser? super su?

which gapps can I use: open gapps(I'm using), or beans gapps?

status bar: hold to change brightness, double tap to sleep?

And I'm using twrp-f2fs version downloaded from xda. Can I use your ROM?

Thanks for your patience!
[Nexus 4 Original Android Development] nitin.chobhe:
dt2w ( if does not support, can I use sinai-n4? Because it's in continuing.) --> Use Sinai Kernel

f2fs ( only /data ? or /data+/system ? or not support f2fs?) --> No f2fs support

which SU can be installed: superuser? super su? --> SuperSu

which gapps can I use: open gapps(I'm using), or beans gapps? --> Open gapps

status bar: hold to change brightness, double tap to sleep? --> I don't remember ;)

And I'm using twrp-f2fs version downloaded from xda. Can I use your ROM? --> I never tried this, try and share the results

Nitin
[Nexus 4 Original Android Development] dcshallot:
Thanks! Then I can try this afternoon. BTW, I like the name carbon:fingers-crossed:
[Nexus 4 Original Android Development] dcshallot:
https://xdaforums.com/nexus-4/development/unofficial-twrp-mako-3-1-1-0-ext4-f2fs-t3613248

I'm using this recovery with f2fs support.

And, I can't install your ROM. the patching progress bar went to the end and hold for a long time without response. I had to power off. But seems nothing installed. Fix FileContext not work.

Now I have to flash back the LineageOS.:crying:
[Nexus 4 Original Android Development] nitin.chobhe:
or flash the normal recovery?

Nitin
[Nexus 4 Original Android Development] dcshallot:
It's the only one recovery support f2fs.

---------- Post added at 02:05 PM ---------- Previous post was at 02:04 PM ----------

Btw. /system is ext4, because lineage ROM format it so.
[Nexus 4 Original Android Development] hauckk@sfreserves.org:
If I remember correctly multirom TWRP supports f2fs
[Nexus 4 Original Android Development] dcshallot:
It seems hard to use...... And is it older than the one I'm using?
[Nexus 4 Original Android Development] hauckk@sfreserves.org:
Yeah it is older it is 3.0.0.0 but it does work primary slot is install

Multirom is 2nd and up rom slots you have to use a custom kernel for extra rom slots to be able to boot and nougat ROMs can only be installed in primary slot

multirom is a little bit of pain to use but I find it useful
[Nexus 4 Original Android Development] dcshallot:
I've seen the multirom recovery. It's complicated to use. I'm worry too try without a full guide, to keep the everything now no change.
[Nexus 4 Original Android Development] dcshallot:
It isn't useful at all. I just installed the multirom app from google store and follow the app to install its recovery. Boot into recovery normal and then it reboot. LineageOS data has been reset( but storage usage is also 10GB), so I think it lost the access permission. Reboot into recovery again, and then used fix context. Not work. Now I have no any idea, the multirom ruined my weekend. Now I just want to restore back the system and my data. BTW. LineageOS's su not work never. And the carbon rom is so hard to download in china. the connection break down and break down.
[Nexus 4 Original Android Development] dcshallot:
Last night, I changed back to twrp f2fs version 3.1.0.0. formatted everything, changed /data ext4 f2fs twice. Then finally success installed carbon ROM via sideload. Now I'm using sinai-n4 kernel. Reboot happened a few times maybe some governor or hot plug not compatible. And battery drain fast. If you have some choosing suggestion, tell me please.

Btw, I need dt2w, so it can not be disabled. In lineage os, battery works normal which I can accept.

Finally, thanks for your work, carbon is smooth.

And, another issue, I use Tiles(or you can try nougat quick settings), the tiles from these app can not be drag to top, the drawer disconnect after I drag reach the top area.
[Nexus 4 Original Android Development] nitin.chobhe:
I don't use custom kernel so I do not have idea about them... May be [MENTION=7970097]sudokamikaze[/MENTION] can help you.

Regarding tiles app, can't help you have to talk with the app developer.

Nitin
[Nexus 4 Original Android Development] ze7zez:
Does system recovery in TWRP not work like in Magma and LOS 17?

If so, then we must try to use the new project [TOOLS][ZIPS][SCRIPTS] Android Backup and Restore Tools [Multiple Devices/Platforms].

Thanks [MENTION=2188693]AndDiSa[/MENTION]!

Thank you Nitin for your great contribution to keeping Carbon on mako. :good:
[Nexus 4 Original Android Development] nitin.chobhe:
I didn't understand what you wrote... I used the same recovery that I have since last year and it worked without any issues.

Nitin
[Nexus 4 Original Android Development] ze7zez:
After installing CARBON CR-8.0, did you wipe the partitions and then use TWRP to restore the system and the system boot properly?

It's a good news.
[Nexus 4 Original Android Development] nitin.chobhe:
No, I never did that (on Nexus 4 or any other phone till today). As this is not my primary phone, I wipe everything except internal storage and then flash the ROM and test it.

Nitin
[Nexus 4 Original Android Development] zagzag99:
Thanks for this build.

I tried flashing on top of previous data partition.

But unfortunately it wouldn't pass the lockscreen, I think systenUI crashed after unlocked.

So I did a another flash after wiping data and so far amazing work !

Edit:

Found a first issue, PIN not working after setting it.

Trying to punch it when asked later (like when turning on developer tools) will claim wrong PIN.
[Nexus 4 Original Android Development] ze7zez:
The sensors do not work. cpu_z also shows their absence.
[Nexus 4 Original Android Development] nitin.chobhe:
Does it work while unlocking the phone?

Sensors work without any issues. See attached screenshot.

Nitin
[Nexus 4 Original Android Development] zagzag99:
Something is not right with security.

I have reset my data, and kept phone unsecured, lockscreen set as swipe.

Now I have gone to setting to make it PIN, set a PIN but after PIN wizard finished i see that lock screen is still set to swipe.

Choosing that switch lock asks for the PIN but rejects my attempt for being the wrong PIN.

Phone remain unsecured.
[Nexus 4 Original Android Development] ze7zez:
After installing Carbon 7.0, wiping Cache and installing Carbon 8.0, the sensors work.

Re-wiping everything except the internal memory and from now on a clean installation of Carbon 8.0 finally activates the sensors.

Earlier I had LOS 17.1 and Magma.

Maybe it will help someone in the future.
[Nexus 4 Original Android Development] zagzag99:
I just wiped all again and tried Pattern and Password.

In both cases lock remains unsecured.

And trying to change after password was set once results with denials, password incorrect.
[Nexus 4 Original Android Development] nitin.chobhe:
Thanks for sharing this :good:

This is strange but I'll have a look at it. Thanks for reporting; anything else?

Nitin
[Nexus 4 Original Android Development] ze7zez:
I also entered the pin for the unlock screen. After some time Carbon 8.0 automatically fell into system restart (without booting).
[Nexus 4 Original Android Development] nitin.chobhe:
Thanks for the logcat, I'll check that :good:

Nitin
[Nexus 4 Original Android Development] Cice96:
Did you manage to fix Magisk not being installed?
[Nexus 4 Original Android Development] nitin.chobhe:
No, I'm not getting where to start as there is not log or nothing :(

Nitin
[Nexus 4 Original Android Development] Erovia:
I can't believe you've done this! Absolute madlad(s)! :D

So most stuff should work except NFC and Magisk?
[Nexus 4 Original Android Development] nitin.chobhe:
Yes and the issue related to pin which was mentioned above :good:

Nitin
[Nexus 4 Original Android Development] Milan P.:
It seems to be just an on and off switch, but no temperature unit selection.
[Nexus 4 Original Android Development] sbhajband:
Nexus 4 is stopped on Android Q because it has no root or customization option. Root is our freedom and only it is not available for Nexus 4 Q.

I don't blame any developer.

They give us what possible for our lovely and cute Nexus 4.

Sorry for my English...
[Nexus 4 Original Android Development] nitin.chobhe:
It isn't stopped... May be [MENTION=3772648]voron00[/MENTION] would come up with a solution for magisk problem :fingers-crossed:

Nitin
[Nexus 4 Original Android Development] Alessioromatm:
Can I use this rom for a daily usage? What is not working? Does the camera work?
[Nexus 4 Original Android Development] nitin.chobhe:
Yes, camera works... Only thing that doesn't work is the PIN to lock/ unlock phone (and of course root as mentioned earlier).

Nitin
[Nexus 4 Original Android Development] Alessioromatm:
Ok, but does it have Android 9 or 10?
[Nexus 4 Original Android Development] nitin.chobhe:
This was about Android 10: https://xdaforums.com/showpost.php?p=81665349&postcount=580

Android 9 is fully stable and a daily driver: https://get.carbonrom.org/device-mako.html

Nitin
[Nexus 4 Original Android Development] nitin.chobhe:
New Android 10 build: https://www.androidfilehost.com/?fid=4349826312261730985

February security patch and PIN issue is now fixed :)

Only thing that doesn't work now is NFC (and root as you all know)

Nitin
[Nexus 4 Original Android Development] nitin.chobhe:
Here is the build with March security patch... :good:

Download link: https://www.androidfilehost.com/?fid=4349826312261739560

Nitin
[Nexus 4 Original Android Development] sieerra:
Crazy work man, thank you!! Is there a way to get root access?
[Nexus 4 Original Android Development] nitin.chobhe:
Not yet; waiting for [MENTION=3772648]voron00[/MENTION] to do some magic ;)

Nitin
[Nexus 4 Original Android Development] nitin.chobhe:
So finally Magisk is working on mako - thanks to our man @voron00 :good:

I was even able to get NFC to work on this build. So now everything just works on mako on Android 10 :highfive:

Download link: https://www.androidfilehost.com/?fid=4349826312261746320

Share your feedback on this build.

Nitin
[Nexus 4 Original Android Development] ze7zez:
It is impossible to check everything.

Perhaps everything works now, until the developers of applications using SafetyNet introduce further tests to check the safety of the device for their needs and in their business.

And then a wave of laments will flood the xda forum with the questions "why does the app not work?"

More in this article and comments below it:

Magisk may no longer be able to hide bootloader unlocking from apps
[Nexus 4 Original Android Development] nitin.chobhe:
Don't worry too much... the link you provided is not ONLY for mako - it is for ALL the devices out there.

Be happy that you get a fully working Android 10 build for an ancient device from 2012 (which is not available for many devices even from 2015) ;)

Nitin
[Nexus 4 Original Android Development] ze7zez:
Unfortunately, due to the inability to restore the ROM from a backup in TWRP, I have no pleasure to use Android10 on mako.

I often shuffle ROMs so I moved to the bacon where everything that is most important works at TWRP. Congratulations to you on your complacency at building a mako ROM, however, the real peak of achievement is running Android10 on the Samsung I9100 Galaxy S II from 2011 with half the memory resources and CPU performance that mako has. This means that mako has a good prognosis for Android10 to run smoothly. Comparing the greater smoothness of Android10 operation on Oneplus One after switching from Pie, I expect that on Nexus 4 it will be similar, if it is not already. Once again, I wish you much success in building reliable mako ROMs.
[Nexus 4 Original Android Development] sieerra:
New build is great! No random SODs good performance and better battery life than the Pie builds. Thanks nitin!
[Nexus 4 Original Android Development] pbgapski:
0% deep sleep

[MENTION=5044214]nitin.chobhe[/MENTION] great build for mako!

Although my battery life is good, the phone reports 0% deep sleep in settings->about->uptime. Please take a look if you have the time :)

Thanks in advance,

Pedro
[Nexus 4 Original Android Development] nitin.chobhe:
Doesn't look anything wrong from the ROM side. Check your setup.

Nitin
[Nexus 4 Original Android Development] wizmart:
Just migrated to 10, nice everything running smooth, thanks Nitin !!
[Nexus 4 Original Android Development] cyprien T:
Video test android 10

[youtube]7uLuC0HfcuA[/youtube]
[Nexus 4 Original Android Development] nitin.chobhe:
Thanks for this but I think you tested very old version - I've released a newer version with March security patch and it is much smoother than the old build that you showed in the video.

Nitin
[Nexus 4 Original Android Development] Maxim151:
What's wrong with my phone, i have SODs on every rom even on official ones, exept for Pixel Dust ROM :(
[Nexus 4 Original Android Development] nitin.chobhe:
PixelDust? May be your battery needs replacement?

Nitin
[Nexus 4 Original Android Development] Maxim151:
Yes, this ROM, the only one which has no SODs at all. I don't know why but during a night battery losts about 15% of charge and when I starts using it at the morning the battery draining very fast. Sometimes it immediately shutdowns despite the fact that there was about 20% left. Unfortunately, i think it is almost impossible to find a new battery :(

In addition I wanted to say that this rom is very smooth, and all works well. I'm always wondering why do you still make new roms for this phone? Is it your hobby?)
[Nexus 4 Original Android Development] nitin.chobhe:
Lol, that is blast from the past :laugh:

Definitely the battery to be blamed.

I build because this was my first android phone (I still have it though with (almost) not working display) and I love the fact that a device from 2012 can still run latest Android version smoothly :cowboy: And there are users who still use this phone (although the number is low)...

Nitin
[Nexus 4 Original Android Development] ze7zez:
battery replacement

Think positive.

I found over 100 offers on my local online sales site.

They are also on amazon and anywhere.

You buy and should work for at least half a year.
[Nexus 4 Original Android Development] Seb147:
Hello,

Thanks for your ROM, I flashed my old N4 to give it to my son, and it works great!

However, I wanted to install "Family Link", and the app crashed during the last step of the setup.

I get the stacktrace with adb logcat

I flashed the open_gapps-arm-10.0-pico-20200324.zip just after flashing your ROM, I don't know if it can be the cause of the problem...
[Nexus 4 Original Android Development] Milan P.:
Adaptive brightness doesn't seem to work for me.
[Nexus 4 Original Android Development] wizmart:
Not sure NFC is working, tried 3 times yesterday using my usual bank, got msg device not recognized as payment card. Reinstalled the mobile bank card no difference... Any idea, any one doing NFC transactions ?
[Nexus 4 Original Android Development] nitin.chobhe:
I see similar crash here; I don't know the reason for this crash. Does it work on any other ROM?

Yes, looks like it is not working. I'll check this.

I can't test with cards - but I tried Android beam and it vibrates and opens the sharing dialog. So it seems to be working.

Nitin
[Nexus 4 Original Android Development] Seb147:
It was on stock ROM before, and the app was not compatible, so I didn't test.

I have seen the report you mention, and the only answer is : https://xdaforums.com/showpost.php?p=81366421&postcount=73 but I don't understand what he wanted to say :/

I didn't try another ROM no, not yet.
[Nexus 4 Original Android Development] rayman95:
thank's for your work...incredible android 10 on a so oldphone...PA 10 on my note 3...I like old good goodies...:D