[Zenfone 2 Laser Original Android Development] tyfreak:
Dissapeared some photos from internal memory

My phone model is ZD551KL selfie (2RAM, 16ROM)

CM13 (cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J9-Z00T)

CM download: http s://download.cyanogenmod.org/get/jenkins/175211/cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J9-Z00T.zip

Gapps version: nano (open_gapps-arm64-6.0-nano-20160907.zip)

TWRP 3.0.2-4

I wiped everything before installing (and discovered, that media stays untouched, i don't know, how it happend, maybe default wipe options in TWRP doesnt touch media)

Didn't restore with titanium, just install all my apps from google play and copied back photos and images. Calls and sms restored with "SMS backup and restore tool"

There is no taskkillers or custom kernels

The problem is after last crash&reboot filesystem of internal SD was damaged. In gallery there were empty photos, and some directories disappeared. I think, android checks file system during boot and fixes errors, so not a tiny trace of files was left, only empty thumbnails in gallery. It happend 10-24-2016, at noon, and now, as you can see, 10-25-2016, evening.

So, it's a random crash, and Luk1337 asked, if I get logcat. I installed logcat extreme from google play, it shows logcat. And android didn't stored logs for yesterday, so it's useless. I set it up to record logs all the time (with level ERROR). Am I right? Or it's useless for future reboots?

Should I sent /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0 ? It was about 4 manual reboots and more than 24 hours after crash, does it make sense?

Also after earlier crashes I installed program "Bootlog Uptime", and it records "healthy" reboots and "crashed" reboots. From 10-01-2016 it recorded two crashes: 21 october and yesterday, 24. Yesterday crash was hard, so this program does not record date and time correctly, it's like "-1477419771496 ?".

What to add? I used some creepy instruction to install CM13, with manual unlock of boot. So, steps were:

1) I had to install official 6.0 android (because CM13 does not install on 5.1 official), so I installed slim with root (cleaned from useless programs) WW_21.40.0.1692 from here http s://mega.nz/#F!Ao1RjT7D!hQ5x60r02WveB9-Hl32B4g!0xlkwKLB

Rebooted to fastboot, in adb

fastboot erase cache
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash modem modem.bin
fastboot flash aboot aboot.mbn
fastboot flash hyp hyp.mbn
fastboot flash rpm rpm.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash tz tz.mbn
fastboot flash system system.img
fastboot reboot

2) ADB

adb shell
su

state=locked;
outdir=/sdcard/dumps-lockedbl;

if [ -e /dev/block/platform/*/by-name ]; then
target=/dev/block/platform/*/by-name;
elif [ -e /dev/block/platform/*/*/by-name ]; then
target=/dev/block/platform/*/*/by-name;
fi;
if [ "$target" ]; then
target=`echo -n $target`;
mkdir $outdir;
echo $target > $outdir/targets.txt;
bootdev=/dev/block/bootdevice/by-name;
test -e $bootdev && echo $bootdev >> $outdir/targets.txt;
for part in $(ls $target); do
case $part in
system|APP|cache|CAC|userdata|UDA|boot|LNX|recovery|SOS) ;;
*) dd if=$target/$part of=$outdir/$part-$state.img;;
esac;
done;
fi;

mkdir /sdcard/dump_locked
dd if=/dev/block/bootdevice/by-name/aboot of=/sdcard/dump_locked/aboot_locked.img
dd if=/dev/block/bootdevice/by-name/abootbak of=/sdcard/dump_locked/abootbak_locked.img
dd if=/dev/block/bootdevice/by-name/abootdebug of=/sdcard/dump_locked/abootdebug_locked.img
dd if=/dev/block/bootdevice/by-name/ADF of=/sdcard/dump_locked/ADF_locked.img
dd if=/dev/block/bootdevice/by-name/APD of=/sdcard/dump_locked/APD_locked.img
dd if=/dev/block/bootdevice/by-name/asdf of=/sdcard/dump_locked/asdf_locked.img
dd if=/dev/block/bootdevice/by-name/asusfw of=/sdcard/dump_locked/asusfw_locked.img
dd if=/dev/block/bootdevice/by-name/asusgpt of=/sdcard/dump_locked/asusgptt_locked.img
dd if=/dev/block/bootdevice/by-name/asusgpt1 of=/sdcard/dump_locked/asusgpt1_locked.img
dd if=/dev/block/bootdevice/by-name/asusgpt2 of=/sdcard/dump_locked/asusgpt2_locked.img
dd if=/dev/block/bootdevice/by-name/asuskey of=/sdcard/dump_locked/asuskey_locked.img
dd if=/dev/block/bootdevice/by-name/asuskey2 of=/sdcard/dump_locked/auskey2_locked.img
dd if=/dev/block/bootdevice/by-name/asuskey3 of=/sdcard/dump_locked/asuskey3_locked.img
dd if=/dev/block/bootdevice/by-name/asuskey4 of=/sdcard/dump_locked/asuskey4_locked.img
dd if=/dev/block/bootdevice/by-name/asuskey5 of=/sdcard/dump_locked/asuskey5_locked.img
dd if=/dev/block/bootdevice/by-name/config of=/sdcard/dump_locked/config_locked.img
dd if=/dev/block/bootdevice/by-name/DDR of=/sdcard/dump_locked/DDR_locked.img
dd if=/dev/block/bootdevice/by-name/devinfo of=/sdcard/dump_locked/devinfo_locked.img
dd if=/dev/block/bootdevice/by-name/factory of=sdcard/dump_locked/factory_locked.img
dd if=/dev/block/bootdevice/by-name/factorybak of=sdcard/dump_locked/factorybak_locked.img
dd if=/dev/block/bootdevice/by-name/fsc of=/sdcard/dump_locked/fsc_locked.img
dd if=/dev/block/bootdevice/by-name/fsg of=/sdcard/dump_locked/fsg_locked.img
dd if=/dev/block/bootdevice/by-name/hyp of=/sdcard/dump_locked/hyp_locked.img
dd if=/dev/block/bootdevice/by-name/hypbak of=/sdcard/dump_locked/hypbak_locked.img
dd if=/dev/block/bootdevice/by-name/keystore of=/sdcard/dump_locked/keystore_locked.img
dd if=/dev/block/bootdevice/by-name/misc of=/sdcard/dump_locked/misc_locked.img
dd if=/dev/block/bootdevice/by-name/modem of=/sdcard/dump_locked/modem_locked.img
dd if=/dev/block/bootdevice/by-name/modemst1 of=/sdcard/dump_locked/modemst1_locked.img
dd if=/dev/block/bootdevice/by-name/modemst2 of=/sdcard/dump_locked/modemst2_locked.img
dd if=/dev/block/bootdevice/by-name/oem of=/sdcard/dump_locked/oem_locked.img
dd if=/dev/block/bootdevice/by-name/persistent of=/dump_locked/sdcard/persistent_locked.img
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/dump_locked/persist_locked.img
dd if=/dev/block/bootdevice/by-name/rpm of=/sdcard/dump_locked/rpm_locked.img
dd if=/dev/block/bootdevice/by-name/rpmbak of=/sdcard/dump_locked/rpmbak_locked.img
dd if=/dev/block/bootdevice/by-name/sbl1 of=/sdcard/dump_locked/sbl1_locked.img
dd if=/dev/block/bootdevice/by-name/sec of=/sdcard/dump_locked/sec_locked.img
dd if=/dev/block/bootdevice/by-name/splash of=/sdcard/dump_locked/splash_locked.img
dd if=/dev/block/bootdevice/by-name/ssd of=/sdcard/dump_locked/ssd_locked.img
dd if=/dev/block/bootdevice/by-name/tz of=/sdcard/dump_locked/tz_locked.img
dd if=/dev/block/bootdevice/by-name/tzbak of=/sdcard/dump_locked/tzbak_locked.img
echo "Finished Partition Backup!"

echo -ne "\x01" | dd obs=1 count=1 seek=16 of=/dev/block/bootdevice/by-name/devinfo

exit
exit
adb reboot bootloader

To verify, if bootloader was unlocked, i entered

fastboot oem device-info

It wasn't, so I typed

fastboot oem adb_enable
fastboot oem adb_enable
fastboot oem device-info
fastboot reboot

And

adb shell
su
echo -ne "\x01" | dd obs=1 count=1 seek=16 of=/dev/block/bootdevice/by-name/devinfo
exit
exit
adb reboot bootloader

And - finally!

fastboot oem device-info

Bootloader unlocked!

3) Flash recovery

fastboot flash recovery twrp-3.0.2-4-Z00T.img
fastboot reboot

4) Go into TWRP, wipe everything (exept media, I wrote about it earlier), choose CM13, opengapps and (don't kill me) xposed from here htt p://dl-xda.xposed.info/framework/sdk23/arm64/ , v86. I didn't install GUI, and I don't know, why I installed xposed, it's just that creepy instruction!..

And - that's all.

P.S. After yesterday crash I downloaded xposed uninstaller and flash it in TWRP (from here htt p://dl-xda.xposed.info/framework/uninstaller/xposed-uninstaller-20160829-arm64.zip ), then wiped cache-dalvik.

So, that's situation.

Now I'm gathering logcat with level Error, uninstalled xposed... What can I do more to help catch this bug?:)

And sorry for spaces in URLs - I'm a newbie, and your forum tells me, that I am too young jedi and don't have my own light sabre yet