Snapchat issue on treble roms - P8 Lite (2017) Discussion

Hi, i am experiencing a weird bug on every GSI, specifically, snapchat video recording is looking smooth, but after tapping on the "send" button it says "failed to add" and doesnt even give a chance to resend the same snap. It happens on all treble roms i've teted so far (i tested every specific GSI for PRA, and some openkirin and otger ones). @Dil3mm4 do you have any idea how to fix it? I hope there is a way to do a flashable zip or something like the NFC fix. Can someone please confirm if the issue persists on Your devices?

Related

[FIX] [HELIUM] [HYDROGEN] Video Recording Fix

Here is a fix for the video recording not working. This fix works on my Stock Global ROM for the Helium. It may work on CM13 based roms but there may be bugs. This works on the 64/128gb Chinese Helium and the 32gb Chinese Hydrogen.
Helium:
https://drive.google.com/file/d/0B5I_q70mNuR4Vk1xOXQyZ3pfUkE/view?usp=sharing
Hydrogen:
https://drive.google.com/file/d/0B5I_q70mNuR4ZmlKOGx6Qjlid1k/view?usp=sharing
Thanks for trying. Just reporting... On CM13 third edition hydrogen fix doesn't work.The very first time it recorded video with no sound, then on second attempt it recorded just the first frame and no sound. Reboot doesn't help.
nijel8 said:
Thanks for trying. Just reporting... On CM13 third edition hydrogen fix doesn't work.The very first time it recorded video with no sound, then on second attempt it recorded just the first frame and no sound. Reboot doesn't help.
Click to expand...
Click to collapse
Try it on Resurrection Remix and let me know if it works on there. I don't have a Hydrogen so I can't test. There are also so many more options in Resurrection Remix that I don't even want to use plain CM13.
I try it in 2. Edition of CM13. Video work, but i have no Sound.
Tried it right now. RR V2 : Video works but playback seems to be 4x faster than normal. And no Sound.
I really hope you find the problem. It's simple the best phone I eher had.
I hope too, you can fix this. Big Thanks for your help and work.
Worked once twice in Remix. Now it only captures stills with sounds.
RR Mi Max Pro 128GB
Great job, working a treat - thank you.
I have researched/experimented with the video recording bug and I am pretty sure this is the problem.
That is exactly what happens on CM13 based ROMs on Mi Max. I have replicated it by rebooting with usb connected and recording works... dies after usb disconnect and device wakes from deep sleep. I even did dirty remux of brocken recording on my PC and it proved all video frames were there but with incorrect duration.
So looks like we have to wait and hope Xiaomi to fix the device firmware/kernel? part that causes the deep sleep problem on CM(very unlikely) or release source code.
As you probably know the list of all vendor files pulled from miui to build CM is based on the official CM device tree for Note 3 Pro(kenzo) which has very similar hardware... They even pull many of those files for kenzo from Mi Max miui base( android_device_xiaomi_kenzo/proprietary-files.txt). I compared the camera firmwares for both and it is exactly the same bit-by-bit. And yet kenzo CM13 don't have that problem. So it must be some other firmware part or kernel issue.
Also wondering why as far as I know miui doesn't have that problem using same firmware/kernel!? Must be something in the camera app or framework or something...
nijel8 said:
I have researched/experimented with the video recording bug and I am pretty sure this is the problem.
That is exactly what happens on CM13 based ROMs on Mi Max. I have replicated it by rebooting with usb connected and recording works... dies after usb disconnect and device wakes from deep sleep. I even did dirty remux of brocken recording on my PC and it proved all video frames were there but with incorrect duration.
So looks like we have to wait and hope Xiaomi to fix the device firmware/kernel? part that causes the deep sleep problem on CM(very unlikely) or release source code.
As you probably know the list of all vendor files pulled from miui to build CM is based on the official CM device tree for Note 3 Pro(kenzo) which has very similar hardware... They even pull many of those files for kenzo from Mi Max miui base( android_device_xiaomi_kenzo/proprietary-files.txt). I compared the camera firmwares for both and it is exactly the same bit-by-bit. And yet kenzo CM13 don't have that problem. So it must be some other firmware part or kernel issue.
Also wondering why as far as I know miui doesn't have that problem using same firmware/kernel!? Must be something in the camera app or framework or something...
If I have time I will try to build xposed module to intercept the video and fix the first frame duration as dirty/temporary fix(as explained in the link).
EDIT: Ok... As prove of concept build xposed module for testing. It fixes recorded videos but needs some tuning... The first few audio samples are cut off in the repair process and audio gets out of sync. Have to figure out how to fix that...
Just install the attached apk, enable the module in xposed installer and reboot. That's it. Just record as usual. Works with CM and RR(not tested) build-in Camera apps only(for now...).
Click to expand...
Click to collapse
Seems to work on CM13 (3rd version) on my Hydrogen but only if the recorded videos are saved in internal storage (the camera apps non responsive if saving to sdcard). Thanks for putting this fix out, really appreciated.
cmk7128 said:
Seems to work on CM13 (3rd version) on my Hydrogen but only if the recorded videos are saved in internal storage (the camera apps non responsive if saving to sdcard). Thanks for putting this fix out, really appreciated.
Click to expand...
Click to collapse
I should've not called it a fix, it's just a dirty hack... I still can't find a way to sync audio/video properly. That sdcard problem is probably related to much lower write speeds.
nijel8 said:
I should've not called it a fix, it's just a dirty hack... I still can't find a way to sync audio/video properly. That sdcard problem is probably related to much lower write speeds.
Click to expand...
Click to collapse
Thanks for the explanation. Hopefully there will be a permanent fix to the video recording problem in due course. For now, your hack will come in handy.
Let's get back on-topic here thanks guys...
You may want to look at CPUAwake code. with CPUAwake enabled there is no problem with camera after deep sleep and overnight battery drain is still the same (0-1%). It will be great to make "dirty hack" independent from any app (xposed , cpuawake) as a piece of code (somewhere in boot.img inits?). Thank you. as for "no sound" in my patches/builds(some stock miui audio-related files files) I have no problem with it but in some cameras "mono" should be choosen as an audio source. or it could be only "mono" - never tried them separate.
zelipukin said:
You may want to look at CPUAwake code. with CPUAwake enabled there is no problem with camera after deep sleep and overnight battery drain is still the same (0-1%). It will be great to make "dirty hack" independent from any app (xposed , cpuawake) as a piece of code (somewhere in boot.img inits?). Thank you. as for "no sound" in my patches/builds(some stock miui audio-related files files) I have no problem with it but in some cameras "mono" should be choosen as an audio source. or it could be only "mono" - never tried them separate.
Click to expand...
Click to collapse
Yep, my initial test confirms CPUAwake keeps video recording working after device wake up... Thank you for your discovery:good:
I tried a similar idea initiating wakelock before recording but it didn't work...
Is CPUAwake open source? Can't find any code...
I think if we open the hood (UI) there is a single line that tells to the system something like: "system, dont do this !"
somewhere in smalis. cant find it. even worse - dont understand smalis
zelipukin said:
I think if we open the hood (UI) there is a single line that tells to the system something like: "system, dont do this !"
somewhere in smalis. cant find it. even worse - dont understand smalis
Click to expand...
Click to collapse
I actually examined CPUAwake code and it uses android native wake lock acquire() call so nothing special there. And it doesn't release the wake lock till disabled. Don't like that... Trying to find better solution... We'll see...
Let me know if this fixes video recording on CM based ROMs...
Add these two lines to /system/build.prop:
Code:
media.camera.ts.monotonic=0
#[STRIKE]persist.camera.HAL3.enabled=true[/STRIKE]
... and do full reboot(not just soft). USB disconnected... Test video recording, if it works leave device with screen off for 5 minutes, test recording again. It should work(fixed)...
EDIT: I should've mentioned it will only work if video recording was working for you after fresh reboot but brakes when device wakes up from deep sleep... This means all early CM based ROMs are out... they didn't have any video recording working at all or no sound...
EDIT 2: Second line is not needed. Only first line keeps video recording working after deep sleep...
ajsmsg78 said:
Here is a fix for the video recording not working. This fix works on my Stock Global ROM for the Helium. It may work on CM13 based roms but there may be bugs. This works on the 64/128gb Chinese Helium and the 32gb Chinese Hydrogen.
Helium:
https://drive.google.com/file/d/0B5I_q70mNuR4Vk1xOXQyZ3pfUkE/view?usp=sharing
Hydrogen:
https://drive.google.com/file/d/0B5I_q70mNuR4ZmlKOGx6Qjlid1k/view?usp=sharing
Click to expand...
Click to collapse
Deleted
Found the fix in the rr mods folder
Thanks!
Skalexs said:
Deleted
Found the fix in the rr mods folder
Thanks!
Click to expand...
Click to collapse
Could you please help me with a link to that mode?

Ok Google and Trusted Face

Hi everyone,
The note 9 is the great device, and project treble make a even better. But there is a strange conflict with GSI and the phone.
On the stock ROM Hotword Ok Google, works even if the screen is off, but with GSI or sGSI work only if the screen is on.
Trusted face doesn't work too, but the front camera work great with the Gcam for example.
If someone, knows how to fix that, or why is that, please help, me and someone else will be very thankful.
Note 9 (N960FD) Exyon

GSI request!

Hi guys, I am aware that Phh makes one of the best GSI period but the problem is that lad aint got time to fix for each and every devices.
So if anyone is capable, please make a gsi optimised specifically for M20.
Thanks in advance.
The problem I've faced:
1.Fingerprint sensor doesn't work ( wasn't smart enough to implement the fix provided)
2.After two or three reboots the devices bootloops but the strange part is it boot upto lockscreen and keeps looping.
3.Wide angle camera will be gone entirely which is a shame as it is one of the best part of the phone.

This phone seems to hate video calls in facebook messenger

ive tried this function in different roms, whether eui based or aosp and it seems not work right in anything. either theres an echo that makes it unusable or the camera just doesnt seem to wanna work. Not sure what the problem is but its pretty frustrating, if anyone has a solution id def like to know
shatheone said:
ive tried this function in different roms, whether eui based or aosp and it seems not work right in anything. either theres an echo that makes it unusable or the camera just doesnt seem to wanna work. Not sure what the problem is but its pretty frustrating, if anyone has a solution id def like to know
Click to expand...
Click to collapse
I too had this issue in Eui but so far it has worked fine for me in arrow and havoc os . Disable in app focus fix in le eco extras inside settings. It will solve your issue
RandomDelta said:
I too had this issue in Eui but so far it has worked fine for me in arrow and havoc os . Disable in app focus fix in le eco extras inside settings. It will solve your issue
Click to expand...
Click to collapse
where would i find that at, im currently using pixel experience

Question Does the fingerprint sensor work on Generic System Images?

My fingerprint sensor on my Mi 11 doesn't on any generic system images that I use. On each one it asks for a fingerprint on the back sensor even though the Mi 11 has one integrated into the screen. It doesn't sense any touch that I do. Does anyone know a fix for this?
There is no fix for it, and it has been stated a lot of times in every gsi rom.
It is normal for gsi roms to have that bug. It can only be fixed when somebody makes a device specific gsi rom.. And that only will be happening when we got a normal working twrp and we get hooked on the gsi programms by somebody.
You wouldve know this if you just used the search function..
Thanks, I assumed that was reason. I also realized that I have no sound. Is there an easy fix for that?
All the bugs you are facing are not really fixable untill we get an active developper.

Categories

Resources