Archives

All posts for the month January, 2014

My SGS2 is Dying

Last Updated on Dec 26, 2022


My SGS2 (Epic 4G Touch). The third in the sad line of SGS2s owned by me. The first one fell victim to the eMMC bug from a leaked ICS ROM. The second one died because I was trying to reflash the stock ICS which failed for some reason. Instead of closing the One-Click Odin flasher, I tried to reflash a second time (note that closing it and reopening is required). The third one, which I’ve had the longest, was getting hot. Like super, fry eggs on the glass hot. I tried to resolve this by wiping the data and reflashing the stock JB ROM. Unfortunately, it is still getting blazing hot. I’m afraid he’s not long for this world. Pray to whatever God you believe in that he may rest in peace.

Update: I was mistaken. It’s not getting blazing hot anymore. It still has problems, but at least it’s not hot enough to melt steel.

Last Updated on Dec 26, 2022


Disclaimer: I am not responsible for you doing things wrong and breaking your phone or losing your data.

  1. Make a folder somewhere under /data1.

    Click the "+".

    Click the “+”.

    Click "Folder".

    Click “Folder”.

    Type a folder name and click "OK".

    Type a folder name and click “OK”.

  2. Move desired APK from /data/app or /system/app2 (only if you want to move a system app’s APK while preserving its “system app” status) to the folder you just made in step 1.

    Long click file and click "Move".

    Long click the file and click “Move”.

    Click "Move here".

    Click “Move here”.

  3. Make a symlink of the newly moved APK in /system/app.

    Long click the file and click "Link to this file".

    Long click the file and click “Link to this file”.

    Click "Create link".

    Click “Create link”.

  4. Repeat from step 1 for each desired app3.
  5. Clear dalvik cache or just delete the dalvik cache file for the selected app(s).
  6. Reboot.
  7. The app is now a system app in the eyes of Android and is stored on the user data partition. Good for space saving in the system partition and future ROM updates or no-data restores4.
  • I used Root Explorer for the screenshots. You can use any file explorer you want as long as it can make symbolic links. You can even use the command line if you know what commands to use.
  • Clearing data will also delete the APK. If this was intended, don’t forget to delete the symlink from /system/app – not required as Android will just ignore invalid APKs and if left there, you won’t need to relink, should you do this again, as long as the file path(s) are the same as they were before.
  • You can make the APK read-only to mimic the system partition (440 – a-rwx,ug=r), but it’s probably not necessary.
  • You can use second-partition apps like Link2SD that premount a user-created second partition on the external SD card.
  • Zipalign will undermine your efforts if the APK needs to be zip aligned – it effectively copies the APK file somewhere and copies it back thus overwriting the symlink with the Zip aligned original APK.

  1. Don’t use the SD card because it’s not available until long after boot up.
  2. Do not move core system apps from /system/app. If you wipe data for whatever reason or the data partition fails to mount, you will lose a vital core app and cause a boot loop and I will not help you fix that.
  3. Some app crashing may occur. I wouldn’t recommend moving the APK of the file explorer you’re using to do this unless you’re using the command line.
  4. The app will not get deleted, but you’ll have to relink the APK after a no-data restore or ROM update.