Samsung Galaxy Note II (samsung-t03g)

Contributors

 * Bloo
 * Frost_I7 (I'll try to keep the wiki page up-to-date with the available info when I'm active.)

Information
Code name of the device is Midas.

For the LTE variant, see this page.

See the Samsung Galaxy S III page for more information.

How to enter flash mode
Hold +  +. When prompted, release all buttons and click.

How to enter recovery mode
Hold +  +. When the Samsung logo appears, release all buttons.

System Image
You can install the system to an SD card or make a recovery zip (probably won't fit in the partition size).

To install the system to an SD card, use:

Kernel Image
Boot into flash mode, then flash the kernel:

If you have done everything correctly, your Note II should reboot and you should see the Samsung logo. All that remains is to wait for the pmOS splash to appear.

U-Boot
According to this blog, there is a working U-Boot port for the Midas devices. Build it from this repository.

Installation
This manual describes the installation on the SD card as a secondary bootloader.

Clone the repository: Optionally, apply patches made by ave4: Set up the toolchain: Build U-Boot: Install pmOS the usual way to the SD card and then flash U-Boot on top of it:
 * https://gist.github.com/ave4/b4ac6c8a3abd3fd5d5b9f255cb2719d3
 * https://gist.github.com/ave4/3e30c7d10eba42e948a78176f4da4326

Display
Note II has two variants of the display panel. S6EVR02 and EA8061. To find out which panel yours has, run  in TWRP or in a rooted Android shell (immediately after booting, otherwise the logs will have time to rotate and you won't see this message). Output will be similar to: <6>[   3.177303] lcd panel: ea8061 lcd panel driver has been probed.

Partitions
Model: MMC VTU00M (sd/mmc) Disk /dev/mmcblk2: 15.8GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: N7100XXSFQA1 firmware:

OTG
USB OTG only works in the host mode, which requires changing "dr_mode" from "peripheral" to "host" in the device tree.

Notes: Device itself can be charged in the host mode, but you'll need to have an external power source to power the USB device.

Downstream
Original kernel version: 3.0.31

LineageOS kernel version: 3.0.101

S Pen
To get the S Pen working, you may need to do the following:

evdev:name:*e-pen* EVDEV_ABS_00=::300 EVDEV_ABS_01=::300
 * Put the following lines to :
 * Possibly update the hwdb:
 * Restart the phone.

TWRP
Using Heimdall:

Recommendations

 * Enable SWAP.
 * Enable binfmt_misc (CONFIG_BINFMT_MISC).

Issues

 * The display brightness is too high when the display turns on.
 * Solution: Change the brightness so it changes to the correct value.
 * The sound output is distorted.
 * Note: It's based on the CPU load.
 * USB OTG doesn't switch modes automatically.
 * Default CPU frequency is only 1.4GHz.
 * Solution: Modify the device tree and add required frequencies.
 * Warning: Do not touch it unless you know what you're doing!