mlm-games / twrp_lenovo_7305x_m7_mt8765_P

TWRP device tree for 7305x
0 stars 0 forks source link

Decryption (Uses microtrust -> itrusty) #11

Open mlm-games opened 4 days ago

mlm-games commented 4 days ago

Trying to solve encryption for this tab, and GSIs not booting due to Keystore3.0 errors.

Any help would be appreciated

mlm-games commented 4 days ago

@lopestom I have looked through your Gist on "Adding firmware files for a mediatek device" and i didnt find anything related to itrusty so is it worth trying?

I have added some files related to it in the test-decrypt branch but it is the same as before

Firmware dumps (also present in tadi's gitlab repo): https://github.com/fw-dumps/lenovo_7305x_dump

lopestom commented 3 days ago

for a mediatek device" and i didnt find anything related to itrusty so is it worth trying?

trusty is a old encryption/decryption mode to old devices........ In the Spreadtum {SPD} and Unisoc devices that's a normal mode/files with trusty.

So that's a FBE type or FDE??!!! https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/c2e3e8e70d132cfe0a12f113b099d9f56f7dd3cb/BoardConfig.mk#L131

I have added some files related to it in the test-decrypt branch but it is the same as before

Firmware dumps (also present in tadi's gitlab repo): https://github.com/fw-dumps/lenovo_7305x_dump

1- What branch is better to look? https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/branches test-decrypt branch or other?

2- Lenovo TB-7305X (mt8765P) shipped/update Android? So your branch pbrp/shrp has omni and so 9. kernel from your device is for Android 9? Firmware is with Android 9?

https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/c2e3e8e70d132cfe0a12f113b099d9f56f7dd3cb/recovery/root/prop.default#L100

3- Since script to decrypt need so your https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/test-decrypt/recovery/root/init.recovery.mt6739.rc file is not good. Ah! Okay.. that's in https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/test-decrypt/recovery/root/init.recovery.rc

this https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/c2e3e8e70d132cfe0a12f113b099d9f56f7dd3cb/recovery/root/init.recovery.microtrust.rc#L66 not need since is for fingerprint starting.

4- Where's https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/c2e3e8e70d132cfe0a12f113b099d9f56f7dd3cb/recovery/root/vendor/etc/init/microtrust.storage.proinfo.rc#L3C9-L3C51 ??

here?! https://github.com/fw-dumps/lenovo_7305x_dump/blob/full_mt8765_P-user-9-PPR1.180610.011-2-release-keys/vendor/bin/istorageproxyd

https://github.com/fw-dumps/lenovo_7305x_dump/blob/82e01d953cb4aeeb56b0fbbfbb3aa114ecc044b6/vendor/data/misc/ProjectConfig.mk#L216

Maybe need mount \proinfo?! Maybe not........

5- vendor/bin/teei_loader

https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/c2e3e8e70d132cfe0a12f113b099d9f56f7dd3cb/.github/workflows/TWRP-build-test.yml#L58

https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/test-decrypt/recovery/root/vendor/bin/teei_loader

You need learning the firmware https://github.com/fw-dumps/lenovo_7305x_dump/blob/82e01d953cb4aeeb56b0fbbfbb3aa114ecc044b6/vendor/etc/init/hw/factory_init.rc#L12-L17

hwservicemanager & servicemanager need start before so on init https://github.com/fw-dumps/lenovo_7305x_dump/blob/82e01d953cb4aeeb56b0fbbfbb3aa114ecc044b6/vendor/etc/init/hw/factory_init.rc#L270-L272

Maybe need this? libion_mtk_sys.so libion_ulit_sys.so

Where's others binaries files?? keystore.itrusty.so keystore.mt6739.so

6- Since your files has https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/c2e3e8e70d132cfe0a12f113b099d9f56f7dd3cb/recovery/root/init.recovery.microtrust.rc#L44 So what reason has https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/test-decrypt/recovery/root/vendor/etc/init/android.hardware.keymaster%403.0-service.rc ??

and others rs files in that folder......... Maybe this will generate conflicts?!

7- fstype has /metadata partition? https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/c2e3e8e70d132cfe0a12f113b099d9f56f7dd3cb/BoardConfig.mk#L134

I can't find in the https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/test-decrypt/recovery/root/etc/recovery.fstab

Same to /mnt/vendor/persist https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/c2e3e8e70d132cfe0a12f113b099d9f56f7dd3cb/recovery/root/init.recovery.rc#L10

8- If I were to assemble the DT, I would do it differently. Mainly in relation to the init.recovery.{hardware}.rc and init.recovery.rc files since there is no init.recovery.usb.rc

There are many unnecessary files in your DT. In rc files there are unnecessary references.

9- I don't know and I don't remember if the TWRP source code will decrypt trusty mode. Did they update the source code after a long time? I tried more with keymaster@4.0, but theoretically keymaster@3.0 should be possible.

I believe that if you organize the script and corresponding files, you will succeed.

GSIs not booting due to Keystore3.0 errors.

Maybe you need install any disable_encryption zip file to modify some files and after can booting GSI.img. But that's depending of version of GSI Android.

mlm-games commented 3 days ago

I had recently used software fix from lenovo to get it back to stock.

Some extra info

Formatting data/factory reset in stock recovery wipes even mnt/vendor/nvdata (mine does not i think)

So that's a FBE type or FDE??!!! It has option to convert to FBE in settings (so i think it comes with FDE stock)

Maybe you need install any disable_encryption zip file to modify some files and after can booting GSI.img. But that's depending of version of GSI Android.

I tried flashing the no verity force encrypt zip and it still didnt cause it to stop showing the trust/keyerrors on AOSP A9 GSI (arm64 a/b)

I don't know and I don't remember if the TWRP source code will decrypt trusty mode. Did they update the source code after a long time? I tried more with keymaster@4.0, but theoretically keymaster@3.0 should be possible.

If it is not supported then maybe ill just see about booting the GSI by disabling encryption (I am just trying to solve the logcat keystore errors)

Will try to clean the dt and then compile a new one (branch -> test-decrypt for now)

mlm-games commented 3 days ago

It came with Android 9 only

And also when twrp launches, it says unable find the default password and asks me to enter when there is no password, so maybe it needs some proprietary binaries like omnirom's huawei binaries for decryption

lopestom commented 3 days ago

It came with Android 9 only

And also when twrp launches, it says unable find the default password and asks me to enter when there is no password, so maybe it needs some proprietary binaries like omnirom's huawei binaries for decryption

If it is not supported then maybe ill just see about booting the GSI by disabling encryption (I am just trying to solve the logcat keystore errors)

Will try to clean the dt and then compile a new one (branch -> test-decrypt for now)

Organize what I reported previously. Analyze the missing binary files and rc files and then make a new img file for testing. After that, if nothing is good, then if you can put log/logcat/dmesg files, it will be more interesting.

mlm-games commented 2 days ago

Tried cleaning (maybe missed some?) and adding the modifications, It still shows unable to find the default password...

Here is the around a page of the dmesg log

id 0 pid 301 in 0ms
[   33.035327]  (2)[1:init]init: Service 'keymaster-3-0' (pid 302) exited with status 127
[   33.035443]  (2)[1:init]init: Sending signal 9 to service 'keymaster-3-0' (pid 302) process group...
[   33.035836]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 302 in 0ms
[   33.036682]  (2)[1:init]init: Service 'gatekeeper-1-0' (pid 303) exited with status 127
[   33.036793]  (2)[1:init]init: Sending signal 9 to service 'gatekeeper-1-0' (pid 303) process group...
[   33.037168]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 303 in 0ms
[   33.037808]  (2)[1:init]init: Service 'keymaster_attestation-1-1' (pid 304) exited with status 127
[   33.037908]  (2)[1:init]init: Sending signal 9 to service 'keymaster_attestation-1-1' (pid 304) process group...
[   33.038255]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 304 in 0ms
[   33.326946]  (1)[235:charger_thread][fgauge_read_current] final current=1282 (ratio=1000)
[   33.339883]  (1)[235:charger_thread][fgauge_read_current] final current=1288 (ratio=1000)
[   33.339926]  (1)[235:charger_thread][BattVoltToTemp] 584 16900 1800 -3
[   33.339958]  (1)[235:charger_thread][force_get_tbat] 587,584,1,128,100,30 r:200 100 0
[   33.340104]  (1)[235:charger_thread]Vbat=4265,Ibat=1282,I=-178,VChr=4872,T=30,Soc=90:78,CT:1:1 hv:1 pd:0:0
[   33.341759] -(1)[235:charger_thread]mt6357_get_auxadc_value: 6 callbacks suppressed
[   33.341961]  (1)[235:charger_thread][fgauge_read_current] final current=1288 (ratio=1000)
[   33.342005]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1288, reg_val = 0x53a, adc_result = 587
[   33.342238]  (1)[235:charger_thread][fgauge_read_current] final current=1282 (ratio=1000)
[   33.342267]  (1)[235:charger_thread][BattVoltToTemp] 584 16900 1800 -3
[   33.342297]  (1)[235:charger_thread][force_get_tbat] 587,584,1,128,100,30 r:200 100 0
[   33.342342]  (1)[235:charger_thread][SW_JEITA] Battery Normal Temperature between 15 and 45 !!
[   33.342342] 
[   33.342354] [SW_JEITA]preState:2 newState:2 tmp:30 cv:0 cc:1500000
<5>[   33.344069]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 1, channel = 2, reg_val = 0x497, adc_result = 516
[   33.345708]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 1, channel = 2, reg_val = 0x495, adc_result = 515
[   33.345749]  (1)[235:charger_thread]tmp:30 (jeita:1 sm:2 cv:0 en:1) (sm:1) en:1 c:0 s:0 ov:0 1 1
[   33.347385]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 1, channel = 2, reg_val = 0x496, adc_result = 515
[   33.347427]  (1)[235:charger_thread]mtk_switch_charging_run [1 0], timer=20
[   33.349254]  (1)[235:charger_thread][fgauge_read_current] final current=1445 (ratio=1000)
[   33.349290]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1445, reg_val = 0x539, adc_result = 587
[   33.349495]  (1)[235:charger_thread][fgauge_read_current] final current=1445 (ratio=1000)
[   33.349524]  (1)[235:charger_thread][BattVoltToTemp] 583 16900 1800 -4
[   33.349553]  (1)[235:charger_thread][force_get_tbat] 587,583,1,144,100,30 r:200 100 0
[   33.349590]  (1)[235:charger_thread]pe40_ready:0 hv:1 thermal:-1,-1 tmp:30,39,16 pps:0 en:0 ibus:-524 80
[   33.349636]  (1)[235:charger_thread]force:0 thermal:-1,-1 pe4:-1,-1,0 setting:500 500 type:1 usb_unlimited:0 usbif:0 usbsm:2 aicl:-1
[   33.350112]  (1)[235:charger_thread][bq2560x]:bq2560x_set_ichg: [Lingfei][bq2560x_set_ichg][832] === curren: 500000======
[   33.351312]  (1)[235:charger_thread][bq2560x]:bq2560x_charging: enable charger successfully
[   33.352708]  (1)[235:charger_thread][bq2560x]:bq2560x_charging: enable charger successfully
[   33.353371]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[00] = 0x04
[   33.353614]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[01] = 0x1b
[   33.353854]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[02] = 0x08
[   33.354105]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[03] = 0x22
[   33.354348]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[04] = 0x88
[   33.354588]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[05] = 0x87
[   33.354828]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[06] = 0x17
[   33.355077]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[07] = 0x4d
[   33.355320]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[08] = 0x34
[   33.355559]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[09] = 0x00
[   33.355798]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[0a] = 0xa3
[   33.356058]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[0b] = 0x11
[   33.445579]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   33.445635]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   33.445732]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   35.457648]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   35.457708]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   35.457804]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   36.343580]  (2)[195:kworker/u8:3][fgauge_read_current] final current=1405 (ratio=1000)
[   36.343641]  (2)[195:kworker/u8:3][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1405, reg_val = 0x53a, adc_result = 587
[   36.343881]  (2)[195:kworker/u8:3][fgauge_read_current] final current=1405 (ratio=1000)
[   36.343913]  (2)[195:kworker/u8:3][BattVoltToTemp] 583 16900 1800 -4
[   36.343943]  (2)[195:kworker/u8:3][force_get_tbat] 587,583,1,140,100,30 r:200 100 0
[   37.315876]  (1)[0:swapper/1]Power/swap DP: No enter --- SODI3: No enter --- SODI: No enter --- 
[   37.384108]  (1)[0:swapper/1]mcdi cpu: 0, 0, 0, 0, cluster : 0, pause = 0, multi core = 0, residency = 0, last core = 0, avail cpu = 000f, cluster = 0001, enabled = 0, max_s_state = 5, system_idle_hint = 00000000 (mcdi_fw_fail: 0xf)
[   37.384108] 
[   37.469791]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   37.469845]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   37.469942]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   38.029145]  (2)[1:init]init: starting service 'teei_loader'...
[   38.031571]  (2)[1:init]init: starting service 'keymaster-3-0'...
[   38.032592]  (1)[306:init]init: cannot execve('/vendor/bin/teei_loader'): No such file or directory
[   38.034368]  (2)[1:init]init: starting service 'gatekeeper-1-0'...
[   38.034971]  (1)[307:init]init: cannot execve('/vendor/bin/hw/android.hardware.keymaster@3.0-service'): No such file or directory
[   38.036191]  (0)[265:kworker/0:2]usb_state<CONFIGURED>
[   38.037120]  (2)[1:init]init: starting service 'keymaster_attestation-1-1'...
[   38.037945]  (1)[308:init]init: cannot execve('/vendor/bin/hw/android.hardware.gatekeeper@1.0-service'): No such file or directory
[   38.039914]  (2)[1:init]init: Service 'teei_loader' (pid 306) exited with status 127
[   38.040165]  (2)[1:init]init: Sending signal 9 to service 'teei_loader' (pid 306) process group...
[   38.040411]  (1)[309:init]init: cannot execve('/vendor/bin/hw/vendor.mediatek.hardware.keymaster_attestation@1.1-service'): No such file or directory
[   38.040725]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 306 in 0ms
[   38.041490]  (2)[1:init]init: Service 'keymaster-3-0' (pid 307) exited with status 127
[   38.041753]  (2)[1:init]init: Sending signal 9 to service 'keymaster-3-0' (pid 307) process group...
[   38.042151]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 307 in 0ms
[   38.042757]  (2)[1:init]init: Service 'gatekeeper-1-0' (pid 308) exited with status 127
[   38.042854]  (2)[1:init]init: Sending signal 9 to service 'gatekeeper-1-0' (pid 308) process group...
[   38.043180]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 308 in 0ms
[   38.043719]  (2)[1:init]init: Service 'keymaster_attestation-1-1' (pid 309) exited with status 127
[   38.043816]  (2)[1:init]init: Sending signal 9 to service 'keymaster_attestation-1-1' (pid 309) process group...
[   38.044304]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 309 in 0ms
[   38.203557] -(1)[253:recovery]audit_printk_skb: 57 callbacks suppressed
[   38.203581]  (1)[253:recovery]audit: type=1400 audit(1726404290.083:30): avc:  denied  { mounton } for  pid=253 comm="recovery" path="/mnt/vendor/nvcfg" dev="tmpfs" ino=2648 scontext=u:r:recovery:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=1
[   38.207978]  (1)[253:recovery]EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: 
[   38.208753] -(1)[253:recovery]SELinux:  Context u:object_r:nvcfg_file:s0 is not valid (left unmapped).
[   38.228565]  (1)[253:recovery]EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: 
[   38.229217] -(1)[253:recovery]SELinux:  Context u:object_r:nvdata_file:s0 is not valid (left unmapped).
[   38.244426]  (2)[253:recovery]EXT4-fs (mmcblk0p9): mounted filesystem with ordered data mode. Opts: 
[   38.245079] -(2)[253:recovery]SELinux:  Context u:object_r:protect_f_data_file:s0 is not valid (left unmapped).
[   38.260235]  (3)[253:recovery]EXT4-fs (mmcblk0p10): mounted filesystem with ordered data mode. Opts: 
[   38.260912] -(3)[253:recovery]SELinux:  Context u:object_r:protect_s_data_file:s0 is not valid (left unmapped).
[   38.285808]  (3)[253:recovery]EXT4-fs (mmcblk0p29): mounted filesystem with ordered data mode. Opts: 
[   38.286585] -(3)[253:recovery]SELinux:  Context u:object_r:lenovocust_file:s0 is not valid (left unmapped).
[   38.306773]  (1)[253:recovery]EXT4-fs (mmcblk0p30): mounted filesystem without journal. Opts: 
[   38.325887]  (1)[253:recovery]EXT4-fs (mmcblk0p31): mounted filesystem without journal. Opts: 
[   38.345908]  (2)[253:recovery]EXT4-fs (mmcblk0p31): mounted filesystem without journal. Opts: 
[   38.356878]  (2)[253:recovery]audit: type=1400 audit(1726404290.239:31): avc:  denied  { module_request } for  pid=253 comm="recovery" kmod="fs-auto" scontext=u:r:recovery:s0 tcontext=u:r:kernel:s0 tclass=system permissive=1
[   38.363678]  (2)[253:recovery]audit: type=1400 audit(1726404290.243:32): avc:  denied  { create } for  pid=253 comm="recovery" scontext=u:r:recovery:s0 tcontext=u:r:recovery:s0 tclass=netlink_kobject_uevent_socket permissive=1
[   38.363871]  (2)[253:recovery]audit: type=1400 audit(1726404290.243:33): avc:  denied  { bind } for  pid=253 comm="recovery" scontext=u:r:recovery:s0 tcontext=u:r:recovery:s0 tclass=netlink_kobject_uevent_socket permissive=1
[   38.637059]  (2)[253:recovery][fgauge_read_current] final current=336 (ratio=1000)
[   38.637088]  (2)[253:recovery][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 336, reg_val = 0x539, adc_result = 587
[   38.637272]  (2)[253:recovery][fgauge_read_current] final current=295 (ratio=1000)
[   38.637281]  (2)[253:recovery][BattVoltToTemp] 587 16900 1800 0
[   38.637289]  (2)[253:recovery][force_get_tbat] 587,587,1,29,100,30 r:200 100 0
[   39.184284]  (2)[253:recovery]audit: type=1400 audit(1726404291.067:34): avc:  denied  { getattr } for  pid=253 comm="recovery" path="/vndservice_contexts" dev="rootfs" ino=2080 scontext=u:r:recovery:s0 tcontext=u:object_r:vndservice_contexts_file:s0 tclass=file permissive=1
[   39.184350]  (2)[253:recovery]audit: type=1400 audit(1726404291.067:35): avc:  denied  { getattr } for  pid=253 comm="recovery" path="/vendor_service_contexts" dev="rootfs" ino=2079 scontext=u:r:recovery:s0 tcontext=u:object_r:nonplat_service_contexts_file:s0 tclass=file permissive=1
[   39.184398]  (2)[253:recovery]audit: type=1400 audit(1726404291.067:36): avc:  denied  { getattr } for  pid=253 comm="recovery" path="/vendor_seapp_contexts" dev="rootfs" ino=2078 scontext=u:r:recovery:s0 tcontext=u:object_r:seapp_contexts_file:s0 tclass=file permissive=1
[   39.184476]  (2)[253:recovery]audit: type=1400 audit(1726404291.067:37): avc:  denied  { getattr } for  pid=253 comm="recovery" path="/vendor_hwservice_contexts" dev="rootfs" ino=2076 scontext=u:r:recovery:s0 tcontext=u:object_r:hwservice_contexts_file:s0 tclass=file permissive=1
[   39.184586]  (2)[253:recovery]audit: type=1400 audit(1726404291.067:38): avc:  denied  { getattr } for  pid=253 comm="recovery" path="/sepolicy" dev="rootfs" ino=8693 scontext=u:r:recovery:s0 tcontext=u:object_r:sepolicy_file:s0 tclass=file permissive=1
[   39.184696]  (2)[253:recovery]audit: type=1400 audit(1726404291.067:39): avc:  denied  { getattr } for  pid=253 comm="recovery" path="/plat_service_contexts" dev="rootfs" ino=8356 scontext=u:r:recovery:s0 tcontext=u:object_r:service_contexts_file:s0 tclass=file permissive=1
[   39.403696]  (1)[253:recovery][DISP]AEE is not enabled, will disable layer 3
[   39.413232]  (1)[253:recovery]mtk-tpd: tpd_fb_notifier_callback
[   39.481708]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   39.481734]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   39.481767]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   41.351602]  (3)[57:kworker/u8:2][fgauge_read_current] final current=1392 (ratio=1000)
[   41.351661]  (3)[57:kworker/u8:2][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1392, reg_val = 0x53a, adc_result = 587
[   41.351877]  (3)[57:kworker/u8:2][fgauge_read_current] final current=1392 (ratio=1000)
[   41.351909]  (3)[57:kworker/u8:2][BattVoltToTemp] 583 16900 1800 -4
[   41.351939]  (3)[57:kworker/u8:2][force_get_tbat] 587,583,1,139,100,30 r:200 100 0
[   41.493920]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   41.493979]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   41.494077]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   42.328096]  (1)[0:swapper/1]Power/swap DP: No enter --- SODI3: No enter --- SODI: No enter --- 
[   42.349000]  (0)[187:battery_thread][fg_drv_update_hw_status]=>
[   42.350840]  (0)[187:battery_thread][fgauge_read_current] final current=1452 (ratio=1000)
[   42.350878]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1452, reg_val = 0x538, adc_result = 587
[   42.351115]  (0)[187:battery_thread][fgauge_read_current] final current=1452 (ratio=1000)
[   42.351146]  (0)[187:battery_thread][BattVoltToTemp] 583 16900 1800 -4
[   42.351176]  (0)[187:battery_thread][force_get_tbat] 587,583,1,145,100,30 r:200 100 0
[   42.351215]  (0)[187:battery_thread][fg_bat_temp_int_sw_check] tmp 30 lt 65535 ht 65535
[   42.351246]  (0)[187:battery_thread][fg_bat_sw_temp_int_l_handler]
[   42.353067]  (0)[187:battery_thread][fgauge_read_current] final current=1464 (ratio=1000)
[   42.353103]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1464, reg_val = 0x539, adc_result = 587
[   42.353313]  (0)[187:battery_thread][fgauge_read_current] final current=1464 (ratio=1000)
[   42.353342]  (0)[187:battery_thread][BattVoltToTemp] 583 16900 1800 -4
[   42.353371]  (0)[187:battery_thread][force_get_tbat] 587,583,1,146,100,30 r:200 100 0
[   42.353410]  (0)[187:battery_thread]mtk_battery boot mode =2
[   42.353437]  (0)[187:battery_thread][wakeup_fg_algo_recovery] intr_num=0x400
[   42.353465]  (0)[187:battery_thread][TempConverBattThermistor] [8042] 30 8315 35 6948 31
[   42.353675]  (0)[187:battery_thread][fgauge_read_current] final current=1464 (ratio=1000)
[   42.353703]  (0)[187:battery_thread][TempToBattVolt] temp 31 R_NTC 8042 V(5803 5846) I 1464 CHG 1
[   42.353737]  (0)[187:battery_thread][TempConverBattThermistor] [8652] 25 10000 30 8315 29
[   42.353770]  (0)[187:battery_thread][TempToBattVolt] temp 29 R_NTC 8652 V(6094 6137) I 1464 CHG 1
[   42.353804]  (0)[187:battery_thread][fg_bat_temp_int_internal][FG_TEMP_INT] T[30] V[65535 65535] C[31 29] h[6137 5846]
[   42.357014]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 0, channel = 0, reg_val = 0x651e, adc_result = 4265
[   42.357063]  (0)[187:battery_thread][MTS_ADC] OLD = 0x35a0, NOW = 0x359d, CNT = 0
[   42.358897]  (0)[187:battery_thread][fgauge_read_current] final current=1345 (ratio=1000)
[   42.358932]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1345, reg_val = 0x539, adc_result = 587
[   42.359138]  (0)[187:battery_thread][fgauge_read_current] final current=1345 (ratio=1000)
[   42.359168]  (0)[187:battery_thread][BattVoltToTemp] 583 16900 1800 -4
[   42.359197]  (0)[187:battery_thread][force_get_tbat] 587,583,1,134,100,30 r:200 100 0
[   42.359265]  (0)[187:battery_thread][fg_update_sw_iavg]diff time:40
[   42.359298]  (0)[187:battery_thread][read_boot_battery_plug_out_status] rtc_invalid 0 plugout 0 bat_plug_out_time 31 sp3:0xce pl:0 0
[   42.359506]  (0)[187:battery_thread][fgauge_read_current] final current=1345 (ratio=1000)
[   42.359722]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=15 r_fg_value=100 car_tune_value=1000
[   42.360213]  (0)[265:kworker/0:2][fgauge_read_current] final current=1273 (ratio=1000)
[   42.366343]  (0)[187:battery_thread][fgauge_read_current] final current=1097 (ratio=1000)
[   42.366403]  (0)[187:battery_thread][BattVoltToTemp] 584 16900 1800 -3
[   42.366434]  (0)[187:battery_thread][force_get_tbat] 587,584,1,109,100,30 r:200 100 0
[   42.366474]  (0)[187:battery_thread]lbat 0 0 1 34500
[   42.366504]  (0)[187:battery_thread]car[15,173,-173,347,-200, cycle_car:0,ncar:0] c:1 1345 vbat:4262 vbus:4882 soc:90 78 gm3:0 0 0 0
[   42.366741]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=15 r_fg_value=100 car_tune_value=1000
[   42.366788]  (0)[187:battery_thread][fg_bat_nafg][fgauge_get_nafg_cnt] 0 [25_16 0 15_0 0]
[   42.366818]  (0)[187:battery_thread][fg_nafg_monitor]time:42 nafg_cnt:0, now:42, last_t:0
[   42.366850]  (0)[187:battery_thread]tmp:30 65535 65535 hcar2:347 lcar2:200 time:42 sw_iavg:0 0 0 nafg_m:0 0 0
[   42.367076]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=15 r_fg_value=100 car_tune_value=1000
[   42.367106]  (0)[187:battery_thread]GM3log int 42 42 0 0 0 0 0
[   42.370493]  (0)[187:battery_thread][fgauge_read_current] final current=1238 (ratio=1000)
[   42.372329]  (0)[187:battery_thread][fgauge_read_current] final current=1194 (ratio=1000)
[   42.372367]  (0)[187:battery_thread][BattVoltToTemp] 584 16900 1800 -3
[   42.372398]  (0)[187:battery_thread][force_get_tbat] 587,584,1,119,100,30 r:200 100 0
[   42.372450]  (0)[187:battery_thread][fg_is_battery_exist] PMIC_RGS_BATON_UNDET = 1
[   42.372477]  (0)[187:battery_thread]GM3log1 42 4265 1238 0 55000 15 30 1 1 170 1 0
[   42.374115]  (0)[187:battery_thread]GM3log2 42 0 0 0 42635 1238 1 4882
[   42.374156]  (0)[187:battery_thread]GM3log3 42 0 42228 -9
[   42.374185]  (0)[187:battery_thread]GM3log4 0 78 0 0 31 0 0 1 1 1 90
[   42.374220]  (0)[187:battery_thread]GM3 car:15 car_diff:0
[   42.374247]  (0)[187:battery_thread]mtk_battery boot mode =2
[   42.374272]  (0)[187:battery_thread][wakeup_fg_algo_recovery] intr_num=0x2000000
[   42.397264]  (2)[0:swapper/2]mcdi cpu: 0, 0, 0, 0, cluster : 0, pause = 0, multi core = 0, residency = 0, last core = 0, avail cpu = 000f, cluster = 0001, enabled = 0, max_s_state = 5, system_idle_hint = 00000000 (mcdi_fw_fail: 0xf)
[   42.397264] 
[   42.560141]  (1)[238:wdtk-1][thread:238][RT:42560114639] 2024-09-15 12:44:54.447613 UTC;android time 2024-09-15 12:44:54.447613
[   42.560174]  (2)[239:wdtk-2][wdk-k] cpu=2,lbit=0xf,cbit=0xf,3,1,2556081928,[42560157947]
[   43.036273]  (0)[1:init]init: starting service 'teei_loader'...
[   43.038838]  (0)[1:init]init: starting service 'keymaster-3-0'...
[   43.039549]  (2)[328:init]init: cannot execve('/vendor/bin/teei_loader'): No such file or directory
[   43.041597]  (0)[1:init]init: starting service 'gatekeeper-1-0'...
[   43.042256]  (2)[329:init]init: cannot execve('/vendor/bin/hw/android.hardware.keymaster@3.0-service'): No such file or directory
[   43.044149]  (0)[265:kworker/0:2]usb_state<CONFIGURED>
[   43.044477]  (0)[1:init]init: starting service 'keymaster_attestation-1-1'...
[   43.044863]  (2)[330:init]init: cannot execve('/vendor/bin/hw/android.hardware.gatekeeper@1.0-service'): No such file or directory
[   43.047227]  (0)[1:init]init: Service 'teei_loader' (pid 328) exited with status 127
[   43.047377]  (0)[1:init]init: Sending signal 9 to service 'teei_loader' (pid 328) process group...
[   43.047664]  (2)[331:init]init: cannot execve('/vendor/bin/hw/vendor.mediatek.hardware.keymaster_attestation@1.1-service'): No such file or directory
[   43.047758]  (0)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 328 in 0ms
[   43.048742]  (0)[1:init]init: Service 'keymaster-3-0' (pid 329) exited with status 127
[   43.048864]  (0)[1:init]init: Sending signal 9 to service 'keymaster-3-0' (pid 329) process group...
[   43.049396]  (0)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 329 in 0ms
[   43.050022]  (0)[1:init]init: Service 'gatekeeper-1-0' (pid 330) exited with status 127
[   43.050121]  (0)[1:init]init: Sending signal 9 to service 'gatekeeper-1-0' (pid 330) process group...
[   43.050455]  (0)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 330 in 0ms
[   43.050999]  (0)[1:init]init: Service 'keymaster_attestation-1-1' (pid 331) exited with status 127
[   43.051095]  (0)[1:init]init: Sending signal 9 to service 'keymaster_attestation-1-1' (pid 331) process group...
[   43.051407]  (0)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 331 in 0ms
[   43.340495]  (1)[235:charger_thread][fgauge_read_current] final current=1364 (ratio=1000)
[   43.353244] -(1)[235:charger_thread]mt6357_get_auxadc_value: 10 callbacks suppressed
[   43.353465]  (1)[235:charger_thread][fgauge_read_current] final current=1269 (ratio=1000)
[   43.353513]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1269, reg_val = 0x539, adc_result = 587
[   43.356697]  (1)[235:charger_thread][fgauge_read_current] final current=1436 (ratio=1000)
[   43.356734]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1436, reg_val = 0x539, adc_result = 587
[   43.358374]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 4, channel = 11, reg_val = 0xfff, adc_result = 1799
[   43.360239]  (1)[235:charger_thread][fgauge_read_current] final current=1345 (ratio=1000)
[   43.360275]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1345, reg_val = 0x539, adc_result = 587
[   43.361908]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 3, channel = 3, reg_val = 0x539, adc_result = 587
[   43.361947]  (1)[235:charger_thread]BAT_TEMP1: 587, BAT_TEMP2:587, VBIF:1799, BAT_TEMP3:587, BATID:587
[   43.362159]  (1)[235:charger_thread][fgauge_read_current] final current=1386 (ratio=1000)
[   43.362190]  (1)[235:charger_thread][BattVoltToTemp] 583 16900 1800 -4
[   43.362220]  (1)[235:charger_thread][force_get_tbat] 587,583,1,138,100,30 r:200 100 0
[   43.362260]  (1)[235:charger_thread]Vbat=4266,Ibat=1364,I=-160,VChr=4882,T=30,Soc=90:78,CT:1:1 hv:1 pd:0:0
[   43.364147]  (1)[235:charger_thread][fgauge_read_current] final current=1389 (ratio=1000)
[   43.364185]  (1)[235:charger_thread][BattVoltToTemp] 583 16900 1800 -4
[   43.364215]  (1)[235:charger_thread][force_get_tbat] 587,583,1,138,100,30 r:200 100 0
[   43.364260]  (1)[235:charger_thread][SW_JEITA] Battery Normal Temperature between 15 and 45 !!
[   43.364260] 
[   43.364273] [SW_JEITA]preState:2 newState:2 tmp:30 cv:0 cc:1500000
<5>[   43.367509]  (1)[235:charger_thread]tmp:30 (jeita:1 sm:2 cv:0 en:1) (sm:1) en:1 c:0 s:0 ov:0 1 1
[   43.369160]  (1)[235:charger_thread]mtk_switch_charging_run [1 0], timer=30
[   43.370981]  (1)[235:charger_thread][fgauge_read_current] final current=1313 (ratio=1000)
[   43.371018]  (1)[235:charger_thread][BattVoltToTemp] 584 16900 1800 -3
[   43.371049]  (1)[235:charger_thread][force_get_tbat] 587,584,1,131,100,30 r:200 100 0
[   43.371087]  (1)[235:charger_thread]pe40_ready:0 hv:1 thermal:-1,-1 tmp:30,39,16 pps:0 en:0 ibus:-524 80
[   43.371132]  (1)[235:charger_thread]force:0 thermal:-1,-1 pe4:-1,-1,0 setting:500 500 type:1 usb_unlimited:0 usbif:0 usbsm:2 aicl:-1
[   43.371608]  (1)[235:charger_thread][bq2560x]:bq2560x_set_ichg: [Lingfei][bq2560x_set_ichg][832] === curren: 500000======
[   43.372824]  (1)[235:charger_thread][bq2560x]:bq2560x_charging: enable charger successfully
[   43.374202]  (1)[235:charger_thread][bq2560x]:bq2560x_charging: enable charger successfully
[   43.374866]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[00] = 0x04
[   43.375109]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[01] = 0x1b
[   43.375361]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[02] = 0x08
[   43.375603]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[03] = 0x22
[   43.375843]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[04] = 0x88
[   43.376091]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[05] = 0x87
[   43.376341]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[06] = 0x17
[   43.376583]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[07] = 0x4d
[   43.376823]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[08] = 0x34
[   43.377063]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[09] = 0x00
[   43.377314]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[0a] = 0xa3
[   43.377555]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[0b] = 0x11
[   43.505922]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   43.505977]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   43.506074]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   44.923038] -(1)[253:recovery]mt6357_get_auxadc_value: 5 callbacks suppressed
[   44.923256]  (1)[253:recovery][fgauge_read_current] final current=1298 (ratio=1000)
[   44.923314]  (1)[253:recovery][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1298, reg_val = 0x539, adc_result = 587
[   44.923532]  (1)[253:recovery][fgauge_read_current] final current=1298 (ratio=1000)
[   44.923563]  (1)[253:recovery][BattVoltToTemp] 584 16900 1800 -3
[   44.923593]  (1)[253:recovery][force_get_tbat] 587,584,1,129,100,30 r:200 100 0
mlm-games commented 2 days ago

till 9 secs of boot

[    9.674733]  (1)[269:kworker/1:2]android_work: sent uevent USB_STATE=CONNECTED
[    9.679254] -(2)[0:swapper/2][MUSB]musb_stage0_irq 1165: musb_stage0_irq:1165 MUSB_INTR_RESET (b_peripheral)
[    9.679316] -(2)[0:swapper/2]QMU_WARN,<musb_disable_q_all 308>, disable_q_all
[    9.679357] -(2)[0:swapper/2][MUSB]musb_sync_with_bat 722: BATTERY_SetUSBState, state=1
[    9.679387] -(2)[0:swapper/2][BATTERY] BAT_SetUSBState Success! Set 1
[    9.679414] -(2)[0:swapper/2]android_disconnect
[    9.679472] -(2)[0:swapper/2]configfs-gadget gadget: [COM]composite_disconnect: reassign the complete function!!
[    9.679656]  (2)[193:kworker/2:2]android_work: sent uevent USB_STATE=DISCONNECTED
[    9.801698]  (3)[71:kworker/3:1]android_work: sent uevent USB_STATE=CONNECTED
[    9.802298] -(1)[0:swapper/1]usb_gadget_get_string overwrite len=8 id=3
[    9.806525] -(0)[0:swapper/0]configfs-gadget gadget: high-speed config #1: b
[    9.806607] -(0)[0:swapper/0][MUSB]fifo_setup 1238: musb type=BULK
[    9.806643] -(0)[0:swapper/0][MUSB]check_musb_dbuffer_avail 1196: <check_musb_dbuffer_avail, 1196>, got bulk ep:81 in function :mtp
[    9.806679] -(0)[0:swapper/0][MUSB]is_saving_mode 908: 0
[    9.806707] -(0)[0:swapper/0][MUSB]fifo_setup 1267: EP1 supports DBBUF
[    9.806734] -(0)[0:swapper/0][MUSB]fifo_setup 1279: fifo size is 22 after 512, fifo address is 512, epnum 1,hwepnum 1
[    9.806770] -(0)[0:swapper/0]QMU_WARN,<mtk_qmu_enable 636>, enable TQ(1)
[    9.806805] -(0)[0:swapper/0][MUSB]musb_gadget_enable 1477: musb-hdrc periph: enabled ep1in for bulk IN, maxpacket 512
[    9.806847] -(0)[0:swapper/0][MUSB]fifo_setup 1238: musb type=BULK
[    9.806875] -(0)[0:swapper/0][MUSB]check_musb_dbuffer_avail 1196: <check_musb_dbuffer_avail, 1196>, got bulk ep:1 in function :mtp
[    9.806908] -(0)[0:swapper/0][MUSB]is_saving_mode 908: 0
[    9.806933] -(0)[0:swapper/0][MUSB]fifo_setup 1267: EP1 supports DBBUF
[    9.806960] -(0)[0:swapper/0][MUSB]fifo_setup 1279: fifo size is 22 after 512, fifo address is 1536, epnum 1,hwepnum 1
[    9.806994] -(0)[0:swapper/0]QMU_WARN,<mtk_qmu_enable 567>, enable RQ(1)
[    9.807026] -(0)[0:swapper/0][MUSB]musb_gadget_enable 1477: musb-hdrc periph: enabled ep1out for bulk OUT, maxpacket 512
[    9.807065] -(0)[0:swapper/0][MUSB]fifo_setup 1238: musb type=INT
[    9.807092] -(0)[0:swapper/0][MUSB]fifo_setup 1279: fifo size is 6 after 512, fifo address is 2560, epnum 2,hwepnum 2
[    9.807126] -(0)[0:swapper/0]QMU_WARN,<mtk_qmu_enable 636>, enable TQ(2)
[    9.807160] -(0)[0:swapper/0][MUSB]musb_gadget_enable 1477: musb-hdrc periph: enabled ep2in for int IN, maxpacket 28
[    9.807201] -(0)[0:swapper/0][MUSB]fifo_setup 1238: musb type=BULK
[    9.807230] -(0)[0:swapper/0][MUSB]fifo_setup 1279: fifo size is 6 after 512, fifo address is 3072, epnum 2,hwepnum 2
[    9.807264] -(0)[0:swapper/0]QMU_WARN,<mtk_qmu_enable 567>, enable RQ(2)
[    9.807296] -(0)[0:swapper/0][MUSB]musb_gadget_enable 1477: musb-hdrc periph: enabled ep2out for bulk OUT, maxpacket 512
[    9.807363] -(0)[0:swapper/0][MUSB]fifo_setup 1238: musb type=BULK
[    9.807395] -(0)[0:swapper/0][MUSB]fifo_setup 1279: fifo size is 6 after 512, fifo address is 3584, epnum 3,hwepnum 3
[    9.807430] -(0)[0:swapper/0]QMU_WARN,<mtk_qmu_enable 636>, enable TQ(3)
[    9.807464] -(0)[0:swapper/0][MUSB]musb_gadget_enable 1477: musb-hdrc periph: enabled ep3in for bulk IN, maxpacket 512
[    9.807503] -(0)[0:swapper/0]configfs-gadget gadget: [COM]USB_REQ_SET_CONFIGURATION: value=0
[    9.807541] -(0)[0:swapper/0][MUSB]musb_sync_with_bat 722: BATTERY_SetUSBState, state=2
[    9.807570] -(0)[0:swapper/0][BATTERY] BAT_SetUSBState Success! Set 2
[    9.807743]  (0)[265:kworker/0:2]android_work: sent uevent USB_STATE=CONFIGURED
[    9.973983]  (2)[283:<-transport]ffs_epfile_io: cnxn_cnt=1
[   11.303361] -(1)[195:kworker/u8:3]mt6357_get_auxadc_value: 85 callbacks suppressed
[   11.303572]  (1)[195:kworker/u8:3][fgauge_read_current] final current=1379 (ratio=1000)
[   11.303631]  (1)[195:kworker/u8:3][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1379, reg_val = 0x53c, adc_result = 588
[   11.303848]  (1)[195:kworker/u8:3][fgauge_read_current] final current=1379 (ratio=1000)
[   11.303880]  (1)[195:kworker/u8:3][BattVoltToTemp] 584 16900 1800 -4
[   11.303910]  (1)[195:kworker/u8:3][force_get_tbat] 588,584,1,137,100,30 r:200 100 0
[   11.312827]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   11.312884]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   11.312982]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   12.238995]  (0)[187:battery_thread][fg_drv_update_hw_status]=>
[   12.240857]  (0)[187:battery_thread][fgauge_read_current] final current=1235 (ratio=1000)
[   12.240895]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1235, reg_val = 0x53c, adc_result = 588
[   12.241129]  (0)[187:battery_thread][fgauge_read_current] final current=1235 (ratio=1000)
[   12.241160]  (0)[187:battery_thread][BattVoltToTemp] 585 16900 1800 -3
[   12.241191]  (0)[187:battery_thread][force_get_tbat] 588,585,1,123,100,30 r:200 100 0
[   12.241230]  (0)[187:battery_thread][fg_bat_temp_int_sw_check] tmp 30 lt 65535 ht 65535
[   12.241260]  (0)[187:battery_thread][fg_bat_sw_temp_int_l_handler]
[   12.244640]  (0)[187:battery_thread][fgauge_read_current] final current=1235 (ratio=1000)
[   12.244677]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1235, reg_val = 0x53c, adc_result = 588
[   12.244917]  (0)[187:battery_thread][fgauge_read_current] final current=1235 (ratio=1000)
[   12.244947]  (0)[187:battery_thread][BattVoltToTemp] 585 16900 1800 -3
[   12.244976]  (0)[187:battery_thread][force_get_tbat] 588,585,1,123,100,30 r:200 100 0
[   12.245016]  (0)[187:battery_thread]mtk_battery boot mode =2
[   12.246837]  (0)[187:battery_thread][fgauge_read_current] final current=1254 (ratio=1000)
[   12.246873]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1254, reg_val = 0x53d, adc_result = 589
[   12.247083]  (0)[187:battery_thread][fgauge_read_current] final current=1254 (ratio=1000)
[   12.247113]  (0)[187:battery_thread][BattVoltToTemp] 586 16900 1800 -3
[   12.247143]  (0)[187:battery_thread][force_get_tbat] 589,586,1,125,100,30 r:200 100 0
[   12.247183]  (0)[187:battery_thread]act:5 table: 50 25 0 -10 -10 -25 -30 -35 -40 -45
[   12.247221]  (0)[187:battery_thread]active_table_no is 5, 0 1
[   12.247247]  (0)[187:battery_thread]table[0]:50
[   12.247272]  (0)[187:battery_thread]table[1]:25
[   12.247296]  (0)[187:battery_thread]table[2]:0
[   12.247321]  (0)[187:battery_thread]table[3]:-10
[   12.247346]  (0)[187:battery_thread]table[4]:-10
[   12.247398]  (0)[187:battery_thread][fr] FG_DAEMON_CMD_GET_RAC = 170
[   12.247424]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_GET_RAC:0 170
[   12.254609]  (0)[187:battery_thread][fgauge_read_IM_current] final current=1238 (ratio=1000)
[   12.254646]  (0)[187:battery_thread]do_ptim_internal : bat 42635 cur 1238
[   12.254676]  (0)[187:battery_thread][fr] PTIM V 42635 I 1238
[   12.254703]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_GET_PTIM_VBAT:0 42635
[   12.254736]  (0)[187:battery_thread][fr] FG_DAEMON_CMD_GET_PTIM_I = 1238
[   12.254761]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_GET_PTIM_I:0 1238
[   12.256571]  (0)[187:battery_thread][fgauge_read_current] final current=1370 (ratio=1000)
[   12.256608]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1370, reg_val = 0x53d, adc_result = 589
[   12.256818]  (0)[187:battery_thread][fgauge_read_current] final current=1370 (ratio=1000)
[   12.256847]  (0)[187:battery_thread][BattVoltToTemp] 585 16900 1800 -4
[   12.256876]  (0)[187:battery_thread][force_get_tbat] 589,585,1,137,100,30 r:200 100 0
[   12.256913]  (0)[187:battery_thread][fg_construct_vboot] idx 254 T_NEW 30 T_table 0 T_table_c 30 qmax_sel 1
[   12.256955]  (0)[187:battery_thread][fg_construct_by_vboot]index 254 idx:68 _vboot:33585 0 qmax_t_0ma_tb1:35122
[   12.256989]  (0)[187:battery_thread][fg_compensate_battery_voltage_from_low]size:68 oriv=33500 I:-5000
[   12.257019]  (0)[187:battery_thread][fg_compensate_battery_voltage_from_low]find high=66,[10107][9993]
[   12.257048]  (0)[187:battery_thread][fg_compensate_battery_voltage_from_low] h_percent=[9993,9839],high=65,fg_volt_withIR=33947 > oriv=33500
[   12.257085]  (0)[187:battery_thread][fg_compensate_battery_voltage_from_low]fg_volt=35030,65,IR=-1450,orig_v:33500,+IR=33580,percent=9883,
[   12.257127]  (0)[187:battery_thread][fg_construct_by_vboot]index 254 idx:65 _vboot:35030 34248 qmax_t_0ma_tb1:34715
[   12.257159]  (0)[187:battery_thread][fg_construct_vboot]idx 254 T_NEW 30 T_table 0 T_table_c 30 qmax_sel 1 vboot_t=[33585:0:35030] 33500 5000 rac 170
[   12.257200]  (0)[187:battery_thread][fg_construct_vboot] qmax_sel=1 iboot_sel=0 iboot:5000 vbat:42635 i:1238 vboot:0 35030 33585
[   12.257236]  (0)[187:battery_thread][fg_construct_vboot][by_vboot]qmax_sel 1 vboot_t 33585 vboot 0 35030 pmic_min_vol 33500 iboot 5000 rac 170
[   12.257272]  (0)[187:battery_thread][fg_update_c_dod]
[   12.257490]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=4 r_fg_value=100 car_tune_value=1000
[   12.257520]  (0)[187:battery_thread][fr] BATTERY_METER_CMD_GET_FG_HW_CAR = 4
[   12.257546]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_GET_FG_HW_CAR:0 4
[   12.257573]  (0)[187:battery_thread][fg_update_quse]aging_sel 0 qmax_t_0ma_tb1 34715 quse_tb1 [34715] aging[10000]
[   12.257605]  (0)[187:battery_thread][FGADC] OCV_to_DOD: voltage:42577 dod:966 highidx:7
[   12.257634]  (0)[187:battery_thread][fg_update_c_dod] fg_c_dod 965 fg_c_d0_dod 966 car 4 quse_tb1 34715 fg_c_soc 9035
[   12.259472]  (0)[187:battery_thread][fgauge_read_current] final current=1298 (ratio=1000)
[   12.259510]  (0)[187:battery_thread][BattVoltToTemp] 586 16900 1800 -3
[   12.259540]  (0)[187:battery_thread][force_get_tbat] 589,586,1,129,100,30 r:200 100 0
[   12.259577]  (0)[187:battery_thread][fr][FG_TEMP_INT] FG_DAEMON_CMD_SET_FG_BAT_TMP_C_GAP = 1 ht:31 lt:29
[   12.259607]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_SET_FG_BAT_TMP_C_GAP 1 1
[   12.259839]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=4 r_fg_value=100 car_tune_value=1000
[   12.259869]  (0)[187:battery_thread][fr] BATTERY_METER_CMD_GET_FG_HW_CAR = 4
[   12.259895]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_GET_FG_HW_CAR:0 4
[   12.260328]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=4 r_fg_value=100 car_tune_value=1000
[   12.260362]  (0)[187:battery_thread][read_fg_hw_info] curr_1 1298 curr_2 1326 car 4
[   12.260391]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_GET_HW_INFO:512 512
[   12.263599]  (0)[187:battery_thread][MTS_ADC] OLD = 0x35aa, NOW = 0x3585, CNT = 0
[   12.263638]  (0)[187:battery_thread][fr] FG_DAEMON_CMD_GET_VBAT = 42640
[   12.263665]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_GET_VBAT:0 42640
[   12.265483]  (0)[187:battery_thread][fgauge_read_current] final current=1339 (ratio=1000)
[   12.265519]  (0)[187:battery_thread][BattVoltToTemp] 585 16900 1800 -3
[   12.265550]  (0)[187:battery_thread][force_get_tbat] 588,585,1,133,100,30 r:200 100 0
[   12.265593]  (0)[187:battery_thread][fg_res]FG_DAEMON_CMD_SET_KERNEL_SOC = 9035 90, type:0
[   12.265623]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_SET_KERNEL_SOC 9035 9035
[   12.265656]  (0)[187:battery_thread][fg_res] FG_DAEMON_CMD_SET_KERNEL_UISOC = 7800 78 GM3:0
[   12.270444]  (0)[0:swapper/0]Power/swap DP: No enter --- SODI3: No enter --- SODI: No enter --- 
[   12.270702]  (0)[187:battery_thread][fgauge_read_current] final current=1354 (ratio=1000)
[   12.270735]  (0)[187:battery_thread][BattVoltToTemp] 585 16900 1800 -4
[   12.270765]  (0)[187:battery_thread][force_get_tbat] 589,585,1,135,100,30 r:200 100 0
[   12.271159]  (0)[265:kworker/0:2][fgauge_read_current] final current=1354 (ratio=1000)
[   12.271384]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_SET_KERNEL_UISOC 7800 7800
[   12.271429] -(0)[187:battery_thread]mtk_rtc_hal_common: rtc_spare_reg[0] = {5aa, 255, 8}
[   12.271472] -(0)[187:battery_thread]mtk_rtc_hal_common: rtc_spare_reg[0] = {5aa, 255, 8}
[   12.271580]  (0)[187:battery_thread][fg_set_rtc_ui_soc] rtc_ui_soc 78 spare3_reg 0xce new_spare3_reg 0xce
[   12.271610]  (0)[187:battery_thread][fr] BATTERY_METER_CMD_SET_RTC_UI_SOC=78
[   12.271635]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_SET_RTC_UI_SOC 78 78
[   12.271676]  (0)[187:battery_thread][fg_res] FG_DAEMON_CMD_SET_CON0_SOC = 9035
[   12.271701]  (0)[187:battery_thread]send_to_kernel=FG_DAEMON_CMD_SET_CON0_SOC 9035 9035
[   12.274920]  (0)[187:battery_thread]get_shutdown_cond ret:0 0 0 0 vbat:4258
[   12.274977]  (0)[187:battery_thread][FGADC_intr_end][FG_INTR_BAT_TEMP_HT]soc:9035, c_soc:9035 ui_soc:7800 VBAT 42640 T:[30 C:30] car:4
[   12.275015]  (0)[187:battery_thread][wakeup_fg_algo_recovery] intr_num=0x400000
[   12.275043]  (0)[187:battery_thread]mtk_battery boot mode =2
[   12.275069]  (0)[187:battery_thread][wakeup_fg_algo_recovery] intr_num=0x400
[   12.275095]  (0)[187:battery_thread][TempConverBattThermistor] [8042] 30 8315 35 6948 31
[   12.275309]  (0)[187:battery_thread][fgauge_read_current] final current=1389 (ratio=1000)
[   12.275338]  (0)[187:battery_thread][TempToBattVolt] temp 31 R_NTC 8042 V(5803 5844) I 1389 CHG 1
[   12.275372]  (0)[187:battery_thread][TempConverBattThermistor] [8652] 25 10000 30 8315 29
[   12.275404]  (0)[187:battery_thread][TempToBattVolt] temp 29 R_NTC 8652 V(6094 6135) I 1389 CHG 1
[   12.275438]  (0)[187:battery_thread][fg_bat_temp_int_internal][FG_TEMP_INT] T[30] V[65535 65535] C[31 29] h[6135 5844]
[   12.280440]  (0)[187:battery_thread][fgauge_read_current] final current=1191 (ratio=1000)
[   12.280480]  (0)[187:battery_thread][BattVoltToTemp] 585 16900 1800 -3
[   12.280511]  (0)[187:battery_thread][force_get_tbat] 588,585,1,119,100,30 r:200 100 0
[   12.280897]  (0)[265:kworker/0:2][fgauge_read_current] final current=1191 (ratio=1000)
[   12.281113]  (0)[187:battery_thread][fg_update_sw_iavg]diff time:10
[   12.281151]  (0)[187:battery_thread][read_boot_battery_plug_out_status] rtc_invalid 0 plugout 0 bat_plug_out_time 31 sp3:0xce pl:0 0
[   12.281384]  (0)[187:battery_thread][fgauge_read_current] final current=1191 (ratio=1000)
[   12.281599]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=4 r_fg_value=100 car_tune_value=1000
[   12.288221]  (0)[187:battery_thread][fgauge_read_current] final current=1103 (ratio=1000)
[   12.288275]  (0)[187:battery_thread][BattVoltToTemp] 585 16900 1800 -3
[   12.288306]  (0)[187:battery_thread][force_get_tbat] 588,585,1,110,100,30 r:200 100 0
[   12.288345]  (0)[187:battery_thread]lbat 0 0 1 34500
[   12.288375]  (0)[187:battery_thread]car[4,173,-173,347,-200, cycle_car:0,ncar:0] c:1 1191 vbat:4260 vbus:4882 soc:90 78 gm3:0 0 0 0
[   12.288615]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=4 r_fg_value=100 car_tune_value=1000
[   12.288662]  (0)[187:battery_thread][fg_bat_nafg][fgauge_get_nafg_cnt] 0 [25_16 0 15_0 0]
[   12.288692]  (0)[187:battery_thread][fg_nafg_monitor]time:12 nafg_cnt:0, now:12, last_t:0
[   12.288724]  (0)[187:battery_thread]tmp:30 65535 65535 hcar2:347 lcar2:200 time:12 sw_iavg:0 0 0 nafg_m:0 0 0
[   12.288765]  (0)[187:battery_thread]1st chr_zcv:0 pmic_zcv:0 0 pmic_in_zcv:0 swocv:0 zcv_from:0 tmp:0
[   12.288798]  (0)[187:battery_thread]chr_zcv:0 pmic_zcv:0 0 pmic_in_zcv:0 swocv:0 zcv_from:0 tmp:0
[   12.289013]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=4 r_fg_value=100 car_tune_value=1000
[   12.289043]  (0)[187:battery_thread]GM3log int 12 12 0 0 0 0 0
[   12.292429]  (0)[187:battery_thread][fgauge_read_current] final current=1225 (ratio=1000)
[   12.294266]  (0)[187:battery_thread][fgauge_read_current] final current=1172 (ratio=1000)
[   12.294303]  (0)[187:battery_thread][BattVoltToTemp] 586 16900 1800 -3
[   12.294334]  (0)[187:battery_thread][force_get_tbat] 589,586,1,117,100,30 r:200 100 0
[   12.294386]  (0)[187:battery_thread][fg_is_battery_exist] PMIC_RGS_BATON_UNDET = 1
[   12.294413]  (0)[187:battery_thread]GM3log1 12 4262 1225 0 0 4 30 1 1 170 1 0
[   12.296063]  (0)[187:battery_thread]GM3log2 12 0 0 0 42635 1238 1 4882
[   12.296104]  (0)[187:battery_thread]GM3log3 12 0 42228 -9
[   12.296134]  (0)[187:battery_thread]GM3log4 0 78 0 0 31 0 0 1 1 1 90
[   12.296168]  (0)[187:battery_thread]GM3 car:4 car_diff:0
[   12.296194]  (0)[187:battery_thread]mtk_battery boot mode =2
[   12.296220]  (0)[187:battery_thread][wakeup_fg_algo_recovery] intr_num=0x2000000
[   12.335591]  (3)[0:swapper/3]mcdi cpu: 0, 0, 0, 0, cluster : 0, pause = 0, multi core = 0, residency = 0, last core = 0, avail cpu = 000f, cluster = 0001, enabled = 0, max_s_state = 5, system_idle_hint = 00000000 (mcdi_fw_fail: 0xf)
[   12.335591] 
[   12.995825]  (2)[1:init]init: starting service 'teei_loader'...
[   12.998404]  (2)[1:init]init: starting service 'keymaster-3-0'...
[   12.999066]  (1)[285:init]init: cannot execve('/vendor/bin/teei_loader'): No such file or directory
[   13.000204]  (0)[265:kworker/0:2]usb_state<CONFIGURED>
[   13.001352]  (2)[1:init]init: starting service 'gatekeeper-1-0'...
[   13.001905]  (3)[286:init]init: cannot execve('/vendor/bin/hw/android.hardware.keymaster@3.0-service'): No such file or directory
[   13.004127]  (2)[1:init]init: starting service 'keymaster_attestation-1-1'...
[   13.004707]  (3)[287:init]init: cannot execve('/vendor/bin/hw/android.hardware.gatekeeper@1.0-service'): No such file or directory
[   13.006966]  (2)[1:init]init: Service 'teei_loader' (pid 285) exited with status 127
[   13.007117]  (2)[1:init]init: Sending signal 9 to service 'teei_loader' (pid 285) process group...
[   13.007223]  (3)[288:init]init: cannot execve('/vendor/bin/hw/vendor.mediatek.hardware.keymaster_attestation@1.1-service'): No such file or directory
[   13.007491]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 285 in 0ms
[   13.008707]  (2)[1:init]init: Service 'keymaster-3-0' (pid 286) exited with status 127
[   13.008826]  (2)[1:init]init: Sending signal 9 to service 'keymaster-3-0' (pid 286) process group...
[   13.009225]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 286 in 0ms
[   13.009905]  (2)[1:init]init: Service 'gatekeeper-1-0' (pid 287) exited with status 127
[   13.010007]  (2)[1:init]init: Sending signal 9 to service 'gatekeeper-1-0' (pid 287) process group...
[   13.010357]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 287 in 0ms
[   13.010986]  (2)[1:init]init: Service 'keymaster_attestation-1-1' (pid 288) exited with status 127
[   13.011087]  (2)[1:init]init: Sending signal 9 to service 'keymaster_attestation-1-1' (pid 288) process group...
[   13.011433]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 288 in 0ms
[   13.299267]  (1)[235:charger_thread][fgauge_read_current] final current=1232 (ratio=1000)
[   13.302513] -(1)[235:charger_thread]mt6357_get_auxadc_value: 14 callbacks suppressed
[   13.302535]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 10, channel = 1, reg_val = 0x64d6, adc_result = 4254
[   13.305649]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 0, channel = 0, reg_val = 0x650a, adc_result = 4262
[   13.308859]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 0, channel = 0, reg_val = 0x6518, adc_result = 4264
[   13.310501]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 1, channel = 2, reg_val = 0x496, adc_result = 515
[   13.312330]  (1)[235:charger_thread][fgauge_read_current] final current=1395 (ratio=1000)
[   13.312366]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1395, reg_val = 0x53c, adc_result = 588
[   13.312603]  (1)[235:charger_thread][fgauge_read_current] final current=1395 (ratio=1000)
[   13.312634]  (1)[235:charger_thread][BattVoltToTemp] 584 16900 1800 -4
[   13.312664]  (1)[235:charger_thread][force_get_tbat] 588,584,1,139,100,30 r:200 100 0
[   13.312704]  (1)[235:charger_thread]Vbat=4264,Ibat=1232,I=-142,VChr=4872,T=30,Soc=90:78,CT:1:1 hv:1 pd:0:0
[   13.314528]  (1)[235:charger_thread][fgauge_read_current] final current=1455 (ratio=1000)
[   13.314566]  (1)[235:charger_thread][BattVoltToTemp] 585 16900 1800 -4
[   13.314596]  (1)[235:charger_thread][force_get_tbat] 589,585,1,145,100,30 r:200 100 0
[   13.314641]  (1)[235:charger_thread][SW_JEITA] Battery Normal Temperature between 15 and 45 !!
[   13.314641] 
[   13.314653] [SW_JEITA]preState:2 newState:2 tmp:30 cv:0 cc:1500000
<5>[   13.317906]  (1)[235:charger_thread]tmp:30 (jeita:1 sm:2 cv:0 en:1) (sm:1) en:1 c:0 s:0 ov:0 1 1
[   13.319560]  (1)[235:charger_thread]mtk_switch_charging_run [1 0], timer=0
[   13.321392]  (1)[235:charger_thread][fgauge_read_current] final current=1298 (ratio=1000)
[   13.321431]  (1)[235:charger_thread][BattVoltToTemp] 585 16900 1800 -3
[   13.321461]  (1)[235:charger_thread][force_get_tbat] 588,585,1,129,100,30 r:200 100 0
[   13.321498]  (1)[235:charger_thread]pe40_ready:0 hv:1 thermal:-1,-1 tmp:30,39,16 pps:0 en:0 ibus:-524 80
[   13.321544]  (1)[235:charger_thread]force:0 thermal:-1,-1 pe4:-1,-1,0 setting:500 500 type:1 usb_unlimited:0 usbif:0 usbsm:2 aicl:-1
[   13.322025]  (1)[235:charger_thread][bq2560x]:bq2560x_set_ichg: [Lingfei][bq2560x_set_ichg][832] === curren: 500000======
[   13.323229]  (1)[235:charger_thread][bq2560x]:bq2560x_charging: enable charger successfully
[   13.324601]  (1)[235:charger_thread][bq2560x]:bq2560x_charging: enable charger successfully
[   13.324992]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   13.325042]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   13.325144]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   13.325291]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[00] = 0x04
[   13.325540]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[01] = 0x1b
[   13.325784]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[02] = 0x08
[   13.326019]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[03] = 0x22
[   13.326257]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[04] = 0x88
[   13.326502]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[05] = 0x87
[   13.326739]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[06] = 0x17
[   13.326975]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[07] = 0x4d
[   13.327210]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[08] = 0x34
[   13.327453]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[09] = 0x00
[   13.327689]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[0a] = 0xa3
[   13.327923]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[0b] = 0x11
[   15.336964]  (1)[158:disp_check][DISP]DSI read long packet size: 1
[   15.337026]  (1)[158:disp_check][DISP]DSI read long packet size: 3
[   15.337125]  (1)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   16.311404] -(0)[6:kworker/u8:0]mt6357_get_auxadc_value: 5 callbacks suppressed
[   16.311626]  (0)[6:kworker/u8:0][fgauge_read_current] final current=1389 (ratio=1000)
[   16.311684]  (0)[6:kworker/u8:0][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1389, reg_val = 0x53d, adc_result = 589
[   16.311901]  (0)[6:kworker/u8:0][fgauge_read_current] final current=1389 (ratio=1000)
[   16.311932]  (0)[6:kworker/u8:0][BattVoltToTemp] 585 16900 1800 -4
[   16.311962]  (0)[6:kworker/u8:0][force_get_tbat] 589,585,1,138,100,30 r:200 100 0
[   17.280442]  (0)[0:swapper/0]Power/swap DP: No enter --- SODI3: No enter --- SODI: No enter --- 
[   17.340116]  (0)[0:swapper/0]mcdi cpu: 0, 0, 0, 0, cluster : 0, pause = 0, multi core = 0, residency = 0, last core = 0, avail cpu = 000f, cluster = 0001, enabled = 0, max_s_state = 5, system_idle_hint = 00000000 (mcdi_fw_fail: 0xf)
[   17.340116] 
[   17.349031]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   17.349083]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   17.349179]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   18.002434]  (2)[1:init]init: starting service 'teei_loader'...
[   18.004186]  (0)[265:kworker/0:2]usb_state<CONFIGURED>
[   18.005132]  (2)[1:init]init: starting service 'keymaster-3-0'...
[   18.005851]  (1)[289:init]init: cannot execve('/vendor/bin/teei_loader'): No such file or directory
[   18.007831]  (2)[1:init]init: starting service 'gatekeeper-1-0'...
[   18.008489]  (3)[290:init]init: cannot execve('/vendor/bin/hw/android.hardware.keymaster@3.0-service'): No such file or directory
[   18.010668]  (2)[1:init]init: starting service 'keymaster_attestation-1-1'...
[   18.011152]  (3)[291:init]init: cannot execve('/vendor/bin/hw/android.hardware.gatekeeper@1.0-service'): No such file or directory
[   18.013626]  (2)[1:init]init: Service 'teei_loader' (pid 289) exited with status 127
[   18.013780]  (2)[1:init]init: Sending signal 9 to service 'teei_loader' (pid 289) process group...
[   18.013977]  (3)[292:init]init: cannot execve('/vendor/bin/hw/vendor.mediatek.hardware.keymaster_attestation@1.1-service'): No such file or directory
[   18.014156]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 289 in 0ms
[   18.015068]  (2)[1:init]init: Service 'keymaster-3-0' (pid 290) exited with status 127
[   18.015323]  (2)[1:init]init: Sending signal 9 to service 'keymaster-3-0' (pid 290) process group...
[   18.015719]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 290 in 0ms
[   18.016534]  (2)[1:init]init: Service 'gatekeeper-1-0' (pid 291) exited with status 127
[   18.016646]  (2)[1:init]init: Sending signal 9 to service 'gatekeeper-1-0' (pid 291) process group...
[   18.017028]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 291 in 0ms
[   18.017672]  (2)[1:init]init: Service 'keymaster_attestation-1-1' (pid 292) exited with status 127
[   18.017773]  (2)[1:init]init: Sending signal 9 to service 'keymaster_attestation-1-1' (pid 292) process group...
[   18.018122]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 292 in 0ms
[   19.361101]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   19.361164]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   19.361262]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   21.317945]  (0)[6:kworker/u8:0][fgauge_read_current] final current=1398 (ratio=1000)
[   21.318001]  (0)[6:kworker/u8:0][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1398, reg_val = 0x53b, adc_result = 588
[   21.318217]  (0)[6:kworker/u8:0][fgauge_read_current] final current=1398 (ratio=1000)
[   21.318249]  (0)[6:kworker/u8:0][BattVoltToTemp] 584 16900 1800 -4
[   21.318279]  (0)[6:kworker/u8:0][force_get_tbat] 588,584,1,139,100,30 r:200 100 0
[   21.373230]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   21.373289]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   21.373388]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   22.288094]  (1)[0:swapper/1]Power/swap DP: No enter --- SODI3: No enter --- SODI: No enter --- 
[   22.296318]  (0)[187:battery_thread][fg_drv_update_hw_status]=>
[   22.298168]  (0)[187:battery_thread][fgauge_read_current] final current=1408 (ratio=1000)
[   22.298206]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1408, reg_val = 0x53b, adc_result = 588
[   22.298440]  (0)[187:battery_thread][fgauge_read_current] final current=1408 (ratio=1000)
[   22.298471]  (0)[187:battery_thread][BattVoltToTemp] 584 16900 1800 -4
[   22.298501]  (0)[187:battery_thread][force_get_tbat] 588,584,1,140,100,30 r:200 100 0
[   22.298540]  (0)[187:battery_thread][fg_bat_temp_int_sw_check] tmp 30 lt 65535 ht 65535
[   22.298571]  (0)[187:battery_thread][fg_bat_sw_temp_int_l_handler]
[   22.300393]  (0)[187:battery_thread][fgauge_read_current] final current=1455 (ratio=1000)
[   22.300430]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1455, reg_val = 0x53b, adc_result = 588
[   22.300638]  (0)[187:battery_thread][fgauge_read_current] final current=1455 (ratio=1000)
[   22.300668]  (0)[187:battery_thread][BattVoltToTemp] 584 16900 1800 -4
[   22.300697]  (0)[187:battery_thread][force_get_tbat] 588,584,1,145,100,30 r:200 100 0
[   22.300736]  (0)[187:battery_thread]mtk_battery boot mode =2
[   22.300763]  (0)[187:battery_thread][wakeup_fg_algo_recovery] intr_num=0x400
[   22.300790]  (0)[187:battery_thread][TempConverBattThermistor] [8042] 30 8315 35 6948 31
[   22.301005]  (0)[187:battery_thread][fgauge_read_current] final current=1455 (ratio=1000)
[   22.301033]  (0)[187:battery_thread][TempToBattVolt] temp 31 R_NTC 8042 V(5803 5846) I 1455 CHG 1
[   22.301067]  (0)[187:battery_thread][TempConverBattThermistor] [8652] 25 10000 30 8315 29
[   22.301098]  (0)[187:battery_thread][TempToBattVolt] temp 29 R_NTC 8652 V(6094 6137) I 1455 CHG 1
[   22.301132]  (0)[187:battery_thread][fg_bat_temp_int_internal][FG_TEMP_INT] T[30] V[65535 65535] C[31 29] h[6137 5846]
[   22.305910]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 0, channel = 0, reg_val = 0x6511, adc_result = 4263
[   22.305958]  (0)[187:battery_thread][MTS_ADC] OLD = 0x3585, NOW = 0x3591, CNT = 0
[   22.307780]  (0)[187:battery_thread][fgauge_read_current] final current=1260 (ratio=1000)
[   22.307818]  (0)[187:battery_thread][BattVoltToTemp] 585 16900 1800 -3
[   22.307848]  (0)[187:battery_thread][force_get_tbat] 588,585,1,126,100,30 r:200 100 0
[   22.307914]  (0)[187:battery_thread][fg_update_sw_iavg]diff time:20
[   22.307945]  (0)[187:battery_thread][read_boot_battery_plug_out_status] rtc_invalid 0 plugout 0 bat_plug_out_time 31 sp3:0xce pl:0 0
[   22.308273]  (0)[187:battery_thread][fgauge_read_current] final current=1260 (ratio=1000)
[   22.308483]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=8 r_fg_value=100 car_tune_value=1000
[   22.308877]  (0)[265:kworker/0:2][fgauge_read_current] final current=1260 (ratio=1000)
[   22.315105]  (0)[187:battery_thread][fgauge_read_current] final current=1125 (ratio=1000)
[   22.315165]  (0)[187:battery_thread][BattVoltToTemp] 585 16900 1800 -3
[   22.315196]  (0)[187:battery_thread][force_get_tbat] 588,585,1,112,100,30 r:200 100 0
[   22.315235]  (0)[187:battery_thread]lbat 0 0 1 34500
[   22.315265]  (0)[187:battery_thread]car[8,173,-173,347,-200, cycle_car:0,ncar:0] c:1 1260 vbat:4259 vbus:4882 soc:90 78 gm3:0 0 0 0
[   22.315503]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=8 r_fg_value=100 car_tune_value=1000
[   22.315555]  (0)[187:battery_thread][fg_bat_nafg][fgauge_get_nafg_cnt] 0 [25_16 0 15_0 0]
[   22.315584]  (0)[187:battery_thread][fg_nafg_monitor]time:22 nafg_cnt:0, now:22, last_t:0
[   22.315616]  (0)[187:battery_thread]tmp:30 65535 65535 hcar2:347 lcar2:200 time:22 sw_iavg:0 0 0 nafg_m:0 0 0
[   22.315836]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=8 r_fg_value=100 car_tune_value=1000
[   22.315865]  (0)[187:battery_thread]GM3log int 22 22 0 0 0 0 0
[   22.319255]  (0)[187:battery_thread][fgauge_read_current] final current=1207 (ratio=1000)
[   22.320894] -(0)[187:battery_thread]mt6357_get_auxadc_value: 5 callbacks suppressed
[   22.321087]  (0)[187:battery_thread][fgauge_read_current] final current=1200 (ratio=1000)
[   22.321131]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1200, reg_val = 0x53b, adc_result = 588
[   22.321361]  (0)[187:battery_thread][fgauge_read_current] final current=1200 (ratio=1000)
[   22.321390]  (0)[187:battery_thread][BattVoltToTemp] 585 16900 1800 -3
[   22.321419]  (0)[187:battery_thread][force_get_tbat] 588,585,1,120,100,30 r:200 100 0
[   22.321474]  (0)[187:battery_thread][fg_is_battery_exist] PMIC_RGS_BATON_UNDET = 1
[   22.321501]  (0)[187:battery_thread]GM3log1 22 4263 1207 0 0 8 30 1 1 170 1 0
[   22.323133]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 1, channel = 2, reg_val = 0x497, adc_result = 516
[   22.323173]  (0)[187:battery_thread]GM3log2 22 0 0 0 42635 1238 1 4882
[   22.323207]  (0)[187:battery_thread]GM3log3 22 0 42228 -9
[   22.323236]  (0)[187:battery_thread]GM3log4 0 78 0 0 31 0 0 1 1 1 90
[   22.323270]  (0)[187:battery_thread]GM3 car:8 car_diff:0
[   22.323296]  (0)[187:battery_thread]mtk_battery boot mode =2
[   22.323322]  (0)[187:battery_thread][wakeup_fg_algo_recovery] intr_num=0x2000000
[   22.344778]  (2)[0:swapper/2]mcdi cpu: 0, 0, 0, 0, cluster : 0, pause = 0, multi core = 0, residency = 0, last core = 0, avail cpu = 000f, cluster = 0001, enabled = 0, max_s_state = 5, system_idle_hint = 00000000 (mcdi_fw_fail: 0xf)
[   22.344778] 
[   22.556134]  (1)[238:wdtk-1][thread:238][RT:22556107361] 2024-09-15 12:44:34.443607 UTC;android time 2024-09-15 12:44:34.443607
[   22.556210]  (2)[239:wdtk-2][wdk-k] cpu=2,lbit=0xf,cbit=0xf,3,1,2556081928,[22556193976]
[   23.008996]  (2)[1:init]init: starting service 'teei_loader'...
[   23.011467]  (2)[1:init]init: starting service 'keymaster-3-0'...
[   23.012177]  (0)[265:kworker/0:2]usb_state<CONFIGURED>
[   23.012240]  (1)[293:init]init: cannot execve('/vendor/bin/teei_loader'): No such file or directory
[   23.014386]  (2)[1:init]init: starting service 'gatekeeper-1-0'...
[   23.014888]  (3)[294:init]init: cannot execve('/vendor/bin/hw/android.hardware.keymaster@3.0-service'): No such file or directory
[   23.017189]  (2)[1:init]init: starting service 'keymaster_attestation-1-1'...
[   23.017785]  (1)[295:init]init: cannot execve('/vendor/bin/hw/android.hardware.gatekeeper@1.0-service'): No such file or directory
[   23.020102]  (2)[1:init]init: Service 'teei_loader' (pid 293) exited with status 127
[   23.020296]  (2)[1:init]init: Sending signal 9 to service 'teei_loader' (pid 293) process group...
[   23.020464]  (3)[296:init]init: cannot execve('/vendor/bin/hw/vendor.mediatek.hardware.keymaster_attestation@1.1-service'): No such file or directory
[   23.020676]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 293 in 0ms
[   23.021798]  (2)[1:init]init: Service 'keymaster-3-0' (pid 294) exited with status 127
[   23.021916]  (2)[1:init]init: Sending signal 9 to service 'keymaster-3-0' (pid 294) process group...
[   23.022308]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 294 in 0ms
[   23.022976]  (2)[1:init]init: Service 'gatekeeper-1-0' (pid 295) exited with status 127
[   23.023077]  (2)[1:init]init: Sending signal 9 to service 'gatekeeper-1-0' (pid 295) process group...
[   23.023423]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 295 in 0ms
[   23.024185]  (2)[1:init]init: Service 'keymaster_attestation-1-1' (pid 296) exited with status 127
[   23.024296]  (2)[1:init]init: Sending signal 9 to service 'keymaster_attestation-1-1' (pid 296) process group...
[   23.024676]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 296 in 0ms
[   23.313091]  (1)[235:charger_thread][fgauge_read_current] final current=1326 (ratio=1000)
[   23.316324]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 10, channel = 1, reg_val = 0x64de, adc_result = 4255
[   23.319523]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 0, channel = 0, reg_val = 0x6522, adc_result = 4266
[   23.322733]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 0, channel = 0, reg_val = 0x6511, adc_result = 4263
[   23.324375]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 1, channel = 2, reg_val = 0x498, adc_result = 516
[   23.326212]  (1)[235:charger_thread][fgauge_read_current] final current=1216 (ratio=1000)
[   23.326248]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1216, reg_val = 0x53b, adc_result = 588
[   23.326455]  (1)[235:charger_thread][fgauge_read_current] final current=1216 (ratio=1000)
[   23.326486]  (1)[235:charger_thread][BattVoltToTemp] 585 16900 1800 -3
[   23.326515]  (1)[235:charger_thread][force_get_tbat] 588,585,1,121,100,30 r:200 100 0
[   23.326555]  (1)[235:charger_thread]Vbat=4263,Ibat=1326,I=-196,VChr=4882,T=30,Soc=90:78,CT:1:1 hv:1 pd:0:0
[   23.328378]  (1)[235:charger_thread][fgauge_read_current] final current=1238 (ratio=1000)
[   23.328415]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1238, reg_val = 0x53a, adc_result = 587
[   23.328621]  (1)[235:charger_thread][fgauge_read_current] final current=1269 (ratio=1000)
[   23.328651]  (1)[235:charger_thread][BattVoltToTemp] 584 16900 1800 -3
[   23.328681]  (1)[235:charger_thread][force_get_tbat] 587,584,1,126,100,30 r:200 100 0
[   23.328726]  (1)[235:charger_thread][SW_JEITA] Battery Normal Temperature between 15 and 45 !!
[   23.328726] 
[   23.328738] [SW_JEITA]preState:2 newState:2 tmp:30 cv:0 cc:1500000
<5>[   23.330386]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 1, channel = 2, reg_val = 0x496, adc_result = 515
[   23.332032]  (1)[235:charger_thread][mt6357_get_auxadc_value] ch_idx = 1, channel = 2, reg_val = 0x496, adc_result = 515
[   23.332073]  (1)[235:charger_thread]tmp:30 (jeita:1 sm:2 cv:0 en:1) (sm:1) en:1 c:0 s:0 ov:0 1 1
[   23.333712]  (1)[235:charger_thread]mtk_switch_charging_run [1 0], timer=10
[   23.335551]  (1)[235:charger_thread][fgauge_read_current] final current=1247 (ratio=1000)
[   23.335588]  (1)[235:charger_thread][BattVoltToTemp] 586 16900 1800 -3
[   23.335618]  (1)[235:charger_thread][force_get_tbat] 589,586,1,124,100,30 r:200 100 0
[   23.335655]  (1)[235:charger_thread]pe40_ready:0 hv:1 thermal:-1,-1 tmp:30,39,16 pps:0 en:0 ibus:-524 80
[   23.335701]  (1)[235:charger_thread]force:0 thermal:-1,-1 pe4:-1,-1,0 setting:500 500 type:1 usb_unlimited:0 usbif:0 usbsm:2 aicl:-1
[   23.336278]  (1)[235:charger_thread][bq2560x]:bq2560x_set_ichg: [Lingfei][bq2560x_set_ichg][832] === curren: 500000======
[   23.337478]  (1)[235:charger_thread][bq2560x]:bq2560x_charging: enable charger successfully
[   23.338867]  (1)[235:charger_thread][bq2560x]:bq2560x_charging: enable charger successfully
[   23.339529]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[00] = 0x04
[   23.339773]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[01] = 0x1b
[   23.340052]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[02] = 0x08
[   23.340300]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[03] = 0x22
[   23.340551]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[04] = 0x88
[   23.340793]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[05] = 0x87
[   23.341032]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[06] = 0x17
[   23.341273]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[07] = 0x4d
[   23.341522]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[08] = 0x34
[   23.341764]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[09] = 0x00
[   23.342003]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[0a] = 0xa3
[   23.342242]  (1)[235:charger_thread][bq2560x]:bq2560x_dump_regs: Reg[0b] = 0x11
[   23.385236]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   23.385290]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   23.385387]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   25.397390]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   25.397451]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   25.397551]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   26.325769] -(0)[56:kworker/u8:1]mt6357_get_auxadc_value: 2 callbacks suppressed
[   26.325999]  (0)[56:kworker/u8:1][fgauge_read_current] final current=1364 (ratio=1000)
[   26.326057]  (0)[56:kworker/u8:1][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1364, reg_val = 0x53a, adc_result = 587
[   26.326273]  (0)[56:kworker/u8:1][fgauge_read_current] final current=1364 (ratio=1000)
[   26.326305]  (0)[56:kworker/u8:1][BattVoltToTemp] 583 16900 1800 -4
[   26.326335]  (0)[56:kworker/u8:1][force_get_tbat] 587,583,1,136,100,30 r:200 100 0
[   27.289640]  (2)[0:swapper/2]Power/swap DP: No enter --- SODI3: No enter --- SODI: No enter --- 
[   27.357879]  (2)[0:swapper/2]mcdi cpu: 0, 0, 0, 0, cluster : 0, pause = 0, multi core = 0, residency = 0, last core = 0, avail cpu = 000f, cluster = 0001, enabled = 0, max_s_state = 5, system_idle_hint = 00000000 (mcdi_fw_fail: 0xf)
[   27.357879] 
[   27.409377]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   27.409431]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   27.409530]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   28.015603]  (2)[1:init]init: starting service 'teei_loader'...
[   28.018192]  (2)[1:init]init: starting service 'keymaster-3-0'...
[   28.018884]  (1)[297:init]init: cannot execve('/vendor/bin/teei_loader'): No such file or directory
[   28.020202]  (0)[265:kworker/0:2]usb_state<CONFIGURED>
[   28.021095]  (2)[1:init]init: starting service 'gatekeeper-1-0'...
[   28.021745]  (1)[298:init]init: cannot execve('/vendor/bin/hw/android.hardware.keymaster@3.0-service'): No such file or directory
[   28.023866]  (2)[1:init]init: starting service 'keymaster_attestation-1-1'...
[   28.024544]  (3)[299:init]init: cannot execve('/vendor/bin/hw/android.hardware.gatekeeper@1.0-service'): No such file or directory
[   28.026760]  (2)[1:init]init: Service 'teei_loader' (pid 297) exited with status 127
[   28.026914]  (2)[1:init]init: Sending signal 9 to service 'teei_loader' (pid 297) process group...
[   28.027124]  (3)[300:init]init: cannot execve('/vendor/bin/hw/vendor.mediatek.hardware.keymaster_attestation@1.1-service'): No such file or directory
[   28.027463]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 297 in 0ms
[   28.028589]  (2)[1:init]init: Service 'keymaster-3-0' (pid 298) exited with status 127
[   28.028711]  (2)[1:init]init: Sending signal 9 to service 'keymaster-3-0' (pid 298) process group...
[   28.029111]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 298 in 0ms
[   28.029782]  (2)[1:init]init: Service 'gatekeeper-1-0' (pid 299) exited with status 127
[   28.029883]  (2)[1:init]init: Sending signal 9 to service 'gatekeeper-1-0' (pid 299) process group...
[   28.030230]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 299 in 0ms
[   28.030861]  (2)[1:init]init: Service 'keymaster_attestation-1-1' (pid 300) exited with status 127
[   28.030962]  (2)[1:init]init: Sending signal 9 to service 'keymaster_attestation-1-1' (pid 300) process group...
[   28.031303]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 300 in 0ms
[   29.421441]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   29.421503]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   29.421604]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   31.333964]  (0)[195:kworker/u8:3][fgauge_read_current] final current=1392 (ratio=1000)
[   31.334021]  (0)[195:kworker/u8:3][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1392, reg_val = 0x539, adc_result = 587
[   31.334239]  (0)[195:kworker/u8:3][fgauge_read_current] final current=1392 (ratio=1000)
[   31.334271]  (0)[195:kworker/u8:3][BattVoltToTemp] 583 16900 1800 -4
[   31.334301]  (0)[195:kworker/u8:3][force_get_tbat] 587,583,1,139,100,30 r:200 100 0
[   31.411281]  (0)[62:dlpt_notify_thr][mt6357_get_auxadc_value] ch_idx = 0, channel = 0, reg_val = 0x652c, adc_result = 4268
[   31.411340]  (0)[62:dlpt_notify_thr][MTS_ADC] OLD = 0x3591, NOW = 0x35a0, CNT = 0
[   31.414543]  (0)[62:dlpt_notify_thr][mt6357_get_auxadc_value] ch_idx = 0, channel = 0, reg_val = 0x6524, adc_result = 4266
[   31.414586]  (0)[62:dlpt_notify_thr][PBM] [ma_to_mw] 4266(mV) * 5500(mA) = 23463(mW)
[   31.414649]  (0)[62:dlpt_notify_thr][DLPT_final] 5500,78,78,1,5500
[   31.433508]  (0)[158:disp_check][DISP]DSI read long packet size: 1
[   31.433558]  (0)[158:disp_check][DISP]DSI read long packet size: 3
[   31.433654]  (0)[158:disp_check][DISP][ESD]ESD check end, ret = 0
[   32.302785]  (1)[0:swapper/1]Power/swap DP: No enter --- SODI3: No enter --- SODI: No enter --- 
[   32.323416]  (0)[187:battery_thread][fg_drv_update_hw_status]=>
[   32.325266]  (0)[187:battery_thread][fgauge_read_current] final current=1326 (ratio=1000)
[   32.325304]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1326, reg_val = 0x53a, adc_result = 587
[   32.325539]  (0)[187:battery_thread][fgauge_read_current] final current=1326 (ratio=1000)
[   32.325570]  (0)[187:battery_thread][BattVoltToTemp] 584 16900 1800 -3
[   32.325601]  (0)[187:battery_thread][force_get_tbat] 587,584,1,132,100,30 r:200 100 0
[   32.325639]  (0)[187:battery_thread][fg_bat_temp_int_sw_check] tmp 30 lt 65535 ht 65535
[   32.325670]  (0)[187:battery_thread][fg_bat_sw_temp_int_l_handler]
[   32.327496]  (0)[187:battery_thread][fgauge_read_current] final current=1266 (ratio=1000)
[   32.327533]  (0)[187:battery_thread][BattVoltToTemp] 584 16900 1800 -3
[   32.327563]  (0)[187:battery_thread][force_get_tbat] 587,584,1,126,100,30 r:200 100 0
[   32.327603]  (0)[187:battery_thread]mtk_battery boot mode =2
[   32.327629]  (0)[187:battery_thread][wakeup_fg_algo_recovery] intr_num=0x400
[   32.327656]  (0)[187:battery_thread][TempConverBattThermistor] [8042] 30 8315 35 6948 31
[   32.327889]  (0)[187:battery_thread][fgauge_read_current] final current=1266 (ratio=1000)
[   32.327918]  (0)[187:battery_thread][TempToBattVolt] temp 31 R_NTC 8042 V(5803 5840) I 1266 CHG 1
[   32.327952]  (0)[187:battery_thread][TempConverBattThermistor] [8652] 25 10000 30 8315 29
[   32.328092]  (0)[187:battery_thread][TempToBattVolt] temp 29 R_NTC 8652 V(6094 6131) I 1266 CHG 1
[   32.328134]  (0)[187:battery_thread][fg_bat_temp_int_internal][FG_TEMP_INT] T[30] V[65535 65535] C[31 29] h[6131 5840]
[   32.333141]  (0)[187:battery_thread][fgauge_read_current] final current=1219 (ratio=1000)
[   32.333181]  (0)[187:battery_thread][BattVoltToTemp] 584 16900 1800 -3
[   32.333212]  (0)[187:battery_thread][force_get_tbat] 587,584,1,121,100,30 r:200 100 0
[   32.333280]  (0)[187:battery_thread][fg_update_sw_iavg]diff time:30
[   32.333312]  (0)[187:battery_thread][read_boot_battery_plug_out_status] rtc_invalid 0 plugout 0 bat_plug_out_time 31 sp3:0xce pl:0 0
[   32.333535]  (0)[187:battery_thread][fgauge_read_current] final current=1219 (ratio=1000)
[   32.333750]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=11 r_fg_value=100 car_tune_value=1000
[   32.334149]  (0)[265:kworker/0:2][fgauge_read_current] final current=1219 (ratio=1000)
[   32.336976] -(0)[187:battery_thread]mt6357_get_auxadc_value: 3 callbacks suppressed
[   32.337006]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 0, channel = 0, reg_val = 0x650c, adc_result = 4262
[   32.338667]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 1, channel = 2, reg_val = 0x497, adc_result = 516
[   32.340498]  (0)[187:battery_thread][fgauge_read_current] final current=1175 (ratio=1000)
[   32.340536]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1175, reg_val = 0x539, adc_result = 587
[   32.340770]  (0)[187:battery_thread][fgauge_read_current] final current=1175 (ratio=1000)
[   32.340801]  (0)[187:battery_thread][BattVoltToTemp] 584 16900 1800 -3
[   32.340831]  (0)[187:battery_thread][force_get_tbat] 587,584,1,117,100,30 r:200 100 0
[   32.340869]  (0)[187:battery_thread]lbat 0 0 1 34500
[   32.340898]  (0)[187:battery_thread]car[11,173,-173,347,-200, cycle_car:0,ncar:0] c:1 1219 vbat:4262 vbus:4882 soc:90 78 gm3:0 0 0 0
[   32.341133]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=11 r_fg_value=100 car_tune_value=1000
[   32.341185]  (0)[187:battery_thread][fg_bat_nafg][fgauge_get_nafg_cnt] 0 [25_16 0 15_0 0]
[   32.341215]  (0)[187:battery_thread][fg_nafg_monitor]time:32 nafg_cnt:0, now:32, last_t:0
[   32.341247]  (0)[187:battery_thread]tmp:30 65535 65535 hcar2:347 lcar2:200 time:32 sw_iavg:0 0 0 nafg_m:0 0 0
[   32.341470]  (0)[187:battery_thread][fgauge_read_columb_internal] CAR=11 r_fg_value=100 car_tune_value=1000
[   32.341499]  (0)[187:battery_thread]GM3log int 32 32 0 0 0 0 0
[   32.344684]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 0, channel = 0, reg_val = 0x6525, adc_result = 4267
[   32.344918]  (0)[187:battery_thread][fgauge_read_current] final current=1357 (ratio=1000)
[   32.346721]  (0)[187:battery_thread][fgauge_read_current] final current=1310 (ratio=1000)
[   32.346756]  (0)[187:battery_thread][mt6357_get_auxadc_value] ch_idx = 2, channel = 3, bat_cur = 1310, reg_val = 0x53a, adc_result = 587
[   32.346961]  (0)[187:battery_thread][fgauge_read_current] final current=1310 (ratio=1000)
[   32.346991]  (0)[187:battery_thread][BattVoltToTemp] 584 16900 1800 -3
[   32.347021]  (0)[187:battery_thread][force_get_tbat] 587,584,1,131,100,30 r:200 100 0
[   32.347073]  (0)[187:battery_thread][fg_is_battery_exist] PMIC_RGS_BATON_UNDET = 1
[   32.347100]  (0)[187:battery_thread]GM3log1 32 4267 1357 0 55000 11 30 1 1 170 1 0
[   32.348738]  (0)[187:battery_thread]GM3log2 32 0 0 0 42635 1238 1 4882
[   32.348781]  (0)[187:battery_thread]GM3log3 32 0 42228 -9
[   32.348810]  (0)[187:battery_thread]GM3log4 0 78 0 0 31 0 0 1 1 1 90
[   32.348846]  (0)[187:battery_thread]GM3 car:11 car_diff:0
[   32.348872]  (0)[187:battery_thread]mtk_battery boot mode =2
[   32.348897]  (0)[187:battery_thread][wakeup_fg_algo_recovery] intr_num=0x2000000
[   32.368112]  (1)[0:swapper/1]mcdi cpu: 0, 0, 0, 0, cluster : 0, pause = 0, multi core = 0, residency = 0, last core = 0, avail cpu = 000f, cluster = 0001, enabled = 0, max_s_state = 5, system_idle_hint = 00000000 (mcdi_fw_fail: 0xf)
[   32.368112] 
[   33.022306]  (2)[1:init]init: starting service 'teei_loader'...
[   33.025220]  (2)[1:init]init: starting service 'keymaster-3-0'...
[   33.025625]  (1)[301:init]init: cannot execve('/vendor/bin/teei_loader'): No such file or directory
[   33.027928]  (2)[1:init]init: starting service 'gatekeeper-1-0'...
[   33.028115]  (0)[265:kworker/0:2]usb_state<CONFIGURED>
[   33.028645]  (3)[302:init]init: cannot execve('/vendor/bin/hw/android.hardware.keymaster@3.0-service'): No such file or directory
[   33.030716]  (2)[1:init]init: starting service 'keymaster_attestation-1-1'...
[   33.031231]  (3)[303:init]init: cannot execve('/vendor/bin/hw/android.hardware.gatekeeper@1.0-service'): No such file or directory
[   33.033628]  (2)[1:init]init: Service 'teei_loader' (pid 301) exited with status 127
[   33.033777]  (2)[1:init]init: Sending signal 9 to service 'teei_loader' (pid 301) process group...
[   33.033943]  (3)[304:init]init: cannot execve('/vendor/bin/hw/vendor.mediatek.hardware.keymaster_attestation@1.1-service'): No such file or directory
[   33.034331]  (2)[1:init]libprocessgroup: Successfully killed process cgroup uid 0 pid 301 in 0ms
mlm-games commented 2 days ago

The files exist in the tree but it still does not recognize them here

lopestom commented 2 days ago

Move files from recovery/root/vendor/bin & recovery/root/vendor/bin/hw directly to recovery/root/system/bin and change rc file to that.

What reason you DT need default.prop & prop.default files?

What reason you modified fstab file?

https://github.com/fw-dumps/lenovo_7305x_dump/blob/82e01d953cb4aeeb56b0fbbfbb3aa114ecc044b6/vendor/etc/fstab.mt6739#L16

to https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/89100ae28bcc085348477368dc0fbc961e55c57e/recovery/root/etc/recovery.fstab#L16 ??

You not cleaned so duplicates and trash files. https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/89100ae28bcc085348477368dc0fbc961e55c57e/recovery/root/init.recovery.rc#L32-L34 https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/89100ae28bcc085348477368dc0fbc961e55c57e/recovery/root/init.recovery.microtrust.rc#L61-L65

Maybe TZDATA need to some process. https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/89100ae28bcc085348477368dc0fbc961e55c57e/BoardConfig.mk#L124

and others from https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/issues/11#issuecomment-2351130686

But since I remember so Android 9 using recovery/root/sbin for all binary & .so files. Therefore if you using twrp-10 branch so all changes to recovery/root/system/ & recovery/root/vendor.

mlm-games commented 2 days ago

Few questions, Aren't u supposed to disable force encryption for userdata in the fstab?

I am using twrp-9.0 only so should i move the binaries to sbin?

TW_EXCLUDE_TZDATA is already true in test-decrypt branch

lopestom commented 2 days ago

Few questions, Aren't u supposed to disable force encryption for userdata in the fstab?

use stock file to tests. encryptable option is for unofficial decryption so no password and so other way to have that.

I am using twrp-9.0 only so should i move the binaries to sbin?

Create a new branch and test. What you lost with tests?!

TW_EXCLUDE_TZDATA is already true in test-decrypt branch

So again you need more knowledge about TW_ flags in the TWRP branchs! But you can put TW_EXCLUDE_TZDATA := false to source code create a tzdata file........... Maybe not need tzdata and so not need compiling that. But if any issue so put flag an try again........

Some extra info for you learning: https://github.com/teracube-mt6765-devs/android_device_teracube_zirconia/blob/386e14def314e282e58f51767e31fe045f7f0478/proprietary-files.txt#L11-L70

https://github.com/OpenWatchProject/android_device_mediatek/blob/822708b4e52c7fe0da518e13cd39615fb0bceea6/common/device.mk#L2409-L2429


Looking your minimal change to \sbin so your wrong..... See this...... https://github.com/Teracube-Inc/twrp_teracube_yk673v6_lwg62_64/tree/android-10.0/recovery/root/sbin

mlm-games commented 1 day ago

I did the needed i hope with my last commit

and hey, thank you for the star on ldcheck :)

mlm-games commented 1 day ago

the teracube is fbe, will try now and see if it works (if it doesnt work, will just convert it to fbe in settings and try)

Also i dont have the exlude default usb init flag in my boardconfig so i can delete the init.recovery.usb.rc file right?

lopestom commented 1 day ago

i dont have the exlude default usb init flag in my boardconfig so i can delete the init.recovery.usb.rc file right?

If with usb.rc file from TWRP source code the USB conect PORT with other points/VID-PID/MicroSD/OTG/PC so if MTP work... do nothing. But if that not work so the DT need custom usb.rc file and the correctly flag.

mlm-games commented 1 day ago

Tried with the developer option's alpha option "wipe and convert to file based encryption". It did go to twrp, for a brief second ran a script and rebooted (i did notice some data not mounted or unknown partition errors in between)

Maybe i should try with a normal recovery -> wipe -> convert to fbe -> flash twrp and it might work

Also the https://github.com/Teracube-Inc/twrp_teracube_yk673v6_lwg62_64/ tree contains aes-cts... in recovery.fstab and this device contains forcefdeorfbe so maybe should i try changing it?

lopestom commented 1 day ago

Looking your minimal change to \sbin so your wrong.....

teei_loader istorageproxyd

in here https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/tree/test-decrypt/recovery/root/sbin

Copy microtrust.rc microtrust.storage.file.rc microtrust.storage.proinfo.rc microtrust.storage.rpmb.rc to /recovery/root/

Adc to init.recovery.mt6739.rc

import /microtrust.rc
import /microtrust.storage.file.rc
import /microtrust.storage.proinfo.rc
import /microtrust.storage.rpmb.rc

change in that files: https://github.com/fw-dumps/lenovo_7305x_dump/blob/82e01d953cb4aeeb56b0fbbfbb3aa114ecc044b6/vendor/etc/init/microtrust.rc#L8-L13 https://github.com/fw-dumps/lenovo_7305x_dump/blob/82e01d953cb4aeeb56b0fbbfbb3aa114ecc044b6/vendor/etc/init/microtrust.storage.proinfo.rc#L4 https://github.com/fw-dumps/lenovo_7305x_dump/blob/82e01d953cb4aeeb56b0fbbfbb3aa114ecc044b6/vendor/etc/init/microtrust.storage.rpmb.rc#L3

    user system
    group system

to

    user root
    group root

Add seclabel u:r:recovery:s0

lopestom commented 1 day ago

in recovery.fstab and this device contains forcefdeorfbe so maybe should i try changing it?

look your stock files because you not should copy so only look references. But since I know is from G the FBE

maybe this https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/186469795f51252829bba4cf6202fffbc58eca9a/BoardConfig.mk#L170 so unhide that.

Also need as source code G wrote in [Set up metadata filesystem] (https://source.android.com/docs/security/features/encryption/metadata#set-up-metadata-filesystem) As your fstab has https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/186469795f51252829bba4cf6202fffbc58eca9a/recovery/root/etc/twrp.fstab#L12

mlm-games commented 22 hours ago

Still does not work, maybe it is like samsung or maybe twrp cant decrypt it?

lopestom commented 16 hours ago

Still does not work, maybe it is like samsung or maybe twrp cant decrypt it?

Everything is possible. From LENOVO putting something to block the processes, to you not putting the settings/information/files in the DT or any particularity related to the device/firmware.

I have some difficulties myself, so I go back to the beginning and read/watch/analyze everything from the beginning to confirm that I did it as I should. So you can do the same: https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/issues/11#issuecomment-2351130686 Some options may be different. Example: https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/097b782b9ebac81ecfb00145bfb8b0fa1e0efbb1/BoardConfig.mk#L162-L170 for this:

# Crypto
TW_INCLUDE_CRYPTO := true
TW_INCLUDE_CRYPTO_FBE := true
TW_INCLUDE_FBE_METADATA_DECRYPT := true
BOARD_USES_METADATA_PARTITION := true

TW_INCLUDE_CRYPTO := true
TW_CRYPTO_FS_TYPE := "ext4"
TW_CRYPTO_REAL_BLKDEV := "/dev/block/platform/bootdevice/by-name/userdata"
TW_CRYPTO_MNT_POINT := "/data"
TW_CRYPTO_FS_OPTIONS := "nosuid,nodev,noatime,discard,noauto_da_alloc,barrier=0,data=ordered"

I didn't write it to put it like that! https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/097b782b9ebac81ecfb00145bfb8b0fa1e0efbb1/recovery/root/microtrust.rc#L13-L15

or so https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/test-decrypt/recovery/root/microtrust.storage.file.rc

or https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/097b782b9ebac81ecfb00145bfb8b0fa1e0efbb1/recovery/root/microtrust.storage.proinfo.rc#L5-L12 https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/097b782b9ebac81ecfb00145bfb8b0fa1e0efbb1/recovery/root/microtrust.storage.rpmb.rc#L4-L6


try putting all files from \vendor\bin; \vendor\lib64 and \vendor\lib64\hw inside the \sbin folder and test. Or Adc: {hardware}.rc

on init
    export LD_LIBRARY_PATH /vendor/lib64:/vendor/lib:/sbin

So, for me, who is wrong? Why can't TWRP decrypt?

We leave feelings aside and, most importantly, we don't do it as we want or as our intuition wants! We do it like any food recipe, we follow the instructions. So if there is an error or something is missing, it is you who did not follow the recipe. So, if you follow the recipe and it was not possible to have the desired product, then we question everything, from the TWRP source code, from the branch used, even additional blocks by the device company and any possibility that may exist. So the question is whether the TWRP author wants to spend time to solve this or prefers not to have decryption. There is still the other unofficial decryption option, that is, using encryptable in TWRP and in the firmware to save \Data. That is if it is possible, as there may still be issues.

lopestom commented 14 hours ago

I forgot this https://github.com/lopestom/recovery_device_lenovo_X606FA/blob/android-9.0/recovery/root/init.recovery.mt8768.rc not know if decrypt already work in that android-9.0 branch .... only made a DT to guy that have the device.....

But I know about that because I had a MT6765 device so you can read here about. Android 11 - Soc: MediaTek Helio G25 - Platform: mt6765, Hardware: mt6762

Maybe you can look/analise that and need create/copy from init.recovery.mt6739.rc to init.recovery.mt8765.rc because has different hardware/software so maybe mt8765 is specific to decrypt or maybe not.....

you can adc this too https://github.com/lopestom/recovery_device_lenovo_X606FA/blob/2ca5a35a9f7f30f373ac9eca2a6c88b7b5db83a3/BoardConfig.mk#L98C1-L99C1

I wrote about this https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/af49792f337f9415806975d92e7d9ca59e4dd6d1/BoardConfig.mk#L146 so false

Now as the file https://github.com/mlm-games/twrp_lenovo_7305x_m7_mt8765_P/blob/test-decrypt/recovery/root/microtrust.storage.file.rc has \persist partition so maybe init.recovery.mt6739.rc & init.recovery.mt8765.rc need this:

on fs
    mkdir /mnt/vendor 0700 system system
    mkdir /mnt/vendor/persist 0700 system system
    mount ext4 /dev/block/platform/bootdevice/by-name /mnt/vendor/persist rw