1. Download our Official Android App: Forums for Android!

Root [Virgin Mobile/Sprint] Make a flashable zip from a script help

Discussion in 'Android Devices' started by nobreak1970, Dec 23, 2014.

  1. nobreak1970

    nobreak1970 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    109
    Joined:
    May 10, 2012

    May 10, 2012
    109
    12
    38
    Can this script be made into a flashable zip for CWM?
    I want try it to unbrick my phone.

    ui_print("Performing Wipe...");
    ui_print("Mounting mount points...");
    run_program("/sbin/mount", "/dev/block/platform/s3c-sdhci.0/by-name/system", "/system");
    run_program("/sbin/mount", "/dev/block/platform/s3c-sdhci.0/by-name/userdata", "/data");
    run_program("/sbin/mount", "/dev/block/mtdblock4", "/cache");
    run_program("/sbin/mount", "/dev/block/mtdblock2", "/boot");
    show_progress(0.1, 0);
    ui_print("Wiping BOOT, CACHE, DATA, SYSTEM");
    delete_recursive("/boot");
    delete_recursive("/cache");
    delete_recursive("/data");
    delete_recursive("/system");
    show_progress(0.1, 10);
    ui_print("Unmounting mount points...");
    run_program("/sbin/umount", "/system");
    run_program("/sbin/umount", "/data");
    run_program("/sbin/umount", "/cache");
    ui_print("Wipe Complete.");
     

    Advertisement

    #1 nobreak1970, Dec 23, 2014
    Last edited: Dec 23, 2014
  2. nobreak1970

    nobreak1970 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    109
    Joined:
    May 10, 2012

    May 10, 2012
    109
    12
    38
    is there a "superwipe" flashable zip for our phone?
     
  3. xclusive36

    xclusive36 Android Expert
    Rank:
    None
    Points:
    183
    Posts:
    1,338
    Joined:
    Jan 28, 2014

    Jan 28, 2014
    1,338
    457
    183
    Male
    Pepsi
    Maryland
    The mounting points are wrong. Look inside the cyanogenmod 10 updater script to see the differences.
     
  4. xclusive36

    xclusive36 Android Expert
    Rank:
    None
    Points:
    183
    Posts:
    1,338
    Joined:
    Jan 28, 2014

    Jan 28, 2014
    1,338
    457
    183
    Male
    Pepsi
    Maryland
    What do you mean by 'superwipe'?
     
  5. xclusive36

    xclusive36 Android Expert
    Rank:
    None
    Points:
    183
    Posts:
    1,338
    Joined:
    Jan 28, 2014

    Jan 28, 2014
    1,338
    457
    183
    Male
    Pepsi
    Maryland
    Also, why not just wipe those partitions manually in cwm. Just go to advanced and select 'format' for each of those partitions. Keep in mind that if you wipe system and/or boot, your phone will not boot up.

    Also, each time you flash a rom it will wipe /system and then copy files to it. It will also overwrite the /boot as well. The only thing you would need to do manually is wipe data/factory reset to wipe the /data and /cache.

    If your phone is soft bricked, just wipe and re-flash a rom.
     
  6. nobreak1970

    nobreak1970 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    109
    Joined:
    May 10, 2012

    May 10, 2012
    109
    12
    38
    here is the situation:
    I hosed my /data partition.
    My f3 can't connect to a PC anymore (not recognized), some hardware thing or related to this sitatuion, so I cant run adb on it to fix my /data mount issue I am having. I can flash a rom but it won't boot because of this.

    So to summarize:
    My usb to pc doesn't work (it will charge though and it's not a driver thing)
    CWM flashes a rom error free.
    A reboot after flash goes back into cwm recovery.
    A nand restore in cwm doesn't fail, but only flashes a couple of files in system and then it's done.
    Everything mounts fine except /data in CWM recovery.
    The general fix is just a filesystem tweak by erasing userdata via fastboot.
    I can't use fastboot due to my usb to pc issue.

    Help?
    Flashable zip would be my only hope to easily save this phone.
    My theory is that my internal memory "/data?" is corrupted and can't be mounted. My fault I believe. lol
     
  7. xclusive36

    xclusive36 Android Expert
    Rank:
    None
    Points:
    183
    Posts:
    1,338
    Joined:
    Jan 28, 2014

    Jan 28, 2014
    1,338
    457
    183
    Male
    Pepsi
    Maryland
    I see you're posting the same thing in multiple locations. Don't do that. That's a quick way to loose my attention.
     
  8. roadkill42

    roadkill42 Android Expert
    Rank:
     #101
    Points:
    183
    Posts:
    2,463
    Joined:
    Jan 22, 2013

    Jan 22, 2013
    2,463
    474
    183
    Male
    kinda jack of trades
    jonesbough tn
    can u format ur data then try mount it in recovery?
     
  9. nobreak1970

    nobreak1970 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    109
    Joined:
    May 10, 2012

    May 10, 2012
    109
    12
    38
    Ok but each post concerns a different possible fix and I want feedback for all.
     
  10. nobreak1970

    nobreak1970 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    109
    Joined:
    May 10, 2012

    May 10, 2012
    109
    12
    38
    Nope it says /data can't be mounted
     
  11. xclusive36

    xclusive36 Android Expert
    Rank:
    None
    Points:
    183
    Posts:
    1,338
    Joined:
    Jan 28, 2014

    Jan 28, 2014
    1,338
    457
    183
    Male
    Pepsi
    Maryland
    Then post in one location and don't repeat the question. I'm not going to help you if you post the same question in multiple locations.
     
  12. nobreak1970

    nobreak1970 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    109
    Joined:
    May 10, 2012

    May 10, 2012
    109
    12
    38
    Let's keep it on my TWRP post and Ill get this one closed.
     
  13. nobreak1970

    nobreak1970 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    109
    Joined:
    May 10, 2012

    May 10, 2012
    109
    12
    38
    To a Forum Moderator:

    Please CLOSE this thread.
    Thanks :)
     
  14. roadkill42

    roadkill42 Android Expert
    Rank:
     #101
    Points:
    183
    Posts:
    2,463
    Joined:
    Jan 22, 2013

    Jan 22, 2013
    2,463
    474
    183
    Male
    kinda jack of trades
    jonesbough tn
    what recovery u using?
     
  15. nobreak1970

    nobreak1970 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    109
    Joined:
    May 10, 2012

    May 10, 2012
    109
    12
    38
    Let's get the conversation centered in TWRP thread by xclusive. ;)
    CWM touch to answer your question.
     

Share This Page

Loading...