Device Bootlooping after Modifying System

I’m trying to install SAI with root on a Timkoo-like mtk device that doesn’t allow installing apps.

I pulled the system.bin with Mtk Client, renamed it to system.img, mounted it, made a folder ‘SAI’ inside priv-app with the SAI apk inside, unmounted, renamed to system.bin, and flashed.
After doing that, the device would bootloop.
Any idea what the problem might be?

you grant 755 premissions to folder and 644 to apk?

Just tried that, didn’t help.

Also fixed SELinux contexts, still bootlooping.

Maybe try /app

add a file or edit one of the files in etc/permissions that grants it permissions.

I tried putting an empty folder into /app, with correct ownership, permission, and SELinux context, and its still bootlooping.

It could be something to do with how you’re repacking the image. Did you try flashing without the app at all to check if the app is what’s causing the issue?

Yes.

Weird. How about crb?

Also bootloops, I’m assuming because its an Android 8 device, which I think CRB doesn’t support.

Could the way Linux makes modifications to it when I mount & edit be causing the problem?

That’s what I’m guessing it is. Try mounting and unmounting it without changing anything and see if it flashes without bootlooping. A factory reset might also help

1 Like

Bingo!

Mounted, unmounted, flashed, bootloop.

That’s what I meant by

Can I ask which phone this os for?

Not a phone.

Does it have a recovery partition? Can you boot into recovery?

It has a recovery partition, but booting into recovery shows a screen that says “No command”.

Ok. You should be able to access the menu by tapping the volume-up button while holding the power button. Can you please send me the recovery partition?

Managed to get TWRP onto my tchatcke, and then made all the same modifications as before, just this time through TWRP:
Make folder in /app, put apk inside, fixed permissions, ownership, SELinux context.

And then.

Bootloop.

הדרן עלך והדרך עלן.

I’m becoming very good friends with the boot animation.

1 Like