Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H8314 build works on XZ2c docomo-branded SO-05K #185

Open
teleshoes opened this issue Jan 16, 2022 · 6 comments
Open

H8314 build works on XZ2c docomo-branded SO-05K #185

teleshoes opened this issue Jan 16, 2022 · 6 comments

Comments

@teleshoes
Copy link

please add the product SO-05K to flash.sh for H8314.

this is a DoCoMo branded, sim-locked XZ2 Compact that initially said Bootloader unlock allowed: no.

  • i used qUnlockTool to change 'allowed: no' => 'allowed: yes'
  • unlocked the bootloader
  • flash.sh: i changed grep -e "H8314" => grep -e "H8314"
  • flash.sh: removed the exit 1 from the md5 check
  • flashed with zero problems as in flashing.md

phone/SMS/MMS works, camera works, zero problems. seems to be identical to H8314

@rinigus
Copy link
Contributor

rinigus commented Jan 16, 2022

This is not as simple as it would require corresponding entry in https://github.com/sailfishos-sony-tama/droid-config-sony-tama-pie (similar to what is for each separate type of Tama device, if I understand you right). It would make more sense to add your instructions as a separate file for affected users.

But what does ssu s show on line "Device model: Xperia XZ2 Compact (h8324 / h8324)" (NB! don't post device UID here!).

@teleshoes
Copy link
Author

i literally just changed the line that greps the output of fastboot to verify the serialno of the usb2-attached device is an XZ2c. its a oneline change in flash.sh to allow either model number in the grep line. hopefully, this doesnt require a separate build.

ssu says Device model: Xperia XZ2 Compact (h8314 / h8314), which makes sense since thats the image i flashed, completely unchanged.

@lal883
Copy link

lal883 commented Jan 17, 2022

I have a SO-05K too. Been using it for close to an year now, flashed with similar modifications to the flash.sh script and had OTA updates installed whenever new releases were available.

@rinigus
Copy link
Contributor

rinigus commented Jan 18, 2022

Good to know. I still suggest to write up instructions for other users and then add them to documentation over here. Alternative would be for you to find out where this script is and submit PR for patching it. I don't remember from the top of my head its location and where the device is injected into the script, sorry.

@teleshoes
Copy link
Author

here is the tool i wrote that fixes flash.sh (modifies it in place and updates md5.lst)
its very complicated because it also changes defaultuser => nemo (works on any pre-built sailfish image)

https://github.com/teleshoes/sx-config/blob/b9929aa63389275eeeeba5f36f6e76ab84fa50e9/tools/fix-image-flashing-xz2c.pl

@wreps8Owt
Copy link

Similar to this, by modifying flash.sh, I can install Sailfish_OS-4.5.0.16-h8266-0.5.0.1.zip to my H8296 (Sony Xperia XZ2 with dual sim and 6GB ram, available in Taiwan and Hong Kong), and ssu s believe it is Device model: Xperia XZ2 (h8266 / h8266).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants