pelya / android-keyboard-gadget

Convert your Android device into USB keyboard/mouse, control your PC from your Android device remotely, including BIOS/bootloader.
Apache License 2.0
1.22k stars 308 forks source link

Steps for Samsung #104

Open Eldardvr opened 6 years ago

Eldardvr commented 6 years ago

Guys need help in the steps to compile the boot.img for this device. I've been trying to do this for about three days now, I suppose I do not have enough knowledge to work with the software&terminal, I am so tired:

MANUFACTURER: Samsung DEVICE_NAME: Galaxy-J2 DEVICE_CODENAME: j23g MODEL_NUMBER: SM-J200H SOC_NAME: Exynos 3475, Cortex-A7 Processor Model: Mali-T720 MANUFACTURER_LINUX_KERNEL_VERSION: 3.10.49

I found the kernel according to CODENAME: j23g android_kernel_samsung_j23g

What should be the next step?

I use this patch: https://github.com/pelya/android-keyboard-gadget/blob/master/HTCM7_patch_steps

ghost commented 6 years ago

You are using Samsung. Right? So use 3.18 patch. I am have 3.0.101 kernel for all roms from latest samsing stock 4.2.2 to 6.0.1. I used the 3.01 patch and everything worked!

conrad-heimbold commented 6 years ago

Next steps are:

  1. download the source for your kernel from your link (https://github.com/j23g/android_kernel_samsung_j23g)
  2. Go to the root of the linux kernel tree (where you unpacked / downloaded the src)
  3. Put the patch file there as well (download it as well)
  4. Execute patch -p1 < name-of-patch-file