yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] alponso:
Yes, phone is in fastboot mode. My laptop running Windows 10 x64. I have latest platform tools and usb driver which is work on my Nexus 6.

When my nexus 4 connected to usb port 2.0 nothing's happen but if connected to usb port 3.0 it listed in device manager as "Unknown USB Device (Device Descriptor Request Failed)" so I couldn't update the driver by manually browse to usb driver folder.
[Nexus 4 Android Development] Benetti Concórdia BR:
Even here

It must be something to the account up within backup and reset. She's not there even logged in to gmail account. I will try to log to see if it solves.
[Nexus 4 Android Development] xenyz:
I'm sorry, I'm just not that familiar with Windows. I hope it isn't your USB port on the Nexus 4 that is broken though. Do you still happen to have TWRP custom recovery installed?
[Nexus 4 Android Development] alponso:
I already replaced the usb flex (daughter board). May be this also come with usb port defect, will return this and find another one.

Unfortunately the phone is in stock recovery installed.

I've followed anything suggested from the others thread but still no luck.

Is this rom usb fast charge enabled kernel? I've read that someone found out that caused their phone not detected on computer. Since my phone is not rooted, I can't install trickster mode kernel settings to see it.
[Nexus 4 Android Development] xenyz:
No, stock kernel doesn't offer USB fast charge. And I'm guessing that if you enable ADB debugging in the ROM your computer can't connect via ADB either?

If you can, try to find another PC to try it with, or completely uninstall all Android platform tools and drivers and just try with Minimal ADB & Fastboot.
[Nexus 4 Android Development] alponso:
Glad you enlighten me about the usb fast charge.

The phone can't connect either with usb debugging enabled.

This rom actually runs just fine but I am looking to move to the latest build.
[Nexus 4 Android Development] frede_sch:
[MENTION=6117313]ganachoco[/MENTION] I think it was a problem with my computer/cable/OS/fastboot. I just tried on my other notebook and seems to have worked:

$ fastboot -w update occam-img-20151029-1.zip
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
--------------------------------------------
Bootloader Version...: MAKOZ30f
Baseband Version.....: M9615A-CEFWMAZM-2.0.1701.07
Serial Number........: 04c62b9aa11b4e4a
--------------------------------------------
checking product...
OKAY [ 0.002s]
sending 'boot' (6624 KB)...
OKAY [ 0.212s]
writing 'boot'...
OKAY [ 0.338s]
sending 'recovery' (7266 KB)...
OKAY [ 0.241s]
writing 'recovery'...
OKAY [ 0.400s]
erasing 'system'...
OKAY [ 0.802s]
sending 'system' (843346 KB)...
OKAY [ 28.345s]
writing 'system'...
OKAY [ 46.569s]
erasing 'userdata'...
OKAY [ 0.362s]
formatting 'userdata' partition...
Creating filesystem with parameters:
Size: 6189744128
Block size: 4096
Blocks per group: 32768
Inodes per group: 8048
Inode size: 256
Journal blocks: 23612
Label:
Blocks: 1511168
Block groups: 47
Reserved block group size: 375
Created filesystem with 11/378256 inodes and 50366/1511168 blocks
sending 'userdata' (98413 KB)...
writing 'userdata'...
OKAY [ 8.458s]
erasing 'cache'...
OKAY [ 0.030s]
formatting 'cache' partition...
Creating filesystem with parameters:
Size: 587202560
Block size: 4096
Blocks per group: 32768
Inodes per group: 7168
Inode size: 256
Journal blocks: 2240
Label:
Blocks: 143360
Block groups: 5
Reserved block group size: 39
Created filesystem with 11/35840 inodes and 4616/143360 blocks
sending 'cache' (10984 KB)...
writing 'cache'...
OKAY [ 0.959s]
rebooting...

finished. total time: 86.726s
[Nexus 4 Android Development] Leygion:
Hi, first thank you for your great job for our Nexus 4 !

It works like a charm, after a factory reset, as the home button did not work and the notification bar did not expand...

But now I just enjoy Android 6.0 !

Btw I dont find the face unlock in the parameters -> security...
[Nexus 4 Android Development] Willem1981:
This is a great ROM.

Battery life is excellent. It lasts longer then the oginal lollipop version.
[Nexus 4 Android Development] jippers:
I'm using the 1029-1 build and I'm seeing these "in building" location errors in google maps. Actually when I first open google maps, it does show my accurate location, but in a second or two my accuracy radius will jump to tens of kilometers and my blue dot will be some distance away from where I am. GPS usage outdoors is fine though.

Other than this bug, great work!
[Nexus 4 Android Development] matheusvilela:
This happens to me too, when location mode is set to 'High accuracy'. If I change it to 'Battery saving', i.e., using just networks to determine location, it works fine.

Rebooting the phone fixes it, but just for some time. Some hours later, it begins happening again.
[Nexus 4 Android Development] jippers:
Well look at that, you're right. I use the power widget and toggle it to "half on" and i get a proper location.
[Nexus 4 Android Development] matheusvilela:
I would guess the problem is that GPS is having priority over wi-fi network to determine the location. As the phone can't really lock GPS indoors, it gives us that poor location accuracy.
[Nexus 4 Android Development] ganachoco:
I'm sorry.

I don't want to have any relation with rooting methods.

Nexus 5x, 6p was released with same features(MDB08I, MDB08K), but not pushed their sources to AOSP yet.

I'll remove my modification after google push their sources.

And I have no plan to update current implementation.
[Nexus 4 Android Development] ganachoco:
I put that feature on today's release.
[Nexus 4 Android Development] Leygion:
Great I will update it later today !

Will test LTE this afternoon. Is it working with your rom ?
[Nexus 4 Android Development] ganachoco:
I turned on LTE related configuration already.

But I cannot test LTE feature, because of LTE band 4 is not supported in my region.
[Nexus 4 Android Development] Leygion:
I will report what happened with LTE !
[Nexus 4 Android Development] ganachoco:
Before report, You must check following items.

Your carrier must support LTE band 4.

You can check at Here

Radio firmware must replace to LTE supported.

You can refer radio firmwares at Here
[Nexus 4 Android Development] :
First off, I just want to say thank you for such an awesomely simple way to get Marshmallow on my Nexus 4. Now to report my findings. I was running stock Android 5.1.1 with latest security updates and ran the update command so it would not wipe my phone. Phone booted successfully but I had to go through the first boot setup process anyway despite it keeping my current apps and settings/preferences. After that, everything seemed to be ok. Later in the day (I installed 10-29-15-1 yesterday during lunch), I discovered that it did not have an APN selected and cellular data was turned off. I switched cellular data and put it on my correct AT&T APN. Only issue remaining for me at this moment is I appear to not be able to receive MMS messages. I am using the Google Messenger app and have not yet tried Hangouts (doesnt this still have a bug that you cant get MMS anyway?) and I have not tried a factory reset yet as that involves lots of setting crap up again. I think that is the only issues I have had so far. Thank you again for creating such a simple method of getting Marshmallow on Nexus 4!
[Nexus 4 Android Development] Leygion:
No carriers using band 4 in France... So test ended even before it starts
[Nexus 4 Android Development] blacknikname:
[MENTION=6117313]ganachoco[/MENTION] all ok. woop woop, realy nice, only missing new google splash )))

now to test chainfire supersu 2.56...
[Nexus 4 Android Development] throrin19:
Is it possible to integrate the eap-sim ?
[Nexus 4 Android Development] davide@10:
Is it possible to add a sort of OTA support which makes it easier to update the rom? :)
[Nexus 4 Android Development] bledina:
I would like to thank [MENTION=6117313]ganachoco[/MENTION] for this rom. I updated my Nexus 4 without a problem directly from stock 5.1.1 and it worked flawlessly (had a problem with Waze at first but nothing a 'clear data' couldn't fix).

I have however reverted back to 5.1.1 because the notification sound for the "open wifi network/sign in network" is unbearable. Nothing can be done at the moment as it is a Marshmallow feature but when I commute, I pass by dozens of open wifi networks and I get a notification sound every single time which drives me crazy! I know I can disable notification for open networks, but then I don't know when there is one when I actually need one.
[Nexus 4 Android Development] xenyz:
The only thing I can think of is if your build is old enough for a root exploit like KingRoot to work. If you get root, use Flashify to install TWRP and I'll make a TWRP backup of the July release you can restore.
[Nexus 4 Android Development] TechnicsKuzya:
I try full reset and Google Play Services stopped when android at the first welcome screen (language setup without gmail logged and internet connect), try repeat connect-disconnect the charger cable 1-4 times and get message with error.
[Nexus 4 Android Development] Benetti Cdia:
ok, but the point is that there is no account to backup, as much as I have already logged in with my Gmail account. I've tried to clear data, force stop the Play Services app and nothing. Any suggestions to solve this? Does Ganadist have any solutions?
[Nexus 4 Android Development] sidnoit22:
Just proceed with the setup and update your Play Service from Play Store after that it will be alright
[Nexus 4 Android Development] TechnicsKuzya:
I try this first, same error... Now I install previous release Fake Nexus Rom and same latest version of Google Play Services - no that problem.
[Nexus 4 Android Development] sidnoit22:
it worked for me. sad.
[Nexus 4 Android Development] TechnicsKuzya:
What's version of Google Play Services!? 9.2.56 (436-124593566)!? Did you have 8GB or 16GB Nexus 4??
[Nexus 4 Android Development] TechnicsKuzya:
I reinstall latest ROM (clean install) today - same error with Google Play Services (version 9.2.56 (436-124593566)). It stopped when connect USB cable (battery charge less tha 90%, Wi-Fi connected). Sad....

Try install updated Play Services (9.3.78 version) - same error.... Now I try install Google Photo (I`m disable stub since first boot).

P. S. Yeah!!! Now I havn`t error - testing more....
[Nexus 4 Android Development] TechnicsKuzya:
I confirm that after Google Photo (stub) enable and install latest version from Play Store - error gone... In the previous release I`m disabled Google Photo (not stub) without problems and errors.
[Nexus 4 Android Development] nplatis:
Is anyone having bluetooth connectivity problems?

I have two (different model) Plantronics headsets and both exhibit the same behavior: they connect fine but after 10-30 seconds they disconnect, then (almost) immediately (most of the time) connect again, then disconnect, and so on, and so on. It is easy to notice because they have voice feedback, so I keep hearing "Phone 1 disconnected" ... "Phone 1 connected". In some (very rare) occasions they may work for hours without any disconnection. In some (not so rare) occasions they stop re-connecting after some time and I need to turn off bluetooth and back on (only to have the same problem again).

I have tried deleting them from bluetooth settings and pairing again, rebooting the phone, nothing seems to remedy the situation. Both headsets work without disconnections on other Android phones.

I have been using this ROM for a long time without any modifications and without any other problems. I have been flashing versions without wiping the phone for some time now.
[Nexus 4 Android Development] Ganondorf4:
Unclear feature

Does this mean that the ROM can't be rooted?
[Nexus 4 Android Development] bledina:
it can be, you just need to flash supersu from recovery. It just doesn't come "out of the box" like many other roms.
[Nexus 4 Android Development] Ganondorf4:
Excellent, that's what I thought. Thanks for the confirmation.
[Nexus 4 Android Development] grindv1k:
Are there any ROMs like this one but where you can choose Gapps yourself?

Specifically looking for NO ROOT (so I can use banking apps) and I also need Sim Toolkit. This ROM works but I do not like all the Google bloat-apps...

Paranoid Android fits except it is missing Sim Toolkit sadly.

I tried things like CM and Pure Nexus without getting SuperSU but they all report device as being rooted.
[Nexus 4 Android Development] sidnoit22:
You can disable the bloat.
[Nexus 4 Android Development] grindv1k:
Thanks for the reply.

How can I do this without root? I mean specifically apps like Google+ and Play Newsstand etc etc.
[Nexus 4 Android Development] xenyz:
Just use fastboot boot twrp.img then Mount - System, Advanced - File Manager, and start deleting dirs from /system/app.

[MENTION=6117313]ganachoco[/MENTION] can you check out Stagefright Detector, it's showing vulnerabilities from July on latest :/
[Nexus 4 Android Development] Benetti Concórdia BR:
August construction not yet have an account backup. I clean install. The rest of the construction is smooth and stable.
[Nexus 4 Android Development] blacknikname:
Ha ha ha)) rom from 2 August, installed on 3 August but, most interesting security patch is from 5 August.... Future Rom
[Nexus 4 Android Development] xenyz:
Looks like it's all good for August now:

Thanks again for the quick updates, month after month.
[Nexus 4 Android Development] johniem:
The rom is really great but i have no video playback on my device with any browser, youtube app or any other video playback app.
[Nexus 4 Android Development] blacknikname:
Dirty flash all ok, video, YouTube, Chrome works
[Nexus 4 Android Development] jer_ying_fd:
Hi [MENTION=6117313]ganachoco[/MENTION], I'm trying to build a kernel and is currently applying patches detailed on the first post. However, the link you provided for the 21st March update has since been updated. Is it possible if you can tell me the patches you applied to the kernel in that month? Thank you very much!
[Nexus 4 Android Development] ganachoco:
Here are kernel sources that I used.

And here are another WIP version that includes aug security patches from aosp.

But I cannot be sure that is stable. :(
[Nexus 4 Android Development] jer_ying_fd:
Thx a lot! I'm only a user learning to how to build kernel and tonight I will try and build and help you test, although I did recognise that many of those patches are found in other custom kernels so I think it should be alright :)

Update: Built without errors but somehow can't boot and I dunno what went wrong :\
[Nexus 4 Android Development] coikutebmt:
[MENTION=6117313]ganachoco[/MENTION] I have a problem with ringtones, sounds small
[Nexus 4 Android Development] webg3brasil:
[MENTION=6117313]ganachoco[/MENTION] Streaming to Chromecast causes slow system and freeze the screen. Please can check it? Thank you.
[Nexus 4 Android Development] webg3brasil:
Fixed update with Adreno Drivers July 2016 (Nexus 7)

Thank you very much
[Nexus 4 Android Development] Benetti Cdia:
Hello Ganachoco!

After installing the construction of August, I got this return: target didn't reporte max-download-size

This is a problem? What can I do?

Note: the installation takes place normally. I can use the rom normally. Only I'm a concern that there's something wrong.
[Nexus 4 Android Development] blacknikname:
maybe fastboot its outdated?
[Nexus 4 Android Development] juancmb:
Off-Topic.

Hello ganocho.

I am trying to install your Stub GApps on my Motorola Moto G (1st generation) with Android 6.0.1 (CyanogenMod 13), but when i put them into /system/app/ they are not installed, also when i try to install one of them as a normal apk i get this:

This is a part from a log taked when trying to install the Translate Stub app as a normal apk:

So i decided to generate my own Stubs with your 'generate_stub' script with Ubuntu 16.04.1 amd64 and i already have installed python2.7 and Androguard, however i get this:

So i don't know what can i do.

Yes i know, this ROM is not for Moto G and this is not the Moto G subforum, but i will be greatful for your help.

Thanks for your attention.
[Nexus 4 Android Development] TheManii:
That's actually intended, there's a patch to basically completely ignore the signatures of apks placed in /system:0002-pm-do-not-verify-system-apps-signatures.patch

The reason the stub apks you generated dont work is because they prolly use the original google signature files. They're no longer valid because the apk contents have changed, but match the signatures of the updated apks so that play store/package manager will update them without issue.

It's technically a huge security issue that you can modify system apks, were it not for the fact that: if you can modify the system apks to begin with, you can simply place an arbitrary apk into system anyway.

A couple of the stubs already exist as actual stub apks made directly by google that do exactly the same thing, you can pull them from nexus roms or other oem roms. Main issue is that not every stub apk we use in fake nexus exists as an official stub apk made by google.

If you want to use the exact same stub apks as in fake nexus: you will need to apply the above patch to your rom at the source code level, or use xposed to do the same thing while live. If you use the latter you must enable it in xposed before installing the apks into /system.

From a security perspective, I'd rather be using the official stub apks and whitelist the leftover generated stub apks for the ignoring of apk signatures, but that's a fair amount of work for no real functional change.
[Nexus 4 Android Development] juancmb:
Thanks for your reply. :laugh: :good:
[Nexus 4 Android Development] jer_ying_fd:
Does anyone have the problem that backups cannot be restored while setting up after clean flash? I tried numerous AOSP roms and they worked but August update didn't for some reason. Any help is appreciated, thx!
[Nexus 4 Android Development] TheManii:
Can anyone confirm that android pay does not work/safetynet does not pass?

I don't believe I saw anyone mention android pay in the past.

I checked with with both root and xposed disabled, and then root and xposed uninstalled and it still cannot pass safetynet. Safetynet passes on my N7 with root and xposed installed (but root temporarily disabled), whereas I cannot get it to pass at all on fake nexus. Fakenexus seems to pass safetynet, but fails on the CTS part according to SafetyNet Helper Sample.

While I'm no expert on passing the CTS, I think I saw ganachoco mention that the rom can pass CTS. But that one of the first things the CTS documents mention is that a rom must be signed as a user/release-keys build before starting.

Is this the only thing standing between us and passing the cts? As (at least previous versions of) safetynet does check against a list of blacklisted certificates (which I would assume the generic development key is included in).

The few patches in fakenexus (seemingly) shouldnt affect cts, the most obvious thing that differs between fakenexus and any arbitrary official rom (nexus, generic aosp, or oem customized) is that it isnt signed with a private key as a release-keys build.

Edit: I just checked and the rom IS in fact signed with a different key then the default development keys, the rom simply states that it's still dev-keys though.

Regardless of actually passing cts, is there any interest in signing fake nexus with a proper private key anyway? It's something all official roms do and going through the motions of it would make it closer to a resembling an official rom. You could simply make a new private key and share it with the repo if you desired, or keep it private and have a folder to place it into like the gapp stub generator. Previous builds moved from usereng/dev-keys to user/dev-keys afterall, going to user/release-keys is the logical final step.

Besides the inclusion of the dynamically generated gapp stubs, fakenexus is as reasonably close to nexus/aosp as you can reasonably get, and that's why I like it so much.
[Nexus 4 Android Development] xenyz:
Can confirm backup service is missing in August release:

There is no chance of a third party ROM passing CTS/SafetyNet
[Nexus 4 Android Development] TheManii:
That really isnt saying much, as most custom roms effectively consider passing CTS a bad thing, since:

Half the release threads on any arbitrary device's subforums are pre-rooted/deodexed stock roms (which pretty much means "it's stock every way except for passing safetynet")

Much of the other half are custom roms signed with the default dev keys (which means you could easily hijack a system with a rogue apk impersonating one of the system apks if you did a targeted attack)

Devices with custom roms ahead of it's stock counterparts (ie 6.0 when the stock roms only go up to 4.4) might have real CTS failures due to hardware drivers that require too much work to fix (ie buggy cameras and the like that can't be fixed/must be worked around)

Finally, it's not a complete whitelisted hash of your system, since you can definitely modify both system and boot and still pass (xposed and su can situationally pass safetynet if installed, and inactive afterall), IF you're modifying specific files that arnt being monitored.

Back on point, actually this rom IS signed with a key different from the default dev key at least. I had simply assumed that this rom didnt since build.prop still reports user/dev-keys, my question still stands: do we pass the basic self-test CTS suite? The fact that this rom's package manager/PM ignores signatures on system apks might be an issue still, even though this would be more difficult to meaningfully exploit as an attacker.
[Nexus 4 Android Development] xenyz:
You missed the critical part where CTS checks signatures. Nobody can sign a ROM that will pass CTS, as nobody (should) have Google's private (release) key. Read the rest of that thread for more replies from the Google engineer.