Lanchon / REPIT

A Device-Only Data-Sparing Repartitioning Tool For Android
159 stars 25 forks source link

Sony Xperia L (taoshan) c2104 #61

Closed mgarridoe closed 7 years ago

mgarridoe commented 7 years ago

repit-dump.log.txt

your exact device and device codename. Sony Xperia L (taoshan) c2104 your recovery (version? official? if not where did you get it?). TWRP 3.0.0.0 oficial your kernel. 3.4.0-g8ce6fe2 your rom. Cyanogenmod 12.1-20160822 is your device running the stock partition layout or is it already modified? Stock

Thank you in advance.

Kind regards.

Miguel

Lanchon commented 7 years ago

hi, thanks!

interesting... what a lousy stock partition layout, lol. what is the "ftma" partition? got any info? is your bootloader unlocked? i'm downloading a stock image to look into some things

Lanchon commented 7 years ago

in recovery, from the PC, could you please run:

adb pull /dev/block/platform/msm_sdcc.1/by-name/aboot

then zip and post the resulting aboot file here

mgarridoe commented 7 years ago

aboot.zip

The bootloader is unlocked (since day 0 LOL) I've googled for ftma partition with no luck. I guess it has something to do with FlashTool. Pulling out right now and trying to mount in Linux. I'll tell you my findings later.

Lanchon commented 7 years ago

you can post it here. it comes in the stock image, so it's not personalized for your phone. but the stock image is in an unknown format.

mgarridoe commented 7 years ago

ftma.zip

-rwxr-x--- 1 root root 176 mar 25 2014 cci-flex.sh -rw-r--r-- 1 root root 501 mar 25 2014 cci.prop drwx------ 2 root root 4096 dic 31 1969 lost+found

Lanchon commented 7 years ago

thanks for aboot.

$ strings aboot | grep -i gpt | grep -i sign

GPT: (WARNING) Primary signature invalid
  GPT: Primary and backup signatures invalid
  GPT: Primary signature invalid cannot write GPT
  GPT: Backup signature invalid cannot write GPT

i'm sad to inform that there are strings in the bootloader that hint to a signed GPT. your BL might or might not enforce GPT signatures.

in case it does, altering the GPT might brick the phone. the expectation is that not even fastboot would work, and the phone would drop to one of the QCOM bulk interfaces.

to recover from that situation requires qualcomm's tools and leaked factory files for your device. do you know if recovery is possible for your phone?

there's a real hard-bricking possibility here. i can't really recommend going forward. what do you think?

mgarridoe commented 7 years ago

Sad to read that.

Right now I can't risk the phone.

I'm sorry, thank you for your time.

I'm going to link this issue in the thread for CM13 on Xperia L hopefully someone can continue.

Lanchon commented 7 years ago

good call. very sorry, nice working with you though.

Lanchon commented 7 years ago

note to self: CM labels: C2105,C2104,c2105,c2104,taoshan

Lanchon commented 7 years ago

i'm going to close this but i'll reopen if a someone wants to move it forward.

Lanchon commented 7 years ago

there has been a new development regarding detection of GPT signatures via strings in the bootloader. it is now known that this method can result in false positives.

please see the details here.