[ROM] LG G4 H815 T-mobile 10H Port tests - G4 Android Development

Here's the T-Mobile USA 10H Stock Rooted ROM that I'm porting to the H815 EU unlocked G4. I basically reversed the process of my previous port of H815 to H811.
Prerequisite:
**Be on H815 EU unlocked
**Want to use this for T-Mobile USA or any carrier. (Might have to add apn)
**Have TWRP installed to flash this.
Bugs: I haven't been able to test this as I don't own the H815 EU.
***????
Installation:
Step 1: Backup First
Step 2: Full Wipe
Step 3: Flash G4-H815-TMO-10H-STOCK-ROOTED-ROM.zip
Step 4: Flash G4-H815-TMO-PATCH.zip
Step 5: Reboot
Important to flash Step 3 and Step back to back.
Downloads:
Flash 1st:
G4-H815-TMO-10H-STOCK-ROOTED-ROM.zip
Flash 2nd
G4-H815-TMO-PATCH.zip
Optional to Flash if your on T-Mobile USA or US others :
G4-USA-APN.zip
XDA:DevDB Information
[ROM] LG G4 H815 T-mobile 10H Port, ROM for the LG G4
Contributors
MicroMod777
ROM OS Version: 5.1.x Lollipop
Version Information
Status: Testing
Created 2015-08-07
Last Updated 2015-08-06

ok thx, but why?

flooi said:
ok thx, but why?
Click to expand...
Click to collapse
It was asked for a while back for from the USA guys that bought the H815. It it works you'll be able to probaby wifi call on T-Mobile.
Sent from my LG-H811 using Tapatalk

Anybody with h815 tried it? Any difference between 10c to this one? I have the international version but afraid to install this..
Thanks dev for this port..i will flash it after some feedback from other users

Has it been debloated? Also, the end result might be easier if you just create a flashable wificalling.zip that has the necessary files for using tmous wifi calling on the H815.

galza said:
Anybody with h815 tried it? Any difference between 10c to this one? I have the international version but afraid to install this..
Thanks dev for this port..i will flash it after some feedback from other users
Click to expand...
Click to collapse
Are you in the USA with T-Mobile? If so, then this is for you.
barcodelinux said:
Has it been debloated? Also, the end result might be easier if you just create a flashable wificalling.zip that has the necessary files for using tmous wifi calling on the H815.
Click to expand...
Click to collapse
OP says stock rom, not debloated. Not sure if possible or what files to use for wifi calling as its integrated into settings. For me, doing whole rom is 10000x easier.

Will this work on a non-US H815? I'm in the UK currently running 10C, but if there are optimisations/ changes between 10C and 10H I'd be keen to get in on the magic

When flashing the ROM in step 3, I get:
"Extracting system & Boot
Updating partition details...
E:Unable to mount '/system'
...done
---------- Post added at 01:30 PM ---------- Previous post was at 01:02 PM ----------
I think the partitions might be different on each device. Here's the output of df of the H815:
Filesystem Size Used Free Blksize
/dev 1.37G 96.00K 1.37G 4096
/sys/fs/cgroup 1.37G 12.00K 1.37G 4096
/mnt/asec 1.37G 0.00K 1.37G 4096
/mnt/obb 1.37G 0.00K 1.37G 4096
/system 3.92G 3.00G 938.40M 4096
/cache 1.17G 32.62M 1.13G 4096
/data 22.70G 21.73G 994.51M 4096
/persist 27.48M 64.00K 27.42M 4096
/firmware 85.95M 74.77M 11.19M 16384
/sns 3.86M 60.00K 3.80M 4096
/persist-lg 3.86M 584.00K 3.29M 4096
/mpt 27.48M 9.26M 18.22M 4096
/cust 247.97M 7.64M 240.33M 4096
/mnt/shell/emulated 22.70G 21.73G 994.51M 4096
/storage/emulated/legacy 22.70G 21.73G 994.51M 4096
/storage/emulated 1.38G 0.00K 1.38G 4096
/mnt/media_rw/external_SD 119.05G 51.99G 67.06G 131072
/mnt/secure/asec 119.05G 51.99G 67.06G 131072
/storage/external_SD 119.05G 51.99G 67.06G 131072
/storage/emulated/0 22.70G 21.73G 994.51M 4096
/storage/emulated/0/Android/obb 22.70G 21.73G 994.51M 4096
/storage/emulated/legacy 22.70G 21.73G 994.51M 4096
/storage/emulated/legacy/Android/obb 22.70G 21.73G 994.51M 4096
---------- Post added at 01:37 PM ---------- Previous post was at 01:30 PM ----------
And from mount:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=1437396k,nr_inodes=359349,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,size=1437396k,nr_inodes=359349,mode=750,gid=1000 0 0
pstore /sys/fs/pstore pstore rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,size=1437396k,nr_inodes=359349,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,size=1437396k,nr_inodes=359349,mode=755,gid=1000 0 0
/mnt/pstore /mnt/pstore pstore rw,relatime 0 0
/dev/block/bootdevice/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/bootdevice/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/bootdevice/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,resuid=1000,errors=continue,data=ordered 0 0
/dev/block/bootdevice/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/bootdevice/by-name/modem /firmware vfat ro,context=ubject_r:firmware_file:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/bootdevice/by-name/sns /sns ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/bootdevice/by-name/drm /persist-lg ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/bootdevice/by-name/mpt /mpt ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/platform/f9824900.sdhci/by-name/cust /cust ext4 ro,seclabel,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
/data/media /mnt/shell/emulated sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
/data/media /storage/emulated/legacy sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
tmpfs /storage/emulated tmpfs rw,seclabel,nosuid,nodev,relatime,size=1443540k,nr_inodes=360885,mode=050,gid=1028 0 0
/dev/block/vold/179:65 /mnt/media_rw/external_SD exfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=utf8,namecase=0,errors=remount-ro,discard,readahead_kb=512 0 0
/dev/block/vold/179:65 /mnt/secure/asec exfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=utf8,namecase=0,errors=remount-ro,discard,readahead_kb=512 0 0
/mnt/media_rw/external_SD /storage/external_SD sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=unified 0 0
/data/media /storage/emulated/0 sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
/data/media /storage/emulated/0/Android/obb sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
/data/media /storage/emulated/legacy sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
/data/media /storage/emulated/legacy/Android/obb sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0

barcodelinux said:
When flashing the ROM in step 3, I get:
"Extracting system & Boot
Updating partition details...
E:Unable to mount '/system'
...done
---------- Post added at 01:30 PM ---------- Previous post was at 01:02 PM ----------
I think the partitions might be different on each device. Here's the output of df of the H815:
Filesystem Size Used Free Blksize
/dev 1.37G 96.00K 1.37G 4096
/sys/fs/cgroup 1.37G 12.00K 1.37G 4096
/mnt/asec 1.37G 0.00K 1.37G 4096
/mnt/obb 1.37G 0.00K 1.37G 4096
/system 3.92G 3.00G 938.40M 4096
/cache 1.17G 32.62M 1.13G 4096
/data 22.70G 21.73G 994.51M 4096
/persist 27.48M 64.00K 27.42M 4096
/firmware 85.95M 74.77M 11.19M 16384
/sns 3.86M 60.00K 3.80M 4096
/persist-lg 3.86M 584.00K 3.29M 4096
/mpt 27.48M 9.26M 18.22M 4096
/cust 247.97M 7.64M 240.33M 4096
/mnt/shell/emulated 22.70G 21.73G 994.51M 4096
/storage/emulated/legacy 22.70G 21.73G 994.51M 4096
/storage/emulated 1.38G 0.00K 1.38G 4096
/mnt/media_rw/external_SD 119.05G 51.99G 67.06G 131072
/mnt/secure/asec 119.05G 51.99G 67.06G 131072
/storage/external_SD 119.05G 51.99G 67.06G 131072
/storage/emulated/0 22.70G 21.73G 994.51M 4096
/storage/emulated/0/Android/obb 22.70G 21.73G 994.51M 4096
/storage/emulated/legacy 22.70G 21.73G 994.51M 4096
/storage/emulated/legacy/Android/obb 22.70G 21.73G 994.51M 4096
---------- Post added at 01:37 PM ---------- Previous post was at 01:30 PM ----------
And from mount:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=1437396k,nr_inodes=359349,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,size=1437396k,nr_inodes=359349,mode=750,gid=1000 0 0
pstore /sys/fs/pstore pstore rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,size=1437396k,nr_inodes=359349,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,size=1437396k,nr_inodes=359349,mode=755,gid=1000 0 0
/mnt/pstore /mnt/pstore pstore rw,relatime 0 0
/dev/block/bootdevice/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/bootdevice/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/bootdevice/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,resuid=1000,errors=continue,data=ordered 0 0
/dev/block/bootdevice/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/bootdevice/by-name/modem /firmware vfat ro,context=ubject_r:firmware_file:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/bootdevice/by-name/sns /sns ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/bootdevice/by-name/drm /persist-lg ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/bootdevice/by-name/mpt /mpt ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/platform/f9824900.sdhci/by-name/cust /cust ext4 ro,seclabel,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
/data/media /mnt/shell/emulated sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
/data/media /storage/emulated/legacy sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
tmpfs /storage/emulated tmpfs rw,seclabel,nosuid,nodev,relatime,size=1443540k,nr_inodes=360885,mode=050,gid=1028 0 0
/dev/block/vold/179:65 /mnt/media_rw/external_SD exfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=utf8,namecase=0,errors=remount-ro,discard,readahead_kb=512 0 0
/dev/block/vold/179:65 /mnt/secure/asec exfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=utf8,namecase=0,errors=remount-ro,discard,readahead_kb=512 0 0
/mnt/media_rw/external_SD /storage/external_SD sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=unified 0 0
/data/media /storage/emulated/0 sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
/data/media /storage/emulated/0/Android/obb sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
/data/media /storage/emulated/legacy sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
/data/media /storage/emulated/legacy/Android/obb sdcardfs rw,nosuid,relatime,uid=1023,gid=1023,derive=legacy 0 0
Click to expand...
Click to collapse
Can you do this and post your partition table:
adb shell
su
ls -l /dev/block/platform/f9824900.sdhci/by-name
Sent from my LG-H811 using Tapatalk

MicroMod777 said:
Can you do this and post your partition table:
adb shell
su
ls -l /dev/block/platform/f9824900.sdhci/by-name
Sent from my LG-H811 using Tapatalk
Click to expand...
Click to collapse
lrwxrwxrwx root root 2015-02-26 17:31 DDR -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 2015-02-26 17:31 aboot -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2015-02-26 17:31 abootbak -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 2015-02-26 17:31 apdp -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 2015-02-26 17:31 boot -> /dev/block/mmcblk0p38
lrwxrwxrwx root root 2015-02-26 17:31 cache -> /dev/block/mmcblk0p49
lrwxrwxrwx root root 2015-02-26 17:31 cust -> /dev/block/mmcblk0p48
lrwxrwxrwx root root 2015-02-26 17:31 devinfo -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 2015-02-26 17:31 dpo -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 2015-02-26 17:31 drm -> /dev/block/mmcblk0p40
lrwxrwxrwx root root 2015-02-26 17:31 eksst -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 2015-02-26 17:31 encrypt -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 2015-02-26 17:31 factory -> /dev/block/mmcblk0p43
lrwxrwxrwx root root 2015-02-26 17:31 fota -> /dev/block/mmcblk0p44
lrwxrwxrwx root root 2015-02-26 17:31 fsc -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 2015-02-26 17:31 fsg -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 2015-02-26 17:31 grow -> /dev/block/mmcblk0p51
lrwxrwxrwx root root 2015-02-26 17:31 hyp -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2015-02-26 17:31 hypbak -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 2015-02-26 17:31 keystore -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 2015-02-26 17:31 laf -> /dev/block/mmcblk0p37
lrwxrwxrwx root root 2015-02-26 17:31 limits -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 2015-02-26 17:31 misc -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 2015-02-26 17:31 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2015-02-26 17:31 modemst1 -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 2015-02-26 17:31 modemst2 -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 2015-02-26 17:31 mpt -> /dev/block/mmcblk0p42
lrwxrwxrwx root root 2015-02-26 17:31 msadp -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 2015-02-26 17:31 persist -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 2015-02-26 17:31 persistent -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 2015-02-26 17:31 pmic -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2015-02-26 17:31 pmicbak -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2015-02-26 17:31 raw_resources -> /dev/block/mmcblk0p45
lrwxrwxrwx root root 2015-02-26 17:31 raw_resourcesbak -> /dev/block/mmcblk0p46
lrwxrwxrwx root root 2015-02-26 17:31 rct -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 2015-02-26 17:31 recovery -> /dev/block/mmcblk0p39
lrwxrwxrwx root root 2015-02-26 17:31 rpm -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2015-02-26 17:31 rpmbak -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 2015-02-26 17:31 sbl1 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2015-02-26 17:31 sbl1bak -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2015-02-26 17:31 sdi -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2015-02-26 17:31 sdibak -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 2015-02-26 17:31 sec -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 2015-02-26 17:31 sns -> /dev/block/mmcblk0p41
lrwxrwxrwx root root 2015-02-26 17:31 spare1 -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 2015-02-26 17:31 spare2 -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 2015-02-26 17:31 ssd -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 2015-02-26 17:31 system -> /dev/block/mmcblk0p47
lrwxrwxrwx root root 2015-02-26 17:31 tz -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2015-02-26 17:31 tzbak -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2015-02-26 17:31 userdata -> /dev/block/mmcblk0p50

@MicroMod777
I guess I could flash the system.img and boot.img from fastboot just to see if they will boot on the H815 later tonight when I get home. But that doesn't fix the updater-script.
Thoughts??

barcodelinux said:
@MicroMod777
I guess I could flash the system.img and boot.img from fastboot just to see if they will boot on the H815 later tonight when I get home. But that doesn't fix the updater-script.
Thoughts??
Click to expand...
Click to collapse
I fixed rom but need to upload it.
Sent from my LG-H811 using Tapatalk

Here's rom with fixed script thanks to barcodelinux:
https://www.androidfilehost.com/?fid=24052804347793245

MicroMod777 said:
Here's rom with fixed script thanks to barcodelinux:
https://www.androidfilehost.com/?fid=24052804347793245
Click to expand...
Click to collapse
@MicroMod777 still waiting for any replies from you with regards to my post in 1 click root method... have spent 3 hours and got nowhere... any help is much appreciated....

When trying to flash the ROM, I get:
Delete Old System
Mounting system
Formatting system
Extracting System
Extracting Boot
E:Unable to mount '/system'
...done
When installing the patch file, I get:
Installing Patches...
Installation complete!
Updating partition details...
E:Unable to mount '/system'
...done
When installing the APN file, I get:
Installing files...
Installation complete!
Updating partition details...
E:Unable to mount '/system'
...done

Do get same error with camera mod?
http://forum.xda-developers.com/g4/themes-apps/root-60fps-camera-100-photo-quality-t3129460
Sent from my LG-H811 using Tapatalk

MicroMod777 said:
Do get same error with camera mod?
http://forum.xda-developers.com/g4/themes-apps/root-60fps-camera-100-photo-quality-t3129460
Sent from my LG-H811 using Tapatalk
Click to expand...
Click to collapse
No. I flashed the 60fps mood over the H815 stock rom a few weeks ago.

barcodelinux said:
No. I flashed the 60fps mood over the H815 stock rom a few weeks ago.
Click to expand...
Click to collapse
Odd as I used the same info in the camera script for the patch.
Sent from my LG-H811 using Tapatalk

MicroMod777 said:
Odd as I used the same info in the camera script for the patch.
Sent from my LG-H811 using Tapatalk
Click to expand...
Click to collapse
I looked at autoprime's updater-script from here.
It uses the
Code:
package_extract_file("file.name", "/path/to/extract");
command instead of the
Code:
package_extract_dir("file.name", "/path/to/extract");
My takeaway is that since you are trying to flash system.img, which is a file, you have to use the package_extract_file command. If we had a .zip file with a compressed directory named "system", you would then use the package_extract_dir command.
Since I already have the files on my Linux lappy, I will edit the updater-script and let you know how it goes.

barcodelinux said:
I looked at autoprime's updater-script from here.
It uses the
Code:
package_extract_file("file.name", "/path/to/extract");
command instead of the
Code:
package_extract_dir("file.name", "/path/to/extract");
My takeaway is that since you are trying to flash system.img, which is a file, you have to use the package_extract_file command. If we had a .zip file with a compressed directory named "system", you would then use the package_extract_dir command.
Since I already have the files on my Linux lappy, I will edit the updater-script and let you know how it goes.
Click to expand...
Click to collapse
Let me know if works! Thanks
Sent from my LG-H811 using Tapatalk

Related

I got into clockwork on the fire!!!

Here's the deal, I flashed a clockwork port for the kindle fire that I made. It was 100% useless as of now because of the one hardware button that we have to work with. I sent Koush a message on twitter asking if there is a possibility to have a long press and quick/short press differentiate between scrolling down and actually selecting the item on the menu but he hasn't gotten back to me yet but I'm sure he's working on it
Very good news! Hopefully something comes of this. I want to look at the code for TWRP 2.0 and see if that can be ported over to the fire, its touch control.
Sent from my Kindle Fire
you got partition table for fire yet ? i am looking for boot partition
cat /proc/mounts....
Code:
# cat /proc/mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/platform/mmci-omap-hs.1/by-name/system /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/platform/mmci-omap-hs.1/by-name/userdata /data ext4 rw,nosuid,nodev,noatime,errors=continue,barrier=1,data=ordered 0 0
/dev/block/platform/mmci-omap-hs.1/by-name/cache /cache ext4 rw,nosuid,nodev,noatime,errors=continue,barrier=1,data=ordered 0 0
/dev/block/platform/mmci-omap-hs.1/by-name/splash /dropbox ext4 rw,nosuid,nodev,noatime,errors=continue,barrier=1,data=ordered 0 0
/dev/block/vold/179:12 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:12 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
#
cat /proc/partitions
Code:
# cat /proc/partitions
major minor #blocks name
179 0 7553024 mmcblk0
179 1 128 mmcblk0p1
179 2 256 mmcblk0p2
179 3 10240 mmcblk0p3
179 4 196608 mmcblk0p4
179 5 16384 mmcblk0p5
179 6 65536 mmcblk0p6
179 7 10240 mmcblk0p7
179 8 5120 mmcblk0p8
179 9 524288 mmcblk0p9
179 10 1164288 mmcblk0p10
179 11 262144 mmcblk0p11
179 12 5254144 mmcblk0p12
#
cat /proc/filesystems
Code:
# cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev tmpfs
nodev devtmpfs
nodev binfmt_misc
nodev debugfs
nodev sockfs
nodev usbfs
nodev pipefs
nodev anon_inodefs
nodev rpc_pipefs
nodev devpts
ext3
ext2
ext4
nodev ramfs
vfat
msdos
nodev nfs
nodev nfs4
#
ls /dev/block/platform/mmci-omap-hs.1/by-name
Code:
# ls /dev/block/platform/mmci-omap-hs.1/by-name
media
cache
userdata
system
splash
boot
backup
recovery
dfs
dkernel
bootloader
xloader
#
Probably doesn't help. But I guess it was worth a shot. I'm not sure what the partitions are mapped to. :/
using root explorer i can tell that
/dev/block/platform/mmci-omap-hs.1/by-name/boot
is symlinked to
/dev/block/platform/mmci-omap-hs.1/mmcblk0p7
so if you wanted to mount boot
you could type
mount -o rw,remount /boot
i believe..
well i did a dd if= from the phone to the sdcard, but now we can just grab the boot.img from the update on amazon's site
Can you post pictures? This is the main reason I am not trading my fire for a nook.
http://i.imgur.com/9zWTk.jpg just gettings rid of those error messages now. had the wrong filesystem for /cache
I love you.screw the nook.
Wow JackpotCalvin! How were you able to flash the clockwork recovery? Also are you still able to load your KF as normal?
really nice work
another way to mount things as is done in the init.rc:
mount [email protected]/system system
so for rw..."mount -o rw,remount -t ext4 [email protected] /system"
anyway mounts are as follows:
backup -> mmcblk0p6
boot -> mmcblk0p7
bootloader ->mmcblk0p2
cache -> mmcblk0p11
dfs -> mmcblk0p4
dkernel -> mmcblk0p3
media -> mmcblk0p12
recovery -> mmcblk0p5
splash -> mmcblk0p8
system -> mmcblk0p9
userdata -> mmcblk0p10
xloader -> mmcblk0p1
well we're at a bit of a road block as of right now as we have no way to navigate through the menu, we can just press OK and reboot the kindle. also, pressing reboot now does not start the device normally, it just reboots into clockwork. i'm looking for the flag that the OS puts in /cache or /data to trigger a recovery reboot because pressing reboot now does not remove that flag so it will continue to reboot into clockwork unless you do a little hackery to put the stock recovery back on it and then reboot it into the stock recovery and make it fail the signature verification this fluke update.zip i made. we need to find a way to make a fail safe to reboot into recovery as well in case when we start roming, something goes wrong
Do you think something like this might work?
https://market.android.com/details?id=com.koushikdutta.rommanager&hl=en
JackpotClavin said:
when we start roming,
Click to expand...
Click to collapse
Emphasis mine. I can't wait. Great work so far, this seems to be going a lot faster than I imagined at first. I wish I had the programming chops to become a dev, instead i just look on from the sidelines, and maybe monetarily support projects when and where I can.
Awesome work guys. I've got the Nook Tablet but thought I'd pop over to see how it's going. Again, awesome work.
Sent from my Nook Tablet using Tapatalk
littleemp said:
Do you think something like this might work?
https://market.android.com/details?id=com.koushikdutta.rommanager&hl=en
Click to expand...
Click to collapse
The official clockword mod does not support the fire yet... if that's what you're asking. That is what OP is trying to do.
JackpotClavin said:
Here's the deal, I flashed a clockwork port for the kindle fire that I made. It was 100% useless as of now because of the one hardware button that we have to work with. I sent Koush a message on twitter asking if there is a possibility to have a long press and quick/short press differentiate between scrolling down and actually selecting the item on the menu but he hasn't gotten back to me yet but I'm sure he's working on it
Click to expand...
Click to collapse
How did you boot into recovery?
well i've just made a clockwork backup of my current system. i believe ive found a way that we can manage to "navigate" through the menu, even though it's a real pain in the ass to do
JackpotClavin said:
well i've just made a clockwork backup of my current system. i believe ive found a way that we can manage to "navigate" through the menu, even though it's a real pain in the ass to do
Click to expand...
Click to collapse
Sounds like we may have to be connected to our PC to run the commands...??

[CWM][24/01] ClockworkMod 5 Recovery For LG Nitro HD

Cwm v5.0.2.7 For LG Nitro HD (P930) /Optimus LTE
Current Status: Operational
Installation/Update Instructions:
Before installing make sure that your phone is rooted
Code:
Backup your existing recovery:
1) [COLOR="Magenta"]cat /dev/block/mmcblk0p13 > /sdcard/recovery-backup.img[/COLOR]
Flash the new recovery by:
1) Download the bc64-recovery.rar and extract it
2) Copy the extracted bc64-recovery.img to your /sdcard
3) via terminal emulator or adb shell execute:
[COLOR="Magenta"]
su
cd /sdcard
cat bc64-recovery.img > /dev/block/mmcblk0p13[/COLOR]
All Done!
Now to Boot into recovery , press the vol down+pwr button , when it asks you to factory reset , tap twice the pwr button to confirm (dont worry it wont format your device)
Screenshots:
Video:
Code:
http://www.youtube.com/watch?v=okr8PWeQ30E
ChangeLog:
Code:
v0.2 B20120124
Changes:
* Added postrecoveryboot.sh to clear out boot command
* Added Partition/fs Utils (useful for rom dev in formatting/checking ext4 fs)
-e2fsck_static
-mke2fs_static
-resize2fs_static
-tune2fs_static
v0.1 B20120120 (Initial Release)
Known Issues:
Code:
wrong timestamps
Tested On:
Code:
Atnt LG Nitro HD (P930)
LG Optimus LTE (SU640)
Thanks To:
Code:
schwin97
[email protected]
Malnilion
repherb
aquariuz23
gte460z
and everyone else who contributed to this thread :P
Download:
Code:
http://www.mediafire.com/?mnf53sxmp5aifd9
Source Code (Sorry , too lazy for github fttb):
Code:
http://www.mediafire.com/?f27d8j8d7mc8qi8
For Rom Developers:
It seems that default cwm format is messing up (due to ext4 file system) , Please use (edify) the following script to format the data and cache partition (or System)
Code:
#Format Data
/sbin/mke2fs_static -t ext4 -b 4096 /dev/block/mmcblk0p30
#Format Cache
/sbin/mke2fs_static -t ext4 -b 4096 /dev/block/mmcblk0p28
# After Format Verify the FIle System
/sbin/e2fsck_static -y /dev/block/mmcblk0p30
/sbin/e2fsck_static -y /dev/block/mmcblk0p28
Edify (To Format System):
Code:
run_program("/sbin/mke2fs_static", "-t" , "ext4" "/dev/block/mmcblk0p27");
AND
run_program("/sbin/e2fsck_static", "-y", "/dev/block/mmcblk0p27");
/proc/mtd doesn't exist...
Don't know if this any help:
http://forum.xda-developers.com/showpost.php?p=20514396&postcount=32
Images Added based on the info provided :
Code:
http://forum.xda-developers.com/showpost.php?p=20514396&postcount=32
Is this suppose to be Clockwork Mod for the Nitro? Wat's with the 5? Version 5?
Can you teach me how to make the recovery.img.
My device is LG Optimus LTE SU640 which has the most same hardware with P930.
Yes this is version 5
@belth219 ill port it for you once i get confirmation for this image
Ok,thanks.
@belth219 could you do a "cat /proc/partitions" on your cell and post its results?
Also providing the results for the above command for nitro HD would also be very usefull.
This is the result of my lu6200
Another version of p930
# su
su
# cat /proc/partitions
cat /proc/partitions
major minor #blocks name
179 0 3526656 mmcblk0
179 1 32768 mmcblk0p1
179 2 1024 mmcblk0p2
179 3 1024 mmcblk0p3
179 4 1 mmcblk0p4
179 5 1024 mmcblk0p5
179 6 5120 mmcblk0p6
179 7 5120 mmcblk0p7
179 8 10240 mmcblk0p8
179 9 1024 mmcblk0p9
179 10 3072 mmcblk0p10
179 11 3072 mmcblk0p11
179 12 8192 mmcblk0p12
179 13 16384 mmcblk0p13
179 14 32768 mmcblk0p14
179 15 3072 mmcblk0p15
179 16 3072 mmcblk0p16
179 17 3072 mmcblk0p17
179 18 3072 mmcblk0p18
179 19 1024 mmcblk0p19
179 20 8192 mmcblk0p20
179 21 16384 mmcblk0p21
179 22 73728 mmcblk0p22
179 23 8192 mmcblk0p23
179 24 24576 mmcblk0p24
179 25 8192 mmcblk0p25
179 26 1048576 mmcblk0p26
179 27 327680 mmcblk0p27
179 28 1548288 mmcblk0p28
179 29 16384 mmcblk0p29
179 30 1024 mmcblk0p30
179 31 229376 mmcblk0p31
259 0 4096 mmcblk0p32
179 32 7774208 mmcblk1
179 33 7773184 mmcblk1p1
#
$ cat /proc/mounts
cat /proc/mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p26 /system ext4 rw,relatime,barrier=0,data=ordered 0 0
/dev/block/mmcblk0p1 /firmware vfat ro,relatime,fmask=0000,dmask=0000,allow_utim
e=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/mmcblk0p28 /data ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered
,noauto_da_alloc 0 0
/dev/block/mmcblk0p12 /persist ext4 rw,nosuid,nodev,relatime,barrier=1,data=orde
red 0 0
/dev/block/mmcblk0p27 /cache ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordere
d 0 0
/dev/block/mmcblk0p29 /mpt ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered
0 0
/dev/block/mmcblk0p31 /lgumsg ext4 rw,nosuid,nodev,relatime,barrier=1,data=order
ed 0 0
/dev/block/mmcblk0p23 /mm ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered 0
0
/dev/block/mmcblk0p14 /system/etc/firmware/misc_mdm vfat ro,relatime,fmask=0000,
dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,e
rrors=remount-ro 0 0
My phone is LU6200,too. Could you tell me if I can install this mod on my phone? The only difference of 2 device is the CPU
I dont think it would work on your device as im sure it has diffrent kernel , upload your boot.img , i will port it once i get nitro hd confirmation
SU640
# cat /proc/partitions
cat /proc/partitions
major minor #blocks name
7 0 2111 loop0
179 0 3526656 mmcblk0
179 1 32768 mmcblk0p1
179 2 1024 mmcblk0p2
179 3 1024 mmcblk0p3
179 4 1 mmcblk0p4
179 5 1024 mmcblk0p5
179 6 5120 mmcblk0p6
179 7 5120 mmcblk0p7
179 8 10240 mmcblk0p8
179 9 1024 mmcblk0p9
179 10 3072 mmcblk0p10
179 11 3072 mmcblk0p11
179 12 8192 mmcblk0p12
179 13 16384 mmcblk0p13
179 14 32768 mmcblk0p14
179 15 3072 mmcblk0p15
179 16 3072 mmcblk0p16
179 17 3072 mmcblk0p17
179 18 3072 mmcblk0p18
179 19 1024 mmcblk0p19
179 20 8192 mmcblk0p20
179 21 16384 mmcblk0p21
179 22 73728 mmcblk0p22
179 23 8192 mmcblk0p23
179 24 24576 mmcblk0p24
179 25 8192 mmcblk0p25
179 26 1024 mmcblk0p26
179 27 860160 mmcblk0p27
179 28 327680 mmcblk0p28
179 29 3072 mmcblk0p29
179 30 1957638 mmcblk0p30
179 31 16384 mmcblk0p31
259 0 2048 mmcblk0p32
179 32 15622144 mmcblk1
179 33 15618048 mmcblk1p1
254 0 2110 dm-0
# cat /proc/mounts
cat /proc/mounts
rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p27 /system ext4 ro,relatime,barrier=0,data=ordered 0 0
/dev/block/mmcblk0p22 /tombstones ext4 rw,nosuid,nodev,relatime,barrier=1,data=o
rdered 0 0
/dev/block/mmcblk0p1 /firmware vfat ro,relatime,fmask=0000,dmask=0000,allow_utim
e=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/mmcblk0p30 /data ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered
,noauto_da_alloc 0 0
/dev/block/mmcblk0p12 /persist ext4 rw,nosuid,nodev,relatime,barrier=1,data=orde
red 0 0
/dev/block/mmcblk0p28 /cache ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordere
d 0 0
/dev/block/mmcblk0p31 /mpt ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered
0 0
/dev/block/mmcblk0p23 /mm ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered 0
0
/dev/block/mmcblk0p14 /system/etc/firmware/misc_mdm vfat ro,relatime,fmask=0000,
dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,e
rrors=remount-ro 0 0
/dev/block/vold/179:33 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,
uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharse
t=iso8859-1,shortname=mixed,utf8,tz=UTC,errors=remount-ro 0 0
/dev/block/vold/179:33 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,rela
time,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,ioc
harset=iso8859-1,shortname=mixed,utf8,tz=UTC,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/dm-0 /mnt/asec/com.cyandroid.pianofull-1 vfat ro,dirsync,nosuid,nodev
,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shor
tname=mixed,utf8,tz=UTC,errors=remount-ro 0 0
OK...
I just ran 'cat /dev/zero > /dev/block/mmcblk0p27', remounted my system partition as read/write and copied the recovery.img into the directory. Just rebooted in hopes it will flash the recovery image to the recovery partition p27 above. Will now attempt rebooting into recovery to see if anything happened...
---------- Post added at 09:05 AM ---------- Previous post was at 09:01 AM ----------
Upon using anreboot to boot into recovery I get...
Code:
Enter the fastboot...
Enter the fastboot...
Long time no see!
And the LG logo beneath it... It also attempted to install a new driver 'android', but couldn't find it on my computer. Very excited that we are moving closer to getting a 'real' recovery mode on the phone...
Now to see if I can reboot normally?
---------- Post added at 09:09 AM ---------- Previous post was at 09:05 AM ----------
And it still boots normally and is fully functional when it does boot!!! Good progress so far. Now, does anyone know how to determine the driver it is looking for? I think if I find the right driver I can get into fastboot mode and do anything else that is necessary?
schwin97 said:
OK...
I just ran 'cat /dev/zero > /dev/block/mmcblk0p27', remounted my system partition as read/write and copied the recovery.img into the directory. Just rebooted in hopes it will flash the recovery image to the recovery partition p27 above. Will now attempt rebooting into recovery to see if anything happened...
---------- Post added at 09:05 AM ---------- Previous post was at 09:01 AM ----------
Upon using anreboot to boot into recovery I get...
Code:
Enter the fastboot...
Enter the fastboot...
Long time no see!
And the LG logo beneath it... It also attempted to install a new driver 'android', but couldn't find it on my computer. Very excited that we are moving closer to getting a 'real' recovery mode on the phone...
Now to see if I can reboot normally?
Click to expand...
Click to collapse
Why did you ran cat /dev/zero > /dev/block/mmcblk0p27?
as of this http://forum.xda-developers.com/showpost.php?p=20514396&postcount=32 post your recovery partition should be /dev/block/mmcblk0p27
so To be me steps would have been:
1) Backing up recovery partition using dd
2) Remounting System partiton as read write
3) copying recovery.img to /system and flashing the recovery.img
4) booting into recovery
For fastboot you should have andriod sdk installed , get it at :
Code:
http://developer.android.com/sdk/download.html
I agree, but when I miss the part about putting the recovery image in the system directory for it to automatically reflash, I started running the steps to flash the recovery image as people flash the boot image...
An extra step that luckily didn't have any bad consequences...
---------- Post added at 09:18 AM ---------- Previous post was at 09:16 AM ----------
bytecode64 said:
For fastboot you should have andriod sdk installed , get it at :
Code:
http://developer.android.com/sdk/download.html
Click to expand...
Click to collapse
I have the sdk installed - but my laptop is asking for a driver - is the driver within the sdk download? If I don't give it the driver then it says the device didn't get installed correctly and fastboot doesn't see it.
what about USB drivers and Modem?
Did you installed http://s3.amazonaws.com/lgforum.com/resources/assets/680/original/LGP930.zip?1322664514
?
I have uploaded my boot.img & recovery.img to dropbox.
But I can not post any links now.It needs 8 posts.
Sure did. I have the drivers that are needed when the phone boots up normally? Just when it boots up in this new recovery mode that it is asking for a new driver? It shouldn't be asking for anything new, but it is... Another question - after it loads up the new recovery image from the /system directory should it remove the recovery image? If so, then if the recovery image is still in the system directory we may have a problem?
---------- Post added at 09:44 AM ---------- Previous post was at 09:39 AM ----------
As I had thought - recovery.img is still in the system directory... Does this indicate a problem?
schwin97 said:
I have the sdk installed - but my laptop is asking for a driver - is the driver within the sdk download? If I don't give it the driver then it says the device didn't get installed correctly and fastboot doesn't see it.
Click to expand...
Click to collapse
You should install the LGMobile update which can be downloaded from LG official website.
That is a useful tool.

[Q] [5.0] Which partition is hboot?

Since Lollipop, I can no longer access hboot via /dev/block/mmcblk0p11, and when I do # mount | grep blk, it shows:
/dev/block/mmcblk0p45 /system ext4 ro,seclabel,noatime,data=ordered 0 0
/dev/block/mmcblk0p46 /cache ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/mmcblk0p39 /devlog ext4 rw,seclabel,nosuid,nodev,relatime,errors=continue,data=ordered 0 0
/dev/block/mmcblk0p27 /fataldevlog ext4 rw,seclabel,nosuid,nodev,relatime,errors=continue,data=ordered 0 0
/dev/block/mmcblk0p37 /carrier ext4 rw,seclabel,nosuid,nodev,noatime,grpid,data=ordered 0 0
/dev/block/mmcblk0p22 /custdata ext4 ro,seclabel,nosuid,nodev,relatime,data=ordered 0 0
During 4.4.x, I was able to access hboot via mmcblk0p22 but it was gone since 5.0.x. I wanna take away those annoying red text, can anyone point me to the right direction?
You can get it from here:
http://forum.xda-developers.com/showthread.php?t=2710503

[GUIDE][GT-I9192][stuck at splash] how to get your data back

This is how I got my data from my GT-I9192 with TWRP and CM13. I don't know if it works for the other GT-I91XX models or with other firmware, but if you are in a similar situation like me it is worth a try.
Background:
I installed Cyanogenmod 13 and TWRP successfully about two month ago.
About a week ago my phone suddenly was black and did not want to boot at all. I convinced it to restart after pulling battery/recharge cable some times and putting them back, sometimes whilest holding power button pressed at the same time, until it gave a life sign again.
Current situation:
My phone stucks at samsung logo splash screen and reboots.
When trying to boot into recovery (TWRP; VOL.UP+HOME(+POWER)) the TeamWinRecovery logo screen is shown but then reboots.
Download mode (VOL.DOWN+HOME) works, Odin recognizes phone, but flashing TWRP successfully again does not fix anything.
Fastboot and adb do not recognize phone while it is in boot loop/recovery start loop/download mode!
But the interesting part is:
I am able to get via adb shell onto the phone while it is offline! Pull battery, put it back again, connect the phone via USB to PC and leave it off. Battery charging screen shows up and about a minute later adb shell is possible. It is in a strange state then, neither sdcard nor any else partition besides system is mounted, but mounting sdcard and data partition manually is possible.
Required:
Installed Samsung drivers, downloaded ADB tools, CM13(?), root enabled for adb.
make sure phone is off (pull battery/cable, put it back again)
connect phone via usb to pc
at pc cmd type
Code:
adb wait-for-device
when prompt is back, type
Code:
adb shell
use the commands below to get to your data
list internal partitions by name:
Code:
ls -l /dev/block/platform/msm_sdcc.1/by-name
output:
Code:
total 0
lrwxrwxrwx 1 root root 20 1970-01-01 00:00 aboot -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 backup -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 boot -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 cache -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 efs -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 fota -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 fsg -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 hidden -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 20 1970-01-01 00:00 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 modemst1 -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 modemst2 -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 20 1970-01-01 00:00 pad -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 20 1970-01-01 00:00 param -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 persdata -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 persist -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 recovery -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 20 1970-01-01 00:00 rpm -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 1970-01-01 00:00 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 20 1970-01-01 00:00 sbl2 -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 1970-01-01 00:00 sbl3 -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 ssd -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 system -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 20 1970-01-01 00:00 tz -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 21 1970-01-01 00:00 userdata -> /dev/block/mmcblk0p24 [COLOR="red"]<<< there is your userdata[/COLOR]
list all partitions with size:
Code:
cat /proc/partitions
output:
Code:
major minor #blocks name
179 0 7634944 mmcblk0
179 1 61440 mmcblk0p1
179 2 128 mmcblk0p2
179 3 256 mmcblk0p3
179 4 512 mmcblk0p4
179 5 2048 mmcblk0p5
179 6 512 mmcblk0p6
179 7 512 mmcblk0p7
179 8 12800 mmcblk0p8
179 9 8192 mmcblk0p9
179 10 13952 mmcblk0p10
179 11 3072 mmcblk0p11
179 12 3072 mmcblk0p12
179 13 10240 mmcblk0p13
179 14 10240 mmcblk0p14
179 15 10240 mmcblk0p15
179 16 7160 mmcblk0p16
179 17 3072 mmcblk0p17
179 18 8 mmcblk0p18
179 19 8192 mmcblk0p19
179 20 12288 mmcblk0p20
179 21 1536000 mmcblk0p21
179 22 204800 mmcblk0p22
179 23 36864 mmcblk0p23
179 24 5685231 mmcblk0p24 [COLOR="red"]<<< userdata partition has about 5.7 GB size[/COLOR]
179 32 30703616 mmcblk1
179 33 30703582 mmcblk1p1 [COLOR="red"]<<< this is your external sdcard partition[/COLOR]
get partition format
Code:
blkid
output:
Code:
/dev/block/mmcblk0p1: SEC_TYPE="msdos" UUID="00BC-614E" TYPE="vfat"
/dev/block/mmcblk0p10: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p19: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p20: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p21: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p22: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p23: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p24: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4" [COLOR="Red"]<<< userdata has ext4 format[/COLOR]
/dev/block/mmcblk1p1: UUID="02A3-21FE" LABEL="Volume" TYPE="exfat" [COLOR="Red"]<<< external sdcard has exfat format[/COLOR]
get currently mounted partitions
Code:
mount
output:
Code:
rootfs on / type rootfs (rw,seclabel)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
/sys/kernel/debug on /sys/kernel/debug type debugfs (rw,seclabel,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
none on /sys/fs/cgroup type tmpfs (rw,seclabel,relatime,mode=750,gid=1000)
none on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
tmpfs on /mnt type tmpfs (rw,seclabel,relatime,mode=755,gid=1000)
none on /dev/memcg type cgroup (rw,relatime,memory)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
none on /sys/fs/cgroup/bfqio type cgroup (rw,relatime,bfqio)
/dev/block/mmcblk0p21 on /system type ext4 (ro,seclabel,relatime,data=ordered)
neither data nor external sdcard is mounted
mount your external sdcard
Code:
mkdir /mnt/sdext
mount /dev/block/mmcblk1p1 /mnt/sdext
extract your data partition as image to your sdcard
Code:
dd if=/dev/block/mmcblk0p24 of=/mnt/sdext/userdata.img
important info: as your data partition is larger than 4GB, you can only put the whole image to your sdcard if it is in exFat or NTFS format (fat32 does not allow files larger than 4GB). You could copy the image splitted like follows:
Code:
dd if=/dev/block/mmcblk0p24 of=/mnt/sdext/userdata_1.img count=4000000
dd if=/dev/block/mmcblk0p24 of=/mnt/sdext/userdata_2.img skip=4000000
copy your images later to pc and put it together in windows cmd with
Code:
copy /B userdata_1.img + userdata_2.img userdata.img
Not tested though.
look if there is enough space on your external sdcard
Code:
df -H
H=human readable sizes with 1000 based system; use no option to list number of 1k blocks; use -P do list 512byte blocks, usefull as dd uses same block size per default
output:
Code:
Filesystem Size Used Avail Use% Mounted on
tmpfs 708M 41k 708M 1% /dev
none 708M 0 708M 0% /sys/fs/cgroup
tmpfs 708M 0 708M 0% /mnt
/dev/block/mmcblk0p21 1.5G 986M 562M 64% /system
/dev/block/mmcblk0p24 [COLOR="red"]5.7G[/COLOR] 5.3G 423M 93% /mnt/userdata
/dev/block/mmcblk1p1 31G 14G [COLOR="red"]18G[/COLOR] 44% /mnt/sdext
or mount your internal data partition as well and copy only the data you need
Code:
mkdir /mnt/userdata
mount /dev/block/mmcblk0p24 /mnt/userdata
use cd and ls -al commands to find your desired data;
in a secondary cmd at your pc copy directly to your pc via e.g. (contacts, sms, photos, TWRP backup, ...)
Code:
adb pull /mnt/userdata/data/com.android.providers.contacts/databases/contacts2.db
adb pull /mnt/userdata/data/com.android.providers.telephony/databases/mmssms.db
adb pull /mnt/userdata/media/0/DCIM
adb pull /mnt/userdata/media/0/TWRP
However, copying whole directories often failed and resulted in reboot of phone...
So, what to do with this image?
Mounting it in windows as new drive worked very well with OSFMount. As windows can not read ext4 partitions, you might want to install a ext4 driver like ext2fsd. And there is your data. Interesting folders are /media/0 where your internal sdcard data (like photos) resides and /data where all your apps store its data. You can find your contacts here /data/com.android.providers.contacts/databases/contacts2.db and your SMS here /data/com.android.providers.telephony/databases/mmssms.db. You can copy this databases to your new phone or inspect them via sqlite3.exe from your Android Development Tools. Here is a macro that could convert your contacts to vcard.
Credits:
Many of these information can be found at various xda threads, i do not remember all threads where I got which information from. Everything here was written from mind. Google and Wikipedia is also helpfull when it comes to command details. However this thread contains also most of the commands i showed above. This thread might give some inspirations about reading ext4 partition images under windows. If you feel that another thread has to be mentioned here, please write a message and I'll add it.
Thank you for this clarify guide. I try it even if my phone isn't bricked.
GT-I9190 cihazımdan Tapatalk kullanılarak gönderildi

Cygwin returns an empty raw file - Please help?

Edit. I managed to fix this and got it to work. The main problem was that my first window command had returned back with a prompt before I had time to complete the second window command. When I had the second window ready to hit return, I executed the first window command then imediately the second window command. It worked smoothly then extracting GB of data!
I have followed these instructions I found and they seem to work except the raw file resulting from them is 0 bytes. Any ideas?
I determined that my block for userdata is mmcblk0p21. All the commands in Cygwin return ok without problems. When in the second Cygwyn window and I do the nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p21.raw the line returns no output back to the window other than the $ prompt.
I will paste the screen out put below these instructions I have followed.
The model is a Tab S SM-T800
1. Turn on your phone
2. Connect the phone in ADB mode
3. Unlock the screen.
4. Open a Cygwin terminal and enter (This assumes your BusyBox installation is at [/su/bin/busybox]. It may be at [/su/xbin/busybox]):
adb forward tcp:5555 tcp:5555
adb shell
su
/su/bin/busybox nc -l -p 5555 -e /su/bin/busybox dd if=/dev/block/mmcblk0p21
5. Open another Cygwin terminal and enter:
adb forward tcp:5555 tcp:5555
cd /nexus
nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p21.raw
Screen output for the first window is.
[email protected] ~
$ adb forward tcp:5555 tcp:5555
[email protected] ~
$ adb shell
[email protected]:/ $ su
xbin/busybox nc -l -p 5555 -e /su/xbin/busybox dd if=/dev/block/mmcblk0p21 <
141|[email protected]:/ #
Screen output for the second window is.
[email protected] ~
$ adb forward tcp:5555 tcp:5555
[email protected] ~
$ cd /samsung
[email protected] /samsung
$ nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p21.raw
[email protected] /samsung
$
I'm scrathcing my head as It is not finding any data.
I got the mmcblk0p21 from the following.
[email protected] ~
$ adb forward tcp:5555 tcp:5555
[email protected] ~
$ adb shell
[email protected]:/ $ mount
rootfs / rootfs ro,seclabel,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=1420076k,nr_inodes=114328,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,size=1420076k,nr_inodes=114328,mode=750,gid=1000 0 0
tmpfs /mnt tmpfs rw,seclabel,relatime,size=1420076k,nr_inodes=114328,mode=755,gid=1000 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,size=1420076k,nr_inodes=114328,mode=700 0 0
tmpfs /mnt/secure/asec tmpfs rw,seclabel,relatime,size=1420076k,nr_inodes=114328,mode=700 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/dw_mmc.0/by-name/SYSTEM /system ext4 ro,seclabel,noatime,data=ordered 0 0
/dev/block/platform/dw_mmc.0/by-name/EFS /efs ext4 rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/dw_mmc.0/by-name/CACHE /cache ext4 rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/dw_mmc.0/by-name/USERDATA /data ext4 rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/dw_mmc.0/by-name/PERSDATA /persdata/absolute ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0
tmpfs /storage tmpfs rw,seclabel,relatime,size=1420076k,nr_inodes=114328,mode=755,gid=1000 0 0
/dev/block/loop0 /su ext4 rw,seclabel,noatime,data=ordered 0 0
/data/knox/tmp_sdcard /mnt/knox sdcardfs rw,seclabel,nosuid,nodev,relatime,mask=0077 0 0
/data/knox/sdcard /mnt/knox/default/knox-emulated sdcardfs rw,seclabel,nosuid,nodev,relatime,low_uid=1000,low_gid=1000,gid=1015,multi_user,mask=0006 0 0
/data/knox/sdcard /mnt/knox/read/knox-emulated sdcardfs rw,seclabel,nosuid,nodev,relatime,low_uid=1000,low_gid=1000,gid=9997,multi_user,mask=0027 0 0
/data/knox/sdcard /mnt/knox/write/knox-emulated sdcardfs rw,seclabel,nosuid,nodev,relatime,low_uid=1000,low_gid=1000,gid=9997,multi_user,mask=0007 0 0
/data/media /mnt/runtime/default/emulated sdcardfs rw,seclabel,nosuid,nodev,noexec,relatime,low_uid=1023,low_gid=1023,gid=1015,multi_user,mask=0006,reserved=20MB 0 0
/data/media /storage/emulated sdcardfs rw,seclabel,nosuid,nodev,noexec,relatime,low_uid=1023,low_gid=1023,gid=1015,multi_user,mask=0006,reserved=20MB 0 0
/data/media /mnt/runtime/read/emulated sdcardfs rw,seclabel,nosuid,nodev,noexec,relatime,low_uid=1023,low_gid=1023,gid=9997,multi_user,mask=0027,reserved=20MB 0 0
/data/media /mnt/runtime/write/emulated sdcardfs rw,seclabel,nosuid,nodev,noexec,relatime,low_uid=1023,low_gid=1023,gid=9997,multi_user,mask=0007,reserved=20MB 0 0
1|[email protected]:/ $ ls -al /dev/block/platform/dw_mmc.0/by-name
lrwxrwxrwx root root 2017-01-28 09:13 BOOT -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2017-01-28 09:13 BOTA0 -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2017-01-28 09:13 BOTA1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2017-01-28 09:13 CACHE -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 2017-01-28 09:13 CARRIER -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2017-01-28 09:13 CDMA-RADIO -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 2017-01-28 09:13 EFS -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2017-01-28 09:13 HIDDEN -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 2017-01-28 09:13 OTA -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2017-01-28 09:13 PARAM -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2017-01-28 09:13 PERSDATA -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 2017-01-28 09:13 RADIO -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 2017-01-28 09:13 RECOVERY -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2017-01-28 09:13 RESERVED2 -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 2017-01-28 09:13 SYSTEM -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 2017-01-28 09:13 TDATA -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 2017-01-28 09:13 TOMBSTONES -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 2017-01-28 09:13 USERDATA -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 2017-01-28 09:13 m9kefs1 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2017-01-28 09:13 m9kefs2 -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2017-01-28 09:13 m9kefs3 -> /dev/block/mmcblk0p6
[email protected]:/ $

Categories

Resources