Skip to content

Android13-5.15 build tips #5

Description

@marktohark
  1. Build the android kernel according to the KernelSU document
  2. Apply patches in patch folder
  3. Copy the rwMem folder to the drivers folder in the kernel source code
  4. make a new file that name is "Kconfig" in drivers/reMem. content↓
config RW_MEM
    tristate "rwMem kernel module"
    default y
    help
      A kernel module for memory read/write (used with KernelSU).
  1. Add a line obj-$(CONFIG_RW_MEM) += rwMem/ to the end of drivers/Makefile
  2. Add a line source "drivers/rwMem/Kconfig" to the end of drivers/Kconfig
  3. modify drivers/reMem/bp.c and bp.h
int rwmem_bp_step_handler(struct pt_regs *regs, unsigned long esr) => int rwmem_bp_step_handler(struct pt_regs *regs, unsigned int esr)
  1. Build the kernel again

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions