[Bada Software and Hacking General] adfree:
adb shell cat /proc/kmsg

It is not full log... :o

but before restart...

Need to change buffer or write to file possible?

<6>[ 8.573760] #1: msm-mvs-audio (MSM-MVS-CARD)
<6>[ 8.573791] GACT probability NOT on
<6>[ 8.573822] Mirror/redirect action on
<6>[ 8.573822] u32 classifier
<6>[ 8.573822] Actions configured
<6>[ 8.573822] Netfilter messages via NETLINK v0.30.
<6>[ 8.573883] nf_conntrack version 0.5.0 (5632 buckets, 22528 max)
<4>[ 8.573974] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
<4>[ 8.573974] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
<4>[ 8.573974] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
<6>[ 8.574096] ctnetlink v0.93: registering with nfnetlink.
<6>[ 8.574127] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
<6>[ 8.574127] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
<6>[ 8.574401] xt_time: kernel timezone is -0000
<6>[ 8.574554] ip_tables: (C) 2000-2006 Netfilter Core Team
<6>[ 8.574645] arp_tables: (C) 2002 David S. Miller
<6>[ 8.574676] TCP cubic registered
<6>[ 8.574707] NET: Registered protocol family 10
<6>[ 8.575103] Mobile IPv6
<6>[ 8.575134] ip6_tables: (C) 2000-2006 Netfilter Core Team
<6>[ 8.575225] IPv6 over IPv4 tunneling driver
<6>[ 8.575683] NET: Registered protocol family 17
<6>[ 8.575714] NET: Registered protocol family 15
<6>[ 8.575866] Bluetooth: L2CAP ver 2.14
<6>[ 8.575866] Bluetooth: L2CAP socket layer initialized
<6>[ 8.575866] Bluetooth: SCO (Voice Link) ver 0.6
<6>[ 8.575866] Bluetooth: SCO socket layer initialized
<6>[ 8.575927] Bluetooth: RFCOMM TTY layer initialized
<6>[ 8.575927] Bluetooth: RFCOMM socket layer initialized
<6>[ 8.575927] Bluetooth: RFCOMM ver 1.11
<6>[ 8.575927] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
<6>[ 8.575927] Bluetooth: BNEP filters: protocol multicast
<6>[ 8.575958] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
<6>[ 8.579772] [voice.c:voice_init]
<6>[ 8.581634] input: 7k_handset as /devices/virtual/input/input7
<6>[ 8.581817] [voice.c:voice_thread] voice_thread() start
<6>[ 8.585357] VFP support v0.3: implementor 51 architecture 64 part 0f variant 1 rev 0
<6>[ 8.585815] input: melfas_touchkey as /devices/virtual/input/input8
<4>[ 8.626861] touch_keypad_onoff 1 , 1.
<6>[ 8.754058] mmc1: new high speed MMC card at address 0001
<6>[ 8.754150] sdio_al mmc1:0001: Probing..
<6>[ 8.754150] sdio_al mmc1:0001: Not an SDIO card
<6>[ 8.764038] mmcblk0: mmc1:0001 SEM04G 3.68 GiB
<6>[ 8.764251] 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 >
<4>[ 8.768493] mmcblk0: p28 size 26050560 extends beyond EOD, truncated
<6>[ 9.503997] cypress_touchkey_driver 20-0020: cypress_touchkey_probe: hardware rev1 = 0x0, rev2 = 0x0
<4>[ 14.488891] cypress_touchkey_probe F/W version: 0x0, Module version:0x0
<6>[ 14.491119] rs30000048 rs30000048.262144: setting system clock to 2011-01-04 06:42:06 UTC (1294123326)
<6>[ 14.491149] msm_v4l2: msm_v4l2_init
<4>[ 14.491363] multipdp_init:multipdp_rx_noti_regi calling
<4>[ 14.491607] Warning: unable to open an initial console.
<6>[ 14.491638] Freeing init memory: 156K
<3>[ 14.492950] init: could not import file '/init.recovery.qcom.rc' from '/init.rc'
<4>[ 14.495178] [MAX17043] FGPureSOC = 11553 (115.53) FGAdjustSOC = 11873 FGSOC = 100
<6>[ 14.496368] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=619, chg_current=230, wc_adc
=0
<6>[ 14.496398] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 14.498474] [MAX17043] FGPureSOC = 11553 (115.53) FGAdjustSOC = 11873 FGSOC = 100
<6>[ 14.499603] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=619, chg_current=230, wc_adc
=0
<6>[ 14.499603] [BATT] msm_batt_update_psy_status: power_supply_changed !
<3>[ 14.563964] init: cannot open '/initlogo.rle'
<3>[ 14.564575] init: Unable to open persistent property directory /data/property errno: 2
<4>[ 14.594390] pdp_activate(): ttyCSD(id: 1) serial device is created.
<4>[ 14.594512] pdp_activate(): ttyEFS(id: 8) serial device is created.
<4>[ 14.594604] pdp_activate(): ttyGPS(id: 5) serial device is created.
<4>[ 14.594696] pdp_activate(): ttyXTRA(id: 6) serial device is created.
<4>[ 14.594787] pdp_activate(): ttySMD(id: 25) serial device is created.
<6>[ 14.898834] EXT4-fs (mmcblk0p16): recovery complete
<6>[ 14.899749] EXT4-fs (mmcblk0p16): mounted filesystem with ordered data mode. Opts:
<4>[ 15.005157] adb_enable_open :: SETTING CHECK open failed /persist/usb_sel.bin ,fd=0xfffffffe
<4>[ 15.005187] SETTING CHECK usb_switch_show usb_sel.bin =
<4>[ 15.005187] android_enable_function ENTRY
<4>[ 15.005187] set_product ENTRY
<4>[ 15.005187] set_product ENTRY i=0, count =6, pid=0x681c ,p->num_functions=3 ,s=ACM + UMS + ADB (Debugging mode)
<4>[ 15.005218] set_enable_functions ENTRY
<4>[ 15.005218] func->name=acm , num_f = 3
<4>[ 15.005218] *functions=acm , func_name = acm
<4>[ 15.005371] set_enable_functions enable [[acm]]
<4>[ 15.005401] func->name=usb_mass_storage , num_f = 3
<4>[ 15.005401] *functions=acm , func_name = usb_mass_storage
<4>[ 15.005401] *functions=usb_mass_storage , func_name = usb_mass_storage
<4>[ 15.005493] set_enable_functions enable [[usb_mass_storage]]
<4>[ 15.005493] func->name=adb , num_f = 3
<4>[ 15.005493] *functions=acm , func_name = adb
<4>[ 15.005493] *functions=usb_mass_storage , func_name = adb
<4>[ 15.005523] *functions=adb , func_name = adb
<4>[ 15.005584] set_enable_functions enable [[adb]]
<4>[ 15.005584] func->name=rndis , num_f = 3
<4>[ 15.005584] *functions=acm , func_name = rndis
<4>[ 15.005615] *functions=usb_mass_storage , func_name = rndis
<4>[ 15.005615] *functions=adb , func_name = rndis
<4>[ 15.005676] set_enable_functions disable [[rndis]]
<4>[ 15.005676] func->name=mtp , num_f = 3
<4>[ 15.005706] *functions=acm , func_name = mtp
<4>[ 15.005706] *functions=usb_mass_storage , func_name = mtp
<4>[ 15.005706] *functions=adb , func_name = mtp
<4>[ 15.005767] set_enable_functions disable [[mtp]]
<4>[ 15.005798] func->name=diag , num_f = 3
<4>[ 15.005798] *functions=acm , func_name = diag
<4>[ 15.005798] *functions=usb_mass_storage , func_name = diag
<4>[ 15.005798] *functions=adb , func_name = diag
<4>[ 15.005889] set_enable_functions disable [[diag]]
<4>[ 15.005889] set_enable_functions count= 3
<4>[ 15.005889] get_product_id ENTRY
<4>[ 15.005889] product_matches_functions ENTRY
<4>[ 15.005920] usb_composite_force_reset ENTRY
<4>[ 15.005920] disconnect usb cdev->gadget.name=msm72k_udc
<4>[ 15.024291] connect usb again cdev->gadget.name=msm72k_udc
<4>[ 15.254730] composite_disconnect -> reset_config
<7>[ 15.254791] diag: USB disconnected
<4>[ 15.254852] [composite_switch_work]config=0x(null)
<4>[ 15.503875] [composite_switch_work]config=0x(null)
<6>[ 16.205596] android_usb gadget: high speed config #1: ACM + UMS + ADB (Debugging mode)
<4>[ 16.206695] [composite_switch_work]config=0xc0698600
<4>[ 19.510742] [MAX17043] FGPureSOC = 11537 (115.37) FGAdjustSOC = 11857 FGSOC = 100
<6>[ 19.512908] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=613, chg_current=230, wc_adc
=0
<6>[ 19.513000] [BATT] msm_batt_update_psy_status: power_supply_changed !
<6>[ 22.587982] rmt_storage_event_open_cb: open callback received
<6>[ 22.588073] open partition /boot/modem_fs1 handle=1
<6>[ 22.589630] rmt_storage_event_user_data_cb: send user data callback received
<6>[ 22.591400] rmt_storage_event_open_cb: open callback received
<6>[ 22.591491] open partition /boot/modem_fs2 handle=2
<6>[ 22.592742] rmt_storage_event_user_data_cb: send user data callback received
<6>[ 22.593902] rmt_storage_event_write_iovec_cb: write iovec callback received
<4>[ 24.520477] [MAX17043] FGPureSOC = 11537 (115.37) FGAdjustSOC = 11857 FGSOC = 100
<6>[ 24.522613] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=616, chg_current=230, wc_adc
=0
<6>[ 24.522735] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 29.530548] [MAX17043] FGPureSOC = 11537 (115.37) FGAdjustSOC = 11857 FGSOC = 100
<6>[ 29.532684] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=618, chg_current=230, wc_adc
=0
<6>[ 29.532775] [BATT] msm_batt_update_psy_status: power_supply_changed !
<3>[ 30.286041]
<3>[ 30.286071] SMSM: Modem SMSM state changed to SMSM_RESET.
<3>[ 30.286224] Notify: start reset
<3>[ 30.286254] Notify: start reset ch:0
<3>[ 30.286315] Notify: start reset ch:1
<3>[ 30.286376] Notify: start reset ch:2
<3>[ 30.286407] Notify: start reset ch:3
<3>[ 30.286468] Notify: start reset ch:4
<3>[ 30.286529] Notify: start reset ch:5
<3>[ 30.286560] Notify: start reset ch:6
<3>[ 30.286621] Notify: start reset ch:7
<3>[ 30.286682] Notify: start reset ch:8
<3>[ 30.286712] Notify: start reset ch:9
<3>[ 30.286773] Notify: start reset ch:10

adb shell dmesg

<6>[ 8.529785] mmc2: Slot eject status = 1
<6>[ 8.529785] mmc2: Power save feature enable = 1
<6>[ 8.529785] mmc2: DM non-cached buffer at ff070000, dma_addr 0x4f7fc000
<6>[ 8.529785] mmc2: DM cmd busaddr 0x4f7fc000, cmdptr busaddr 0x4f7fc300
<6>[ 8.544342] qce qce.0: Qualcomm Crypto 3 device found at 0xa8400000
<6>[ 8.568084] qcrypto qcrypto.0: Qualcomm Crypto 3 device found at 0xa8400000
<6>[ 8.569000] qcrypto qcrypto.0: qcrypto-ecb-aes
<6>[ 8.569061] qcrypto qcrypto.0: qcrypto-cbc-aes
<6>[ 8.569122] qcrypto qcrypto.0: qcrypto-ctr-aes
<6>[ 8.569610] qcrypto qcrypto.0: qcrypto-ecb-des
<6>[ 8.569671] qcrypto qcrypto.0: qcrypto-cbc-des
<6>[ 8.569946] qcrypto qcrypto.0: qcrypto-ecb-3des
<6>[ 8.569976] qcrypto qcrypto.0: qcrypto-cbc-3des
<6>[ 8.570190] qcrypto qcrypto.0: qcrypto-sha1
<6>[ 8.570404] qcrypto qcrypto.0: qcrypto-sha256
<6>[ 8.570648] usbcore: registered new interface driver usbhid
<6>[ 8.570648] usbhid: USB HID core driver
<6>[ 8.570922] logger: created 512K log 'log_main'
<6>[ 8.570983] logger: created 256K log 'log_events'
<6>[ 8.571044] logger: created 256K log 'log_radio'
<6>[ 8.571075] logger: created 64K log 'log_system'
<6>[ 8.571228] zram: num_devices not specified. Using default: 1
<6>[ 8.571228] zram: Creating 1 devices ...
<4>[ 8.572296] [Silent Value] : 1
<4>[ 8.572631] No device for DAI CODEC_DAI
<4>[ 8.572631] No device for DAI CPU_DAI
<3>[ 8.572814] msm_soc: create pcms
<6>[ 8.572906] asoc: CODEC_DAI <-> CPU_DAI mapping ok
<4>[ 8.573242] No device for DAI MVS_CODEC_DAI
<4>[ 8.573242] No device for DAI MVS_CPU_DAI
<6>[ 8.573425] asoc: MVS_CODEC_DAI <-> MVS_CPU_DAI mapping ok
<6>[ 8.573699] ALSA device list:
<6>[ 8.573699] #0: msm-audio (MSM-CARD)
<6>[ 8.573699] #1: msm-mvs-audio (MSM-MVS-CARD)
<6>[ 8.573730] GACT probability NOT on
<6>[ 8.573760] Mirror/redirect action on
<6>[ 8.573760] u32 classifier
<6>[ 8.573760] Actions configured
<6>[ 8.573760] Netfilter messages via NETLINK v0.30.
<6>[ 8.573822] nf_conntrack version 0.5.0 (5632 buckets, 22528 max)
<4>[ 8.573913] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
<4>[ 8.573913] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
<4>[ 8.573913] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
<6>[ 8.573974] ctnetlink v0.93: registering with nfnetlink.
<6>[ 8.574066] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
<6>[ 8.574066] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
<6>[ 8.574340] xt_time: kernel timezone is -0000
<6>[ 8.574493] ip_tables: (C) 2000-2006 Netfilter Core Team
<6>[ 8.574584] arp_tables: (C) 2002 David S. Miller
<6>[ 8.574615] TCP cubic registered
<6>[ 8.574645] NET: Registered protocol family 10
<6>[ 8.575042] Mobile IPv6
<6>[ 8.575073] ip6_tables: (C) 2000-2006 Netfilter Core Team
<6>[ 8.575164] IPv6 over IPv4 tunneling driver
<6>[ 8.575622] NET: Registered protocol family 17
<6>[ 8.575653] NET: Registered protocol family 15
<6>[ 8.575805] Bluetooth: L2CAP ver 2.14
<6>[ 8.575805] Bluetooth: L2CAP socket layer initialized
<6>[ 8.575805] Bluetooth: SCO (Voice Link) ver 0.6
<6>[ 8.575805] Bluetooth: SCO socket layer initialized
<6>[ 8.575866] Bluetooth: RFCOMM TTY layer initialized
<6>[ 8.575866] Bluetooth: RFCOMM socket layer initialized
<6>[ 8.575866] Bluetooth: RFCOMM ver 1.11
<6>[ 8.575866] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
<6>[ 8.575866] Bluetooth: BNEP filters: protocol multicast
<6>[ 8.575897] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
<6>[ 8.579650] [voice.c:voice_init]
<6>[ 8.581512] input: 7k_handset as /devices/virtual/input/input7
<6>[ 8.581695] [voice.c:voice_thread] voice_thread() start
<6>[ 8.585174] VFP support v0.3: implementor 51 architecture 64 part 0f variant 1 rev 0
<6>[ 8.585662] input: melfas_touchkey as /devices/virtual/input/input8
<4>[ 8.626892] touch_keypad_onoff 1 , 1.
<6>[ 8.754486] mmc1: new high speed MMC card at address 0001
<6>[ 8.754547] sdio_al mmc1:0001: Probing..
<6>[ 8.754547] sdio_al mmc1:0001: Not an SDIO card
<6>[ 8.764038] mmcblk0: mmc1:0001 SEM04G 3.68 GiB
<6>[ 8.764251] 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 >
<4>[ 8.769409] mmcblk0: p28 size 26050560 extends beyond EOD, truncated
<6>[ 9.503997] cypress_touchkey_driver 20-0020: cypress_touchkey_probe: hardware rev1 = 0x0, rev2 = 0x0
<4>[ 14.488922] cypress_touchkey_probe F/W version: 0x0, Module version:0x0
<6>[ 14.491180] rs30000048 rs30000048.262144: setting system clock to 2011-01-04 07:00:13 UTC (1294124413)
<6>[ 14.491180] msm_v4l2: msm_v4l2_init
<4>[ 14.491394] multipdp_init:multipdp_rx_noti_regi calling
<4>[ 14.491638] Warning: unable to open an initial console.
<6>[ 14.491668] Freeing init memory: 156K
<3>[ 14.493011] init: could not import file '/init.recovery.qcom.rc' from '/init.rc'
<4>[ 14.495330] [MAX17043] FGPureSOC = 11379 (113.79) FGAdjustSOC = 11694 FGSOC = 100
<6>[ 14.496520] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=610, chg_current=230, wc_adc
=0
<6>[ 14.496551] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 14.498596] [MAX17043] FGPureSOC = 11379 (113.79) FGAdjustSOC = 11694 FGSOC = 100
<6>[ 14.499725] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=610, chg_current=230, wc_adc
=0
<6>[ 14.499755] [BATT] msm_batt_update_psy_status: power_supply_changed !
<3>[ 14.563995] init: cannot open '/initlogo.rle'
<3>[ 14.564605] init: Unable to open persistent property directory /data/property errno: 2
<4>[ 14.594390] pdp_activate(): ttyCSD(id: 1) serial device is created.
<4>[ 14.594512] pdp_activate(): ttyEFS(id: 8) serial device is created.
<4>[ 14.594604] pdp_activate(): ttyGPS(id: 5) serial device is created.
<4>[ 14.594696] pdp_activate(): ttyXTRA(id: 6) serial device is created.
<4>[ 14.594787] pdp_activate(): ttySMD(id: 25) serial device is created.
<6>[ 14.898986] EXT4-fs (mmcblk0p16): recovery complete
<6>[ 14.899902] EXT4-fs (mmcblk0p16): mounted filesystem with ordered data mode. Opts:
<4>[ 15.005187] adb_enable_open :: SETTING CHECK open failed /persist/usb_sel.bin ,fd=0xfffffffe
<4>[ 15.005187] SETTING CHECK usb_switch_show usb_sel.bin =
<4>[ 15.005187] android_enable_function ENTRY
<4>[ 15.005187] set_product ENTRY
<4>[ 15.005218] set_product ENTRY i=0, count =6, pid=0x681c ,p->num_functions=3 ,s=ACM + UMS + ADB (Debugging mode)
<4>[ 15.005218] set_enable_functions ENTRY
<4>[ 15.005218] func->name=acm , num_f = 3
<4>[ 15.005249] *functions=acm , func_name = acm
<4>[ 15.005401] set_enable_functions enable [[acm]]
<4>[ 15.005401] func->name=usb_mass_storage , num_f = 3
<4>[ 15.005401] *functions=acm , func_name = usb_mass_storage
<4>[ 15.005432] *functions=usb_mass_storage , func_name = usb_mass_storage
<4>[ 15.005493] set_enable_functions enable [[usb_mass_storage]]
<4>[ 15.005493] func->name=adb , num_f = 3
<4>[ 15.005523] *functions=acm , func_name = adb
<4>[ 15.005523] *functions=usb_mass_storage , func_name = adb
<4>[ 15.005523] *functions=adb , func_name = adb
<4>[ 15.005584] set_enable_functions enable [[adb]]
<4>[ 15.005615] func->name=rndis , num_f = 3
<4>[ 15.005615] *functions=acm , func_name = rndis
<4>[ 15.005615] *functions=usb_mass_storage , func_name = rndis
<4>[ 15.005615] *functions=adb , func_name = rndis
<4>[ 15.005706] set_enable_functions disable [[rndis]]
<4>[ 15.005706] func->name=mtp , num_f = 3
<4>[ 15.005706] *functions=acm , func_name = mtp
<4>[ 15.005706] *functions=usb_mass_storage , func_name = mtp
<4>[ 15.005706] *functions=adb , func_name = mtp
<4>[ 15.005798] set_enable_functions disable [[mtp]]
<4>[ 15.005798] func->name=diag , num_f = 3
<4>[ 15.005798] *functions=acm , func_name = diag
<4>[ 15.005798] *functions=usb_mass_storage , func_name = diag
<4>[ 15.005828] *functions=adb , func_name = diag
<4>[ 15.005889] set_enable_functions disable [[diag]]
<4>[ 15.005889] set_enable_functions count= 3
<4>[ 15.005920] get_product_id ENTRY
<4>[ 15.005920] product_matches_functions ENTRY
<4>[ 15.005920] usb_composite_force_reset ENTRY
<4>[ 15.005920] disconnect usb cdev->gadget.name=msm72k_udc
<4>[ 15.024291] connect usb again cdev->gadget.name=msm72k_udc
<4>[ 15.257049] composite_disconnect -> reset_config
<7>[ 15.257080] diag: USB disconnected
<4>[ 15.257629] [composite_switch_work]config=0x(null)
<4>[ 15.506164] [composite_switch_work]config=0x(null)
<6>[ 16.223541] android_usb gadget: high speed config #1: ACM + UMS + ADB (Debugging mode)
<4>[ 16.224761] [composite_switch_work]config=0xc0698600

These are not full logs...

Need way or Command or Script to got them all... :o

Best Regards

Edit 1.

Tested:

adb shell su -c "cat /proc/last_kmsg" > last_kmsg.log
adb shell su -c dmesg > dmesg.log

file output...

/sbin/sh: su: not found

I will try to increase buffer on my XP...