Samsung Galaxy Ace 2 (samsung-codina)
![]() Samsung Galaxy Ace 2 | |
Manufacturer | Samsung |
---|---|
Name | Galaxy Ace 2 |
Codename | samsung-codina |
Released | 2012 |
Hardware | |
Chipset | [[ST-Ericsson NovaThor U8500]] |
CPU | 2x 800 MHz ARM Cortex-A9 |
GPU | Mali 400 MP1 |
Display | 480x800 PLS |
Storage | 4 GB |
Memory | 768 MB |
Architecture | armv7 |
Software | |
Original software | Android 2.3.6 |
postmarketOS | |
Category | testing |
Pre-built images | no |
Mainline | yes |
Flashing |
Works |
---|---|
USB Networking |
Broken |
Internal storage |
No data |
SD card |
No data |
Battery |
Works |
Screen |
Works |
Touchscreen |
Works |
Multimedia | |
3D Acceleration |
Works |
Audio |
Broken |
Camera |
Broken |
Camera Flash |
No data |
Connectivity | |
WiFi |
Works |
Bluetooth |
Broken |
GPS |
Broken |
NFC |
Works |
Modem | |
Calls |
Broken |
SMS |
Broken |
Mobile data |
Broken |
Miscellaneous | |
FDE |
Broken |
USB OTG |
No data |
HDMI/DP |
No data |
Sensors | |
Accelerometer |
Works |
Magnetometer |
Works |
Ambient Light |
Works |
Proximity |
Works |
Haptics |
No data |
Barometer |
No data |
Contributors
- nergzd723
Maintainer(s)
Users owning this device
Variants
A few different variants of the Codina was produced by Samsung, all named Samsung Galaxy Ace 2 but with different model codes. At least one of them has hardware differences.
Model | Features | Notes |
---|---|---|
GT-I8160 | Vanilla | |
GT-I8160chn | Targeted for the chinese market | |
GT-I8160I | ||
GT-I8160L | ||
GT-I8160P | NFC | Test with nfctool -d nfc0 -1 -p |
A Samsung Galaxy 2 La Fleur exist, in white and red/pink covers with flower decorations. These are just a aestetic difference with no hardware differences.
A special version of Codina is called "Codina TMO" (as in T-mobile) and is called Samsung Galaxy Exhibit or SGH-T599. This device contains upgraded hardware and uses a completely different device tree.
The Samsung Galaxy Ace 2x and Samsung Galaxy Trend have similar looks but are not Codina variants, these are based on Qualcomm chipsets.
How to enter flash mode
Odin Mode: While turned off, hold POWER+HOME+Vol-
Fastboot: Hold Vol- while booting.
Installation
The mainline kernel can only be booted through U-Boot, not directly with the Samsung bootloader. U-Boot is installed as intermediate bootloader on the boot partition, so it does not replace the Samsung bootloader entirely.
Boot into Download Mode using the NovaThor U8500 U-Boot installation instructions to install U-Boot.
+ + and follow theFinally, follow the Installation guide.
Notes
While charging now works with the mainline kernel as of linux-postmarketos-stericsson 5.18-rc4 in postmarketOS, it is good to note that if you somehow end up depleting the battery entirely, you risk bricking your device as it cannot charge if it cannot boot to the kernel, and it cannot boot to the kernel if the battery level is too low as it shuts down before it gets there. This is also the case in Android. If you end up in this situation, you can either get an external charger or a new battery.
Installing recovery
samsung-codina uses weird proprietary Samsung boot format to boot recovery using the main kernel. u-boot can only boot recoveries that are in Android boot.img format. As a workaround, you can get vmlinuz from postmarketOS installation(do pmbootstrap export after pmbootstrap install), and create boot image with mkbootimg(using recovery CPIO).
Bluetooth
Bluetooth does not have any Bluetooth device address (bdaddr or "MAC address") set after boot at the moment. To make Bluetooth work, you need to manually configure one:
# apk add bluez-btmgmt # btmgmt public-addr <bdaddr>
where <bdaddr>
is a MAC address like 53:33:6d:69:6e:69
.
The Bluetooth controller should then show up in bluetoothctl
:
# apk add bluez # rc-service bluetooth start $ bluetoothctl
You can e.g scan for devices:
[bluetooth]# show [bluetooth]# power on [bluetooth]# advertise on [bluetooth]# system-alias golden [bluetooth]# scan on
Sensors
- STMicroelectronics LIS3DH accelerometer
- Alps hscdtd008a magnetometer
- Amstaos TMD2672 light and proximity sensor
The accelerometer does work albeit it needs polling. iio-sensor-proxy does the right thing as can be confirmed at the command line:
# monitor-sensor Accelerometer orientation changed: bottom-up Accelerometer orientation changed: right-up Accelerometer orientation changed: bottom-up Accelerometer orientation changed: left-up Accelerometer orientation changed: normal Accelerometer orientation changed: right-up Accelerometer orientation changed: bottom-up
It seems for example Phosh cannot handle these events from iio-sensor-proxy properly as of writing.
GPS
The Codina has a Broadcom BCM4751 GPS chip.
See also
- pmaports!1275 Initial merge request
- Kernel package
- Upstream devicetree in Torvalds' kernel tree
Known bug
While in fastboot, PC may not detect the device. Try rebooting the device.