Android Community
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: You can install apps on the SD card.... with root

  1. #1
    Join Date
    Oct 2008
    Posts
    361

    Default You can install apps on the SD card.... with root


    http://forum.xda-developers.com/forumdisplay.php?f=448

    Original post: http://www.androidin.net/thread-1099-1-1.html
    AS usual, this is for those WITH ROOT ONLY

    Preparation:
    1. Installed JF RC30 V1.2 (only if you are using JF RC30 1.2 , for rc8 ..further work is need to recompile the kernel.img on step 7, maybe someone can workout for that)
    2. Make a NANDROID backup
    3. A MICRO-SD card with 2 partitions divided : (1) a fat-32 partition, (2) a ext2
    * the fat 32 will be mounted as sdcard and the ext2 will replace the internal storage, make your own decision for the size~
    4. A Linux terminal

    P.S.. I am lazy to type all exact command but i have tried myself it is usable..the procedure is only for those familiar with linux ~~~

    Procedure:
    1. Check USB debugging on the phone setting
    2. Connect with USB and get root via ADB SHELL
    3. adb pull /system/etc/mountd.conf ( to a temporary directory for editing)
    4. open the pulled mountd.conf (edit: change "mmcblk0" to "mmcblk0p1")
    5. rm -f /system/etc/mountd.conf and adb push the edited one for replacement (adb push *the temporary directory* /system/etc/mountd.conf
    6. Get mkbootimg directory from git://android.git.kernel.org/platform/system/core.git , then compiling mkbootimg to executable, Write a extractor to extract the bootimg from bootimg.h (original developer has written the extractor, so this step can be ignored, just download the extract_bootimg.c
    7. extract bootimg by extract_bootimg.c, get kernel.img and ramdisk.img (keep kernel.img as original)
    8. extract ramdisk.img by gunzip < ../ramdisk.img | cpio -id to a specific folder
    9. Edit the init.rc from the extracted file 1. add 1 line "mkdir /sd 0771 system system" before rootfs remount -ro ; 2. after mtd mount, add 3 lines "insmod /system/modules/2.6.25-01843-gfea26b0/kernel/fs/ext2/ext2.ko", "mknod /dev/mmcblk0p2 b 179 2 1000" , "mount ext2 /dev/mmcblk0p2 /sd noatime nodiratime" (4 lines in total, *2.6.25-01843-gfea26b0* is referred to JF's RC30 V1.2..i don't know if other version got the same build, please check carefully by yourself)
    10 CD into the folder storing the extracted data on step 8 (inculding the edited init.rc)
    11. find | cpio -co | gzip > ../ramdisk_new.img
    12. please check whether the ramdisk_new.img and kernel.img store in the same folder
    13 CD into the folder storing ramdisk_new.img and kernel.img
    14. RUN mkbootimg --kernel kernel.img --ramdisk ramdisk_new.img -o boot_new.img
    15. adb push the *boot_new.img* /sdcard
    16. cat /dev/zero >> /dev/mtd/mtd2
    17. flash_image boot /sdcard/boot_new.img
    18. busybox cp -a /data/app /sd/
    19.rm -r /data/app
    20.ln -s /sd/app /data/app
    21 reboot (from adb shell) and pray for it

    P.S. I tried and both software installed from SD and market is installed to ext2 sd partition autmoatically. but the phone will freeze if I remove sdcard and need to softreset.
    The orginial developer mention for those don't need the partition mounted as a directory of rootfs,
    can replace step 6-17 by editing /system/init.rc directly (after mtd mount, add 3 lines "insmod /system/modules/2.6.25-01843-gfea26b0/kernel/fs/ext2/ext2.ko", "mknod /dev/mmcblk0p2 b 179 2 1000" , "mount ext2 /dev/mmcblk0p2 /sd noatime nodiratime)
    Give me rep

  2. #2
    Join Date
    Sep 2008
    Location
    Seminole, FL
    Posts
    1,072

    Default Re: You can install apps on the SD card.... with root

    very cool. Don't have root, but it's cool nonetheless.
    Ricky Turner
    DesignDawg


  3. #3
    Join Date
    Dec 2008
    Posts
    238

    Default Re: You can install apps on the SD card.... with root

    i have a feeling/i'm hoping all of this will be here soon. there's just no way the internal storage can/will suffice and google just ain't like that.

    patiently awaiting...

    - auto-rotate
    - VK
    - video camera capabilities
    - ability to install apps to SD
    - screen shot

  4. #4
    Join Date
    Nov 2008
    Location
    New York City
    Posts
    10

    Default Re: You can install apps on the SD card.... with root

    Nevermind root access. We need to be able to store apps on the SD card, period!

    Another thing too: We should be able to store the install file for the apps we download in case we need to hard reset our phones or get replacements. Once the market goes pay in january, we're screwed. they're not gonna give us back the free apps...
    Last edited by shim0169; 12-23-2008 at 09:07 PM. Reason: spelling corrections
    The Floggings Will Continue Until Morale Improves!

    Former Sidekick LX, Blackberry Curve User

    Proud Android User via T-Mobile G1

  5. #5
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    963

    Default Re: You can install apps on the SD card.... with root

    I hope that these options will not require from us to be freakin programmers to complete all of the options settings lol - this on the top seems to me like a crash-course of the Linux programing lol

    T-Mobile US Stock Rom & Android Froyo 2.2 FRG33 (mccm); LinPack 38MP; Quadrant 1750

  6. #6
    Join Date
    Oct 2008
    Location
    Dekalb, IL
    Posts
    1,950

    Default Re: You can install apps on the SD card.... with root

    I look at the "make a NANDROID" backup at the beginning and "pray for it" at the end and I ask myself--is this a wise thing to do for someone without another phone?

    Probably not, but thanks for relating these innovations, Outsider. Like was said on XDA, I'm going to be lazy and let someone else try to package this all into an update.zip.

    I can't afford a brick, and I'm not that good at linux. Yet

    But thanks!

  7. #7
    Join Date
    Sep 2008
    Location
    Seminole, FL
    Posts
    1,072

    Default Re: You can install apps on the SD card.... with root

    Quote Originally Posted by shim0169 View Post
    Nevermind root access. We need to be able to store apps on the SD card, period!

    Another thing too: We should be able to store the install file for the apps we download in case we need to hard reset our phones or get replacements. Once the market goes pay in january, we're screwed. they're not gonna give us back the free apps...
    A couple of things...first, you can backup all your install files now. Download Astro and knock yourself out. Second, the market isn't going to force you to pay for apps. It's simply going to ALLOW developers to charge for them ON THE MARKET. I stress both aspects because no one is going to force devs to start charging, and most won't bother starting to charge for the apps 10s of thousands of people have already downloaded. Second, there are PLENTY of pay apps for Android right now. They just aren't in the markey yet. The fact that you can charge for apps in several other android app stores hasn't slowed the development or release of free apps.
    Ricky Turner
    DesignDawg


  8. #8
    Join Date
    Nov 2008
    Posts
    944

    Default Re: You can install apps on the SD card.... with root

    Hmm... the fact that the SD partition replaces the onboard partition makes the setup sound kinda shaky. It's cool nonetheless.

    What we need is an implementation of UnionFS/AuFS that could merge the two partitions.

  9. #9
    Join Date
    Oct 2008
    Posts
    4

    Default Re: You can install apps on the SD card.... with root

    Unfortunately I don't have a rooted phone. I do want to know, however, how is the performance of the apps installed to the SD card? Are they slow to launch? Are there any performance hits due to the apps being on the SD card? And has anyone been brave enough to actually try this out?

  10. #10
    Join Date
    Oct 2008
    Posts
    296

    Default Re: You can install apps on the SD card.... with root


    It should be stated that this is an extremely sloppy hack and, in my opinion, it is not advisable for anyone to try this hack unless they understand and accept the inherit risks associated with it. THIS HACK COULD EASILY BRICK YOUR PHONE, ESPECIALLY IF YOU MESS JUST ONE PART UP.

    Be warned.
    Stericson
    If people want to donate for any of my projects, they can do so by clicking --> Donate

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Install apps onto memory card?
    By trumani in forum General Phone Chat
    Replies: 14
    Last Post: 02-08-2012, 04:04 PM
  2. How to Install Apps using ADB
    By Sidonuke in forum Developers Guild
    Replies: 14
    Last Post: 06-21-2010, 01:42 PM
  3. New, root acces and downloadable apps??
    By Karnius in forum Apps Promo / Announcement
    Replies: 3
    Last Post: 11-26-2008, 01:20 PM
  4. Can u install applications to ur SD card???
    By 85Mario85 in forum General HTC Chat
    Replies: 3
    Last Post: 10-29-2008, 03:33 AM
  5. Install Apps/cache/history To Memory Card?
    By benonijeanpierre in forum General Phone Chat
    Replies: 3
    Last Post: 10-27-2008, 11:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •