yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] ThePiGuy:
Have you installed LG USB drivers. That's the first step. Also make sure android debugging is ticked in developer options. Then get the bootloader unlock code from LG and follow their steps to unlock the bootloader. From their, get the latest twrp from droid.binbash.it:8008/twrp. Any version will work, but try to go for one that matches the ROM you are installing e.g. O for Oreo, N for nougat. Then use fastboot boot [twrp file] to check it works, and then fastboot flash recovery [twrp file].

From there, you need to boot straight into recovery by performing "fastboot reboot", and once the screen goes blank, hold power and volume down until LG logo appears, then release power for a fraction of a second and then hold it down again without ever releasing the volume button. It will ask you if you want to factory reset - press yes twice and it will lead into twrp. Allow it to modify system files and then it is installed permanently.

Once in twrp, you can copy files literally by connecting your phone to your PC and dragging and dropping.

From there, wipe and flash the zip of your choice
[G4 Android Development] kessaras:
1st AOSCP parfait - test build

Slowly , because of my little free time, but steadily,

we are getting ready for Android Parfait AOSCP ;)
[G4 Android Development] IamRaC:
Sorry, when i try to flash your rom, TWRP notice like that ( Source: internet)

Please help me, my G4 is H815
[G4 Android Development] kinuris:
Oh yes. I knew the flashlight thing. Using the kessaras suggestion here.

About microG is trying to substitute Google services but respecting privacy. Open source. Alpha state. Big gains in battery and performance, they say. Something's workings, something's not. Regards

https://xdaforums.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616/amp/
[G4 Android Development] deltadiesel:
What is the point if this exactly? Don't feel like reading this all right now 4 am here
[G4 Android Development] kinuris:
Naaah. Sorry. I'm just asking if someone has tried it with this ROM, and get some real advantage. Forget it

Edit: because I'm having some problems with certain Google wakelocks. I will try to begin again with another clean install with next release and be more careful with what apps I install
[G4 Android Development] kessaras:
https://play.google.com/store/apps/details?id=com.giovannibozzano.wakeblock
[G4 Android Development] kinuris:
Yes. I have it as default. What is secure to block and what no? Knowledge is power, you know :svetius:
[G4 Android Development] kessaras:
hmm. will post screenshots later, much later tonight. i will show you which ones you can block without you lose any gapps function (im gapps maniac i use them all and still only have 1% drain durin night and 6h sot)
[G4 Android Development] kinuris:
See? You know. I'm getting -10% overnight. Thank you.
[G4 Android Development] kessaras:
lol thats not normal. 5% ok it would be normal for full gapps. but 10......

maybe you play a game or use a heavy app before letting the phone alone to relax and sleep ?

our screen drains a lot of mA and sometimes the battery measurement app is late to show this drain.

Better clean flash too in the meantime and tonight ill add scrnshots to see what to block too.
[G4 Android Development] kessaras:
I don't expect you to get those rates since you also need to have knowledge on how the apps and their triggers work, but I tribute this post to all those getting crazy with the battery drain.

Some advices:

Don't look at the battery and enjoy the phone.

Don't flash crap. Don't install mods coming from I don't where they come from.

Don't install 3rd party apps if you are not 100% sure that you need them.

Lastly , again, don't watch at the battery. The more you watch at it the more obsessed you become with it and you install 3rd party crap that promise you a result that's not even real.

The screenshots below are from my phone. I'm gapps maniac so I use them all, I have GPS always on and sync always on.

I like it when I take a photo, google backs it up immidiately.

I like it when I park my car to always be able to know where it is.

I like it when I go to the toilet , for google to know that I'm in the toilet.

I like it when I do a clean flash , google to restore everything just like it was 5 minutes ago , since I clean flash a lot here when I test new things. Not to mention these days I clean flashed a lot while testing encryption in TWRP.

Nlp wakelock only blocked for 6sec

And collector 6,5 sec because collector only takes the wakelock measurements.

All the others are fully blocked.

Only those I block since I want all gapps working and I still believe I have the biggest sot and battery life from you all. I only charge once per 2 days.

So stop being obsessed with the battery.

EDIT:

and no. i do not lower the cpu or gpu. i do not lower anything. kernel and settings are default
[G4 Android Development] Raiyan862:
Is there any hope for Android Oreo? Just asking. As only you guys are the hope.
[G4 Android Development] kinuris:
Thank you. oh, and I'm not using nothing strange, nor playing (well, a little clash royale:o), but not at night. I use 3 widgets, two from bussines calendar (refresh every hour, or manually) and a clock (advanced clock). Using Evie as launcher (it is suposed to be light)

So, these are all the wakelocks you are blocking. I mimic them. As I understand you aren't using anything like PowerNAP o ForceDoze (or Greenify), but you're using Xposed+Gravity and some substratum theme(s), that don't represent any waste in bat.

Edit: and lastpass.....

Some other Xposed module or app to know to get something near your battery life???

And, yes, great advices.
[G4 Android Development] tulen_kobi:
This heavily depends on how well the proprietary blobs for Nougat behave on Oreo. It might work but there will be most probably serious issues with it. The blobs use API system calls that can be different on the Oreo. So to make it work it is needed to make a module that translates these API calls for the Oreo. This is very difficult.
[G4 Android Development] kessaras:
No Xposed.

I flash nothing more than gapps and root.

I trust the fact that the os is Android. That's all.

I don't put flash light in the lockscreen. I just fixed the flashlight tile , 2nd post.

The only 3rd party apps I use are whatsapp , Viber , telegram, x-plore.

All gapps.

Nothing more. All the other are useless for me.

Android will doze by default the apps.

Also it will cache the unused apps.
[G4 Android Development] kinuris:
So this is going off topic, but I can't resist.... how do you get the clock centered in the status bar? And how do you put the flashlight icon in lock screen without xposed?

Edit: found how center the clock, but not the lock screen thing

---------- Post added at 02:46 PM ---------- Previous post was at 02:00 PM ----------

Found an app named tile extension for nougat that allows include flasligrh as a shortcut and the sync one in all the tiles
[G4 Android Development] nocio:
I know that you said that you used stock settings, but do you use your titan kernel or not?

And what theme do you use?

I really love my G4 but sometimes i wanna throw it at wall because i'm facing screen burn ins, and after i put device in sleep and leave it for about 30min, i cant see those icons/buttons burnt in the screen :)
[G4 Android Development] kessaras:
is there any chance to not use my kernel ? lol

theme is flux substratum and vivid for quick settings
[G4 Android Development] kessaras:
Changelog:

[01/11/17]

· IME switch broadcast | switch anytime

· Add frandom

· Use e/frandom for reseeding

· kgsl: Increase priority of RT thread

· DTS: Decrease BCL low battery threshold to 5%

· Bluetooth: vhci: purge unhandled skbs

· Blu_active: Less powersaving

· fstab: improve mount points

· camera_profiles.xml: Change to 60fps and 100% image quality
[G4 Android Development] kessaras:
I moved manifest to our Suicide-Squirrel org to init from there.

Changed a few Cypher official repos to my forks at our org. Now i can apply security patches myself.

Added security patch of October

https://source.android.com/security/bulletin/2017-10-01

So at the next update , security patch level is on 01-10-2017.
[G4 Android Development] kinuris:
Off topic: [MENTION=5461026]kessaras[/MENTION], whick gapps package do you recommend?
[G4 Android Development] kessaras:
depends on your needs. me i need them and use them all
[G4 Android Development] ThePiGuy:
I'll be honest - taking an image from the internet is utterly useless. We don't have any errors, or even any information about what you are trying to flash. Try to get either a log from twrp, or tell us what the red writing says
[G4 Android Development] aha360:
You cheeky cockteaser haha.

Good luck and Godspeed for Android Parfait.
[G4 Android Development] Minto107:
Nice one ;) anything new in this release? Maybe finally fixed ambient play so we won't have constant questions about battery drain lol
[G4 Android Development] kessaras:
1st AOSCP parfait - test build teaser

Perfectly working just like our current O.

Many things are new , it has features that will ship with Android P , but this ROMs development started from scratch so there are many AOSCP O features still missing.

It's at a very early state of development right now. I will only build it once during this week and i will keep going with our current O (for now)

Huh , btw our stupid double tap deprecated and unique synaptic touch drivers , are working fine in Parfait release.......
[G4 Android Development] INFERNO997:
Does this rom have HCE implementation (Host Card Emulation), and if not, do you have any possibility to implement it ?

This will be a life saver because we will have payments enabled in some apps that demand HCE implementation.

---------- Post added at 04:41 PM ---------- Previous post was at 04:39 PM ----------

Maybe this can help to understand the situation

https://xdaforums.com/showthread.php?t=2573842
[G4 Android Development] pepo930:
Wouldn't it be easier to use pure AOSP or LOS as base instead of A.O.S.C.P?

I'd rather have less features and less bugs.
[G4 Android Development] FlexW94:
Hello, I have installed the ROM. Everything worked fine. Now the problem is that the navigation bar does not show up, so I'm not able to navigate and the stock camera and phone app are crashing when starting. Can anyone tell me what I can do about this? Thanks.
[G4 Android Development] doop:
Look for navigation bar in settings as it is disabled by default.
[G4 Android Development] shri_chanakya:
enable navigation bar from one of the settings.

search in settings navigation and enable on screen navigation.
[G4 Android Development] FlexW94:
Thanks, but why is the navigation bar not popping up automatically when needed? The phone app is still crashing...
[G4 Android Development] ThePiGuy:
The option mentioned by the above comments actually disables the navigation bar rather than hiding it. The navigation bar is usually disabled on devices with hardware buttons and must be enabled on devices without (e.g. ours), and the default is set to disabled as currently there is a bug on AOSCP with devices with hardware buttons and the navigation bar enabled
[G4 Android Development] coolbiza:
Hi, i had same problem with e3004 and updated trwp with oreo version solved it.

Cheers
[G4 Android Development] IamRaC:
I'm Sorry, TWRP noticed that:

"E3004. This package is for device: lg, h815,...: this device is .

The red line : Updater process ended with ERROR: 7

Error installing zip file....."

My G4 is H815
[G4 Android Development] Minto107:
That's very interesting. But it will still drain battery right?

Flash latest TWRP recovery from droid.binbash.it
[G4 Android Development] kessaras:
yes. the algorithm is still the same in kernel ofc
[G4 Android Development] ThePiGuy:
What actually is parfait? Is it a new version of AOSCP but still based on Oreo?
[G4 Android Development] szafranski:
Have you tried bt calls on P version? :)

Thanks for your effort!
[G4 Android Development] krt16:
Have been using the Oreo variant of this for a bit now. Love it, but have a few things I want to ask about.

1: When charging my phone, sometimes it does not go into "charging mode" where the battery gets that lightning over it. The battery just "magically" goes up and the phone never registers it as being fully charged. Likewise, when charging the phone from a turned off state it does not go into battery charging mode where it just displays a battery and charges, it fully turns on.

2: Sometimes when driving with it in my pocket. Doesnt seem to matter how far or for how long Im driving. The phone will vibrate as if it got a message then go into a black screen with just backlights turned on and the notification light will be a static blue light. When this happens it does not respond to anything and I have to pull the battery to get it back up. When I turn it back on its perfectly fine. Note that this happens way less frequently on later updates than it used to do. On older versions it gave me a bluescreen with white text on, it does not do this anymore now.

3: When the phone dies because of low battery sometimes that seem to corrupt something because it may not turn back on anymore. Sometimes it gets stuck on bootloader and other times in boot animation. Itll stay there for a bit then restart into recovery on its own. A dirty flash does not fix it and a wipe does not fix it, I have to fully wipe and reinstall the rom to get my phone back up. This happen as recent as today. It died over night because it was low last night and I forgot to plug it in before passing out in bed. I woke up today, saw it was dead and plugged it in, but because it turns on when doing that instead of going into battery charging mode, it died again when it got to the screen asking for sim card pin. After this it would not turn on anymore and I was stuck with having to wipe and reinstall.

4: This one Ive seen a lot here, but the sim card is not always detected when starting up the phone. The simple RIL restart app in the second post doesnt seem to do anything on my phone, but a phone restart does.

Is these things some setting I can change that Ive missed when scrolling through this thread or is it a wip?

Other than these things the ROM is amazing. Stable in every other way as far as Ive seen. Great job!

And these things does not happen too often, but when they do they are super annoying.
[G4 Android Development] kessaras:
The P repos and sources are not released. Only parts of P are out. So its O with some P stuff.

No. i flashed back to 5.3.1. AOSCP 6 is not yet ready.

1. i dont know how to fix it, i only have some ideas that i will try.

2. here this doesnt happen.

3. yes it does. rarely and in all our roms stock , custom, everywhere. i do not know what it is.

4. i already said i have something in mind to do about that.
[G4 Android Development] krt16:
Fair enough. I guess Ill just have to stop letting my phone die from low power lol.

As for 2. I've had it happen maybe 5 or 6 times. It doesnt happen often at all, I just cant find any reason as for why its doing it. It happens in different locations, different scenarios and everything. Not once has it done it while doing something I was doing with it the other times. When it does this is it possible to get some logs out of it that might help? Or is it completely unresponsive as it looks like it is?
[G4 Android Development] yra lkyperggff:
This packpage is for device: g4,p1,h811

Hello i have a problem with installation.

code:

Warning: No File_contexts

E3004: This packpage is for device: g4,p1,h811; this device is .

error7

My phone is LG G4 H811 32gb

My firmware A.O.S.C.P. 4.2
[G4 Android Development] ntnlzr:
flash the latest recovery... from search button
[G4 Android Development] yra lkyperggff:
i have the latest recovery.

i have flashed it yesterday
[G4 Android Development] ThePiGuy:
Where from? 3.1.1 is not the latest. Get it from droid.binbash.it:8008/TWRP

Edit: in case you are wondering, they are still made by the official maintainer [MENTION=5545101]steadfasterX[/MENTION] but there are reasons why they are not on the official website yet
[G4 Android Development] Minto107:
Number 2 seems like kernel panic? I think it had blue static light weird that the screen is off tho

Sent from Galaxy Tab A10 with 7300 battery ;)))
[G4 Android Development] EA801:
Try removing the assert from /META-INF/com/google/android/
[G4 Android Development] kessaras:
won't help much because none of these issues happen here besides the ril not going through, which i will fix by adding an auto restart when its null.
[G4 Android Development] Minto107:
You need to set default phone app. I had same issue. Battery will get better after few cycles. RIL is known. Everyone uses third party camera apps, quick toggles work fine i have both working. I actually have a bug that it doesn't auto update apps, but it's because my phone(and most likely yours) are banned/blacklisted. Play protect doesn't work, apps don't auto update, no certification status in play store etc.
[G4 Android Development] IoIam:
Fix for 3 is changing the battery, it worked for me and hasn't happened since I replaced it.
[G4 Android Development] Derpthunder:
Ok, thanks. I'll scrap the current installation and just start over. That auto-restart would be very nice.

I found that one accidentally while switching the default home app between Luna and Google again. I noticed the default phone app setting wiped empty. Setting it back to what it was fixed the calling/answering calls problem.

The rest of the issues remained, though.
[G4 Android Development] coolbiza:
Hi, my feedback after about a week of use oreo version.

Phone is working good. Very, very rare crashes of aps - i would say it is working stable so no problem there.

Phone is not heating too much like in some roms i tried and im happy about that.

There are few things bothering me that should work, like:

- torch is not working

- after phone is full charged sometimes stats dont resets so it say like 4 days since last charging even it was charging all night and was 100% for like 8 hours.

- double tap is not working

- i dont care about ril problem much since i dont restart phone.

Just to notice battery life is not good even after i disabled ambient thing and doble tap (i have new original lg battery). In lineage 14 lasted bit longer with same usage. Here i cant get 3 h of screen time.

All at all great rom, for me torch is big miss as im used to use it a lot (with long press on power button :) )

Thanks to all of you working on this rom and g4 development!

Cheers!
[G4 Android Development] Minto107:
For almost everything you mentioned there is already a fix... You should do a research before reporting a bug
[G4 Android Development] coolbiza:
Thanks for comment.

Im sorry, didnt know it is fixed, hope new fixed version of rom is close to be released.

Cheers!
[G4 Android Development] Minto107:
You misunderstood me. I meant that there are fixes/workarounds for what you reported. Just browse a little and you'll know what I meant
[G4 Android Development] Q \/\/ 3 |2 T Y:
On magisk install i get:

remove_system_su() {
if [ -f /system/bin/su -o -f /system/xbin/su ] && [ ! -f /su/bin/su ]; then
ui_print "! System installed root detected, mount rw :("

Is it normal, that there are su binaries in the /system/(x)bin folder on a clean fresh install?

Thanks for the great work here :good:
[G4 Android Development] kessaras:
there is no su in a rom development because su is not even open source.

its there from before. you need to flash the su remover or install su and remove it properly from its settings. And if that doesnt work, talk to them in their thread.
[G4 Android Development] Zambiemambie:
Amazing work. Really fast and stable, and the battery life is fine after tweaking some settings.

Suggestions: I'd love more customization in general, but I feel that it is necessary in the status and navigation bars. Like those gaps (margins, whatever) on both sides of the navigation bar that don't need to be there for an LG G4, or hiding some system icons (which I downloaded SystemUI tuner to do so that's ok) and the navigation bar which I can't set a static background color for or make shorter (lower).

Thanks!
[G4 Android Development] terrorgen:
First of all I really appreciate what everyone has contributed to making the old LG G4 usable again.

Before installing CypherOS I was on 20x. Hardware version is H811: LG G4 T-Mobile USA.

I installed the 20180319 official build over the weekend and have suffered multiple Demigod crash/kernel panics (green screen with the pon pon error). Everytime after the crash, I could never boot into System again. (the boot animation stays there for a few minutes then reboots into TWRP)

The last crash happened yesterday, 2018-04-24 when I was using the CameraZOOM app which I have purchased years ago but have not been using it since I got the LG. This time, I want to try something different.

I downloaded the latest TWRP preview build (3.2.1 PREVIEW 118 Oreo for G4), the latest CypherOS unofficial build (20180328 unofficial) on steadfast's server.

Flashed the new TWRP

Performed Orthodox cleaning procedure from turbo (resizing partitions)

Cleaned Dalvik, Cache, System. (Was doing a standard factory reset before)

Flashed the new CypherOS unofficial build, OpenGapps 8.1, Magisk

Set the phone up using backup in Google Drive

Went to bed.

The next morning I logged into Facebook on my freshly set up phone and used Google Maps during my commute. Google Maps is unresponsive most of the time and seemed not to lock to the location where I am at most of the time of my commute. After the commute, the green screen shows up again.

I am writing this while my phone is still showing the green screen. Will do a dmesg dump later when I reboot.

UPDATE: Surprisingly the phone boots into System after this reboot. Will continue to monitor the status.
[G4 Android Development] ThePiGuy:
Why the latest experimental twrp. You want latest preview. Also, what firmware are you on. v20 or v29a?
[G4 Android Development] terrorgen:
Sorry, I meant preview. I just clarified that on my post.

Also v20x. How do I get v29a? I know there is a modem.bin somewhere in this post that I have downloaded but afraid to flash that lest I brick my phone...
[G4 Android Development] ThePiGuy:
Ok first things first, what model of G4 do you have?
[G4 Android Development] terrorgen:
H811.
[G4 Android Development] ThePiGuy:
Ok I have no idea then. I know v29a exists for H815 (which is what I have) but I'm not sure about the H811. Maybe an H811 owner can help me out here

Edit: I'm sure you already know, but don't flash anything for the h815 on your h811 as that will brick it
[G4 Android Development] terrorgen:
Right. That's why I didn't flash it.
[G4 Android Development] kessaras:
v20x is latest for h811 , there is no v29.

and actually there is no v29a officially released. its a beta that was released only in Poland and thanks to a dear xda member from there we got a dump of all the partitions
[G4 Android Development] terrorgen:
I realized that the crash always happened when I started messing with Magisk. I didn't do much with it except installing props so that I can pass SafetyNet.

UPDATE: Installed MagiskHide-Props-Config and rebooted without doing anything, and the boot loop starts... Tried disabling magisk then uninstalling Magisk but the boot loop didn't stop. Finally forced to wipe the system and start over.
[G4 Android Development] terrorgen:
Tried to wipe and reinstall again.. this time I can never got into CypherOS. Did the usual wipes. The only difference is I didn't flash Magisk.
[G4 Android Development] king200:
I have had similar problems with other devices and roms. You might try to do the advanced wipe and select system, cache, dalvik and data. I usually flash rom/gapps and Magisk at the same time. I don't worry about SafetyNet because I use Exposed.

I'm sure you are using the right version of TWRP but double check.

I'm using the Nougat version, "aoscp_h811-4.2-20180425-unofficial.zip" and it is excellent. I'll watch other's experience with "O" before trying.