"It's not what you can do, it's what you can get done."

Tuesday, July 22, 2014

ATT LG Optimus G ("Geeb" E970) data partition

For when an encrypted phone just won't recognize the PIN even though it's correct.

cat fstab.e970
# Android fstab file.
#                                            nd options>  
# The filesystem that contains the filesystem checker binary (typically /system)
 cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHEC
K

/dev/block/platform/msm_sdcc.1/by-name/boot         /boot           emmc    defa
ults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/recovery     /recovery       emmc    defa
ults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/system       /system         ext4    ro,b
arrier=1                                                    wait
/dev/block/platform/msm_sdcc.1/by-name/cache        /cache          ext4    noat
ime,nosuid,nodev,barrier=1,data=ordered                     wait,check
/dev/block/platform/msm_sdcc.1/by-name/userdata     /data           ext4    noat
ime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc     wait,check,encryptab
le=/dev/block/platform/msm_sdcc.1/by-name/metadata
/dev/block/platform/msm_sdcc.1/by-name/persist      /persist        ext4    nosu
id,nodev,barrier=1,data=ordered,nodelalloc                  wait
/dev/block/platform/msm_sdcc.1/by-name/modem        /firmware       vfat    ro,u
id=1000,gid=1000,dmask=227,fmask=337                        wait
/dev/block/platform/msm_sdcc.1/by-name/sns          /sns            ext4    nosu
id,nodev,barrier=1,data=ordered                             wait,check

# vold-managed volumes
/devices/platform/msm_sdcc.3/mmc_host/mmc1/         /storage/sdcard1 auto   defa
ult voldmanaged=sdcard1:auto
~ # mke2fs -t ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata
mke2fs -t ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
752192 inodes, 3008512 blocks
150425 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3082813440
92 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
~ # exit
exit

Make windows recognize Android USB driver (For sideloading in Recovery)

Can't get ADB to talk to your android? Get the sad "not recognized" sound when you plug in USB in recovery mode? The trick is to check device manager and get the hardware ID, then add that to the .inf. (Using the USB driver included w/ the ADK.)

path-to-extracted-adk\sdk\extras\google\usb_driver\android_winusb.inf

Latest driver is here: http://developer.android.com/sdk/win-usb.html


I just added %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_D001
to the "[Google.NTamd64]" section.

Info found in http://forum.xda-developers.com/showthread.php?t=2535960