Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unpack initrd, modify and repackage, modify md5 in p1chksum and replace it. Is it feasible? #50

@SisypheanZhou

Description

@SisypheanZhou

I have a Sony QX1, but due to the lack of a screen, I am unable to enable OpenMemories TWEAK to start automatically. Therefore, I would like to modify the system's startup script to run a custom program.
I used pmca-console.py serviceshell to enter the system, and it seems that first started Linux, and then chroot to Android (in /etc/bin/s_start_android.sh). I compiled a busybox and uploaded it to the system. After testing, I found that the default mounted directory only the /android/data directory allow direct writing and persistence to (I tested mount - o remove,rw on other directories, but the modified content will be restored after sync).
I have also tried to package the entire system firmware and upload updates, but due to the tool's documentation being too brief, I am not sure how to repackage it.
Now that I have modified and repackaged initrd, I would like to directly replace it into /dev/nflasha1. Is this method feasible?

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