Author Topic: How can I repair iOS with Idroid? [help needed]  (Read 135 times)

Offline imortaluz

  • Member
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • iDevice: Iphone 3G
  • iDroid Version: old
  • Jailbreak: redsn0w 0.9x
How can I repair iOS with Idroid? [help needed]
« on: December 23, 2010, 05:22:28 PM »
I recently bricked my iphone by accidentally renaming a system file (these *@&*& rock extensions), IOs doesn't boot anymore. Hopefully Idroid is still working for me - but I can't figure out how to rename a file on the iphone root partition from it! After some googling I've figured out that I have to type the following commands in an ADB shell:
Quote
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mkdir /system/ipwn
mount -o remount,rw -t hfsplus /dev/block/nand0p1 /system/ipwn
mv "/system/ipwn/system/Library/RockExtensions bak" /system/ipwn/system/Library/RockExtensions
The real problem is that the last command gives me this output:
failed on 'RockExtensions bak' - Read-only file system
although I've mounted the partition as rw! What am I doing wrong? Is there another way to do this? Thanks in advance.

Offline ddominator

  • The Dominator
  • Global Moderator
  • Member
  • *****
  • Posts: 957
  • Karma: +11/-0
  • Sold his soul to Google
    • View Profile
    • Unofficial iDroid News Blog
  • iDevice: iPhone 2G 3.1.3
  • iDroid Version: MoJo 1.0.4.1
  • Jailbreak: redsn0w 0.94 FTW!!!
Re: How can I repair iOS with Idroid? [help needed]
« Reply #1 on: December 28, 2010, 06:01:01 PM »
/system in iDroid refers to system.img

If you want to access the iOS file system, it's in /host (which refers to /private/var)

All those commands you did don't do anything because /ipwn etc does not exist in system.img
« Last Edit: December 28, 2010, 06:02:43 PM by ddominator »
Help Google takeover the world. Use Android on your mobile devices, use Chrome Browser, use Chrome OS!!!

Offline imortaluz

  • Member
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • iDevice: Iphone 3G
  • iDroid Version: old
  • Jailbreak: redsn0w 0.9x
Re: How can I repair iOS with Idroid? [help needed]
« Reply #2 on: December 28, 2010, 06:05:32 PM »
/system in iDroid refers to system.img

If you want to access the iOS file system, it's in /host (which refers to /private/var)

All those commands you did don't do anything because /ipwn etc does not exist in system.img
Thanks for a quick reply..

/host points to the /var partition, I need to access the / (root) partition, that's why I'm trying to mount the ROOT partition which is (correct me if im wrong) /dev/block/nand0p1 . The partition mounts fine as /ipwn but I don't have write access to it, thats the problem - although I'm mounting it as rw. How do i mount it with write access?

edit:
Any clue? I'm really screwed -.-
« Last Edit: December 28, 2010, 06:08:37 PM by imortaluz »

Offline imortaluz

  • Member
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • iDevice: Iphone 3G
  • iDroid Version: old
  • Jailbreak: redsn0w 0.9x
Re: How can I repair iOS with Idroid? [help needed]
« Reply #3 on: December 28, 2010, 06:28:50 PM »
Another problem is that I can't even make a backup of my SMS database!
When I try the following command:
adb pull /host/mobile/Library/SMS/sms.db sms.db
all i'm getting is an empty file!! :/:/
When I try again it says "device not found" although it is connected and the shell is working fine, WTF??

Edit:" adb pull /host/mobile/Library/SMS sms" command works fine but it does only copy the drafts folder not the sms.db file!! Seriously, how do I make this *&*& work? Now this is really making me confused!  >:(
« Last Edit: December 28, 2010, 06:31:18 PM by imortaluz »

Offline noforu

  • Member
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: How can I repair iOS with Idroid? [help needed]
« Reply #4 on: Yesterday at 03:35:12 PM »
Hey!
I tried reading your messages and couldn't quite understand everything you said, I guess I dont have enough knowlage,
But I do have some experiance with such a case,
As I posted a while ago I've renamed my MobileSubstrate.dylib file by mistake ( which I hope is familiar to what you did)
and eventually manged to solve that problem by uploading a copy of the desired file with the correct name using OpeniBoot's CONSOLE (couldn't get adb to work...)
so if you manage to find a copy of the file you've renamed online you can try doing this:

Quote
get into openiboot console in your iphone
use the 'loadibec'/'oibc' ( If forgot which of them does that) to be able to send commands
get a copy of MobileSubstrate.dylib to the folder where your loadibec/oibc is
then use:
!MobileSubstrate.dylib
to upload it to the memory and then, remember the number of bytes the conosle tells you!
use:
fs_add /var FILEPATH/FILENAME 0x09000000 #OfBytes
(example:
fs_add /var Library/MobileSubstrate/MobileSubstrate.dylib 0x09000000 14416)
to copy it from the memory to the filesystem.
done!~

Please note: It might screw some stuff in your iphone even thou it SHOULDN'T as I understood from nickp666 the 'area' of 0x09000000 is safe to upload files to but I cannot promise, but it did work for me :T

Good luck!
« Last Edit: Yesterday at 03:39:22 PM by noforu »

Offline ddominator

  • The Dominator
  • Global Moderator
  • Member
  • *****
  • Posts: 957
  • Karma: +11/-0
  • Sold his soul to Google
    • View Profile
    • Unofficial iDroid News Blog
  • iDevice: iPhone 2G 3.1.3
  • iDroid Version: MoJo 1.0.4.1
  • Jailbreak: redsn0w 0.94 FTW!!!
Re: How can I repair iOS with Idroid? [help needed]
« Reply #5 on: Yesterday at 04:12:12 PM »
If all else fails, do a DFU.
Help Google takeover the world. Use Android on your mobile devices, use Chrome Browser, use Chrome OS!!!