Sony Xperia Z1 Compact (sony-amami): Difference between revisions
→What works: wifi (may be unreliable) |
mNo edit summary |
||
(14 intermediate revisions by 11 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-amami-xfce4-20180626-2.jpg | | image = File:Sony-amami-xfce4-20180626-2.jpg | ||
| imagecaption = Sony Xperia Z1C | | imagecaption = Sony Xperia Z1C | ||
| releaseyear = 2014 | | releaseyear = 2014 | ||
| originalsoftware = Android 4.3 | | originalsoftware = Android | ||
| chipset = Qualcomm | | 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 29: | Line 54: | ||
* Boot to bootloader: unplug device, hold volume up and plug usb into device | * 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 | * Reset if stuck: hold volume up and power button till the phone shakes | ||
== Issues == | == Issues == | ||
Line 62: | Line 64: | ||
Follow [https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader Sony's instructions to unlock the bootloader]. | Follow [https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader Sony's instructions to unlock the bootloader]. | ||
< | <syntaxhighlight lang="bash">./pmbootstrap.py init</syntaxhighlight> | ||
[[ | [[:Category:Interface|User interface]] support (with current downstream kernel; might change when replaced with mainline kernel): | ||
* Works: [[ | * Works: [[Xfce4]], [[MATE]] (might need programs installed), [[Handhelds#Matchbox_Window_Manager|Matchbox]], [[Weston]] | ||
* Believed NOT to work: [[Hildon]] (yellow trees on square area of display), [[Plasma | * Believed NOT to work: [[Hildon]] (yellow trees on square area of display), [[Plasma Mobile]] (needs acceleration?) | ||
Build with FDE disabled (because, with FDE enabled, it looks like the device will just hang on boot at "Loading..." screen). | Build with FDE disabled (because, with FDE enabled, it looks like the device will just hang on boot at "Loading..." screen). | ||
< | <syntaxhighlight lang="bash">./pmbootstrap.py zap | ||
./pmbootstrap.py install | ./pmbootstrap.py install</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) | 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) | ||
Line 79: | Line 81: | ||
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. | 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. | ||
< | <syntaxhighlight lang="bash">./pmbootstrap.py flasher flash_rootfs | ||
./pmbootstrap.py flasher flash_kernel</ | ./pmbootstrap.py flasher flash_kernel</syntaxhighlight> | ||
The `flash_rootfs` took about 1 minute, and `flash_kernel` took 5-10 seconds. | The `flash_rootfs` took about 1 minute, and `flash_kernel` took 5-10 seconds. | ||
Line 93: | Line 95: | ||
* [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 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 |
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
- Ata2001
- Neilvandyke
- PureTryOut (Notes: three phones)
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):
- Works: Xfce4, MATE (might need programs installed), Matchbox, Weston
- Believed NOT to work: Hildon (yellow trees on square area of display), Plasma Mobile (needs acceleration?)
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).