Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uid=0 gid=0@android:/ # mount -o rw,remount /
- uid=0 gid=0@android:/ # cat > /sbin/m_snap
- #!/system/bin/sh
- ##### Prerequisites
- # mount -o rw,remount /system
- # mkdir /system/sbin
- # download https://busybox.net/downloads/binaries/latest/busybox-armv7l to /system/sbin
- # chmod 777 /system/sbin/busybox-armv7l
- # /system/sbin/busybox-armv7l --install -s /system/sbin
- ##### md5sum e24d678d9c18c7811e16f4755dfd1e19 /system/sbin/busybox-armv7l
- # Not sure if we need this or if it should be "snapshot" or what
- #setprop sys.warp.mode true
- mount -o ro,remount /
- # Starting off by stopping zygote
- stop zygote
- stop servicemanager
- RESTART="zygote servicemanager"
- COUNT=0
- while [[ $COUNT -lt 100 ]]
- do
- #echo "Closing Services attempt [${COUNT}]"
- process_list=`ps | grep -v "\/sh$" | grep -v "\/sysd$" | grep "\/system" | awk '{print $NF}' | tr '\n' ' ' `
- if [[ "${process_list}" == "" ]]
- then
- echo "All system processes are closed, this is a good thing."
- COUNT=1000
- else
- for process_name in ${process_list}
- do
- #echo "Closing process [${process_name}]"
- service_name=`grep "^service.*${process_name}" /*rc | grep -v goldfish | awk '{print $2}'`
- if [[ "${service_name}" != "" ]]
- then
- echo "Found match for process_name=[${process_name}] service_name=[${service_name}], STOPPING!"
- stop ${service_name}
- RESTART="${RESTART} ${service_name}"
- else
- echo "No match for process_name=[${process_name}], doing killall and hoping it ends"
- killall ${process_name}
- fi
- done
- fi
- COUNT=$(( $COUNT + 1 ))
- done
- echo "Stopping Modules"
- module_list=`lsmod | awk '{print $1}' | tr '\n' ' '`
- # for module_name in ${module_list}
- # do
- # echo "removing module [${module_name}]"
- # rmmod ${module_name}
- # done
- echo "RESTART LIST = [${RESTART}]"
- echo "##################################################"
- ps
- echo "##################################################"
- echo "Done stopping pre-services..."
- #echo -n "Waiting for system to calm down."
- #grep "^0" /proc/loadavg
- #while [ $? -ne 0 ]
- #do
- # tail -n1 /proc/loadavg
- # sleep 1
- # sync
- # grep "^0" /proc/loadavg
- #done
- #echo "Load is acceptable now, Continuing on."
- sleep 5
- sync
- sleep 5
- echo "Stopping console and sysd, TTFN"
- stop sysd
- #stop console
- head -n2 /proc/meminfo
- sync && echo 3 > /proc/sys/vm/drop_caches && echo ""
- memfree=$(free -m | awk '/^Mem/ {print $4-32}')
- echo "memfree=[${memfree}]"
- if [ $memfree -gt 0 ]; then
- dd if=/dev/zero of=/dev/null bs=${memfree}M count=1
- fi
- head -n2 /proc/meminfo
- sync
- sync
- sync
- #<スナップショットä¿ÂÂå˜å‰ÂÂã®Intent>
- # am broadcast -a jp.co.lineo.warp.android.ACTION_WARP_SNAPSHOT_START
- #time busybox killall dhcpcd
- /sbin/snapshot $*
- start sysd
- #start console
- echo "We're back!"
- echo ${RESULTS}
- #echo "re-loading modules"
- #for module_name in ${module_list}
- #do
- # echo "Loading module [${module_name}]"
- # find /system/lib/modules/ -name ${module_name}.ko -exec insmod {} \;
- #done
- #<Warp起動ç後ã®処ç†>
- #STAT=/proc/warp/stat
- #case $STAT in
- # 0)
- #<スナップショットä¿ÂÂå˜時ã®処ç†>
- # am broadcast -a jp.co.lineo.warp.android.ACTION_WARP_WAKE_UP --es mode 3
- # ;;
- # *)
- #<ワープ起動時ã®処ç†>
- # am broadcast -a jp.co.lineo.warp.android.ACTION_WARP_WAKE_UP --es mode 4
- # ;;
- # esac
- #/system/bin/logwrapper /system/bin/dhcpcd eth0 &
- chmod 777 /extdata
- chmod 666 /extdata/MIXTRAX/*
- chmod -R 777 /extdata/iGO/ /extdata/synctool/
- chown system:system /extdata/DataManager /extdata/DataManager/*
- for service in ${RESTART}
- do
- echo "Restarting ${service}"
- start ${service}
- done
- ^C
- 130|uid=0 gid=0@android:/ # chmod 777 /sbin/m_snap
- uid=0 gid=0@android:/ # /sbin/m_snap
- Found match for process_name=[/system/bin/vold] service_name=[vold], STOPPING!
- Found match for process_name=[/system/bin/netd] service_name=[netd], STOPPING!
- Found match for process_name=[/system/bin/debuggerd] service_name=[debuggerd], STOPPING!
- [ 84.329501] init: untracked pid 2887 exited
- [ 84.363599] init: untracked pid 2811 exited
- [ 84.401679] init: untracked pid 2856 exited
- Found match for process_name=[/system/bin/surfaceflinger] service[ 84.443549] init: untracked pid 2933 exited
- _name=[surfaceflinger], STOPPING!
- [ 84.504604] init: untracked pid 2997 exited
- [ 84.540350] init: untracked pid 3094 exited
- [ 84.578216] init: untracked pid 2878 exited
- [ 84.615101] init: untracked pid 2922 exited
- [ 84.652937] init: untracked pid 2796 exited
- [ 84.687540] init: untracked pid 2916 exited
- [ 84.723747] init: untracked pid 3143 exited
- [ 84.778454] init: untracked pid 3216 exited
- [ 84.818338] init: untracked pid 3251 exited
- Found match for process_name=[/system/bin/drmserver] service_name=[drm], STOPPING!
- [ 84.858239] init: untracked pid 3365 exited
- [ 84.895964] init: untracked pid 3409 exited
- Found match for process_name=[/system/bin/mediaserver] service_name=[media], STOPPING!
- Found match for process_name=[/system/bin/dbus-daemon] service_name=[dbus], STOPPING!
- Found match for process_name=[/system/bin/installd] service_name=[installd], STOPPING!
- [ 85.325020] init: untracked pid 3033 exited
- [ 85.336043] binder: release 3033:3033 transaction 7479 out, still active
- [ 85.353436] init: untracked pid 3059 exited
- [ 85.393539] init: untracked pid 3074 exited
- Found match for process_name=[/system/bin/keystore] service_name=[keystore], STOPPING!
- [ 85.437595] init: untracked pid 3236 exited
- [ 85.475437] init: untracked pid 3270 exited
- [ 85.511098] init: untracked pid 3290 exited
- [ 85.548904] init: untracked pid 2983 exited
- [ 85.584621] init: untracked pid 3397 exited
- [ 85.620400] init: untracked pid 3412 exited
- Found match for process_name=[/system/bin/rild] service_name=[ril-daemon], STOPPING!
- [ 85.796794] init: untracked pid 2873 exited
- [ 85.851785] init: untracked pid 3116 exited
- Found match for process_name=[/system/bin/SysCtrlManager] service_name=[sysCtrl], STOPPING!
- [ 85.904868] init: untracked pid 3020 exited
- [ 85.997258] binder: 2543:3520 transaction failed 29189, size 100-0
- Found match for process_name=[/system/bin/connectmanager] service_name=[connectmanager], STOPPING!
- [ 86.095564] binder: 2477:3530 transaction failed 29189, size 100-0
- Found match for process_name=[/system/bin/PFileSDOperator] service_name=[PFileSDOperator], STOPPING!
- [ 86.156577] binder: 2545:3521 transaction failed 29189, size 100-0
- [ 86.214543] binder: 2484:3529 transaction failed 29189, size 100-0
- Found match for process_name=[/system/bin/PFileUSB1Operator] service_name=[PFileUSB], STOPPING!
- [ 86.268801] binder: 2483:3533 transaction failed 29189, size 100-0
- [ 86.329472] binder: 2481:3527 transaction failed 29189, size 100-0
- Found match for process_name=[/system/bin/PFileUSB2Operator] service_name=[PFileUSBEx], STOPPING!
- [ 86.381660] binder: 2479:3526 transaction failed 29189, size 100-0
- [ 86.440166] binder: 2544:3525 transaction failed 29189, size 100-0
- Found match for process_name=[/system/bin/navFusion] service_name=[navfusion], STOPPING!
- [ 86.492375] binder: 2548:3524 transaction failed 29189, size 100-0
- [ 86.551210] binder: 2547:3523 transaction failed 29189, size 100-0
- Found match for process_name=[/system/bin/ingsvcd] service_name=[ing], STOPPING!
- [ 86.605608] binder: 2546:3522 transaction failed 29189, size 100-0
- [ 86.662195] binder: 2482:3532 transaction failed 29189, size 100-0
- Found match for process_name=[/system/bin/DataManager] service_name=[DataManager], STOPPING!
- [ 86.836590] init: untracked pid 3342 exited
- Found match for process_name=[/system/bin/AudioFocusServer] service_name=[audiofocus], STOPPING!
- [ 86.922413] binder: release 2723:2914 transaction 7479 in, still active
- [ 86.933679] alarm_release: clear alarm, pending 0
- [ 86.961318] binder: send failed reply for transaction 7479, target dead
- Found match for process_name=[/system/bin/SettingServer] service_name=[settingsvr], STOPPING!
- [ 86.989532] init: untracked pid 2973 exited
- [ 87.006275] alarm_release: clear alarm, pending 0
- Found match for process_name=[/system/bin/MiscManager] service_na[ 87.107388] binder: release proc 2479, transaction 14397, not freed
- me=[miscmanager], STOPPING!
- [ 87.115567] alarm_release: clear alarm, pending 0
- [ 87.145361] binder: release proc 2479, transaction 14399, not freed
- [ 87.200077] init: untracked pid 3309 exited
- [ 87.214256] binder: release proc 2479, transaction 14401, not freed
- Found match for process_name=[/sy[ 87.245829] init: untracked pid 2723 exited
- stem/bin/mediamanager] service_name=[mediamanager], STOPPING!
- [ 87.274565] binder: 2484:2625 transaction failed 29189, size 112-0
- Found match for process_name=[/system/bin/blueforcemanage] service_name=[blueforcemanage], STOPPING!
- [ 87.411807] binder: 2543:2601 transaction failed 29189, size 96-0
- Found match for process_name=[/system/bin/GpsChipsService] service_name=[GpsChipsService], STOPPING!
- [ 87.520403] binder: 2543:2808 transaction failed 29189, size 96-0
- [ 87.582915] binder: 2545:2545 transaction failed 29189, size 96-0
- Found match for process_name=[/system/bin/SMARTPHONEPlayer] service_name=[smp_service], STOPPING!
- [ 87.665537] binder: 2543:2808 transaction failed 29189, size 96-0
- Found match for process_name=[/system/bin/AUXPlayer] service_name=[av_sources], STOPPING!
- Found match for process_name=[/system/bin/DIOPlayer] service_name=[dio_service], STOPPING!
- Found match for process_name=[/system/bin/MirrorLink] service_name=[ml_service], STOPPING!
- Found match for process_name=[/system/bin/TunerPlayer] service_name=[tuner_service], STOPPING!
- Found match for process_name=[/system/bin/MSCPlayer] service_name=[msc_service], STOPPING!
- Found match for process_name=[/system/bin/logcat] service_name=[elog_service], STOPPING!
- Found match for process_name=[/system/bin/mdnsd] service_name=[mdnsd_srv
- mdnsd], STOPPING!
- All system processes are closed, this is a good thing.
- Stopping Modules
- RESTART LIST = [zygote servicemanager vold netd debuggerd surfaceflinger drm media dbus installd keystore ril-daemon sysCtrl connectmanager PFileSDOperator PFileUSB PFileUSBEx navfusion ing DataManv
- mdnsd]
- ##################################################
- USER PID PPID VSIZE RSS WCHAN PC NAME
- root 1 0 396 256 c01c5e34 0000e8c8 S /init
- root 2 0 0 0 c011c038 00000000 S kthreadd
- root 3 2 0 0 c01019e0 00000000 S ksoftirqd/0
- root 4 2 0 0 c0117224 00000000 S kworker/0:0
- root 5 2 0 0 c0117224 00000000 S kworker/u:0
- root 6 2 0 0 c0149bf0 00000000 S migration/0
- root 7 2 0 0 c0117568 00000000 S cpuset
- root 8 2 0 0 c0117568 00000000 S khelper
- root 9 2 0 0 c0117224 00000000 S kworker/u:1
- root 14 2 0 0 c0117568 00000000 S suspend
- root 389 2 0 0 c0192bac 00000000 S sync_supers
- root 391 2 0 0 c0193d04 00000000 S bdi-default
- root 393 2 0 0 c0117568 00000000 S kblockd
- root 408 2 0 0 c0117568 00000000 S imx6q-spiext
- root 409 2 0 0 c0117568 00000000 S imx6q-spiext.5
- root 411 2 0 0 c0117568 00000000 S imx6q-spiext
- root 412 2 0 0 c0117568 00000000 S imx6q-spiext.6
- root 422 2 0 0 c0407790 00000000 S khubd
- root 451 2 0 0 c04cbc18 00000000 D ipu1_task
- root 452 2 0 0 c04cbc18 00000000 D ipu1_task
- root 478 2 0 0 c0117568 00000000 S rpciod
- root 479 2 0 0 c0117224 00000000 S kworker/0:1
- root 486 2 0 0 c00e4198 00000000 S usb_wakeup thre
- root 488 2 0 0 c0117568 00000000 S otg_switch
- root 492 2 0 0 c00e4198 00000000 S usb_wakeup thre
- root 502 2 0 0 c018a8b0 00000000 S kswapd0
- root 504 2 0 0 c01ed5b8 00000000 S fsnotify_mark
- root 505 2 0 0 c0117568 00000000 S nfsiod
- root 507 2 0 0 c0117568 00000000 S crypto
- root 534 2 0 0 c0117568 00000000 S mxcfb0-vsync-pr
- root 538 2 0 0 c0117568 00000000 S mxcfb1-vsync-pr
- root 1096 2 0 0 c0383694 00000000 S kapmd
- root 1135 2 0 0 c03b55f0 00000000 S mtdblock0
- root 1140 2 0 0 c03b55f0 00000000 S mtdblock1
- root 1145 2 0 0 c03b55f0 00000000 S mtdblock2
- root 1227 2 0 0 c049c684 00000000 S kinteractiveup
- root 1230 2 0 0 c0117224 00000000 S kworker/u:2
- root 1236 2 0 0 c0117568 00000000 S vpu_wq
- root 1241 2 0 0 c0117568 00000000 S galcore workque
- root 1242 2 0 0 c0121eb0 00000000 S galcore daemon
- root 1243 2 0 0 c0121eb0 00000000 S galcore daemon
- root 1253 2 0 0 c0117568 00000000 S binder
- root 1286 2 0 0 c04acb50 00000000 S mmcqd/0
- root 1303 2 0 0 c0117224 00000000 S kworker/u:3
- root 1323 2 0 0 c066cbc0 00000000 S krfcommd
- root 1330 1 356 4 c01c5e34 0000e8c8 S /sbin/ueventd
- root 2163 2 0 0 c02bd244 00000000 S jffs2_gcd_mtd1
- root 2165 2 0 0 c027bbcc 00000000 S jbd2/mmcblk0p7-
- root 2166 2 0 0 c0117568 00000000 S ext4-dio-unwrit
- root 2167 2 0 0 c027bbcc 00000000 S jbd2/mmcblk0p9-
- root 2168 2 0 0 c0117568 00000000 S ext4-dio-unwrit
- root 2169 2 0 0 c027bbcc 00000000 S jbd2/mmcblk0p4-
- root 2170 2 0 0 c0117568 00000000 S ext4-dio-unwrit
- root 2171 2 0 0 c027bbcc 00000000 S jbd2/mmcblk0p8-
- root 2172 2 0 0 c0117568 00000000 S ext4-dio-unwrit
- root 2173 1 868 496 c00c0c60 401129b0 S /system/bin/sh
- root 2188 1 9500 2452 ffffffff 40131008 S /system/bin/sysd
- shell 2198 1 1388 4 ffffffff 00014dcc S /sbin/adbd
- root 2445 2 0 0 c01dad4c 00000000 S flush-mtd-unmap
- root 2451 2 0 0 c01dad4c 00000000 S flush-179:0
- root 2487 2 0 0 c0117568 00000000 S cyttsp_wq
- root 2515 2 0 0 bf02167c 00000000 S hdmirx_main_tas
- root 2518 2 0 0 bf018520 00000000 S mn864779_mon_th
- root 2550 2 0 0 c0117224 00000000 S kworker/0:2
- root 3463 2173 864 464 c00c0c60 401749b0 S /system/bin/sh
- root 3688 3463 1196 228 00000000 40148d98 R ps
- ##################################################
- Done stopping pre-services...
- Stopping console and sysd, TTFN
- [ 98.745038] SoftDog: Unexpected close, not stopping watchdog!
- MemTotal: 883088 kB
- MemFree: 615760 kB
- memfree=[806]
- 1+0 records in
- 1+0 records out
- 845152256 bytes (806.0MB) copied, 3.483274 seconds, 231.4MB/s
- MemTotal: 883088 kB
- MemFree: 859032 kB
- [ 102.801871] Warp work area 0xd7460000-0xd7480000
- [ 102.806918] Warp HD savearea 0xd6f62000-0xd6f63000
- [ 102.823516] inotify_warp_wait Start.
- [ 102.827526] * [0] state(0)
- [ 102.830347] * [0] state(0)
- [ 102.835078] * [0] state(0)
- [ 102.838153] * [0] state(0)
- [ 102.840968] * [0] state(0)
- [ 102.843983] * [0] state(0)
- [ 102.847487] inotify_warp_wait Exit.
- [ 102.850982] Syncing filesystems ... done.
- [ 102.855345] Freezing user space processes ... (elapsed 0.01 seconds) done.
- [ 102.878016] umount /mnt/backup_flash ... done.
- [ 102.895975] umount /extdata ... done.
- [ 102.925959] umount /data ... done.
- [ 102.955959] umount /cache ... done.
- [ 102.975978] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
- [ 102.999556] Shrinking memory... done (651 pages freed)
- [ 103.009596] Suspending console(s) (use no_console_suspend to debug)
- Lineo Warp!! 4.0.0 (Jupiter14 1.0.1) Tue Jan 14 13:23:03 JST 2014
- SDHC2 'SDU1 ' 30735MB 4bit 50.0Mbit/s (HS) block: 512 sect: 127 spec: 3
- --- Check memory ---
- --- Write Snapshot ---
- 00800000
- Snapshot ID : b6ca1d37
- Snapshot total size : 0x02d5c000 compressed size : 0x00bf56e0
- [ 103.019264] add wake up source irq 51
- [ 103.042815] PM: freeze of devices complete after 26.767 msecs
- [ 103.043778] PM: late freeze of devices complete after 0.948 msecs
- [ 103.043788] Disabling non-boot CPUs ...
- [ 103.043944] Video Saved size is 0 bytes.
- [ 103.043954] FB Saved size gets reduced from 0x4f800000 to 0x00600000 bytes.
- [ 103.282848] dram save 10011 pages
- [ 103.282860] maxarea 0x0001182e(0x000107f3) lowmem_maxarea 0x0001182e(0x000107f3)
- [ 103.282871] zonetbl 2 exttbl 2 dramtbl 607
- [ 52.867385] L310 cache controller enabled
- [ 52.867385] l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x02050000, Cache size: 524288 B
- [ 52.879773] PM: early thaw of devices complete after 0.644 msecs
- [ 52.900364] imx-ipuv3 imx-ipuv3.0: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
- [ 52.953474] remove wake up source irq 51
- [ 52.954710] imx-sdma imx-sdma: loaded firmware 1.1
- [ 52.954780] fsl_otg_resume: add delay 200 ms
- [ 56.170353] wait otg vbus change timeout!
- [ 56.210508] PM: thaw of devices complete after 3330.473 msecs
- [ 56.305223] Restarting kernel threads ... done.
- [ 56.310216] mmc0: Starting deferred resume
- [ 56.401448] mmc0: Deferred resume completed
- [ 56.421508] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: ,user_xattr,barrier=1,nomblk_io_submit,data=ordered
- [ 56.451296] EXT4-fs (mmcblk0p9): mounted filesystem with ordered data mode. Opts: ,errors=panic,user_xattr,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc
- [ 56.482869] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: ,errors=panic,user_xattr,barrier=1,nomblk_io_submit,data=ordered,noauto_da_alloc
- [ 56.503839] Restarting tasks ... done.
- [ 56.508762] inotify_warp_restart Start.
- [ 56.512663] inotify_warp_restart Exit.
- We're back!
- chmod: /extdata/MIXTRAX/*: No such file or directory
- chmod: /extdata/iGO/: No such file or directory
- chmod: /extdata/synctool/: No such file or directory
- chown: unknown user/group system:system
- Restarting zygote
- Restarting servicemanager
- Restarting vold
- Restarting netd
- Restarting debuggerd
- Restarting surfaceflinger
- Restarting drm
- Restarting media
- Restarting dbus
- Restarting installd
- Restarting keystore
- Restarting ril-daemon
- Restarting sysCtrl
- Restarting connectmanager
- Restarting PFileSDOperator
- Restarting PFileUSB
- Restarting PFileUSBEx
- Restarting navfusion
- Restarting ing
- Restarting DataManager
- Restarting audiofocus
- Restarting settingsvr
- Restarting miscmanager
- Restarting mediamanager
- Restarting blueforcemanage
- Restarting GpsChipsService
- Restarting smp_service
- Restarting av_sources
- Restarting dio_service
- Restarting ml_service
- Restarting tuner_service
- Restarting msc_service
- Restarting elog_service
- Restarting mdnsd_srv
- Restarting mdnsd
- uid=0 gid=0@android:/ # [ 59.390513] ******** mxcfb_ak8814:FB_EVENT_MODE_CHANGE: AK8814_MODE_NTSC
Advertisement
Add Comment
Please, Sign In to add comment