Jump to content

Sony Xperia Z1 Compact (sony-amami): Difference between revisions

From postmarketOS Wiki
Mirh (talk | contribs)
Building and Flashing: added link for TA backup instruction. Would be quite better if this could be documented in a sony-specific page, given it's basically the same thing since the dawn of time
Halamix2 (talk | contribs)
mNo edit summary
 
(32 intermediate revisions by 13 users not shown)
Line 2: Line 2:
| manufacturer = Sony
| manufacturer = Sony
| name = Xperia Z1 Compact (Z1C)
| name = Xperia Z1 Compact (Z1C)
| codename = amami
| codename = sony-amami
| image = File:Sony Xperia Z1C.png
| image = File:Sony-amami-xfce4-20180626-2.jpg
| imagecaption = Sony Xperia Z1C
| imagecaption = Sony Xperia Z1C
| releaseyear = 2014
| releaseyear = 2014
| originalsoftware = Android 4.3 on Linux 3.4
| originalsoftware = Android
| chipset = Qualcomm MSM8974 Snapdragon 800
| originalversion = 4.3 (Linux 3.4)
| chipset = Qualcomm Snapdragon 800 (MSM8974)
| cpu = Quad-core 2.2 GHz Krait 400
| cpu = Quad-core 2.2 GHz Krait 400
| gpu = Adreno 330
| gpu = Adreno 330
Line 13: Line 14:
| display = 720x1280 IPS
| display = 720x1280 IPS
| memory = 2 GB
| memory = 2 GB
| architecture = armv7
| type = handset
| status_usbnet = Y
| status_flashing = Y
| status_touch = Y
| status_screen = Y
| status_wifi = Y
| status_xwayland = Y
| status_fde =
| status_mainline = P
| status_battery =
| status_3d =
| status_accel =
| status_audio =
| status_bluetooth =
| status_camera =
| status_gps =
| status_mobiledata =
| status_sms =
| status_calls =
| booting = yes
}}
}}
== Contributors ==
== Contributors ==
Line 23: Line 45:
* bshah (help on IRC)
* bshah (help on IRC)
* mmaret (help on IRC)
* mmaret (help on IRC)
== Users owning this device ==
{{Device owners}}


== Special keycombo's ==
== Special keycombo's ==
Line 30: Line 55:
* Reset if stuck: hold volume up and power button till the phone shakes
* Reset if stuck: hold volume up and power button till the phone shakes


== What works ==
== Issues ==


* charging
* No splash in initramfs.
* network through USB
* When USB charger plugged in when device is off, PostmarketOS "Loading..." screen is displayed continuously.
* telnet in initramfs
* ssh
* adjusting the led, torch and the lcd backlight
* display
* touchscreen
* wifi


== What does not work ==
== Building and Flashing ==


Follow [https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader Sony's instructions to unlock the bootloader].


== What have not been tested ==
<syntaxhighlight lang="bash">./pmbootstrap.py init</syntaxhighlight>


* Bluetooth
[[:Category:Interface|User interface]] support (with current downstream kernel; might change when replaced with mainline kernel):
* 3G
* Works: [[Xfce4]], [[MATE]] (might need programs installed), [[Handhelds#Matchbox_Window_Manager|Matchbox]], [[Weston]]
* Sound
* Believed NOT to work: [[Hildon]] (yellow trees on square area of display), [[Plasma Mobile]] (needs acceleration?)
* Phone calls
* SD card
* Hardware buttons


== Issues ==
Build with FDE disabled (because, with FDE enabled, it looks like the device will just hang on boot at "Loading..." screen).


* No splash in initramfs.
<syntaxhighlight lang="bash">./pmbootstrap.py zap
./pmbootstrap.py install</syntaxhighlight>


== Building and Flashing ==
Before unlocking the bootloader, you might want to [https://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236 back up your TA partition], so that you could restore the device to more of a factory state (including DRM keys for a lot of proprietary enchantments to display and camera)


Before flashing, you must make sure that the bootloader is unlocked (or `flash_rootfs` will fail with "writing 'system'... FAILED"), which seems to require an IMEI-specific unlock code from Sony, which is sent to the device using `fastboot`: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/how-to-unlock-bootloader/


Build with FDE disabled (because, with FDE enabled, it looks like the device will just hang on boot at "Loading..." screen).
To get the device into fastboot mode: power it off, remove USB cable, hold down Volume-Up while plugging in USB cable.  The notification light bar at the top of the phone will very briefly flash red, and then turn blue. Then you can stop holding down Volume-Up, and the device should in fastboot mode.


<source lang="bash">./pmbootstrap.py init
<syntaxhighlight lang="bash">./pmbootstrap.py flasher flash_rootfs
./pmbootstrap.py install --no-fde</source>
./pmbootstrap.py flasher flash_kernel</syntaxhighlight>


Before unlocking the bootloader, you might want to [https://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236 back up your TA partition], so that you could restore the device to more of a factory state (including DRM keys for a lot of proprietary enchantments to display and camera)
The `flash_rootfs` took about 1 minute, and `flash_kernel` took 5-10 seconds.


Before flashing, you must make sure that the bootloader is unlocked (or `flash_rootfs` will fail with "writing 'system'... FAILED", which seems to require an IMEI-specific unlock code from Sony, which is sent to the device using `fastboot`: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/how-to-unlock-bootloader/
After flashing, you can unplug the USB cable, and the device will be off. Then hold down the power button for a second or few, to turn it on, like normally.


To get the device into fastboot mode: power it off, remove USB cable, hold down Volume-Up while plugging in USB cable.  The notification light bar at the top of the phone will very briefly flash red, and then turn blue.  Then you can stop holding down Volume-Up, and the device should in fastboot mode.
== UI Usability ==


<source lang="bash">./pmbootstrap.py flasher flash_rootfs
If you select `xfce4` UI when building, after you boot it, you can make it more usable on the small display by doing to menu item "Applications -> Settings -> Appearance", then selecting the "Fonts" tab, then adjusting the DPI up. If you can't press the tiny GUI buttons to adjust the DPI, you can first adjust the font size up (and if the scrollbar for the font size is too small, you can adjust it up in small increments).
./pmbootstrap.py flasher flash_kernel</source>


== Links ==
== Links ==


* [https://web.archive.org/web/20161225005457/https://wiki.cyanogenmod.org/w/Amami_Info CM wiki archive]
* [https://web.archive.org/web/20161225005457/https://wiki.cyanogenmod.org/w/Amami_Info CM wiki archive]
* {{Device package|sony-amami}}
* {{Kernel package|sony-amami}}

Latest revision as of 11:35, 1 February 2025

Sony Xperia Z1 Compact (Z1C)
Sony Xperia Z1C
Sony Xperia Z1C
Manufacturer Sony
Name Xperia Z1 Compact (Z1C)
Codename sony-amami
Released 2014
Type handset
Hardware
Chipset Qualcomm Snapdragon 800 (MSM8974)
CPU Quad-core 2.2 GHz Krait 400
GPU Adreno 330
Display 720x1280 IPS
Storage 16 GB
Memory 2 GB
Architecture armv7
Software
Original software Android
Original version 4.3 (Linux 3.4)
postmarketOS
Category testing
Pre-built images no
Mainline partial
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
No data
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
No data
Audio
No data
Camera
No data
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB OTG
No data
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data

Contributors

  • ata2001 (porting and testing)
  • ollieparanoid (help on IRC)
  • MartijnBraam (help on IRC)
  • robb4 (help on IRC)
  • lawl (help on IRC)
  • bshah (help on IRC)
  • mmaret (help on IRC)

Users owning this device


Special keycombo's

  • Boot to recovery: hold volume down and power button till the phone shakes
  • Boot to bootloader: unplug device, hold volume up and plug usb into device
  • Reset if stuck: hold volume up and power button till the phone shakes

Issues

  • No splash in initramfs.
  • When USB charger plugged in when device is off, PostmarketOS "Loading..." screen is displayed continuously.

Building and Flashing

Follow Sony's instructions to unlock the bootloader.

./pmbootstrap.py init

User interface support (with current downstream kernel; might change when replaced with mainline kernel):

Build with FDE disabled (because, with FDE enabled, it looks like the device will just hang on boot at "Loading..." screen).

./pmbootstrap.py zap
./pmbootstrap.py install

Before unlocking the bootloader, you might want to back up your TA partition, so that you could restore the device to more of a factory state (including DRM keys for a lot of proprietary enchantments to display and camera)

Before flashing, you must make sure that the bootloader is unlocked (or `flash_rootfs` will fail with "writing 'system'... FAILED"), which seems to require an IMEI-specific unlock code from Sony, which is sent to the device using `fastboot`: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/how-to-unlock-bootloader/

To get the device into fastboot mode: power it off, remove USB cable, hold down Volume-Up while plugging in USB cable. The notification light bar at the top of the phone will very briefly flash red, and then turn blue. Then you can stop holding down Volume-Up, and the device should in fastboot mode.

./pmbootstrap.py flasher flash_rootfs
./pmbootstrap.py flasher flash_kernel

The `flash_rootfs` took about 1 minute, and `flash_kernel` took 5-10 seconds.

After flashing, you can unplug the USB cable, and the device will be off. Then hold down the power button for a second or few, to turn it on, like normally.

UI Usability

If you select `xfce4` UI when building, after you boot it, you can make it more usable on the small display by doing to menu item "Applications -> Settings -> Appearance", then selecting the "Fonts" tab, then adjusting the DPI up. If you can't press the tiny GUI buttons to adjust the DPI, you can first adjust the font size up (and if the scrollbar for the font size is too small, you can adjust it up in small increments).

Links