yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] kessaras:
thank you for at least giving it a thought.

its not like that. toggle is there , but broken when we use the new nougat sources.

something in the commons ? something in the kernel source ?

it needs a lot of time, but i will find it........ it doesn't have a choice.......

today i built with the stock nougat sources to see if its in the titan kernel the problem... guess what... torch wasnt there. So......

i have to compare the old sources with the new ones and find the problem.

And after that i have to edit the old commons to add some of the new ones and test again.

Anyway, this damn torch toggle is giving in my nerves......

At least something good came up, i can now build Titan for all AOSP and LOS based and Stock based...... but who will flash a kernel that will disable his torch toggle lol !

So no more updates in kernel level until i find out whats going on. And since im not a pro but more like a senior , i need more than the time a pro would need.
[G4 Android Development] kinuris:
But wait! Maybe (common sense, not knowledge) has nothing to do with the kernel. Maybe I can test your new kernel with last LOS or RR. Yes, I now I won't have the good camera thing by now, but just for testing purposes.
[G4 Android Development] stratonz:
Hi Kessaras,

thanks for your good work! I'm interested in a kernel that works on every h815 nougat rom, so I'm following your thread and testing your kernels, but (till now) they don't boot on LOS based rom (RR, AICP, LOS...) ijnstalled in my G4. If you have some AOSP kernel partially working I propose myself as a tester.

Now I'm trying to compile your sources by myself, to do some experiments. A questions: which toolchain and script are you using to compile? I'm trying to use a version of anykernel, modded by myself, with google android 4.9 toolchain: compiling is ok, but I've errors in building zImage...

Thanks in advance. (Like kinuris I've been a developer in a precedent life, nowadays I'm doing a totally different job, so I'm not up to date...)
[G4 Android Development] kessaras:
Ok.

Will upload tonight for all Los based too.
[G4 Android Development] deltadiesel:
Nice ROM

I actually stop using dirtyunicorns....which is hard. to .make me switch from

Please don't make future builds los based

Looking forward to new releases

Great work

8.5/10

Icons are a lil confusing so far between msging contacts calls

Not fan of launcher it sucks because when you switch to black theme substratum icons still have white background

If you could change this would be great

Will post problems
[G4 Android Development] kessaras:
It has two problems. Bluetooth connection connects to devices that it only likes and torch tile is missing.

Both are fixed , read in Titan kernel thread about it.

So this sunday's update will have those fixed too.
[G4 Android Development] deltadiesel:
Don't really care about Bluetooth or torch but fix is nice

What is titan kernel? Refuse to install kernels on my phone

Weird problem I have right now is some icons change color after substratum

---------- Post added at 09:16 AM ---------- Previous post was at 09:06 AM ----------

Does this kernel disable core for bootlooped phones?
[G4 Android Development] deltadiesel:
What kernel do I download if I don't want to disable cores?

---------- Post added at 11:31 AM ---------- Previous post was at 10:31 AM ----------

---------- Post added at 11:33 AM ---------- Previous post was at 11:31 AM ----------

Alarm is missing?

How to set snapdragon camera as default?
[G4 Android Development] kessaras:
titan is my kernel and is default kernel used.

no by default it doesn't. i have to make an aosp kernel build to disable big cores. only in kernel adiutor you can disable them.

alarm is missing yes because its at playstore. aosp apps are google apps. i debloated all the garbage.

install the camera apk and use it.
[G4 Android Development] deltadiesel:
I went to titan kernel link......there is 4 links for bigcores.....1 not

Which do I download?
[G4 Android Development] kessaras:
When I will have the time I will make a baby step video guide that will explain the title of this thread, what my cypher os is and one for Titan kernel how to click an where
[G4 Android Development] deltadiesel:
Sweet

There's too much to read right now
[G4 Android Development] ziomus684:
I also have problem with sim.
[G4 Android Development] obvious:
regular log from as soon as adb connects

H815 international
[G4 Android Development] obvious:
Fresh radio log during boot

H815 international
[G4 Android Development] Frazzy:
My first logcat was to late...

This one has the entire boot.

So wiped everything and flashed the rom only. No gapps and no root.

Edit:

- My phone is a H815

- Added radio log
[G4 Android Development] kessaras:
Great. Those should be enough. First thing in the morning I'll see why your sim does not connect.

One last thing. Edit please your posts and add one info. If you have h815 or h811. That's all. Tomorrow will try fix it.
[G4 Android Development] tqwzUX6fn39GZMEzSnDF:
I've just restored my backup and noticed some similar (but not identical) behaviour. This could be solved by activating and deactiving airplane mode. Could anyone please test is this also helps to solve todays problem?
[G4 Android Development] Frazzy:
Nope
[G4 Android Development] kessaras:
Very strange that here it works fine but for some it doesn't work.

And in logs with a quick look from my phone , I didn't see any error. Only that it failed to start logging service but we always had that error. It doesn't affect ril.

RILQ : Fail to initialize Diag for QCRIL logging.

Well, when I'm back I'll compare it with mine that works.

And this :

E/RILC ( 556): radioStateChangedInd: radioService[0]->mRadioIndication == NULL
[G4 Android Development] aha360:
UPDATE: After wiping the phone and reinstalling the custom ROM, I have managed to install the ROM, but I still cannot get the SIM card detected, and to make matters worse, this process has led to me losing TWRP (and thus reverting back to stock recovery) without me being able to reinstall it via the usual procedures, and I own an LG G4 H815 by the way.
[G4 Android Development] tqwzUX6fn39GZMEzSnDF:
I think you are the only one who does not have the problem, everyone else have. So maybe you just need to find out what's difference between your version and the one on the server? Anyway: Good luck!
[G4 Android Development] Lurensu:
Have you tried to root just after installing TWRP?

I had the same problem and I fixed it this way.

On my device the SIM issue doesn't appear if I' m not rooted (I don't know why) but this makes me lose TWRP..
[G4 Android Development] kessaras:
What do you mean ?

fastboot flash recovery recovery.img doesn't work ?

Even without recovery or rom you can get to bootloader if you are on v29a firmware. Hold vol down and reboot with usb PC plugged in
[G4 Android Development] obvious:
Anyone else finding charging has slowed to a crawl with 6th Jan build?
[G4 Android Development] aha360:
I tried to install Magisk after installing the ROM and GApps, and the Magisk install in TWRP hung for hours, so I rebooted the phone and now while it boots into AOSCP, there is no GApps and no root, and I cannot install TWRP at all. Is there any way to fix this is I am stuck on an effectively non-working setup?

Yup, doing a fastboot recovery flash DOES NOT work at all, nor does doing a temporary recovery boot via "fastboot boot twrp.IMG", as it returns a "FAILED (unknown command)" message.
[G4 Android Development] tqwzUX6fn39GZMEzSnDF:
What happens if you boot into recovery by switch the device off. Wait. Press and hold power + volume down. Wait a few seconds. Release power button (keep volume down pressed) for one second and press it again?
[G4 Android Development] kessaras:
try something now that im back home.

adb root

adb remount

adb shell

stop ril-daemon

start ril-daemon

wait a few seconds.

if it works tell me.

if not keep doing:

start ril-daemon2

start ril-daemon3

stop ril-daemon

start ril-daemon
[G4 Android Development] aha360:
It boots into stock recovery, even if I try to reinstall TWRP time and time again
[G4 Android Development] kessaras:
this is not rom issue. how did you do that ?

its impossible to not write twrp.

when you do fastboot flash recovery recovery.img

does it say success ?
[G4 Android Development] obvious:
C:\Program Files\Minimal ADB and Fastboot>adb root

C:\Program Files\Minimal ADB and Fastboot>adb remount
Not running as root. Try "adb root" first.
[G4 Android Development] kessaras:
..............you dont have adb root ?

damn windows........... sec ill check a ramdisk here locally and send it over

EDIT:

Ok, i was able to force lose my sim on boot and see why and fix it.

the problem is that the services on boot they dont start with the right order.

sometimes ril-daemon starts sooner. Before ril-daemon2 and 3 started.

This means that i have to somehow force 2 and 3 start sooner with this order, and lastly ril-daemon.

ril-daemon2

ril-daemon3

ril-daemon

will try now force them this order and when its ready ill share a test boot.img to fastboot flash boot boot.img and reboot and check
[G4 Android Development] tqwzUX6fn39GZMEzSnDF:
Are you sure?

I'm asking because by going this way normally it "looks" like stock, but if you confirm twice to factory reset it'll boot to twrp.
[G4 Android Development] aha360:
C:\adb>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 1.002s]
booting...
FAILED (remote: unknown command)
finished. total time: 1.017s

C:\adb>fastboot flash recovery twrp.img
target reported max download size of 536870912 bytes
sending 'recovery' (30616 KB)...
OKAY [ 1.006s]
writing 'recovery'...
OKAY [ 0.301s]
finished. total time: 1.308s

C:\adb>fastboot reboot
rebooting...

This is what has happened - installing the recovery image results in it apparently being successful, but if I try to reboot, it boots into the stock recovery, and if I try to boot into recovery via the ADB terminal on the PC, it fails, with the message being shown above.

As for trying to install the latest ROM, I:

- Did a factory wipe

- Installed ROM, Gapps and Magisk

- The install, whilst it reported as a success by TWRP on the former two items, it hung on Magisk for approximately 30 minutes

- I then pulled out the battery and restarted the phone

- The phone booted up with AOSCP, but without Gapps and Magisk

- I tried rebooting into Recovery Mode, but it booted me into Stock Recovery, and now, I am stuck.

I beg your pardon? Did you just say "normally it "looks" like stock"? So, are you trying to say to me that if I go into what looks like stock recovery, I have to choose "factory reset", and confirm this, I'll THEN BE ABLE TO GO INTO TWRP?

This is strange, because when I first installed the ROM and booted into recovery mode, it would boot straight into TWRP, like how any modified Android smartphone would. Could you provide photos of this, as I have got TWRP backups of my OS installations that I do not want to lose, and to transfer them would be difficult, especially when I am lacking in storage space?

Thanks for your assistance everyone.
[G4 Android Development] obvious:
I changed my version of adb

Now I get

C:\Program Files\Minimal ADB and Fastboot>adb root

adb server is out of date. killing...

* daemon started successfully *

adbd cannot run as root in production builds
[G4 Android Development] Lurensu:
I had a similar problem and I did this way:

-I booted in the bootloader and installed TWRP with "fastboot flash twrp.img"

-I removed the battery (don't reboot the phone!)

-I booted the phone keeping pressed the vol- button, then I released the power button on the LG logo and pressed it again to boot into the stock recovery.

-Once you're here confirm twice for the factory reset and it should enter into TWRP (Or at least this worked for me)

-Flash Magisk and reboot
[G4 Android Development] tqwzUX6fn39GZMEzSnDF:
I wanted to say that it is normal that if you want to boot to TWRP by pressing the hardware buttons that the phone asks for your confirmation to factory reset twice. Afterwards TWRP is booted.

Often I've read posts from people who don't know this and therefore they believe TWRP is lost. My first idea was that this might be same for you. But I don't know if this is really the case for you.

I hope you understand what I mean because I don't know how to make photos during this time.

Edit: Same as Lurensu explained above.
[G4 Android Development] kessaras:
rild test ! SLOW and FAST

There are 2 tests i need you to perform to fix ril once and for all.

1) unzip and adb reboot bootloader

fastboot flash boot fast-start.img

fastboot reboot.

If it works , test finished.

If not:

2) adb reboot bootloader

fastboot flash boot slow-start.img

fastboot reboot

It should start slow. Ril just did a restart a little before you get to homescreen.

https://drive.google.com/open?id=1nWzxHQkOxcwuniba2hQDd6z9wLE68hTT

Tell me which one of those worked for you to update the official that we will soon get
[G4 Android Development] kessaras:
fastboot boot is disabled by lg, forget that command.

fastboot flash recovery twrp.img is the one.

Then hardware combo key to boot twrp.

if it fails thats important. Thats not normal and it needs its twrp doctor [MENTION=5545101]steadfasterX[/MENTION]
[G4 Android Development] Frazzy:
Downloading now. Will report back in a few minutes.

---------- Post added at 11:59 PM ---------- Previous post was at 11:46 PM ----------

Both dont work.

I'm going to make logcats again. It seems that the logcat starts later than the last time. Is that possible?

Frans
[G4 Android Development] lordc:
[MENTION=5461026]kessaras[/MENTION] I flashed the boot I'm (one and other) and allways no sim detected but I received SMS and call... I feel confused
[G4 Android Development] kessaras:
Lol wtf is going on with those damn LG g4 out there....?

Please be serious with the test. Here it worked so it should work there too.
[G4 Android Development] lordc:
Gime 1 hour and I will do a systematic test. First try late-start.img and if it fails, early-start.img
[G4 Android Development] kessaras:
Early first. It must start fast not slow

Edit:

In one hour I'll be in a dream , 3rd door on the left ?

Will see the result in the morning
[G4 Android Development] obvious:
Tried multiple times on H815

early-start.img

"No SIM Card"- empty signal strength indicator

"mobile network not available" when calling out

can receive calls all ok

Network options all greyed out in settings

late-start.img results are identical
[G4 Android Development] kessaras:
Ok will check maybe the user build has issues. I'll build a debug build just like the one I use here , first thing in the morning
[G4 Android Development] obvious:
I just dropped in on #Carbon-user to take this off the main thread but it's quiet there. Maybe I can help with testing tomorrow on signal?
[G4 Android Development] Frazzy:
Had to enlarge the buffer for powershell for these logs. but here they are:

I made 4 logs for the 2 versions.

If you need something else just let me know.
[G4 Android Development] aha360:
That was a heart-in-mouth moment - I successfully managed to boot into TWRP, and reinstalled TWRP via TWRP via its Image Flash feature (Install Image).

Bloody hell, now I sound like Xzibit when he presents Pimp My Ride LOL, but thank you everyone for the help, as this situation is something I haven't experienced before in terms of Android mods before. Yes, I have installed recoveries and ROMs from the MoDaCo days when I had the Orange San Francisco Ii up until now, but I never seen recovery images magically hide or disappear like this before haha.

LMFAO you're telling me - it has been a freakshow-of-a-weekend with the LG G4s alright. ?
[G4 Android Development] kessaras:
Yes. Tomorrow you will have adb root and directly perform commands in shell. We will fix this sh*t
[G4 Android Development] #ApolloLiteProblems:
Right. Need some insight. How stable is it? Will I run into bugs like missing phone calls? Has camera quality taken a hit? Battery life and performance? Stuff like this. I unfortunately don't have time ATM to use unstable builds, back to that in the summer. Thanks everyone and well done for finally getting Oreo on the G4.
[G4 Android Development] cartman_73:
i had the same issue a few time ago and the only way that did resolve it was refurbish with lgup then reinstall all
[G4 Android Development] aha360:
I actually downloaded the Marshmallow KDZ for my phone as a "just in case" measure, fearing that I would have to do that, but since kessaras, and everyone else before him/her has told me to install the TeamWin recovery image via the ADB terminal and physically reboot into the LG Factory Reset screen by pressing down the specific button combinations and then go into TeamWin Recovery by "choosing the Factory Reset" option, just like the LG G3, I didn't need to do a complete OS reinstall after all. It is admittedly frustrating though, especially when you are not familiar with phones that automatically force you into using the stock recovery whenever you install non-OEM software. Thankfully though, I am up and running again, and if you do encounter that problem again, reinstall TWRP via the ADB terminal on the PC, and then boot into Recovery Mode by pressing down Power and Volume Down at the same time, briefly (less than one second) letting go of the Power down with the Volume Down button still held down, and then holding down both Power and Volume Down buttons simultaneously once again, then letting go once you are greeted with the LG Factory Reset screen, in which you must choose to allow the Factory Reset process to happen, only for it to take you to TWRP, just like the LG G3 D855.

---------- Post added at 02:02 AM ---------- Previous post was at 01:58 AM ----------

https://xdaforums.com/g4/development/g4-cypheros-t3680102/post75065470#post75065470
[G4 Android Development] Frazzy:
How many are wrecking their F5 key on this topic this morning? :P
[G4 Android Development] A_Kirsh:
I've moved to watching it from my phone as I don't have any keyboards left (F5, CTRL + R etc.)
[G4 Android Development] Lurensu:
Guys, I didn't understand with all the mess in the latest pages:

Is there a build without the sim issue?
[G4 Android Development] Frazzy:
Nope, but in all builds except the latest the sim issue can be resolved by a few reboots.

---------- Post added at 02:38 PM ---------- Previous post was at 02:27 PM ----------

@kessaras Do you need me to run some tests/logs? Otherwise I'm going to reinstall the previous version for work tomorrow.
[G4 Android Development] kessaras:
I fixed it. The ril.h I added selected ril version 12. But g4 ril is version 11.

I will remove ril.h and just add an if command to check the priority of services order. So ril will start at the right time.

Will share tonight new build with fixed ril. And sorry for that yesterday.

You can't dirty flash those. Services are now in vendor.

Just wait a few hours to make some proper commits and clean up things here and I will share the build
[G4 Android Development] Frazzy:
I don't think you have to be sorry for anything. You are the driving power behind Oreo on a abandoned phone. This just proves you are human after all ;)
[G4 Android Development] Lurensu:
As Frazzy said, you don't have to be sorry, you're our hero!
[G4 Android Development] Ironic:
Okay, i have a real problem here.

I started with a clean flash on top of a stock Nougat rom.

As soon as i open the camera, my phone restarts. If a sim is not detected, the phone will normally start up. BUT, if the sim is properly detected, my screen gets black before i can enter my pin. After a short while the background light will turn on and the notification light will glow blue. Then I have to pullt the battery, because it won't get normal again and the cpu is getting really hot.

I can't bring it back to life, until i find a charger that will keep the phone loading until i entered my pin and the phone finishes the start up procedure.
[G4 Android Development] Frazzy:
BTW, out of curiousity, why did it work on your phone and not ours? Is your phone a different type?
[G4 Android Development] sperelli:
anyone with the latest working version tried to fix location with Instagram? here not working (5th jan)
[G4 Android Development] kessaras:
i dont understand what you are talking about. the phone can't reboot when opening the camera unless there was a kernel crash. The worst that could happen was the camera app to crash.

Not even 1 in a million. something you've done wrong. maybe wrong bootloader, maybe wrong modem, maybe you didnt really clean flash.

Anyway. Camera can't force the phone to reboot.

I need to work fast. Time is precious. I can't lose time. Building now, so in 2.30 hours you will see an update.

Didn't fix ril 100%. Ril is like it was. Sometimes it will need a reboot.

OR in terminal

stop ril-daemon

wait 2 sec

start ril-daemon

It's a hard one to fix.
[G4 Android Development] aha360:
Have you flashed the v29a Bootloader and Modem before installing the custom firmware? If you have done all of that and you're still having issues, then if your Anti-Rollback value is low enough, I suggest installing an KDZ-file stock firmware and resetting everything to factory defaults, and redo everything from scratch as the absolute worst case scenario.

Before you do that though, perform a system reset via TeamWin Recovery, and then reinstall the custom firmware, and GApps first, and after rebooting, I then suggest installing Magisk if you want root privileges.
[G4 Android Development] ziomus684:
Hi, does it possible enter the ROM call recording function? ( During calling)
[G4 Android Development] aha360:
Not as far as I am aware - I'm in bed now, so I'll test that out for you as soon as I can.
[G4 Android Development] ufocus:
If this happens ONLY in this ROM then it's something you've done(or not have, but required).

It's very possible that you have ILAPO because of the heat.
[G4 Android Development] stratonz:
Hi, it seems that in latest 7/1 version GPS doesn't work...

Inviato dal mio LG-H815 utilizzando Tapatalk
[G4 Android Development] kessaras:
mine is fine.
[G4 Android Development] Frazzy:
Mine works to
[G4 Android Development] aha360:
There is no native call-recording feature on this firmware whatsoever, so if you want to record phone calls, you will have to use the firmware's built-in Recorder app, and tap on "Record Sound", or just use another firmware that natively has the call recording feature.

Grab a logcat file by using an app like MatLog if you don't want to bash in commands to pull out logcat files - that will help out the maintainer of this firmware with solving your location detection issues.

Before you do that though, what apps are you using that need location privileges, and which ones work properly and which ones don't work as intended?

For an example logcat file, take a look at my attachment here [https://xdaforums.com/attachment.php?attachmentid=4383030&stc=1&d=1515394435], in which I have a problem with Portable Hotspot, which is already known to not work with this firmware, but as I stated, this is a logcat file I pulled out just to show you what needs to be done in this case

I second this, as I have tested Google Maps, and it seems to work without issues.
[G4 Android Development] kessaras:
im warning you from now.

im stracing cameraserver and im solving errors there. But they are many.

Now the camera quality (here ofc at my phone) is maxed just like it was on N lately.

But ! The camera loads slow. It needs 4 seconds. Well.... i'll keep solving those errors and it will improve the camera start time, but until then don't start making me nervous or i will revert it back :P
[G4 Android Development] aha360:
Thanks for the heads up [MENTION=5461026]kessaras[/MENTION] - good luck, and Godspeed, and yes, I'll be willing to test out the camera after said changes, and will report back to you, and there will be a few others on here that will do the same thing.