When am playing with my Android phone (CyanogenMod 10.1 with kernel 3.0.78), I found this:
- A script in
- It remount /system as rw, and creates an image file in
After the phone is started, I can find this swap.img file, and it is in use, by checking
/proc/swaps. But the
/system is mounted as ro.
I tried to do the same thing, by manual, on another phone. But when I try to remount
/system as ro, I got error message saying there are resources in use.
If I swapoff the image on
swap.img file, I can immediately remount
/system as ro.
I was wrong, I cannot remoutn
/system as ro after I remount it as rw. lsof shows tons of process are using