Root SGH-I757

Search This thread

reallybigabe

Senior Member
Jan 27, 2011
91
22
:eek:WOW your the man!! thats all i wanted a ROM without the Sales Pitch!!!:D
Your work is greatly appreciated.
Are you planning on uploading that Rom? I would like it.

The beauty of Android....all I want is ICS before Bell says I'm "allowed" to, and only after their ****ware is on it.

Ggrrr....

Sent from my SGH-I757M using xda premium
 

dsixda

Inactive Recognized Developer
Nov 1, 2007
9,586
5,324
Ottawa
Thats great news man. Keep up the good work :D

Sent from my SGH-I757M using XDA

No, disregard that message, i edited it. I thought everything was working.. but then afterwards I did a full Nandroid backup followed by a restore, and my apps started Force-Closing again :( What a bummer.

And then the 'reboot' option in CWM rebooted it back into CWM rather than the Touchwiz system (this happens some of the time). Bummer x 2.
 

dsixda

Inactive Recognized Developer
Nov 1, 2007
9,586
5,324
Ottawa
Any luck dsxida?

Sent from my SGH-I757M using xda premium

Really nothing I can do anymore unless someone steps in and helps out. I have spent too long on this. Fortunately my wife and kid are out of town for the week so I didn't waste as much precious time.

2 remaining issues:

- Nandroid Restore causes permissions issue (so apps force-close) - I don't know if it's the Backup or the Restore that's the problem here.

- Rebooting from CWM causes it usually to boot back into CWM rather than system. Workaround is to go into Download Mode and re-flash the recovery, which later causes automatic reboot into system.

The most basic thing to do is checkout the CM7 (or CM9) source code, download my files for SGS2HD, and google how to build CWM. I can provide full instructions later.

I just can't understand why it's so complicated, in theory it should be simple. Nobody seems to have run into these issues.

Having a spare phone will be handy in the meantime, as you can't rely on your SGS2 HD for normal use while you're working on it.
 
Last edited:

markdexter

Senior Member
Oct 24, 2010
1,178
299
i have been doing a little research and it seems CM7 nandroid restores can cause Apps to force close on certain devices, the fix is something to do with mount points?? Im not too tech savvy sorry.:eek:

At this stage can we still use the recovery, to at least flash a rom and wipe data? The other problem is when you press reboot it may just reboot you direct back to Cwm, or occasionally it will work and boot the Rom up?

If the Nandroid thing is the big issue at the moment thats not a huge deal.

If the recovery works, i would like to create a very slimmed down version of the Bell Rom, and flash it.

Thanks for your continues hard-work, its greatly appreciated!!;)
 

dsixda

Inactive Recognized Developer
Nov 1, 2007
9,586
5,324
Ottawa
i have been doing a little research and it seems CM7 nandroid restores can cause Apps to force close on certain devices, the fix is something to do with mount points?? Im not too tech savvy sorry.:eek:

At this stage can we still use the recovery, to at least flash a rom and wipe data? The other problem is when you press reboot it may just reboot you direct back to Cwm, or occasionally it will work and boot the Rom up?

If the Nandroid thing is the big issue at the moment thats not a huge deal.

If the recovery works, i would like to create a very slimmed down version of the Bell Rom, and flash it.

Thanks for your continues hard-work, its greatly appreciated!!;)


Link to my CWM 5.2.0.8, flash it through Odin (USE AT YOUR OWN RISK - Don't use Nandroid):
http://d-h.st/8Rl

NOTE: If you select 'reboot to system' it will boot back to CWM most of the time. Sometimes, I don't know when, it will reboot back to system. If stays at CWM, you won't be able to go back to system even if you try rebooting several times. I've noticed sometimes that a Nandroid restore will boot it back to normal. For me, I just re-flash the recovery image in Odin so that Odin boots it back to system.


Link to custom ROM, rooted without Bell apps (not de-odexed cos I don't care):
http://d-h.st/mia

Link to stock recovery, if you want to go back (use Odin):
http://d-h.st/btN
 
Last edited:

markdexter

Senior Member
Oct 24, 2010
1,178
299
Sounds good, thankful, im no-where near your expertise level, im gonna try and play around with the cwm myself. Thanks Alot dsixda, im gonna be donating to you later, thanks

Sent from my SGH-I757M using xda premium
 
  • Like
Reactions: dsixda

dsixda

Inactive Recognized Developer
Nov 1, 2007
9,586
5,324
Ottawa
Sounds good, thankful, im no-where near your expertise level, im gonna try and play around with the cwm myself. Thanks Alot dsixda, im gonna be donating to you later, thanks

Sent from my SGH-I757M using xda premium

You don't need much expertise, my friend, to do this. Maybe some knowledge on how to use makefiles and C, but not really required.
 

markdexter

Senior Member
Oct 24, 2010
1,178
299
  • Like
Reactions: dsixda

dsixda

Inactive Recognized Developer
Nov 1, 2007
9,586
5,324
Ottawa
Hey,

Im a comp sci student(4th year) i have some time to waste =P so if you want i can try to code somethings

Cool,

- download and install 64-bit Ubuntu to a PC or virtual machine,
- find out how to get CM7 or 9 on a fast 64-bit PC (takes few hours to download!)
- grab my source from Github and copy under /device/samsung/sgs2hdbell (You don't need the Android SDK to extract the kernel and mounts from recovery.img/boot.img since it's already in my folder)
- add a new device entry under /vendor/cyanogen/products (just copy from one of the other devices and edit it),
- add out/host/linux-x86/bin to your PATH variable in ~/.profile
- find out how to build CWM.
- read up on .hidenandroidprogress file to fix CWM long file name issue with Samsung devices in Nandroid, or else edit /bootable/recovery/nandroid.c function yaffs_callback to return NULL at the first line.
- find out how to use 'tar' and 'md5sum' to convert the final recovery.img into a recovery.tar that is flashable in Odin

I can help as required.
 
Last edited:

dsixda

Inactive Recognized Developer
Nov 1, 2007
9,586
5,324
Ottawa
i have been doing a little research and it seems CM7 nandroid restores can cause Apps to force close on certain devices, the fix is something to do with mount points?? Im not too tech savvy sorry.:eek:

WHere did you read this? Cos I also read it had something to do with not having /datadata or /dbdata
mentioned in the mount point entries. However, none of these are listed as mounts on the device.

Also, we are building CWM (which is part of the CyanogenMod recovery source files) but not a CWM7 ROM. As far as I know CWM 5.0.2.8 is the same as on CM9. Somebody correct me if I'm wrong though.
 

markdexter

Senior Member
Oct 24, 2010
1,178
299
Found this Info onfixing permissions.
http://forums.androidcentral.com/ve...-kernels-updated-3-20-11-a-40.html#post716109

What if we used a different version of CWM? an earlier version?

---------- Post added at 03:55 PM ---------- Previous post was at 03:42 PM ----------

Seems that the Galaxy note SGH_i717 had similar problems with a CWM bootloop, read the forums at the bottom.

http://rootgalaxynote.com/galaxy-no...-on-att-galaxy-note-sgh-i717-belltelusrogers/

Wonder if we could find out the fix??
 

dsixda

Inactive Recognized Developer
Nov 1, 2007
9,586
5,324
Ottawa
Found this Info onfixing permissions.
http://forums.androidcentral.com/ve...-kernels-updated-3-20-11-a-40.html#post716109

What if we used a different version of CWM? an earlier version?

---------- Post added at 03:55 PM ---------- Previous post was at 03:42 PM ----------

Seems that the Galaxy note SGH_i717 had similar problems with a CWM bootloop, read the forums at the bottom.

http://rootgalaxynote.com/galaxy-no...-on-att-galaxy-note-sgh-i717-belltelusrogers/

Wonder if we could find out the fix??

Yeah I saw that comment for the guy not being able to boot up. Thanks for the info on permissions.. I did try earlier to fix permissions but made no diff. I just want it working without having to do any hacking afterwards.

Maybe I will start fresh with CM9 and build it again? I have CM7 now.
 

reallybigabe

Senior Member
Jan 27, 2011
91
22
From looking, the recovery source looks unchanged, but I guess you never know between libraries etc...



Sent from my SGH-I757M using xda premium
 
  • Like
Reactions: dsixda

markdexter

Senior Member
Oct 24, 2010
1,178
299
Found something strange, If i reboot into your CWM, if i dont touch anything and just press the reboot system button, it will boot the system everytime, just tried it about 6 times.

Also just flashed my own version of the bell Rom and it rebooted first time out of CWM and started the system up??!! what the hell strange!! Mind of its own
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Which CWM are you starting with? Do you have source?

    What do you mean 'starting with'? I'm not porting anything. I'm using the normal way, from CyanogenMod source (CM7 in my case), starting off as a new device.

    I have made a tiny bit of progress from the last screenshot .. now the menu is placed correctly at the top - rather than 4 duplicate tiny menus - but still it's fuzzy and unreadable. It's related to a frame buffer issue (a graphics.c file) but I have no idea how to fix it. I used a patched graphics.c which improved things, but it's still ****.

    I don't think we'll be getting any help from any of the big devs, because it's a Canadian-only device and nobody cares... Ughh.. Sorry for the rant, I'm just frustrated.

    I can post some of the source later, it's close to 2am and I've been doing this almost non-stop, which is not good for my already messed-up wrist.
    3
    OK just an update, it now looks better than yesterday's disaster screenshot.. the menu highlighting is at the right spot and moves as you press volume. But the text is still an unreadable mess :-/
    3
    This is a pain in the butt! I was at the final stage of building my recovery image, and then I got a whole bunch of errors, because my Mac was not set up properly. I am now following another guide. In the meantime, I tried installing the source code to my Linux virtual machine and it ran out of drive space :p

    I'll download the latest 64-bit Ubuntu and install that as well. Looks like I know what I'll be doing this weekend ;)
    3
    OK here's a mirror link to the stock firmware, for times when you want to return to original state or need an emergency backup:

    http://d-h.st/dS7
    3
    Ok just got the device today.

    Here's the mount info, for anyone who cares:

    Code:
    # mount
    mount
    rootfs / rootfs ro,relatime 0 0
    tmpfs /dev tmpfs rw,relatime,mode=111 0 0
    devpts /dev/pts devpts rw,relatime,mode=600 0 0
    proc /proc proc rw,relatime 0 0
    sysfs /sys sysfs rw,relatime 0 0
    none /acct cgroup rw,relatime,cpuacct 0 0
    tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
    tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
    tmpfs /mnt/usb tmpfs rw,relatime,mode=755,gid=1000 0 0
    none /dev/cpuctl cgroup rw,relatime,cpu 0 0
    /dev/block/mmcblk0p24 /system ext4 ro,relatime,barrier=0,data=ordered 0 0
    /dev/block/mmcblk0p26 /cache ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered 0 0
    /dev/block/mmcblk0p21 /efs ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered 0 0
    /dev/block/mmcblk0p25 /data ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered,noauto_da_alloc 0 0
    /dev/block/mmcblk0p13 /system/etc/firmware/misc vfat ro,relatime,fmask=0133,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
    /dev/block/mmcblk0p17 /system/etc/firmware/misc_mdm vfat ro,relatime,fmask=0133,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
    /dev/block/mmcblk0p27 /tombstones ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered 0 0
    /dev/block/vold/179:28 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,ut
    f8,errors=remount-ro,discard 0 0

    Block size info

    Code:
    # cat /proc/partitions
    cat /proc/partitions
    major minor  #blocks  name
    
       7        0       3150 loop0
     179        0   15384576 mmcblk0
     179        1     102400 mmcblk0p1
     179        2        500 mmcblk0p2
     179        3       1500 mmcblk0p3
     179        4          1 mmcblk0p4
     179        5        500 mmcblk0p5
     179        6       2048 mmcblk0p6
     179        7       2500 mmcblk0p7
     179        8      10240 mmcblk0p8
     179        9        500 mmcblk0p9
     179       10        500 mmcblk0p10
     179       11        500 mmcblk0p11
     179       12      10240 mmcblk0p12
     179       13     100352 mmcblk0p13
     179       14       3072 mmcblk0p14
     179       15       3072 mmcblk0p15
     179       16       3072 mmcblk0p16
     179       17     100352 mmcblk0p17
     179       18       3072 mmcblk0p18
     179       19       3072 mmcblk0p19
     179       20       3072 mmcblk0p20
     179       21      10240 mmcblk0p21
     179       22      10240 mmcblk0p22
     179       23      10240 mmcblk0p23
     179       24     919552 mmcblk0p24
     179       25    2099200 mmcblk0p25
     179       26     104448 mmcblk0p26
     179       27     132096 mmcblk0p27
     179       28   11698176 mmcblk0p28
     179       32   15645696 mmcblk1
     179       33   15641600 mmcblk1p1
     254        0       3150 dm-0


    Code:
    # df
    Filesystem             Size   Used   Free   Blksize
    /dev                   374M    84K   374M   4096
    /mnt/asec              374M     0K   374M   4096
    /mnt/obb               374M     0K   374M   4096
    /mnt/usb               374M     0K   374M   4096
    /system                883M   718M   165M   4096
    /cache                 100M     4M    96M   4096
    /efs                     9M     4M     5M   4096
    /data                    1G   200M     1G   4096
    /system/etc/firmware/misc   199M    21M   178M   4096
    /system/etc/firmware/misc_mdm   199M    25M   173M   4096
    /tombstones             68M     4M    64M   4096
    /mnt/sdcard             11G     8M    11G   32768



    CPU info

    Code:
    # cat /proc/cpuinfo
    Processor	: ARMv7 Processor rev 2 (v7l)
    processor	: 0
    BogoMIPS	: 13.54
    
    Features	: swp half thumb fastmult vfp edsp neon vfpv3 
    CPU implementer	: 0x51
    CPU architecture: 7
    CPU variant	: 0x0
    CPU part	: 0x02d
    CPU revision	: 2
    
    Hardware	: SGH-I757M
    Revision	: 000c
    Serial		: 4d09539921912f4a


    From /etc/recovery_mmc.fstab in stock recovery.img:

    Code:
    /boot		emmc		/dev/block/mmcblk0p8
    /cache		ext4		/dev/block/mmcblk0p26
    /data		ext4		/dev/block/mmcblk0p25
    /misc		mtd		misc
    /recovery	emmc		/dev/block/mmcblk0p22
    /sdcard		vfat		/dev/block/mmcblk1p1	/dev/block/mmcblk1
    /system		ext4		/dev/block/mmcblk0p24


    build.prop:

    Code:
    # begin build properties
    # autogenerated by buildinfo.sh
    ro.build.id=GINGERBREAD
    ro.build.display.id=GINGERBREAD.UGLCA
    ro.build.version.incremental=UGLCA
    ro.build.version.sdk=10
    ro.build.version.codename=REL
    ro.build.version.release=2.3.6
    ro.build.date=Sat Mar 31 12:35:17 KST 2012
    ro.build.date.utc=1333164917
    ro.build.type=user
    ro.build.user=dpi
    ro.build.host=DELL161
    ro.build.tags=release-keys
    ro.product.model=SGH-I757M
    ro.product.brand=samsung
    ro.product.name=SGH-I757M
    ro.product.device=SGH-I757M
    ro.product.board=MSM8660_SURF
    ro.product.cpu.abi=armeabi-v7a
    # Samsung Specific Properties
    ro.build.PDA=I757MUGLCA
    ro.build.hidden_ver=I757MUGLCA
    ro.build.changelist=1066680
    ro.product.cpu.abi2=armeabi
    ro.product.manufacturer=samsung
    ro.product.locale.language=en
    ro.product.locale.region=CA
    ro.wifi.channels=
    ro.board.platform=msm8660
    # ro.build.product is obsolete; use ro.product.device
    ro.build.product=SGH-I757M
    # Do not try to parse ro.build.description or .fingerprint
    ro.build.description=SGH-I757M-user 2.3.6 GINGERBREAD UGLCA release-keys
    ro.build.fingerprint=samsung/SGH-I757M/SGH-I757M:2.3.6/GINGERBREAD/UGLCA:user/release-keys
    # Samsung Specific Properties
    ro.build.PDA=I757MUGLCA
    ro.build.hidden_ver=I757MUGLCA
    ro.build.changelist=1066680
    ro.tether.denied=false
    ro.flash.resolution=1080
    # end build properties
    #
    # system.prop for surf
    #
    
    rild.libpath=/system/lib/libril-qc-qmi-1.so
    rild.libargs=-d /dev/smd0
    persist.rild.nitz_plmn=
    persist.rild.nitz_long_ons_0=
    persist.rild.nitz_long_ons_1=
    persist.rild.nitz_long_ons_2=
    persist.rild.nitz_long_ons_3=
    persist.rild.nitz_short_ons_0=
    persist.rild.nitz_short_ons_1=
    persist.rild.nitz_short_ons_2=
    persist.rild.nitz_short_ons_3=
    ril.subscription.types=NV,RUIM
    DEVICE_PROVISIONED=1
    debug.sf.hw=1
    debug.composition.type=gpu
    debug.overlayui.enable=1
    dalvik.vm.heapsize=128m
    dev.pm.dyn_samplingrate=1
    
    #
    # system props for the cne module
    #
    persist.cne.UseCne=false
    persist.cne.bat.range.low.med=30
    persist.cne.bat.range.med.high=60
    persist.cne.loc.policy.op=/system/etc/OperatorPolicy.xml
    persist.cne.loc.policy.user=/system/etc/UserPolicy.xml
    persist.cne.bwbased.rat.sel=false
    persist.cne.snsr.based.rat.mgt=false
    persist.cne.bat.based.rat.mgt=false
    persist.cne.rat.acq.time.out=30000
    persist.cne.rat.acq.retry.tout=0
    
    ro.hdmi.enable=true
    lpa.decode=true
    lpa.use-stagefright=true
    
    #system props for the MM modules
    
    media.stagefright.enable-player=true
    media.stagefright.enable-http=true
    media.stagefright.enable-fma2dp=false
    media.stagefright.enable-aac=true
    media.stagefright.enable-qcp=true
    
    #
    # system props for the data modules
    #
    ro.use_data_netmgrd=true
    persist.data_netmgrd_nint=16
    
    #
    # system props for SD card emulation of emmc partition
    #
    ro.emmc.sdcard.partition=17
    
    #system props for time-services
    persist.timed.enable=true
    
    # System props for audio
    persist.audio.fluence.mode=endfire
    persist.audio.vr.enable=false
    
    #
    # system prop for opengles version
    #
    # 131072 is decimal for 0x20000 to report version 2
    ro.opengles.version=131072
    
    #
    # system prop for Bluetooth Auto connect for remote initated connections
    #
    ro.bluetooth.remote.autoconnect=true
    
    #
    # system prop for Bluetooth FTP profile
    #
    ro.qualcomm.bluetooth.ftp=true
    #
    # system prop for requesting Master role in incoming Bluetooth connection.
    #
    ro.bluetooth.request.master=true
    # system property for Bluetooth discoverability time out in seconds
    # 0: Always discoverable
    # Disalbe because of discoverable timeout concept
    #debug.bt.discoverable_time=0
    
    # System property for cabl
    ro.qualcomm.cabl=1
    ro.sf.lcd_density=320
    
    
    # System property for SIM
    persist.radio.apm_sim_not_pwdn=1
    
    # System property for SMS
    persist.radio.sms_sync_sending=1
    
    # Vlingo launch key, search key long press = 2/home key double click = 1(default)
    ro.vlingo.launch.key = 2
    
    
    #calibrated values for the HSIC params
    persist.csc.poll=1
    persist.csc.hue=0
    persist.csc.saturation=0.17
    persist.csc.intensity=0
    persist.csc.contrast=0.0
    
    #
    #System property for qemu
    #
    ro.kernel.qemu=0
    
    #
    # ADDITIONAL_BUILD_PROPERTIES
    #
    media.stagefright.enable-player=true
    dev.sfbootcomplete=0
    ro.vendor.extension_library=/system/lib/libqc-opt.so
    ro.com.google.clientidbase=android-samsung
    ro.com.google.clientidbase.ms=android-samsung
    ro.com.google.clientidbase.am=android-samsung
    ro.com.google.clientidbase.yt=android-samsung
    ro.com.google.clientidbase.gmm=android-samsung
    ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
    ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
    ro.com.google.locationfeatures=1
    keyguard.no_require_sim=true
    ro.config.ringtone=S_Over_the_horizon.ogg
    ro.config.notification_sound=01_Sherbet.ogg
    ro.config.alarm_alert=Good_Morning.ogg
    ro.config.media_sound=Media_preview_Touch_the_light.ogg
    ro.monkey=0
    ro.opengles.version=131072
    ro.secdevenc=true
    ro.wtldatapassword=true
    ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
    ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
    ro.com.google.locationfeatures=1
    ro.setupwizard.mode=OPTIONAL
    ro.com.google.gmsversion=2.3_r10
    ro.setupwizard.mode=DISABLED
    keyguard.no_require_sim=true
    ro.error.receiver.default=com.samsung.receiver.error
    net.bt.name=Android
    dalvik.vm.stack-trace-file=/data/anr/traces.txt