yashsingh1/xdaforums huggingface dataset:
[X Style (Pure) Android Development] lucasgs:
reboots issue

Hi,

I'm having a major issue with this ROM...

I have the Moto X Style Dual SIM (that isn't my daily driver) running the last Nougat stock from RETBR .

When I try to run this ROM, the phone stays on only for a few moments and automatically reboots to TWRP.

I already tried reinstall this ROM, but results on the same issue.

I'm running the lastest modem/baseband/bootloader, the latest TWRP build and the latest build from this ROM.

(Sorry. My english isn't good)
[X Style (Pure) Android Development] randomblame:
I haven't tested on dual SIM varients but I don't see why it wouldn't work. Wipe?

Been dealing with medical issues my last surgery didn't go as well as we had thought so I'm having trouble making time to work on this at the moment im frustrated. Gonna try to get the notebook and sit on the couch for a bit and get a fresh build together at least
[X Style (Pure) Android Development] moviefirst:
I hope it will go better with you.

Get well soon.:good:
[X Style (Pure) Android Development] lucasgs:
I'm not sure if the RIL worked, I'm already back on stock Nougat RETBR. Like I said the phone only stay on for a little while, sometimes less than a minute.

I tried to wipe /data /cache, but nothing changed. :(

oh gosh, praying for your recovery.

health is more important than everything.
[X Style (Pure) Android Development] frankystar3:
How to fix sim not detecting?

I've been trying and trying to install this rom since the first build till the latest build, the sim still not working, everything its working fine except those which you've mentioned. I don't know what else to do...
[X Style (Pure) Android Development] josuearisty:
I hope you get well soon! Im gonna praying for your health. :good:
[X Style (Pure) Android Development] kadopt:
Some more issues... Wifi hotspot does not work, toggle does not stick.

If I reboot my device, after boot system process hangs and I have to wait for it to crash by itself, then some times it works others needs a hard reboot to boot fine after it hangs again once but if I reboot and clear dalvik and cache in recovery then it boots fine every time (after being cleared and rebuilt).
[X Style (Pure) Android Development] stevejohnson42:
Typically logs are needed / good tool for developer when something is found ...
[X Style (Pure) Android Development] kadopt:
I'm stating issues that are easy to reproduce, have you tried to reproduce them?
[X Style (Pure) Android Development] pdm2007:
Is it hard to implement API Vulkan for moto X Clark?
[X Style (Pure) Android Development] ACardAttack:
Nvm, I searched and found it easier than I thought
[X Style (Pure) Android Development] ianoob:
My Nexus 6 car phone died, so I've resurrected the Style. Nice to see a Pie ROM, thank you dev!

I have the same issue with hotspot, toggle doesn't stick. Turns on, says error, then turns off.

Also, and don't laugh, but Pokemon Go causes a reboot every time I open it. Happens immediately. I can post logs later if you need them.
[X Style (Pure) Android Development] randomblame:
New build in op
[X Style (Pure) Android Development] Quigongentoo:
Hope you are feeling ok! Thanks for the new build.
[X Style (Pure) Android Development] grossmane:
Hi,

i test it and camera doesn't work:confused: and after install i couldn't find the Camera.
[X Style (Pure) Android Development] xabr3:
read very first post
[X Style (Pure) Android Development] camcho1:
great ROM will continue testing it, waiting for updates Thank you !
[X Style (Pure) Android Development] Itz_GoodPlayer:
Hi, how about the ROM? Works fine for daily usage? Exept from Camera. Works everything? PD: Nice Work.
[X Style (Pure) Android Development] xabr3:
Try it. I hope it is possible to fix the camera one day :)
[X Style (Pure) Android Development] ianoob:
I was able to use the newest build for a week, but now Iam stuck in a bootloop. The phone restarts, I can unlock (if I'm quick), and then reboots. It won't run long enough to download a logcat app, and adb keeps saying it's "waiting for device" (ADB devices worked in recovery). I tried wiping, but no luck. Any ideas?
[X Style (Pure) Android Development] kadopt:
backup internal and external cards, full wipe everything (dalvik, cache, system, data, internal sd , external sd), flash rom, gapps and magisk 18.x, after first boot let it idle for 2 minutes, reboot, them configure as normal.
[X Style (Pure) Android Development] ianoob:
That worked with the previous build, but it's odd that the ROM gets these bootloops after sitting on the phone for a couple days and only a full flash works. I went ahead and reflashed a different ROM for now, this is my car phone and needs to be stable for navigation. If I get time later, I'll reflash and try to get a logcat. It'll be a couple days until they start though.
[X Style (Pure) Android Development] kb8no:
Flashed new build today. Getting used to new things in O & P. Some learning curve here. Says SEL not enforcing. Over all good so far! Dreaming of camera.

Dang. Bootlooping already. Had to enter bootloader to shut it off.
[X Style (Pure) Android Development] moviefirst:
Haven't had any problems with bootloop.

Working great, accept for the camera of course.

Great work Dev! Thanks.
[X Style (Pure) Android Development] kb8no:
So I more carefully re-flashed latest build. Latest twrp 3.2.3-1 from home page. Complete wipe except for SD. Then flashed ROM, Gapps, and Magisk. Then wiped cache and Dalvik after flashing. Then I rebooted into twrp after flashing. Don't know how much of this mattered but that's what I did. I left system untouched in twrp. Then I booted system. When I got to setup I let it sit for a good bit of time and then rebooted.

Set up is glitchy. For example had to enter new PIN several times. But I finally got through it. Then I brought up Magisk and loaded the app which I didn't do before.

Now it is running 2 days without problem. No bootloop. Feels a lot like Hashbang O. I'm not pushing it and kept it with just enough apps to be functional.

Now I'll let it settle in and see what happens. Pretty exciting to have Pie. My IT people at work are impressed.
[X Style (Pure) Android Development] kadopt:
That's why I said: "(...)after first boot let it idle for 2 minutes, reboot, them configure as normal."
[X Style (Pure) Android Development] randomblame:
Gonna try to get some work done today after work if the family life allows I wanna try going back to the hal and making a couple adjustments there got some ideas maybe I can at least get a build out with more functionality this evening and bring back video recording

*Looks like hash has pushed a few commits

Out of time for the night there is a new build in op, thank hashbang for the wifi tethering fix
[X Style (Pure) Android Development] xabr3:
Thanks for the wifi tethering fix, good luck on the camera :)
[X Style (Pure) Android Development] kb8no:
New build not successful with a dirty flash. Full clean flash from scratch worked fine. Setup remains glitchy as before but works. Last build the USB tether worked but not the WiFi tether as we know. This is exactly the same case with Hashbang's Android 8 build. New build both WiFI and USB tether work with good throughput. If you try to change the Network Name it will do a hard reboot and you will be unsuccessful. If you accept the default it works fine. Interestingly, it doesn't care about the password and you can change that as you like. New build at least has camera icon! That is exciting. I can't get anything to work with the camera. First launch I had the first screen but after that only black. When both the previous build and the new build are working they are smooth and clean and feel really really good.

[MENTION=1776875]randomblame[/MENTION] Thanks for taking on the project. Much the fun of this is because it is an interesting hobby and the joy of keeping "old" hardware running. This phone has good hardware and is especially attractive with all the LTE bands it has and ability to work from almost anywhere with almost any SIM. I really appreciate your updates about what you are thinking and where you are going instead of lurking in the background. Your style makes this so fun and educational. I'll never be a dev but I get great joy in understanding and making this stuff work.
[X Style (Pure) Android Development] randomblame:
Digging in logs. Interesting Kernel side msm_camera driver noise

I clearly remember going down this exact same rabbit hole

OP updated again with todays build not much reason to update from yesterdays.
[X Style (Pure) Android Development] randomblame:
Live display 2.0 service is no good right now disabled and playing in the camera wrapper added an extra usleep and increased time between retry on failed start also trying to get a new build of TWRP for the modem assert but it's proving to be a pain in the arse
[X Style (Pure) Android Development] moviefirst:
Hello randomblame, just send you a little donation.

Thanks for your effort and good luck on the camera!
[X Style (Pure) Android Development] randomblame:
Tell me you love me
[X Style (Pure) Android Development] randomblame:
still working on it, preview works on both front and back cams. Flashlight works.
[X Style (Pure) Android Development] big_marcolino:
What's missing?
[X Style (Pure) Android Development] randomblame:
Image capture fails. Time stamps on videos are wrong causing playback issues but I think I know what commit broke that
[X Style (Pure) Android Development] randomblame:
New build in the op if you want to play around with it. Torch is at least useful.

Screenshots work so if you use open camera in immersive mode with GUI off you can take pictures from front AND rear sensors thusly

The rear sensor is working guys it's working
[X Style (Pure) Android Development] camcho1:
We love you !! :))
[X Style (Pure) Android Development] randomblame:
Update: video recording fixed on both sensors, panoramas are working fine too probably easier than a screenshot for image capture I'll upload this build tonight and then it's bed time

ok it's up. op updated sweet dreamies
[X Style (Pure) Android Development] xabr3:
You are amazing :D
[X Style (Pure) Android Development] moviefirst:
I can not enter a screen lock, so no pattern, code and no password. Only sweeping does it. As soon as I want to enter a pattern, he jumps back to the settings menu.

I did a clean flash but no results. Any ideas?

randomblame thanks for the camera!
[X Style (Pure) Android Development] xabr3:
How is batterylife? I remember issues with N and O shutting down at 80%, sudden battery percentage drops, etc.
[X Style (Pure) Android Development] OverkillSRB:
Holy hell, nice work! PM me your Bitcoin/Monero address, and please stick around and keep squashing bugs!
[X Style (Pure) Android Development] big_marcolino:
When new build come out, can I upgrade with dirty flash without problems?
[X Style (Pure) Android Development] camcho1:
I had no problems

I have root with magisk

only after updating, clean dalvik and cache with recovery
[X Style (Pure) Android Development] randomblame:
Pattern and pin are working for me ?
[X Style (Pure) Android Development] moviefirst:
That's strange, I'm using an lock screen app from the play store.
[X Style (Pure) Android Development] randomblame:
Then it's incompatible. Use settings
[X Style (Pure) Android Development] xabr3:
[MENTION=1776875]randomblame[/MENTION] What are your further plans? Are you going to release it as an official LineageOS 16 build? :)
[X Style (Pure) Android Development] randomblame:
I may want to leave that to hashbang gotta fix image capture first tho
[X Style (Pure) Android Development] randomblame:
Experimentally enabled camera hal3 it is buggy. slow zoom no video recording etc moved everything back to hal1 making more adjustments. We need to fix up selinux after this too
[X Style (Pure) Android Development] randomblame:
https://pastebin.com/HYNGW8eD

here's the log for what happens on shutter button press to capture an image
[X Style (Pure) Android Development] justmoto92:
YOU ARE AWESOME! AND WE (ALL) ? YOU! :good:

Wish to donate to you!

And I guess I can go buy another battery for my Moto X Pure. ?
[X Style (Pure) Android Development] PythonNut:
Some files and directories on my sdcard can't be accessed.

The file system is exFAT, and everything appears fine on my laptop. This also worked fine on LineageOS 14.
[X Style (Pure) Android Development] randomblame:
Try transferring the files to your laptop and reformatting the sdcard on the pure within Android then transfer back? That's a new one on me I don't remember if I pulled in any exfat changes to the kernel sdcardfs changes could be to blame
[X Style (Pure) Android Development] Marco275:
So much that I made a donation. :o
[X Style (Pure) Android Development] kb8no:
Batteries on these phones go bad. I wonder if it is from the extreme rapid charge. They get flakey, stop reporting the right charge %, and they die abruptly when they are saying 40% or 20% or whatever. Apparently the circuit that reports battery charge is incorporated in the battery and that goes bad too when the battery is wearing out. I have 5 of these phones and 2 of them have this usual problem. The one is my experimental phone and has had 8 and now 9 on it. The other one has Hashbang 7 so it is not limited to this ROM. Replacing the battery is pretty easy. You can get a new battery on EBay for 10-15$. Check out reddit post below. Now, thanks to [MENTION=1776875]randomblame[/MENTION] I have a reason to tear into it and replace the battery!

https://www.reddit.com/r/MotoX/comments/82xw92/battery_dying_restart_moto_x_pure_battery_drops/
[X Style (Pure) Android Development] randomblame:
I built a 600 watt solar array to run my router and modem and provide a bit of backup in case of emergency a few years ago I even made my own 80 watt solar panel to tie into the system for fun - batteries are in fact the devil. Chemical systems break down after charge/discharge cycles and heating and cooling cycles they age and cells stop working voltage is usually the indicator for a charge level of a healthy battery but it's useless as an indicator of capacity if a cell is dead
[X Style (Pure) Android Development] kb8no:
Batteries on these phones go bad. I wonder if it is from the extreme rapid charge. They get flakey, stop reporting the right charge %, and they die abruptly when they are saying 40% or 20% or whatever. Apparently the circuit that reports battery charge is incorporated in the battery and that goes bad too when the battery is wearing out. I have 5 of these phones and 2 of them have this usual problem. The one is my experimental phone and has had 8 and now 9 on it. The other one has Hashbang 7 so it is not limited to this ROM. Replacing the battery is pretty easy. You can get a new battery on EBay for 10-15$. Check out reddit post below. Now, thanks to [MENTION=1776875]randomblame[/MENTION] I have a reason to tear into it and replace the battery!

https://www.reddit.com/r/MotoX/comments/82xw92/battery_dying_restart_moto_x_pure_battery_drops/

---------- Post added at 02:51 PM ---------- Previous post was at 02:36 PM ----------

I can one up you. Back in the day in the 80's I ran a 125 bed hospital in Africa and could run the whole hospital on photovoltaics and batteries when the generator was off or there was no fuel. It included operating room lights, suction machine, ward lights, vaccine refrigerators, microscope lights, lab heated water bath, 12 volt computer, printer, and an Erickson telephone switch. I also ran my Ham Radio, night lights, 12 volt TV, and 12 volt VCR at my house. I can tell you that a Caterpillar generator was the devil and batteries were our savior. :)
[X Style (Pure) Android Development] randomblame:
My problem was that at this latitude during the winter months the lead acid marine batteries I was using were not receiving enough of a charge to cope with the load which caused premature death.
[X Style (Pure) Android Development] randomblame:
Just hexedited a bunch of blobs and changed the path from /data/misc in them and the hal to /data/vendor because treble

and todays camera shutter log https://pastebin.com/bmdZYMQW

I found a few blobs have paths to files in /system/etc hardcoded that we had already moved to vendor. I am moving them back. The files in question relate to acdb and audio still getting ACDB-LOADER: ACDB -> Not correctly initialized! Probably missed something

New build in OP
[X Style (Pure) Android Development] randomblame:
Found another hardcoded acdb path that was incorrect fixing that

looks like that solved ACDB-LOADER: ACDB -> Not correctly initialized! error, new build in op it would be useful if someone would test audio over Bluetooth
[X Style (Pure) Android Development] kb8no:
Help me anybody. Exactly how are you getting a successful dirty flash. Step by step. I am not able to make it work and I loose my SIM. I have to resort to a clean flash.
[X Style (Pure) Android Development] xabr3:
That is interesting, if someone tests audio over Bluetooth, try receiving and answering a call whilst streaming audio, I remember from other ROM's that usually goes wrong. (phone would hang, can't answer)
[X Style (Pure) Android Development] kb8no:
BT connects to headset. BT plays system sounds. There is no sound in headset from streaming YouTube. BT headset works just fine as it should for a phone call. While streaming YouTube without sound the phone worked perfectly and did not cut out if that means anything.
[X Style (Pure) Android Development] randomblame:
Well that's better than nothing I suppose lol
[X Style (Pure) Android Development] randomblame:
Theoretically this kernel on one of hashbangs old Oreo builds using the camera wrapper and not the hal should provide a fully functional camera. Maybe someone clever can swap zimages and test

I haven't been able to get any life out of the wrapper in pie

*tried no luck
[X Style (Pure) Android Development] moviefirst:
We can use Snapchat for taking pictures;)
[X Style (Pure) Android Development] Hashbang173:
Congrats on getting the camera working!

I seem to remember the camera wrapper working a little bit on pie for front facing camera. (really finnicky though). I'll have to try it later.

This is all working with the OSS camera HAL? I'm really surprised since I never got the OSS camera HAL working with 14.1 even. Though I did do some work/hacks to it to make it compatible with our camera blobs.

You've seen this mess right? https://github.com/randomblame/andr...5c5960d#diff-dd6d2dcc679d12b9430a9787bab45b33
[X Style (Pure) Android Development] randomblame:
Yep using oss hal help me figure this out lol my head hurts. I've seen that yeah.
[X Style (Pure) Android Development] Hashbang173:
For reference this should be 15.1 with camera wrapper: https://www.androidfilehost.com/?fid=962187416754472537

Pretty busy at the moment.

unmkbootimg works well

---------- Post added at 10:34 PM ---------- Previous post was at 10:24 PM ----------

Wrapper may show some life with the open camera app.
[X Style (Pure) Android Development] randomblame:
didn't try open camera and it's absolutely too late to try it now lol oh well need to just fix the last hiccup with oss hal because it's working ?

I tested too many variables at once I'm trying to understand WHY it's working now
[X Style (Pure) Android Development] camcho1:
I think with the last build, the sound quality with wired headphones is lower
[X Style (Pure) Android Development] xabr3:
Sound via headphone jack is crap anyway, the DAC is just awful on this phone.
[X Style (Pure) Android Development] moviefirst:
I use this build as a daily driver and I am very satisfied with the battery life. It is better than stock rom. As far as the camera is concerned, I now use snapchat until it is fixed. The only point that goes a bit rough is remembering the apps in the memory and lag. The apps reload continuously. I want to thank randomblame for the time and effort to give our moto another opportunity to work on it for a while!
[X Style (Pure) Android Development] randomblame:
The kernel commit that I thought was the fix was not for a while I had suspected a race condition in kernel due to the camera service starting early so I just assumed it was this commit but I was testing too much at once I'm pretty sure I was just missing libSonyIMX230PdafLibrary.so I need to dig up one of those builds from early December and try plugging it in now to satisfy my curiosity

edit verified libSonyIMX230PdafLibrary.so is called by libmmcamera_mot_imx230.so and rear camera is inoperable without it.

http://en.pudn.com/Download/item/id/3337373.html this is interesting maybe somebody can snag a copy of this source for me
[X Style (Pure) Android Development] Hybrid Theory:
I really hope this rom becomes stable and has good battery life I was disappointed with the Lineage OS 15.1 rom. The flashlight didn't work and it hasn't been updated since July 2018. Right now I'm suck with Marshmallow or Nougat roms.
[X Style (Pure) Android Development] Itz_GoodPlayer:
Issue

Hi, today i installed the ROM and all works fine, exept Deep Sleep.. Any fix?
[X Style (Pure) Android Development] randomblame:
New build in op using source built sensors now
[X Style (Pure) Android Development] collinschen02:
Couldn't thank you more. Clark is really good one.
[X Style (Pure) Android Development] ceprk:
I am not abble to install last two versions... Both ate finished with error message - wrong bootloader - 0xA050, 0xA052 are supported, but your device has 0xA04C. Version from 09/02 working correctly, because there is no limitation in updater-script... . Any idea...? Moto XT 1575.
[X Style (Pure) Android Development] Hashbang173:
Is this no longer working for you? https://github.com/HashBang173/andr...6fcd99b#diff-e70df8646eeaf77875f09bb43a32f606
[X Style (Pure) Android Development] randomblame:
Needs a new build of TWRP
[X Style (Pure) Android Development] kb8no:
Now I have lots of reasons to flash I find myself a little rusty. Anybody please re-educate me. Is there any good reason to keep TWRP read only and not modify system with this ROM?
[X Style (Pure) Android Development] randomblame:
You can update your bootloader or delete the assert lines at the top of the updater script for now if the radio was working on that other build then your modem is compatible
[X Style (Pure) Android Development] randomblame:
No in order to flash it TWRP needs permission to modify the system partition
[X Style (Pure) Android Development] kb8no:
any benefit one way of the other of Magisk vs SuperSU?
[X Style (Pure) Android Development] randomblame:
Isn't the point of magisk systemless root to pass safety net? This rom fails safety net test currently need to get that fixed for the Pokemon go addicts

gotta fix sepolicy so we can do user builds there really ought to be a tool to record denials and generate an output file that the build system can use to generate the policy
[X Style (Pure) Android Development] kb8no:
Thanks for cementing that in. I didn't know about safety net coming down the pike. When I clean flash rom, gapps, and Magisk I don't seem to get Magisk to stick and not in app tray and I had to go back into recovery and flash it again. Is that usual? Should we flash rom and gapps first and they go back and flash magisk? Also, Playstore does not recognize that I have already purchased an app (Root Explorer). Is that Safety net too?
[X Style (Pure) Android Development] moviefirst:
You have tot download magisk manager top.
[X Style (Pure) Android Development] randomblame:
Safety net is only a problem for hyper paranoid apps like Google pay and pogo it just looks for signs of root and checks build type ro.debugable status fingerprint etc the idea is to make sure the device is secure and unmodified from stock. It should not cause you any grief unless you depend on an app that is annoying enough to use it.
[X Style (Pure) Android Development] kb8no:
Why doesn't Play Store recognize previously purchased apps? Is that a Saftey net thing?
[X Style (Pure) Android Development] randomblame:
I don't know why but it has nothing to do with safetynet