topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
47.33k stars 12k forks source link

android 10 pixel3xl factory boot.img with selinux is always enforced #1935

Closed 99degree closed 4 years ago

99degree commented 4 years ago

Hi, plz have check #1931 for boot log, the log is from a magisk-manager-patched ramdisk booting in meizu m3note. please find below useful.

put below into kenrel cmdline does't help. sounds like hardcoded

androidboot.selinux=permissive selinux=0

below L.103 is very suspective. https://android.googlesource.com/platform/system/core/+/master/init/selinux.cpp

bool IsEnforcing() { if (ALLOW_PERMISSIVE_SELINUX) { return StatusFromCmdline() == SELINUX_ENFORCING; } return true; }

the boot.img is within crosshatch-qp1a.191005.007-factory-2989a08d.zip, Oct release https://dl.google.com/dl/android/aosp/crosshatch-qp1a.191005.007-factory-2989a08d.zip

Regards,

99degree commented 4 years ago

as well confirmed with sailfish system.img copy content to /userdata/ which is init mapped to /system_root

procedure: extract system.img from sailfish-qp1a.191005.007.a1-factory-78c6703e.zip simg2img system.img system.ext4.img adb push system.ext4.img /external_sd adb shell mount -o loop,ro -t ext4 /external_sd/system.ext4.img /mnt/ cp -rf /mnt/* /data/ reboot fastboot ...skipped.....

topjohnwu commented 4 years ago

I cannot understand what you are trying to report here. You can turn SELinux to permissive by setenforce 0 in a root environment

99degree commented 4 years ago

the issue happened( denoted as * ) when at the boot chain, for all sort of patch take place( rc, init, sepolicy etc)

kernel -> magiskinit -> init -> init --selinux -> *magiskinit -> init --second-stage -> android

i suspect it is after loaded selinux policy and somehow denied accessd to magiskinit again which is located at /system/bin/init* due to enforced sepolicy to /system/bin/init (as permissive=0 even when cmdline androidboot=permissive).

my limited knowledge tell me setenforce 0 is a sh/busybox/toybox cmd after success boot to a shell. it is not available in the middle of the boot chain.

i reported the issue twice already and give up further reporting. just leave the info for some ppl for reference.

99degree commented 4 years ago

`[ 1.283031] (6)[1:swapper/0]Freeing unused kernel memory: 488K [ 1.283107] (6)[1:swapper/0]Freeing alternatives memory: 180K [ 1.283131] (6)[1:swapper/0]BOOTPROF: 1283.129463:Kernel_init_done [ 1.283669] (5)[1:init]tty_release: close tty [ 1.284019] (4)[151:kworker/u16:2][AUTOK]DAT 0 35 OOOOOOOOOOOXXXXXXXXXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXXXXXXXXX�{ [ 1.284035] (4)[151:kworker/u16:2][AUTOK]Warning Dly Sel 37 > 31 easily effected by Voltage Swing [ 1.284138] (4)[151:kworker/u16:2][AUTOK]Error Autok tune LATCH_CK error 1 [ 1.284231] (4)[151:kworker/u16:2][AUTOK]CMD [EDGE:1 DLY1:14 DLY2:0 ] [ 1.284241] (4)[151:kworker/u16:2][AUTOK]DAT [RDAT_EDGE:0 RD_FIFO_EDGE:0 WD_FIFO_EDGE:0] [ 1.284253] (4)[151:kworker/u16:2][AUTOK]DAT [LATCH_CK:3 DLY1:31 DLY2:5 ] [ 1.284264] (4)[151:kworker/u16:2][AUTOK]DS [DLY1:0 DLY2:0 DLY3:0] [ 1.284275] (4)[151:kworker/u16:2][AUTOK][HS200]=========Time Cost:13 ms======== [ 1.284742] magiskinit: get pid = 1 [ 1.284780] magiskinit: mkdir /proc and mount tmpfs [ 1.284802] magiskinit: Mount s:proc d:/proc f:proc m:0 d:(null) failed with 17: File exists [ 1.284870] magiskinit: mkdir /sys and mount tmpfs [ 1.284889] magiskinit: Mount s:sysfs d:/sys f:sysfs m:0 d:(null) failed with 17: File exists [ 1.285007] magiskinit: cmdline: [console]=[tty0] [ 1.285025] magiskinit: cmdline: [console]=[ttyMT0,921600n1] [ 1.285041] magiskinit: cmdline: [root]=[/dev/ram] [ 1.285056] magiskinit: cmdline: [vmalloc]=[496M] [ 1.285072] magiskinit: cmdline: [slub_max_order]=[0] [ 1.285089] magiskinit: cmdline: [slub_debug]=[O] [ 1.285104] magiskinit: cmdline: [androidboot.hardware]=[mt6755] [ 1.285121] magiskinit: cmdline: [bootopt]=[64S3,32N2,64N2] [ 1.285137] magiskinit: cmdline: [enforcing]=[0] [ 1.285152] magiskinit: cmdline: [_androidboot.selinux]=[enforcing] [ 1.285169] magiskinit: cmdline: [androidboot.selinux]=[permissive] [ 1.285184] magiskinit: cmdline: [root]=[/dev/ram] [ 1.285200] magiskinit: cmdline: [androidboot.board.platform]=[mt6755] [ 1.285217] magiskinit: cmdline: [androidboot.hardware]=[mt6755] [ 1.285234] magiskinit: cmdline: [androidboot.debuggable]=[1] [ 1.285250] magiskinit: cmdline: [androidboot.force_normal_boot]=[1] [ 1.285267] magiskinit: cmdline: [_androidboot.android_dt_dir]=[/dt-overlay] [ 1.285284] magiskinit: cmdline: [rootdelay]=[5] [ 1.285299] magiskinit: cmdline: [_android_custom_fdt]=[1] [ 1.285315] magiskinit: cmdline: [want_initramfs]=[] [ 1.285331] magiskinit: cmdline: [lcm]=[1-r63350_fhd_dsi_vdo_tcl_sharp_nt50358_drv] [ 1.285349] magiskinit: cmdline: [fps]=[5419] [ 1.285364] magiskinit: cmdline: [vram]=[29229056] [ 1.285379] magiskinit: cmdline: [printk.disable_uart]=[1] [ 1.285395] magiskinit: cmdline: [bootprof.pl_t]=[4208] [ 1.285410] magiskinit: cmdline: [bootprof.lk_t]=[5789] [ 1.285426] magiskinit: cmdline: [boot_reason]=[3] [ 1.285442] magiskinit: cmdline: [androidboot.serialno]=[91HECNS2RTGZ] [ 1.285458] magiskinit: cmdline: [androidboot.bootreason]=[wdt] [ 1.285474] [msdc]msdc0 -> !!! Set<200000KHz> Source<400000KHz> -> sclk<200000KHz> timing<1> mode<0> div<0> hs400_div_dis<0>[ 1.285479] (5)[1:init]magiskinit: (5)[1:init]cmdline: [androidboot.psn]=[910ZZ132E1CEF2D] [ 1.285487] (5)[1:init]magiskinit: (5)[1:init]cmdline: [psn]=[910ZZ132E1CEF2D] [ 1.285495] (5)[1:init]magiskinit: (5)[1:init]cmdline: [color_type]=[M1621K] [ 1.285502] (5)[1:init]magiskinit: (5)[1:init]cmdline: [hw_version]=[0x10000000] [ 1.285511] (5)[1:init]magiskinit: (5)[1:init]cmdline: [sw_version]=[68100000] [ 1.285518] (5)[1:init]magiskinit: (5)[1:init]cmdline: [gpt]=[1] [ 1.285526] (5)[1:init]magiskinit: (5)[1:init]cmdline: [usb2jtag_mode]=[0] [ 1.285546] (5)[1:init]magiskinit: (5)[1:init]fopen: /.backup/.magisk failed with 2: No such file or directory [ 1.285555] (5)[1:init]magiskinit: (5)[1:init]system_as_root=[1] [ 1.285563] (5)[1:init]magiskinit: (5)[1:init]force_normal_boot=[1] [ 1.285570] (5)[1:init]magiskinit: (5)[1:init]slot=[] [ 1.285577] (5)[1:init]magiskinit: (5)[1:init]dt_dir=[/proc/device-tree/firmware/android] [ 1.285584] (5)[1:init]magiskinit: (5)[1:init]ABFirstStageInit() [ 1.285593] (5)[1:init]magiskinit: (5)[1:init]ABFirstStageInit::start() [ 1.285600] (5)[1:init]magiskinit: (5)[1:init]ABFirstStageInit::prepare()

[ 1.285658] (5)[1:init]magiskinit: (5)[1:init]patch_fstab() [ 1.286663] [msdc]msdc0 -> !!! Set<52000KHz> Source<400000KHz> -> sclk<50000KHz> timing<1> mode<0> div<2> hs400_div_dis<0> [ 1.286798] (4)[151:kworker/u16:2][msdc]msdc0 -> !!! Set<52000KHz> Source<400000KHz> -> sclk<50000KHz> timing<10> mode<3> div<1> hs400_div_dis<0>[msdc]msdc0 -> !!! Set<200000KHz> Source<400000KHz> -> sclk<200000KHz> timing<10> mode<3> div<0> hs400_div_dis<1> [ 1.286941] (5)[1:init]magiskinit: (5)[1:init]rename /init -> /first_stage_ramdisk/system/bin/init [ 1.286984] magiskinit: create /first_stage_ramdisk/init symbolic link [ 1.287019] magiskinit: mkdir /first_stage_ramdisk/.backup [ 1.287044] magiskinit: rename /.backup/.magisk -> /first_stage_ramdisk/.backup/.magisk [ 1.287069] magiskinit: rename /overlay.dmagiskinit: ABFirstStageInit::prepare() leaving... [ 1.287105] magiskinit: ABFirstStageInit::start() before exec_init() [ 1.287121] magiskinit: BaseInit::exec_init() [ 1.287159] magiskinit: BaseInit::cleanup() [ 1.287174] magiskinit: unmount /sys [ 1.287867] (4)[151:kworker/u16:2][msdc][AUTOK]eMMC HS400 Tune [ 1.290611] (4)[151:kworker/u16:2][AUTOK]CMD 0 38 XXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXXXXXXXOOOOOOOOOOOOOOOOO [ 1.292445] (4)[151:kworker/u16:2][AUTOK]CMD 1 39 OOOOOOOOOOOOOOOOOOOXXXXXXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO [ 1.292460] [AUTOK]Analysis Result: 1T = 45

[ 1.292481] (4)[151:kworker/u16:2][AUTOK]current device status 0x00000900 [ 1.294240] (4)[151:kworker/u16:2][AUTOK]DLY1/2 0 18 XOOOOOOOOOOOOOOOOOOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX [ 1.294261] (4)[151:kworker/u16:2][AUTOK]CMD [EDGE:1 DLY1:0 DLY2:0 ] [ 1.294272] (4)[151:kworker/u16:2][AUTOK]DAT [RDAT_EDGE:0 RD_FIFO_EDGE:0 WD_FIFO_EDGE:0] [ 1.294283] (4)[151:kworker/u16:2][AUTOK]DAT [LATCH_CK:0 DLY1:1 DLY2:0 ] [ 1.294294] (4)[151:kworker/u16:2][AUTOK]DS [DLY1:9 DLY2:0 DLY3:20] [ 1.294306] (4)[151:kworker/u16:2][AUTOK][HS400]=========Time Cost:6 ms======== [ 1.294405] (4)[203:exe_cq][CQ] start cmdq thread [ 1.294408] (5)[151:kworker/u16:2]mmc0: new HS400 MMC card at address 0001 [ 1.294797] (4)[151:kworker/u16:2]mmcblk0: mmc0:0001 RX1BMB 29.1 GiB [ 1.295004] (5)[151:kworker/u16:2]mmcblk0boot0: mmc0:0001 RX1BMB partition 1 4.00 MiB [ 1.295206] (4)[151:kworker/u16:2]mmcblk0boot1: mmc0:0001 RX1BMB partition 2 4.00 MiB [ 1.295406] (5)[151:kworker/u16:2]mmcblk0rpmb: mmc0:0001 RX1BMB partition 3 4.00 MiB [ 1.295884] (4)[204:mmcqd/0]mmc0: set ext_csd.cmdq_mode_en = 1 [ 1.297537] (5)[151:kworker/u16:2] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 p31 p32 p33 [ 1.300142] (5)[151:kworker/u16:2][msdc]msdc1 -> Card insert<1> Block bad card<0> <- msdc_ops_get_cd() : L<5091> PID<kworker/u16:2><0x97> [ 1.300608] [msdc][msdc_command_resp_polling]: msdc1 CMD<52> MSDC_INT_CMDTMO Arg<0x00000c00> [ 1.301134] (5)[151:kworker/u16:2][msdc][msdc_command_resp_polling]: msdc1 CMD<52> MSDC_INT_CMDTMO Arg<0x80000c08> (4)[115:fih_read_hwid_i]fs_get_hwid_num() Read hwid_info failed! -2 [ 1.315455] [msdc][msdc_command_resp_polling]: msdc1 CMD<5> MSDC_INT_CMDTMO Arg<0x00000000> [ 1.315976] (5)[151:kworker/u16:2][msdc][msdc_command_resp_polling]: msdc1 CMD<5> MSDC_INT_CMDTMO Arg<0x00000000>[msdc][msdc_command_resp_polling]: msdc1 CMD<5> MSDC_INT_CMDTMO Arg<0x00000000> [ 1.317013] (5)[151:kworker/u16:2][msdc][msdc_command_resp_polling]: msdc1 CMD<5> MSDC_INT_CMDTMO Arg<0x00000000>magiskinit: unmount /proc [ 1.343464] (4)[178:kworker/u16:3]BOOTPROF: 1343.461002:probe: probe=i2c_device_probe drv=gt9xx(ffffffc000f65e70) 82.136308ms [ 1.343570] (4)[178:kworker/u16:3]mtk-tpd: [mtk-tpd]tpd_probe, tpd_driver_name=gt9xx [ 1.343655] (5)[178:kworker/u16:3]mtk-tpd: Cap touch panel driver [ 1.343779] (5)[178:kworker/u16:3]input: mtk-tpd as /devices/virtual/input/input2 [ 1.343850] (5)[178:kworker/u16:3]BOOTPROF: 1343.847848:probe: probe=platform_drv_probe drv=mtk-tpd(ffffffc000f64fd0) 83.047461ms [ 1.343927] (6)[6:kworker/u16:0]**** battery_dts_probe!! **** [ 1.344241] (6)[6:kworker/u16:0]**** battery driver probe!! **** [ 1.344305] [BAT_probe] adc_cali prepare : done !!

[ 1.344318] (6)[6:kworker/u16:0]get_boot_mode=0 [ 1.344329] [BAT_probe] g_platform_boot_mode = 0

[ 1.344441] (6)[6:kworker/u16:0][BAT_probe] power_supply_register AC Success !! [ 1.344519] (6)[6:kworker/u16:0][BAT_probe] power_supply_register USB Success !! [ 1.344593] (6)[6:kworker/u16:0][BAT_probe] power_supply_register WIRELESS Success !! [ 1.344755] (6)[6:kworker/u16:0][BAT_probe] power_supply_register Battery Success !! [ 1.344869] (6)[6:kworker/u16:0]battery_kthread_hrtimer_init : done [ 1.344938] (5)[209:bat_routine_thr][charging_sw_init] regValue=0xd [ 1.344996] (0)[6:kworker/u16:0][battery_probe] battery kthread init done [ 1.345000] (7)[211:bat_update_thre]User space SOC init still waiting [ 1.345095] (4)[6:kworker/u16:0]charger_hv_detect_sw_workaround_init : done [ 1.345137] (4)[6:kworker/u16:0]proc_create bat_proc_fops [ 1.345763] (4)[6:kworker/u16:0]**** mt_batteryNotify_dts_probe!! **** [ 1.346053] (4)[6:kworker/u16:0]**** mt_batteryNotify_probe!! **** [ 1.346097] (4)[6:kworker/u16:0]proc_create battery_cmd_proc_fops [ 1.346110] (4)[6:kworker/u16:0]proc_create current_cmd_proc_fops [ 1.346123] (4)[6:kworker/u16:0]proc_create discharging_cmd_proc_fops [ 1.346139] (4)[6:kworker/u16:0]proc_create power_path_proc_fops [ 1.346151] (4)[6:kworker/u16:0]proc_create safety_timer_proc_fops [ 1.346161] (4)[6:kworker/u16:0]**** mtk_battery_cmd!! **** [ 1.346322] (4)[6:kworker/u16:0]****[battery_driver] Initialization : DONE !! [ 1.391513] magiskinit: BaseInit::exec_init() after cleanup() [ 1.403341] (5)[209:bat_routine_thr]1.[fgauge_algo_run_get_init_data](gFG_voltage_init 3965, gFG_current_init 610, gFG_Is_Charging_init 0) [ 1.403364] (5)[209:bat_routine_thr][battery_meter_initial] SOC_BY_HW_FG not done [ 1.411514] (6)[115:fih_read_hwid_i]fs_get_hwid_num() Read hwid_info failed! -2 [ 1.415923] (4)[1:init]init: init first stage started! [ 1.416180] (4)[1:init]init: Switching root to '/first_stage_ramdisk' [ 1.416542] (4)[1:init]init: [libfs_mgr]ReadFstabFromDt(): failed to read fstab from dt [ 1.416867] (4)[1:init]init: [libfs_mgr]Warning: unknown flag: resize [ 1.416890] (4)[1:init]init: [libfs_mgr]Warning: unknown flag: =/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/metadata [ 1.417269] (4)[1:init]init: Using Android DT directory /proc/device-tree/firmware/android/ [ 1.417673] (4)[1:init]init: [libfs_mgr]Warning: unknown flag: resize [ 1.417696] (4)[1:init]init: [libfs_mgr]Warning: unknown flag: =/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/metadata [ 1.493557] (4)[151:kworker/u16:2][msdc]msdc_ops_switch_volt msdc1 set voltage to 1.8V [ 1.493594] (4)[151:kworker/u16:2][msdc]msdc change<3000000> to <1800000> [ 1.493633] (4)[151:kworker/u16:2]regulator_set_voltage_sel(name=vmc selector=3) [ 1.509181] (6)[1:init]init: [libfs_mgr]superblock s_max_mnt_count:65535,/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/userdata [ 1.511038] [msdc]msdc1 -> !!! Set<400KHz> Source<200000KHz> -> sclk<400KHz> timing<0> mode<0> div<125> hs400_div_dis<0> [ 1.512227] (7)[1:init]EXT4-fs (mmcblk0p31): mounted filesystem with ordered data mode. Opts: barrier=1 [ 1.512344] (7)[1:init]init: [libfs_mgr]mount(source=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/userdata,target=/system_root,type=ext4)=0: Success [ 1.512959] (6)[1:init]init: [libfs_mgr]superblock s_max_mnt_count:65535,/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/vendor [ 1.515567] (6)[1:init]EXT4-fs (mmcblk0p33): mounted filesystem without journal. Opts: barrier=1 [ 1.515651] (6)[1:init]init: [libfs_mgr]mount(source=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/vendor,target=/vendor,type=ext4)=0: Success [ 1.515995] (6)[1:init]init: Could not get mount point for '/' in /proc/mounts, /system will not be available for overlayfs [ 1.520655] [msdc]msdc1 -> !!! Set<400KHz> Source<200000KHz> -> sclk<400KHz> timing<6> mode<0> div<125> hs400_div_dis<0> [ 1.520683] (4)[151:kworker/u16:2][msdc]msdc1 -> !!! Set<200000KHz> Source<200000KHz> -> sclk<200000KHz> timing<6> mode<1> div<0> hs400_div_dis<0>[ 1.521717] (6)[151:kworker/u16:2][msdc][AUTOK]SD Autok [ 1.523970] (5)[115:fih_read_hwid_i]fs_get_hwid_num() Read hwid_info Success! [ 1.523985] (5)[115:fih_read_hwid_i]fih_read_hwid_info() fih_hwid_num = 37 [ 1.524177] (5)[115:fih_read_hwid_i]fs_read_hwid_info() Read hwid_info Success! [ 1.551620] (6)[1:init]init: Skipped setting INIT_AVB_VERSION (not in recovery mode) [ 1.552576] (5)[151:kworker/u16:2][AUTOK]CMD 0 42 OOOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXXXXXOOOOOOO@������� [ 1.553661] (4)[1:init]random: init urandom read with 13 bits of entropy available [ 1.553808] magiskinit: get pid = 1 [ 1.553938] magiskinit: cmdline: [console]=[tty0] [ 1.553958] magiskinit: cmdline: [console]=[ttyMT0,921600n1] [ 1.553974] magiskinit: cmdline: [root]=[/dev/ram] [ 1.553990] magiskinit: cmdline: [vmalloc]=[496M] [ 1.554006] magiskinit: cmdline: [slub_max_order]=[0] [ 1.554022] magiskinit: cmdline: [slub_debug]=[O] [ 1.554038] magiskinit: cmdline: [androidboot.hardware]=[mt6755] [ 1.554055] magiskinit: cmdline: [bootopt]=[64S3,32N2,64N2] [ 1.554071] magiskinit: cmdline: [enforcing]=[0] [ 1.554087] magiskinit: cmdline: [_androidboot.selinux]=[enforcing] [ 1.554104] magiskinit: cmdline: [androidboot.selinux]=[permissive] [ 1.554120] magiskinit: cmdline: [root]=[/dev/ram] [ 1.554135] magiskinit: cmdline: [androidboot.board.platform]=[mt6755] [ 1.554152] magiskinit: cmdline: [androidboot.hardware]=[mt6755] [ 1.554168] magiskinit: cmdline: [androidboot.debuggable]=[1] [ 1.554185] magiskinit: cmdline: [androidboot.force_normal_boot]=[1] [ 1.554202] magiskinit: cmdline: [_androidboot.android_dt_dir]=[/dt-overlay] [ 1.554218] magiskinit: cmdline: [rootdelay]=[5] [ 1.554234] magiskinit: cmdline: [_android_custom_fdt]=[1] [ 1.554249] magiskinit: cmdline: [want_initramfs]=[] [ 1.554266] magiskinit: cmdline: [lcm]=[1-r63350_fhd_dsi_vdo_tcl_sharp_nt50358_drv] [ 1.554283] magiskinit: cmdline: [fps]=[5419] [ 1.554298] magiskinit: cmdline: [vram]=[29229056] [ 1.554314] magiskinit: cmdline: [printk.disable_uart]=[1] [ 1.554330] magiskinit: cmdline: [bootprof.pl_t]=[4208] [ 1.554345] magiskinit: cmdline: [bootprof.lk_t]=[5789] [ 1.554361] magiskinit: cmdline: [boot_reason]=[3] [ 1.554376] magiskinit: cmdline: [androidboot.serialno]=[91HECNS2RTGZ] [ 1.554393] magiskinit: cmdline: [androidboot.bootreason]=[wdt] [ 1.554409] magiskinit: cmdline: [androidboot.psn]=[910ZZ132E1CEF2D] [ 1.554426] magiskinit: cmdline: [psn]=[910ZZ132E1CEF2D] [ 1.554441] magiskinit: cmdline: [color_type]=[M1621K] [ 1.554457] magiskinit: cmdline: [hw_version]=[0x10000000] [ 1.554472] magiskinit: cmdline: [sw_version]=[68100000] [ 1.554488] magiskinit: cmdline: [gpt]=[1] [ 1.554503] magiskinit: cmdline: [usb2jtag_mode]=[0] [ 1.554533] magiskinit: fopen: /.backup/.magisk failed with 2: No such file or directory [ 1.554553] magiskinit: system_as_root=[1] [ 1.554568] magiskinit: force_normal_boot=[1] [ 1.554582] magiskinit: slot=[] [ 1.554595] magiskinit: dt_dir=[/proc/device-tree/firmware/android] [ 1.554611] magiskinit: SecondStageInit() selinux_setup... [ 1.554627] magiskinit: SARBase::start() [ 1.554641] magiskinit: SecondStageInit::early_mount() [ 1.554656] magiskinit: SARBase::backup_files() [ 1.554679] magiskinit: backup magisk or original init [ 1.555353] magiskinit: backup .magisk file [ 1.555429] magiskinit: open: /.backup/.magisk failed with 2: No such file or directory [ 1.555451] magiskinit: rm /system, /.backup and /overlay.d [ 1.555793] magiskinit: parsing /... [ 1.555820] magiskinit: parsing /dev... [ 1.555837] magiskinit: parsing /dev/pts... [ 1.555855] magiskinit: parsing /proc... [ 1.555871] magiskinit: parsing /sys... [ 1.555888] magiskinit: parsing /sys/fs/selinux... [ 1.555906] magiskinit: parsing /mnt... [ 1.555923] magiskinit: parsing /apex... [ 1.555940] magiskinit: parsing /debug_ramdisk... [ 1.555957] magiskinit: parsing /... [ 1.555998] magiskinit: /system_root is mounted! [ 1.556023] magiskinit: switch root to /system_root [ 1.556039] magiskinit: Switch root to /system_root [ 1.556111] magiskinit: /proc/mounts content: rootfs / rootfs rw 0 0 tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0 devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0 proc /proc proc rw,relatime,gid=3009,hidepid=2 0 0 sysfs /sys sysfs rw,relatime 0 0 selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0 tmpfs /mnt tmpfs rw,nosuid,nodev,noexec,relatime,mode=755,gid=1000 0 0 tmpfs /apex tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0 tmpfs /debug_ramdisk tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0 rootfs / rootfs rw 0 0 /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/userdata /system_root ext4 ro,relatime,resuid=10010,data=ordered 0 0 /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/vendor /vendor ext4 ro,relatime 0 0 [ 1.556173] magiskinit: try to process /proc/mount [ 1.559117] magiskinit: open: /system_root/proc/cmdline failed with 2: No such file or directory [ 1.559149] magiskinit: (���- not avail [ 1.559164] magiskinit: Migrating mount point to new root [ 1.559182] magiskinit: mkdir /system_root/dev [ 1.559432] magiskinit: mount move /dev -> /system_root/dev [ 1.559451] magiskinit: Mount s:/dev d:/system_root/dev f:(null) m:8192 d:(null) failed with 17: File exists [ 1.559498] magiskinit: mkdir /system_root/proc [ 1.559518] magiskinit: mount move /proc -> /system_root/proc [ 1.559534] magiskinit: Mount s:/proc d:/system_root/proc f:(null) m:8192 d:(null) failed with 17: File exists [ 1.559566] magiskinit: mkdir /system_root/sys [ 1.560079] magiskinit: mount move /sys -> /system_root/sys [ 1.560097] magiskinit: Mount s:/sys d:/system_root/sys f:(null) m:8192 d:(null) failed with 17: File exists [ 1.560130] magiskinit: mkdir /system_root/mnt [ 1.561979] magiskinit: mount move /mnt -> /system_root/mnt [ 1.562001] magiskinit: Mount s:/mnt d:/system_root/mnt f:(null) m:8192 d:(null) failed with 17: File exists [ 1.562040] magiskinit: mkdir /system_root/apex [ 1.562298] magiskinit: mount move /apex -> /system_root/apex [ 1.562316] magiskinit: Mount s:/apex d:/system_root/apex f:(null) m:8192 d:(null) failed with 17: File exists [ 1.562351] magiskinit: mkdir /system_root/debug_ramdisk [ 1.562594] magiskinit: mount move /debug_ramdisk -> /system_root/debug_ramdisk [ 1.562614] magiskinit: Mount s:/debug_ramdisk d:/system_root/debug_ramdisk f:(null) m:8192 d:(null) failed with 17: File exists [ 1.562647] magiskinit: mkdir /system_root/vendor [ 1.564520] magiskinit: mount move /vendor -> /system_root/vendor [ 1.564540] magiskinit: Mount s:/vendor d:/system_root/vendor f:(null) m:8192 d:(null) failed with 17: File exists [ 1.564638] magiskinit: /system_root/proc/cmdline content: console=tty0 console=ttyMT0,921600n1 root=/dev/ram vmalloc=496M slub_max_order=0 slub_debug=O androidboot.hardware=mt6755 bootopt=64S3,32N2,64N2 enforcing=0 _androidboot.selinux=enforcing androidboot.selinux=permissive root=/dev/ram androidboot.board.platform=mt6755 androidboot.hardware=mt6755 androidboot.debuggable=1 androidboot.force_normal_boot=1 _androidboot.android_dt_dir=/dt-overlay rootdelay=5 _android_custom_fdt=1 want_initramfs lcm=1-r63350_fhd_dsi_vdo_tcl_sharp_nt50358_drv fps=5419 vram=29229056 printk.disable_uart=1 bootprof.pl_t=4208 bootprof.lk_t=5789 boot_reason=3 androidboot.serialno=91HECNS2RTGZ androidboot.bootreason=wdt androidboot.psn=910ZZ132E1CEF2D psn=910ZZ132E1CEF2D color_type=M1621K hw_version=0x10000000 sw_version=68100000 gpt=1 usb2jtag_mode=0magiskinit: Mount s:/system_root d:/ f:(null) m:8192 d:(null) failed with 17: File exists [ 1.564738] magiskinit: chroot done. [ 1.564756] magiskinit: SARBase::patch_rootdir() [ 1.564771] magiskinit: sbin_overlay() Mount /sbin tmpfs overlay [ 1.565021] magiskinit: Mount s:tmpfs d:/sbin f:tmpfs m:0 d:mode=755 failed with 17: File exists [ 1.570172] magiskinit: APEX detected, use wrapper [ 1.582509] (6)[151:kworker/u16:2][AUTOK]CMD 1 31 OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXXXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO@������� [ 1.582532] [AUTOK]Analysis Result: 1T = 45

[ 1.606043] (6)[151:kworker/u16:2][AUTOK]DAT 0 36 OOOXXXXXXXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXXXXXXXXXXXOOOOOOO@������� [ 1.611468] (4)[209:bat_routine_thr]CDP, block [ 1.615750] magiskinit: patch_socket_name() [ 1.622829] magiskinit: Mount s:/sbin/.magisk/block/system_root d:/sbin/.magisk/mirror/system_root f:ext4 m:1 d:(null) failed with 17: File exists [ 1.623450] magiskinit: Mount s:/sbin/.magisk/mirror/system_root/sbin/dashd d:/sbin/dashd f:(null) m:4096 d:(null) failed with 0: Unknown error: 0 [ 1.630348] magiskinit: Remove from init: /system/etc/selinux/plat_sepolicy.cil [ 1.633362] (7)[151:kworker/u16:2][AUTOK]DAT 1 30 OOOOOOOOOOOOOOOOOOOOOOOOOXXXXXXXXXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO@������� [ 1.633383] [AUTOK]Analysis Result: 1T = 45

[ 1.633550] (7)[151:kworker/u16:2][AUTOK]CMD [EDGE:1 DLY1:9 DLY2:0 ] [ 1.633563] (7)[151:kworker/u16:2][AUTOK]DAT [RDAT_EDGE:0 RD_FIFO_EDGE:1 WD_FIFO_EDGE:1] [ 1.633575] (7)[151:kworker/u16:2][AUTOK]DAT [LATCH_CK:0 DLY1:6 DLY2:0 ] [ 1.633586] (7)[151:kworker/u16:2][AUTOK]DS [DLY1:0 DLY2:0 DLY3:0] [ 1.633598] (7)[151:kworker/u16:2][AUTOK]=========Time Cost:111 ms======== [ 1.633620] (7)[151:kworker/u16:2]mmc1: new ultra high speed SDR104 SDHC card at address 59b4 [ 1.633946] (4)[151:kworker/u16:2]mmcblk1: mmc1:59b4 USDU1 29.7 GiB [ 1.636014] (6)[151:kworker/u16:2] mmcblk1: p1 [ 1.657247] magiskinit: Patch libselinux.so [/sepolicy] -> [/sbin/.se] [ 1.657520] magiskinit: MagiskInit::patch_sepolicy() [ 1.658084] magiskinit: sepol: split policy [ 1.658104] magiskinit: Mount s:selinuxfs d:/sys/fs/selinux f:selinuxfs m:0 d:(null) failed with 0: Unknown error: 0 [ 1.658184] magiskinit: mount selinuxfs->/sys/fs/selinux!! failed with 16: Device or resource busy [ 1.659608] magiskinit: open: /vendor/etc/selinux/precompiled_sepolicy.plat_sepolicy_and_mapping.sha256 failed with 2: No such file or directory [ 1.916745] magiskinit: cil_add[/system/etc/selinux/plat_sepolicy.cil] [ 1.947844] magiskinit: cil_add[/system/etc/selinux/mapping/28.0.cil] [ 2.043891] magiskinit: cil_add[/vendor/etc/selinux/plat_pub_versioned.cil] [ 2.134576] magiskinit: cil_add[/vendor/etc/selinux/vendor_sepolicy.cil] [ 2.281582] (6)[210:kworker/6:1][msdc]cache(0x680000~0x758000, usrdata(0x758000~0x37E11D7) [ 2.281620] (6)[210:kworker/6:1]get expdb info [ 3.811528] (4)[209:bat_routine_thr]CDP, TIMEOUT!!! [ 3.811558] (4)[209:bat_routine_thr]CDP, free [ 4.051618] (4)[209:bat_routine_thr]User space SOC init still waiting [ 4.064639] (4)[209:bat_routine_thr][kernel]AvgVbat 3964,bat_vol 3964, AvgI 290, I -5785, VChr 4863, AvgT 30, T 30, ZCV 0, CHR_Type 1, SOC -1:-100: -1, bcct 0:0, Ichg 450, IBat 0 [ 4.064753] (4)[209:bat_routine_thr][chr_control_interface] cmd:48 does not support [ 4.064769] (4)[209:bat_routine_thr]mtk_pep_check_charger: stop, SOC = -1, to_check_chr_type = 1, chr_type = 1, ret = 0 [ 4.064784] [BATTERY] Pre-CC mode charge, timer=0 on 0 !!

[ 4.064796] (4)[209:bat_routine_thr][chr_control_interface] cmd:44 does not support [ 4.064875] (4)[209:bat_routine_thr]mtk_pep_start_algorithm: stop, PE+ is not connected [ 4.066500] (4)[209:bat_routine_thr]mtk_pep_start_algorithm: vchr_org = 5000, vchr_after = 4844, delta = -156 [ 4.066522] (4)[209:bat_routine_thr][BATTERY] Default CC mode charging : 50000, input current = 50000 [ 4.066610] (4)[209:bat_routine_thr][charging_set_cv_voltage] [0xf7e]=0xd8, [0xf84]=0x9 input:4340000 output:4337500 [ 4.066694] (4)[209:bat_routine_thr][0xf78]=0x37b,[0xf7a]=0xa2,[0xf7c]=0xce,[0xf7e]=0xd8,[0xf80]=0xc [ 4.066723] (4)[209:bat_routine_thr][0xf82]=0x0,[0xf84]=0x9,[0xf86]=0x5,[0xf88]=0x0,[0xf8a]=0x0 [ 4.066752] (4)[209:bat_routine_thr][0xf8c]=0x70,[0xf8e]=0x0,[0xf90]=0x0,[0xf92]=0x10,[0xf94]=0x0 [ 4.066780] (4)[209:bat_routine_thr][0xf96]=0x1,[0xf98]=0x4,[0xf9a]=0x2,[0xf9c]=0x3,[0xf9e]=0x0 [ 4.066808] (4)[209:bat_routine_thr][0xfa0]=0x3,[0xfa2]=0x0,[0xfa4]=0x21,[0xfa6]=0x14,[0xfa8]=0x41 [ 4.066837] (4)[209:bat_routine_thr][0xfaa]=0x3d4,[0xfac]=0x81,[0xfae]=0x1d,[0xfb0]=0x0,[0xfb2]=0x0 [ 4.066874] (4)[209:bat_routine_thr][0xfb4]=0x55,[0xfb6]=0x0,[0xfb8]=0x0,[0xfba]=0x1d1d,[0xfbc]=0x91d [ 4.066903] (4)[209:bat_routine_thr][0xfbe]=0x3109,[0xfc0]=0x909,[0xfc2]=0x1d1d,[0xfc4]=0x311d,[0xfc6]=0x9 [ 4.066931] (4)[209:bat_routine_thr][0xfc8]=0xaf,[0xfca]=0x0,[0xfcc]=0x0,[0xfce]=0x0,[0xfd0]=0x0 [ 4.066944] (4)[209:bat_routine_thr]Default_VBAT_CV_VTH=13 [ 4.066955] (4)[209:bat_routine_thr]3500 3600 3700 3800 3850 3900 4000 4050 4100 4150 [ 4.066968] (4)[209:bat_routine_thr]4162 4175 4187 4200 4212 4225 4237 4250 4262 4275 [ 4.066981] (4)[209:bat_routine_thr]4287 4300 4312 4325 4337 4350 4362 4375 4387 4400 [ 4.066995] (4)[209:bat_routine_thr]4412 4425 4437 4450 4462 4475 4487 4500 4512 4525 [ 4.067008] (4)[209:bat_routine_thr]4600 10500 10500 10500 10500 10500 10500 10500 3500 3600 [ 4.083072] (4)[209:bat_routine_thr][kernel]AvgVbat 3964,bat_vol 3965, AvgI 81, I -5785, VChr 4853, AvgT 30, T 30, ZCV 0, CHR_Type 1, SOC -1:-100: -1, bcct 0:0, Ichg 450, IBat 0 [ 4.083179] (4)[209:bat_routine_thr][chr_control_interface] cmd:48 does not support [ 4.083194] (4)[209:bat_routine_thr]mtk_pep_check_charger: stop, SOC = -1, to_check_chr_type = 1, chr_type = 1, ret = 0 [ 4.083209] (4)[209:bat_routine_thr][BATTERY] CC mode charge, timer=0 on 10!! [ 4.083221] (4)[209:bat_routine_thr][chr_control_interface] cmd:44 does not support [ 4.083298] (4)[209:bat_routine_thr]mtk_pep_start_algorithm: stop, PE+ is not connected [ 4.084900] (4)[209:bat_routine_thr]mtk_pep_start_algorithm: vchr_org = 5000, vchr_after = 4872, delta = -128 [ 4.084918] (4)[209:bat_routine_thr][BATTERY] Default CC mode charging : 50000, input current = 50000 [ 4.085002] (4)[209:bat_routine_thr][charging_set_cv_voltage] [0xf7e]=0xd8, [0xf84]=0x9 input:4340000 output:4337500 [ 4.085088] (4)[209:bat_routine_thr][0xf78]=0x37b,[0xf7a]=0xa2,[0xf7c]=0x8e,[0xf7e]=0xd8,[0xf80]=0xc [ 4.085117] (4)[209:bat_routine_thr][0xf82]=0x0,[0xf84]=0x9,[0xf86]=0x5,[0xf88]=0x0,[0xf8a]=0x0 [ 4.085145] (4)[209:bat_routine_thr][0xf8c]=0x70,[0xf8e]=0x0,[0xf90]=0x0,[0xf92]=0x10,[0xf94]=0x0 [ 4.085174] (4)[209:bat_routine_thr][0xf96]=0x1,[0xf98]=0x4,[0xf9a]=0x2,[0xf9c]=0x3,[0xf9e]=0x0 [ 4.085202] (4)[209:bat_routine_thr][0xfa0]=0x3,[0xfa2]=0x0,[0xfa4]=0x21,[0xfa6]=0x14,[0xfa8]=0x41 [ 4.085231] (4)[209:bat_routine_thr][0xfaa]=0x3d4,[0xfac]=0x81,[0xfae]=0x1d,[0xfb0]=0x0,[0xfb2]=0x0 [ 4.085259] (4)[209:bat_routine_thr][0xfb4]=0x55,[0xfb6]=0x0,[0xfb8]=0x0,[0xfba]=0x1d1d,[0xfbc]=0x91d [ 4.085296] (4)[209:bat_routine_thr][0xfbe]=0x3109,[0xfc0]=0x909,[0xfc2]=0x1d1d,[0xfc4]=0x311d,[0xfc6]=0x9 [ 4.085325] (4)[209:bat_routine_thr][0xfc8]=0xaf,[0xfca]=0x0,[0xfcc]=0x0,[0xfce]=0x0,[0xfd0]=0x0 [ 4.085337] (4)[209:bat_routine_thr]Default_VBAT_CV_VTH=13 [ 4.085349] (4)[209:bat_routine_thr]3500 3600 3700 3800 3850 3900 4000 4050 4100 4150 [ 4.085362] (4)[209:bat_routine_thr]4162 4175 4187 4200 4212 4225 4237 4250 4262 4275 [ 4.085375] (4)[209:bat_routine_thr]4287 4300 4312 4325 4337 4350 4362 4375 4387 4400 [ 4.085387] (4)[209:bat_routine_thr]4412 4425 4437 4450 4462 4475 4487 4500 4512 4525 [ 4.085400] (4)[209:bat_routine_thr]4600 10500 10500 10500 10500 10500 10500 10500 3500 3600 [ 4.826423] magiskinit: open: /dev/overlay.d failed with 2: No such file or directory [ 4.826533] magiskinit: patch_init_rc() [ 4.845145] magiskinit: Remove flash_recovery [ 4.845206] magiskinit: Inject magisk services: [k0R5D03UH2ee] [3J2bAxJ2M] [aD6TN1V2] [ 4.845290] magiskinit: magic_mount() [ 4.845328] magiskinit: Mount [/sbin/.magisk/rootdir/init.rc] -> [/init.rc] [ 4.845347] magiskinit: Mount s:/sbin/.magisk/rootdir/init.rc d:/init.rc f:(null) m:4096 d:(null) failed with 2: No such file or directory [ 4.845423] magiskinit: magic_mount() [ 4.845456] magiskinit: magic_mount() [ 4.845483] magiskinit: Mount [/sbin/.magisk/rootdir/system/lib64/libselinux.so] -> [/system/lib64/libselinux.so] [ 4.845503] magiskinit: Mount s:/sbin/.magisk/rootdir/system/lib64/libselinux.so d:/system/lib64/libselinux.so f:(null) m:4096 d:(null) failed with 2: No such file or directory [ 4.845570] magiskinit: Mount [/sbin/.magisk/rootdir/init] -> [/init] [ 4.845587] magiskinit: Mount s:/sbin/.magisk/rootdir/init d:/init f:(null) m:4096 d:(null) failed with 2: No such file or directory [ 4.845864] magiskinit: BaseInit::exec_init() [ 4.845881] magiskinit: BaseInit::exec_init() after cleanup() [ 4.947225] (5)[1:init]init: Loading SELinux policy [ 5.016508] (4)[184:hps_main][HPS] (0x2000)<0>(0) action end (102)(102)(0) (0)(0) (4)(4)(0)(0) (0)(0)(0)(0) <0>(0) [ 5.016545] (4)[184:hps_main][HPS] (0x2000)<0>(0) HRT_BT_DBG (102)(102)(0) (0)(0) (4)(4)(0)(0) (0)(0)(0)(0) <0>(0) [ 5.151561] -(4)[69:kworker/4:1]connection_work: 6 callbacks suppressed [ 6.261220] -(4)[0:swapper/4]Power/swap DP: No enter --- SODI3: No enter --- SODI: No enter --- [ 6.261226] -(6)[0:swapper/6]Power/swap CNT(soidle,rgidle): [0] = (0,1326), [1] = (0,1386), [2] = (0,1353), [3] = (0,1352), [4] = (0,2323), [5] = (0,1453), [6] = (0,1099), [7] = (0,1438), [ 6.261236] -(6)[0:swapper/6]Power/swap soidle_block_cnt: [by_cpu] = 0, [by_clk] = 0, [by_tmr] = 0, [by_oth] = 0, [by_vtg] = 0, [by_frm] = 11190, [by_pll] = 0, [by_pwm] = 0, [by_dvfsp] = 0, [by_conn] = 0, [ 6.261242] -(6)[0:swapper/6]Power/swap soidle_block_mask: 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, [ 6.351532] -(4)[69:kworker/4:1]connection_work: 7 callbacks suppressed [ 7.084743] (4)[209:bat_routine_thr][kernel]AvgVbat 3964,bat_vol 3965, AvgI -129, I -5803, VChr 4872, AvgT 30, T 30, ZCV 0, CHR_Type 1, SOC -1:-100: -1, bcct 0:0, Ichg 450, IBat 0 [ 7.084854] (4)[209:bat_routine_thr][chr_control_interface] cmd:48 does not support [ 7.084871] (4)[209:bat_routine_thr]mtk_pep_check_charger: stop, SOC = -1, to_check_chr_type = 1, chr_type = 1, ret = 0 [ 7.084886] (4)[209:bat_routine_thr][BATTERY] CC mode charge, timer=10 on 20!! [ 7.084898] (4)[209:bat_routine_thr][chr_control_interface] cmd:44 does not support [ 7.084975] (4)[209:bat_routine_thr]mtk_pep_start_algorithm: stop, PE+ is not connected [ 7.086612] (4)[209:bat_routine_thr]mtk_pep_start_algorithm: vchr_org = 5000, vchr_after = 4863, delta = -137 [ 7.086636] (4)[209:bat_routine_thr][BATTERY] Default CC mode charging : 50000, input current = 50000 [ 7.086723] (4)[209:bat_routine_thr][charging_set_cv_voltage] [0xf7e]=0xd8, [0xf84]=0x9 input:4340000 output:4337500 [ 7.086810] (4)[209:bat_routine_thr][0xf78]=0x37b,[0xf7a]=0xa2,[0xf7c]=0x8e,[0xf7e]=0xd8,[0xf80]=0xc [ 7.086840] (4)[209:bat_routine_thr][0xf82]=0x0,[0xf84]=0x9,[0xf86]=0x5,[0xf88]=0x0,[0xf8a]=0x0 [ 7.086875] (4)[209:bat_routine_thr][0xf8c]=0x70,[0xf8e]=0x0,[0xf90]=0x0,[0xf92]=0x10,[0xf94]=0x0 [ 7.086904] (4)[209:bat_routine_thr][0xf96]=0x1,[0xf98]=0x4,[0xf9a]=0x2,[0xf9c]=0x3,[0xf9e]=0x0 [ 7.086932] (4)[209:bat_routine_thr][0xfa0]=0x3,[0xfa2]=0x0,[0xfa4]=0x21,[0xfa6]=0x14,[0xfa8]=0x41 [ 7.086961] (4)[209:bat_routine_thr][0xfaa]=0x3d4,[0xfac]=0x81,[0xfae]=0x1d,[0xfb0]=0x0,[0xfb2]=0x0 [ 7.086990] (4)[209:bat_routine_thr][0xfb4]=0x55,[0xfb6]=0x0,[0xfb8]=0x0,[0xfba]=0x1d1d,[0xfbc]=0x91d [ 7.087019] (4)[209:bat_routine_thr][0xfbe]=0x3109,[0xfc0]=0x909,[0xfc2]=0x1d1d,[0xfc4]=0x311d,[0xfc6]=0x9 [ 7.087048] (4)[209:bat_routine_thr][0xfc8]=0xaf,[0xfca]=0x0,[0xfcc]=0x0,[0xfce]=0x0,[0xfd0]=0x0 [ 7.087060] (4)[209:bat_routine_thr]Default_VBAT_CV_VTH=13 [ 7.087072] (4)[209:bat_routine_thr]3500 3600 3700 3800 3850 3900 4000 4050 4100 4150 [ 7.087085] (4)[209:bat_routine_thr]4162 4175 4187 4200 4212 4225 4237 4250 4262 4275 [ 7.087098] (4)[209:bat_routine_thr]4287 4300 4312 4325 4337 4350 4362 4375 4387 4400 [ 7.087111] (4)[209:bat_routine_thr]4412 4425 4437 4450 4462 4475 4487 4500 4512 4525 [ 7.087124] (4)[209:bat_routine_thr]4600 10500 10500 10500 10500 10500 10500 10500 3500 3600 [ 7.551515] -(4)[69:kworker/4:1]connection_work: 7 callbacks suppressed [ 7.630010] (4)[1:init]audit: type=1403 audit(1453787329.360:2): policy loaded auid=4294967295 ses=4294967295 [ 7.631672] (4)[1:init]selinux: SELinux: Loaded policy from /sbin/.se [ 7.631672] [ 7.632749] (4)[1:init]audit: type=1400 audit(1453787329.370:3): avc: denied { setenforce } for pid=1 comm="init" scontext=u:r:kernel:s0 tcontext=u:object_r:kernel:s0 tclass=security permissive=1 [ 7.632784] (4)[1:init]audit: type=1404 audit(1453787329.370:4): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295 [ 7.673304] (5)[1:init]audit: type=1400 audit(1453787329.410:5): avc: denied { getattr } for pid=1 comm="init" path="/system/etc/selinux/plat_file_contexts" dev="mmcblk0p31" ino=180011 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 [ 7.673476] (5)[1:init]selinux: selinux_android_file_context: Error getting file context handle (No such file or directory) [ 7.673476] [ 7.674347] (4)[1:init]audit: type=1400 audit(1453787329.410:6): avc: denied { execute } for pid=1 comm="init" name="linker64" dev="mmcblk0p31" ino=155560 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 [ 7.674495] (4)[1:init]init: execv("/system/bin/init") failed: Permission denied [ 7.679721] (5)[1:init]audit: type=1400 audit(1453787329.410:7): avc: denied { open } for pid=1 comm="init" path="/system/lib64/libbacktrace.so" dev="mmcblk0p31" ino=156389 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 [ 7.687455] (5)[1:init]audit: type=1400 audit(1453787329.420:8): avc: denied { open } for pid=1 comm="init" path="/system/lib64/libbase.so" dev="mmcblk0p31" ino=156390 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 [ 7.688090] (5)[1:init]audit: type=1400 audit(1453787329.420:9): avc: denied { open } for pid=1 comm="init" path="/system/lib64/bootstrap/libc.so" dev="mmcblk0p31" ino=171365 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 [ 7.688798] (5)[1:init]init: #00 pc 00000000000676f4 /system/bin/init (android::init::InitFatalReboot()+92) [ 7.688854] (5)[1:init]init: #01 pc 0000000000093468 /system/bin/init (android::init::InitAborter(char const*)+44) [ 7.688903] (5)[1:init]init: #02 pc 000000000000c634 /system/lib64/libbase.so [ 7.688948] (5)[1:init]init: #03 pc 000000000006ab94 /system/bin/init (android::init::SetupSelinux(char**)+760) [ 7.688995] (5)[1:init]init: #04 pc 000000000002316c /system/bin/init (main+272) [ 7.689038] (5)[1:init]init: #05 pc 000000000007dc24 /system/lib64/bootstrap/libc.so [ 7.689075] (5)[1:init]init: Reboot ending, jumping to kernel [ 7.689766] (5)[1:init]mmcblk mmc1:59b4: shutdown`

99degree commented 4 years ago

thats all.

99degree commented 4 years ago

finally found phh's aosp with init binary does work with androidboot.selinux=permissive

so boot log can go further. feel really odd why google factory image does being "claimed" working nice with selinux hardcode to enforced.

[ 7.597058] (4)[1:init]audit: type=1400 audit(1453804405.330:6): avc: denied { noatsecure } for pid=1 comm="init" scontext=u:r:kernel:s0 tcontext=u:r:init:s0 tclass=process permissive=1 [ 7.604407] (4)[1:init]audit: type=1400 audit(1453804405.340:7): avc: denied { execute } for pid=1 comm="init" path="/system/lib64/libbinderthreadstate.so" dev="mmcblk0p31" ino=156395 scontext=u:r:init:s0 tcontext=u:object_r:system_data_file:s0 tclass=file **permissive=1** phh_aosp_v200d.bootlog.txt