yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D@rekills4:
Hello [MENTION=8556932]hackintosh5[/MENTION],

I am one the 20180515 build (don't know if the same issue persists in the 20180523 build).

After about 3 days of uptime, the phone starts lagging each time and background apps start closing.

Usually I restarted the phone but this problem started occurring each time after 3 days of up time.

I checked the RAM usage and saw the kernel's RAM usage was 1.9 GB.

So I recorded a logcat of about two minutes and attached it.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] alaindupus:
Same problem here.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
No, this is a different issue, it is a kernel memory leak. We can do nothing to fix it, except reboot the phone often. At least, I cannot fix it; I don't know where it is happening. A logcat doesn't help
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D@rekills4:
Is there any other method to trace the root of this memory leak?

Because apart from this bug the ROM is very much stable with barely any bugs.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Web_Phone:
Is there any prediction of when the video recording will work? especially in applications like WhatsApp? Sorry about my English...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D@rekills4:
Video recording is working fine for me in the stock LineageOS camera app. Doesn't work in the WhatsApp camera module but you can always record videos via the camera app and then upload them on WhatsApp.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Not that I know...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Web_Phone:
What is missing so that the bug in the recording of the Rear Camera can be fixed? The Official Oreo by Motorola or something from Lineage? Speaking of which, great work with ROM friend! [MENTION=8556932]hackintosh5[/MENTION]
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D@rekills4:
The website is down?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Yes; I can still produce builds and have the last two locally, but have cancelled the domain.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D@rekills4:
Oh, I see.

If possible, could you upload the latest build you have got?

I wanted to flash the phone, might as well flash the newest build. If I am correct, you are the only person who has build 64-bit LineageOS for the G4 Plus right?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
I just realized that you are right, everyone else has switched to 32. I'll upload the build when I get home (2 days at least).

If anyone has a server with DDNS or Static IP lying around, I can easily change my scripts to work for it, if, of course, said person is willing.

All I need is FTP to a subdirectory of apache2 site.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D@rekills4:
No worries, take your time.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] boredherobrine13:
Hey, (not to rush you), but any idea when you'll have a build uploaded? Or is there a source out somewhere on github that I can download and compile a build from (if so, how do i do that - I do have decent comp resources and lots of RAM for a build, but i've never actually had to do one myself before).
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] virajnimbalkar:
Yes, If you share document's would be helpful, I am Java developer not Android, will explorer n try to see can do something,

Anyway Thanks for build, and I don't see any update since 18th may 2018. I am attaching screen shot for reference, and want to know, is this your last build? any road map, please share so.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Sure, all needed repos are on my GitHub profile penn5. The repo you need is athene-manifest, it has instructions in the readme.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
I'll see if I can do a build today, but bear in mind that I've only got 15gb on GDrive, and I've used most of it. I've got a great script that uploads the builds to a server, and if anyone wants to either donate a part of a server (all I need is FTP to a part of it) or use the script themselves, PM me.

Edit: I've built a new build, with latest lineage changes. However, I have nowhere to upload.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] sgspluss:
Why you dont use basketbuild, they offers ftp access if this is the only problem?

Did you test the build, because i got some problems with bootlooping due to changes from lineage... Just to be sure that you dont will have this problems also.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
I've not tested because my g4 has no screen; the inverter is broken.

I'm not using basketbuild unless they provide a website too; but maybe I can use GitHub.io site for free. That wouldn't work if they don't use apache2 though
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Double post
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] randombirdthough:
I'm not sure if you're still developing this rom, but this website ( https://freedns.afraid.org/ ) offers free domains. You would have to be hosting your own server and they have a service you can run on the server that automatically sends updates to your domain with your ip address in case you have a dynamic ip assigned by your isp. If you're willing to go through all of the configuration, I'm sure it could work without having to pay for anything (granted you already have all of the materials needed :p)

Also, I have an extra screen from one of the moto g4's my girlfriend has broken over the years ( my current one is a frankenphone comprised of 2 of her old ones ). The screen isn't in the best condition but I could send it to you if it'll help your development. The assembly is missing a battery since the motherboard that was originally connected had some crazy overheating issues but it'll still provide a display and a touch interface ( possibly with some glass getting embedded in your thumbs haha). Shoot me a PM if you're interested!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
I have Dynu, which is also a DynDNS service, but I can't really host it myself... Sorry.

I bought a new screen, but the backlight is dead, requiring a new MoBo. All the other components are fine, so if the problem with overheating was the battery not the MoBo, I can happily accept! Bear in mind I'm not really willing to pay for it though, as I have got a new phone... Sorry.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
I think my latest build supports video recording. No need to change the device tree, it was fixed in lineage upstream, so all new builds will have it. I cant upload for at least 2 weeks, but everyone else, feel free to build from my sources
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] alaindupus:
Well, i tried it and worked, but just the first time after you flash an update. It was an strange bug since 2 months ago, but I'm not completely sure, maybe this time is working well but I did something wrong. Thanks, dev!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Hang on, I don't understand.

What is the bug and what is it that works? Also, what did you flash?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] alaindupus:
I'm sorry, I was testing the camera with a build with lastest LineageOS sources (the latest build, the ROM, it was what I flashed). After a reboot, the videocamera worked again. I can confirm that the videocamera is working, but sometimes the default app of camera can't connect to camera services after the first taken video, and you have to reboot the phone to get videocamera working again (this is great, since we really have videocamera).
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Well, at least it's a start! If someone send a log of the connection failure, I might be able to fix it. However, cameras are the trickiest parts of ROMs, up there with VoLTE.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] alaindupus:
https://drive.google.com/file/d/1R05wS5yHYKRAEEikrswFEkEGU18fQK0N/view?usp=drivesdk

Hope this log has all you need. Thanks!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Nope, sorry, I need the error log from clicking 'report' in camera error. I thought it would be in the logcat, but it's not. Sorry!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] alaindupus:
I tried to get the log, haha, but something strange happened ?? videocamera is working without any problem (well, I think just the stabilization is not working, but bah). I took 5 videos of 30 seconds without problems, so... I don't know what happened... If I get the error again, I'll send the log! ?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D@rekills4:
Hey man, you still are the only person who built 64 bit LineageOS for athene.

The current versions are stable enough to be a final build.

If you have the free time, would it be possible for your to do one last build?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
I literally just wiped the sources off my PC. I'm now collaborating with [MENTION=7443804]Lyudmila[/MENTION] to build treble for G4. Sorry mate!

Edit: but when it's done you can use phh-treble gsi 64 bit.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D@rekills4:
Haha, no worries. I will use some other ROM. I am not using this phone as a daily driver anyways, just as a multimedia phone lying in the house. I will use some other ROM.

Good luck with your treble project. :)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] wjphillips:
Atomic OS is 64bit for Moto G4 athene.

I just switched to Atomic OS and so far it the best ROM I've used on my Moto G4 athene. I previously tried Lineage OS 14.1 32 bit (it worked, but would often randomly reboot itself). Then I upgraded to Lineage OS 15.1 64 bit unofficial (it worked better! But I had problems with the camera and battery life was not too good but otherwise it worked ok). With Atomic OS 64 bit PLASMA for athene (Oreo 8.1), all those issues are gone and phone runs fast.

Google: 'site:xda-developers.com atomic os athene' for details.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] MoseMister:
So this project is dead for the time being?

P.S would love treble for Moto G4
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Working on it! github.com/TeamSoviet (Don't ask me why it's called that, I didn't choose it)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D@rekills4:
In Soviet Russia, name chooses you.

Anyway, thank you for resurrecting this project, I don't know why but a 64 bit LineageOS seems better than a 32 bit one.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
I'm not in Russia. I'm in the opposite, but [MENTION=7443804]Lyudmila[/MENTION]17 chose the name
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Tarun Marlecha:
Recently flashed LOS 15. Heavy battery draining issues cropping up for me too.

---------- Post added at 11:15 PM ---------- Previous post was at 10:58 PM ----------

Hi. I don't really know much. Recently flashed Lineage OS 15.1

Ever since then the following issues:

1. Fast battery drain as compared to previous stock android rom

2. Location isnt working

3. Mobile Data (4G) isnt working.

Help a brother out! Thanks (:
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
All three of them work for me... (Or did before the screen broke)

Did you remember to wipe data and cache?

'heavy' battery drainage depends on what you call heavy. Most g4's have not got any battery life left on any ROM by now, but the memory leak does impact battery life a bit.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] sgspluss:
I dont think thats working, since in original thread by nikit and also in github nothing to find about thats fixed.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] 999sian:
The Photo Camera seems to work fine with out the green photos evet other one but no the Video Camera does not work
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Iamanel:
I remember that chop chop was working with nikit's 15.0 lineage build. I wonder what differs so much between 15.0 and 15.1 that the fix can't be ported (maybe it can?)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] DECHTECH:
Chop-chop is fixed in the latest AICP nightlies (from 10th of march AFAIK).

If required you can use the fix they have there.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Thanks! For reference, this is the commit https://github.com/AICP/device_motorola_athene/commit/9c4dd70a0d71586aecbd851d94086da9bbfd3a92

EDIT: actually, I think we should apply the most recent 2 out of this set of commits: https://github.com/AICP/device_motorola_athene/commits?author=golden-guy

because they are both flash-related and not in the Teambutter tree.

Unfortunately I have no access to my build PC today, at least not until 3 oclock, so I can't cherry-pick the patch...:(
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] niyas90:
[MENTION=8556932]hackintosh5[/MENTION]

Thanks for the update. ROM is smooth and working well apart from the known bugs.

Safety net not passing in latest magisk.

I know there is a fix as a magisk module. But

Safety net is temporarily fixed latest aicp & RR.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Blueman1990:
[MENTION=8556932]hackintosh5[/MENTION] can you fix memory leak problem in oreo 64bit so many user face this issue in 2GBRAM ? :)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] corlatemanuel:
If a solution would be known, don't you think that the majority of the ROMs wouldn't be encountering this problem?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] corlatemanuel:
Hey [MENTION=8556932]hackintosh5[/MENTION], for my builds (which I am not currently sharing since there is a problem with the settings, check the screenshots) the Lineage SDK level was bumped to Llama (9) around yesterday evening, could you please check that in your next build?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Ayan Uchiha Choudhury:
Flash frostbite kernel. Users reported it helps a lil
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] sgspluss:
[MENTION=6158043]Nikit[/MENTION] pushed some changes in kernel while ago, this should helps a bit. Maybe there are some other leaks too, but it need time to find and fix them.

Just let them time :)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Well said, but I'm sure Nikit would appreciate it if you didn't mention, as this causes a notification (I have 18 notis already after ~1day of having a thread; metions just clutter things up)

EDIT: and if these changes were made since Saturday, then they are already in this build:)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Really? In Nikit's build they were Guava (7) afaik, which is part of the reason I built this! Could you send me the commit link, as I did sync up before I started the build last night. When I get the sepolicy to build, we will have a build with all source sync and less avc: denied.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] corlatemanuel:
Well I made a build earlier that day and the SDK level was Hackberry (8) and, in the evening, I made another build (I did sync the repo in the meantime) and it had the SDK level bumped up to Llama (9). I did a google search and it appears that it's from the LOS source.

Anyways, I'll share the first "fully usable" build when I have the time to do so. It is 1 commit ahead of the LOS source (the commit that fixes the Substratum problem caused by the March security patch) and 3 commits ahead of Nikit's device tree (the 3 commits that you mentioned, the ones that fix Chop-Chop).

Would it be okay if I share them on this thread since they are nearly identical? I really don't think a separate thread would be necessary as it would cause clutter to the development thread.

Edit: Here's something about LineageSDK: https://wiki.lineageos.org/sdk/api-versions.html
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] sgspluss:
Haha sure didnt thought about it, because i've deactivate notification, so sorry about this.

Hmmm last commit are +15 days in teambutter git, so dont know if there are any new things.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Technically you should send this on another thread, but who cares?. I will apply the patches tomorrow, or as soon as I get to my PC.

Edit: the link was useful, as I only read the version of that page backdated from cm, which had old info.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] abhi212b:
I understood nothing after reading all 4 pages of the thread, :p but i really want to thank you guys, for working so hard on this device !!!

I'd love to help, the Only issue is, I can only make time on weekends!! Let me know if i can help you get logs! :)

And frostbitten does help in keeping heat and battery normal! I am using it with RR 14.03 version!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Does anyone have experience on Android 8 sepolicy. It looks like tons of namespaces have been deleted since 7.1, which is causing build errors (devtree refers to these namespaces, which don't exist)

E.g. debuggerd NS is gone, and only references in aosp are to debuggerd_prop, which is irrelevant. I am currently just commenting out any line that causes build fail. It was going well until my dad turned off my pc (which I was accessing through vnc+vpn from school)

https://android.googlesource.com/pl...+/cb3eb4eef9733bbde2951a2a774392d0c8acc9fe^!/ is the commit where debuggerd got removed, it seems. I guess most of these things just need to be removed from the devtree.

Btw ccache is up and running, builds should take less than 1 hour to complete now!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] sgspluss:
Don't know if there difference in sepolicy between 32 and 64bit, but maybe you can talk to [MENTION=5473651]golden-guy[/MENTION] since he seems to fix sepolicy in his rom. Just a thought...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Well from what I found, these policies just got made private, which means the devtree can't access it. I'll just build without the allowment options until all denials are precise enough to be allowed.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Itemt:
https://androidfilehost.com/?fid=746010030569962603

Bro, ¿is that build yours?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Iamanel:
Thanks for the effort bro! Long live Athene!

---------- Post added at 10:58 PM ---------- Previous post was at 10:55 PM ----------

It's [MENTION=6813266]corlatemanuel[/MENTION] 's, maybe you should get his permission before sharing
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] sgspluss:
Please read one page backward, there he got his permission.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Sorry people, it looks like I fried my build PC. I don't have any money for a new one (i'm still at school) so I will ask my dad if i can put my HHD in his PC. However, if I can't, I'll see if I can recover the data with my laptop. My old teacher is really into coding, and has offered to give me an original pixelbook with i5 and 8gb (FOR FREE!!!), which is well enough to build android, and is actually better than my PC! However, he needs it until July, so I will just try to recreate my devicetree changes on github. I don't know what is failing, because I can't get into linux for long enough to read /var/log/syslog. I did have issues with the CPU thermals, so I reduced the voltage (the bios was setting it wrong) but I suspect that the real issue is in the CPU voltage regulation units. All the parts are reused from my dad's old parts, but the CPU is compatible with the motherboard. The BIOS updater cannot read USB drives, so I think I have no hope for this PC anymore. The worst thing is that I had actually got the sepolicy to build, and it was just compiling the system! I don't want any donations though, as I don't have PP or BTC accounts. Also it feels to me like if people donate, then I am obliged to continue working on this project, which I do want to do, but cannot really.

For info on what I did, just see the information in my edit a few posts ago.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Ayan Uchiha Choudhury:
oh my god this is actually very sad indeed. there is no need. get yourself a machine and everything first. and then think about these. i would have asked you to help be if you could in any way so that i can continue your work but my machine constraints(i3 with 8 gigs of ram only). so i hope someone else carries on the good work and you need not think about it any more and work only on fixing the machine!! :) these things always come secondary.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
I had only 8gb with ancient asus mobo and ancient amd cpu. i3 should be pretty fast. The important thing is the storage. If you have ~250GB then follow the setup instructions https://github.com/TeamButter/local_manifests/blob/lineage-15.1/athene.md but on the google page linked there, DONT RUN

repo sync

. instead run

repo sync --no-tags -cqj8

for faster sync taking less disk space. make sure you have a temperature monitor installed!. then enable ccache

export USE_CCACHE=1

then

. build/envsetup.sh;breakfast lineage_athene-userdebug;lunch lineage_athene-userdebug;mka bacon

and eventually you will get a green line saying the location of the zip file. Now you are ready to edit device/motorola/athene/BoardConfig.mk. find the line

#SELinux

in the file and uncomment the two lines following it. Then run mka bacon again. After around 10 minutes an error will come. It will say something about unmet kernel govenor dependencies. Ignore that message; look above this error and you will see the SELinux error (error from checkpolicy). It will have a file and line number. navigate to this file (located in device/motorola/athene/sepolicy) then comment out the offending line and rerun

mka bacon

. New errors will show; do the same for them. Eventually, when it starts to build, your CPU usage will max out. now open your temperature monitor and make sure they don't go above the `high` temp. They will probably go to around 3degrees less that this. watch the temperatures for around half an hour (read a book or drink coffee, etc, glance at the screen to make sure no overheat). You may need to setup bios to max out fans at high cpu. Also use

cpu-power frequency-info

to check your cpu freq. try to max this setting; the build will be faster, but if it causes overheat then reduce this setting. when build finishes then go to device/motorola/athene/sepolicy and add the lines to file_contexts that I wrote in #41. then build again. there should be no errors; if there are, PM me. Now install the zip, reboot twice and get logcats. send the logcats and i'll convert them to revised versions of sepolicy which will match with the new file_contexts. Feel free to post your builds here, or start a new thread. However, it would be great if we could have some kind of community project where everyone develops and builds.:laugh::victory:

I hope you build successfully!:good::fingers-crossed:
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] jer194:
That's quite useful information :good: !

Maybe you could open a thread on its own, for this guide.

There are many of those around already (I think), but this seems to be your current experience,

and more people here might succeed in building ROMs for MG4 ...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] hackintosh5:
Build PC Fixed

Well I messed around in the bios when I got home (note to the newbies: when your computer breaks, DONT mess around in the bios!:D) and guess what!!! It works!!! Well it's building now with the chassis case open (for ventilation). To those who don't usually open their chassis - make sure you lock your cat(s)/dog(s) out first!!:). I'm just repo-syncing before a build. Sadly it looks like my ccache is corrupted, so I have to delete it all and rebuild from scratch.:crying::(