phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 659 forks source link

[Redmi Note 8 Pro] Multiple bugs #1028

Closed tvardero closed 3 years ago

tvardero commented 4 years ago

Please read this thread or device wiki first before creating new issues.

Redmi Note 8 Pro 128 Gb [begonia] AOSP 10 latest ARM64 AB, gappsed version. Magisk 20.1 Mediatek Helio G90T MIUI 11 vendor global (can't be downgraded!)

Can provide any log you ask

phhusson commented 4 years ago

Got a video?

Le dim. 22 déc. 2019 à 00:50, tvardero notifications@github.com a écrit :

Redmi Note 8 Pro 128 Gb AOSP 10 latest Magisk 20.1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1028?email_source=notifications&email_token=AAAA4ORDUT6Y6QD4JEUKE7LQZ2TSPA5CNFSM4J6JH4L2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ICE42LQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4ORADYPNVD452GG4GR3QZ2TSPANCNFSM4J6JH4LQ .

tvardero commented 4 years ago

Ignore the audio ☺️ https://drive.google.com/file/d/11FAs9y9yAxUAv2fDAP1KH5EXI7N_zevw/view?usp=drivesdk

Sorry for my not excellent English)

n19htmare commented 4 years ago

Any thoughts on the glitchy graphics? Seems to be quite common.

phhusson commented 4 years ago

Ok thanks for the video. So from what I can tell, your glitchy animations is just the embedded videos not rendering correctly which is a known issue. The broken night light issue is very interesting because probably related to the previous one, thanks for bringing that up.

For auto-brightness you'll probably just need to make an overlay. Create a new issue with stock ROM framework res and getprop and /vendor/build.prop

tvardero commented 4 years ago

For auto-brightness you'll probably just need to make an overlay. Create a new issue with stock ROM framework res and getprop and /vendor/build.prop

Done.

Got some logcats (finally i did it) with audio recorder failure, also with mp3 playback failure (playing mp3 from file system): logcat_playingmp3file.txt logcat_audiorecorder.txt

Also, logcat of flickering with orange nightlight: logcat_nightlight.txt

Today i've checked IR blaster, receiving devices does not react to commands that were ok on the stock rom: logcat_irblaster.txt

Please note that first message on this thread has changed.

proganime1200 commented 4 years ago

your using a latest miui 11 am i correct thats probably the fault of the vendor why not downgrade to much older one like miui 10 vendor

tvardero commented 4 years ago

your using a latest miui 11 am i correct thats probably the fault of the vendor why not downgrade to much older one like miui 10 vendor

Not possible, xiaomi anti-rollback protection.

mmtrt commented 4 years ago

Not possible, xiaomi anti-rollback protection.

Phone does not have arb protection, I usually do downgrades back forth without any issue with fastboot rom flash through miflash tool.

OT: how you boot this GSI? is there any step needed beside flashing system, I'm always getting redmi logo bootloop no matter what I tried i.e close avb, .eu rom, lrtwrp.

tvardero commented 4 years ago

Not possible, xiaomi anti-rollback protection.

Phone does not have arb protection, I usually do downgrades back forth without any issue with fastboot rom flash through miflash tool.

OT: how you boot this GSI? is there any step needed beside flashing system, I'm always getting redmi logo bootloop no matter what I tried i.e close avb, .eu rom, lrtwrp.

Flash stock. Get twrp. Make a backup of system and data. Format data -> yes. Flash GSI. Android 9 GSIs have major RIL issue, android 10 GSIs have major audio issue. To flash another GSI or revert to stock you use your backup of system partition.

NEVER EVER RESTORE ANYTHING ELSE THAN SYSTEM OR DATA, softbrick imminent (to restore your phone from softbrick, flash vendor -> firmware -> MIUI from xiaomifirmware site).

Note: you can flash any GSI you want, but you will never flash GApps through recovery (it needs more space in system partition), else you will get bootloop (by resizing system partition).

Hopefullyidontgetbanned commented 4 years ago

Can confirm media is broken on almost every app except web browser - (aosp 10) On YouTube, the first frame of a video loads then proceeds to crash. On Twitter, first frame loads but stays at 0:00, seeking causes it crash. YouTube log:
logcat_01-07-2020_22-09-49.txt Twitter Video playback Log: logcat_01-07-2020_22-14-11.txt

Youtube has this fatal I noticed: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 17946 (MediaCodec_loop), pid 17756 (android.youtube)

I assume this is because the mediacodec is broken on begonia, which is why websites work, sorry if I made an error, I'm not an Android dev.

Hopefullyidontgetbanned commented 4 years ago

Can confirm calling works, however multimedia playback on most Android apps are broken. So nothing about the hardware seems off

jumper047 commented 4 years ago

Workaround for night light - toggle on "Disable HW overlays" in developer options.

jumper047 commented 4 years ago

@tvardero actually you can roll back via fastboot without issues. But on MIUI 10 vendor sound issue remains

jumper047 commented 4 years ago

Someone on RN8Pro telegram group reported that setprop debug.stagefright.omx_default_rank.sw-audio 1 & setprop debug.stagefright.omx_default_rank 0 fixes sound issue. I think if issue https://github.com/phhusson/treble_experimentations/issues/1122 will be implemented it must be mentioned on device's wiki page

tvardero commented 4 years ago

phh's AOSP 10 v212 gappsed tested, MIUI 11 vendor (android 9).

To fix Nightlight (thanks to @junker047): After each reboot: Go developer settings -> Toggle on "Disable HV overlays" ("Отключить аппаратные наложения")

To fix all the media, i.e. notifications, ringtones, music and video (thanks to Xakep1993 on 4PDA forum): Use any root explorer. Mount write and add following strings to end of /system/etc/prop.default :

debug.stagefright.omx_default_rank.sw-audio=1
debug.stagefright.omx_default_rank=0

Keep 0600 permission on the file. Reboot.

SafetyNet still untested. Can't uninstall old SU.


I can call it ready for daily use.

phhusson commented 4 years ago

" Go developer settings -> Toggle on "Disable HV overlays" ("Отключить аппаратные наложения")"

sadly this will lower global performance, and increase battery consumption

No 64MP, only 16MP on main cam in google camera port

You can access 64MP in stock rom?

tvardero commented 4 years ago

" Go developer settings -> Toggle on "Disable HV overlays"

Nah, i'm too lazy do it each reboot, so i'll prefer to wait for a fix.

You can access 64MP in stock rom?

Yes, i can. On this GCam port v6.1.

Btw, how to uninstall SU? Can't get rid of it (unSU script, magisk installer, twrp->unroot, none of them removed this root on gappsed version). Might be that is the reason why basic integrity fails. On the second hand i can't use vanilla aosp, because i can't install gapps. The reason is insufficient space in system partition, but resizing of partition leads to bootloop. :'(

jumper047 commented 4 years ago

@tvardero i seeing somewhere on xda recipe how to disable hw overlays permanently, but don't tested it due to reasons mentioned by @phhusson . About root - there must be a special script for removing it, /system/bin/phh-securize.sh Run it as root.

tvardero commented 4 years ago

/system/bin/phh-securize.sh

Running script make device bootloop. So i did all of it manually. Basic integrity was failed before and after of this procedure. Will try on vanilla v212 later.

jumper047 commented 4 years ago

Also faced bootloop on quack without gapps. Was able to boot after deleting /system/phh/secure file. About notch - strange, in my case notch detected correctly. Can you provide screenshot?

tvardero commented 4 years ago

Also faced bootloop on quack without gapps. Was able to boot after deleting /system/phh/secure file. About notch - strange, in my case notch detected correctly. Can you provide screenshot?

Was wrong about that, sorry.

Camera bugs: #1154

jumper047 commented 4 years ago

There is no sound issue with latest Q based vendor (tested on Andy's LineageOS 17).

tvardero commented 3 years ago

Closing because totally outdated.

For new bugs better to open new issue.