2

I have an android ROM that I can flash onto the phone using a tool like smart phone flash tools, but what I want to be able to do is to modify the system image to add APKs in the system/app directory and then repack and flash the ROM. I want these newly added APKs to behave as part of the system.

I have looked at a couple of tutorials for unpacking and repacking it, but once I repack it, it becomes unusable. Is this the correct approach or am I missing something? I'm not sure what I could be doing wrong.

3
  • 1
    You need to provide more detail in your question. What way did you do this? Did you edit files? Did you use Android Kitchen or what..? What did you use for pack/unpack? Was the ROM re-signed? Did you remember to convert update-script back to updater-script? For a decent write up take a look at this: androiddomain.weebly.com/build-your-own-rom.html
    – HasH_BrowN
    Sep 3, 2014 at 22:12
  • Thanks @HasH_BrowN, I used this link to unpack and repack. My aim is to add more applications under the system/app directory and then repack and flash the Rom using sp flash tools. I want these newly added APKs to behave as part of the system. I tried adding them, but some applications do not appear after the phone is flashed.
    – Sbonelo
    Sep 4, 2014 at 7:25
  • Titanium backup is able to convert user apps into system apps on rooted android...
    – UdeF
    Sep 7, 2014 at 0:19

1 Answer 1

2

Most of the time when a unpacked and modified ROM gets repacked, it will become unusable/unstable because it failed to get resigned with the proper key.

You need to have the zip package resigned from the original firmware key. That is why you are experiencing those hiccups. Also if any of the apps depend on libs and/or resouces, you would need to make sure they are in place as well - prior to repacking and resigning

For a decent write up take a look at this: http://androiddomain.weebly.com/build-your-own-rom.html. This will show one of the proper ways of repackaging a ROM.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .