[12/29] Restore for MJ5 --Doesn't trip Knox and optionally provides root--

seetully

Senior Member
Nov 22, 2012
62
4
0
Fabiooli- one of the images from step 2 wasn't flashed correctly. Try from step 2 and repeat

Anthonok - on heimdall, go to the last tab and select detect device, then back to the second tab to select no rebootand start

Roundtableprez - try connecting to a different USB port

Seetully- godaddy blows. I applied at dev host, and will reupload there when i hear back.
ok thanks man appreciate it..phone is soft bricked @ the moment until i can get that img file..
 
  • Like
Reactions: fabiooli

fabiooli

Senior Member
Jun 29, 2010
57
6
38
Belo Horizonte
Fabiooli- one of the images from step 2 wasn't flashed correctly. Try from step 2 and repeat

Anthonok - on heimdall, go to the last tab and select detect device, then back to the second tab to select no rebootand start

Roundtableprez - try connecting to a different USB port

Seetully- godaddy blows. I applied at dev host, and will reupload there when i hear back.
Worked just fine after downloading the files again! Thank u so much. Now I'm wondering if I'll keep through step 11.
 

seetully

Senior Member
Nov 22, 2012
62
4
0
Updated img host. Downloads away
Thanks potato! Im up and running on MJ5 baseband with with a build of mi9...

I think im getting stuck at step 12..i placed all the respective files in the correct locations

i then run this in my command window...

adb shell

su
mount -o rw,remount /system
sh /sdcard/update.sh
reboot

when i run the sh /sdcard/update.sh it says a whole mess of times "apply_patch: not found"

---------- Post added at 07:54 PM ---------- Previous post was at 07:12 PM ----------

Thanks potato! Im up and running on MJ5 baseband with with a build of mi9...

I think im getting stuck at step 12..i placed all the respective files in the correct locations

i then run this in my command window...

adb shell

su
mount -o rw,remount /system
sh /sdcard/update.sh
reboot

when i run the sh /sdcard/update.sh it says a whole mess of times "apply_patch: not found"
Ok so i had to set permissions and group ownership like 10 times before it suck and recognized the apply_patch file in my /system/bin folder


ALL IS GOOD THANKS TO EVIL POTATO FOR THIS THREAD!
 

drakeymcmb

Senior Member
Jun 22, 2012
2,705
7,094
0
30
Tinley park,il
Rename apply_patch.bin to just apply_patch. And make sure you check everybox for permissions. I recommend you use root explorer for this.

Sent from my SM-N9005 using XDA Premium 4 mobile app
 

evilpotatoman

Senior Member
Jan 29, 2010
135
654
133
Charlotte
Make sure you unzip the contents of patch.zip to the root of your internal sdcard then
Type this In your adb window

su
(Make sure you accept the su dialog on your phone)
mount -o rw,remount /system
chown 0.2000 /system/bin/apply_patch
chmod 0755 /system/bin/apply_patch
cd /sdcard
sh ./patch.sh
 

ahmarchi

Senior Member
Aug 20, 2008
1,065
180
63
Greensboro
Strange my WiFi forgets my password every time I reboot.

Sent from my SAMSUNG-SM-N900A using XDA Premium 4 mobile app
This seems to be a problem.... reverting back to mj5 seems to carry the rim problem of wi Fi not connecting. I have it to. But since jedi is working 100% perfect I. Just gonna stay with until we get a proper odin flash.

Sent from my SM-N900A using XDA Premium 4 mobile app
 

evilpotatoman

Senior Member
Jan 29, 2010
135
654
133
Charlotte
This seems to be a problem.... reverting back to mj5 seems to carry the rim problem of wi Fi not connecting. I have it to. But since jedi is working 100% perfect I. Just gonna stay with until we get a proper odin flash.

Sent from my SM-N900A using XDA Premium 4 mobile app
I have noticed this too. I seemed to have corrected the issue by typing this in the term.apk:

su
svc wifi disable
svc wifi enable

it connects at least... I'll keep at it, it sounds like a permissions issue.
 

ahmarchi

Senior Member
Aug 20, 2008
1,065
180
63
Greensboro
U think that code can fix the custom.roms issue?? I'm a give it a try right now

Update. Tried it and no go on the custom rom auto connecting on a reboot

Sent from my SM-N900A using XDA Premium 4 mobile app
 
Last edited:

ahmarchi

Senior Member
Aug 20, 2008
1,065
180
63
Greensboro
Prior to restoring yes, but my WiFi didn't work at all when I did that. Wouldn't even turn on, and shouldn't this have wiped everything anyway?

Sent from my SAMSUNG-SM-N900A using XDA Premium 4 mobile app
So your WiFi isn't working at all anymore???? Yikes I think @Drakey ran into the same problem

Sent from my SM-N900A using XDA Premium 4 mobile app
 

Anthonok

Senior Member
Jul 21, 2010
1,389
209
0
St. Cloud
So your WiFi isn't working at all anymore???? Yikes I think @Drakey ran into the same problem

Sent from my SM-N900A using XDA Premium 4 mobile app
No. It didn't work at all when I did the T-Mobile ROM thing. As some people encountered it was just grayed out. Agmfter using this method to restore my WiFi looses its password every time I reboot, same as some people had when flashing some Roms with kn0x0ut.

Sent from my SAMSUNG-SM-N900A using XDA Premium 4 mobile app
 

evilpotatoman

Senior Member
Jan 29, 2010
135
654
133
Charlotte
Tbh, this method of restoring is in many ways similar to kn0x0ut. The patches are applied to running system files, and the wifi issue as a result is exactly the same.... Maybe I should port ksplice ;)
 

Anthonok

Senior Member
Jul 21, 2010
1,389
209
0
St. Cloud
Tbh, this method of restoring is in many ways similar to kn0x0ut. The patches are applied to running system files, and the wifi issue as a result is exactly the same.... Maybe I should port ksplice ;)
Hmm so any way to fix that then?
(the wifi issue I'm having I mean )


Sent from my SAMSUNG-SM-N900A using XDA Premium 4 mobile app
 

evilpotatoman

Senior Member
Jan 29, 2010
135
654
133
Charlotte
Ok, try this:

I'm gonna knix the last couple steps and re - organize a bit, so hold on to your hats...

Put this file on your ext sdcard then;

Assuming you have already flashed with this method, start at step 5.

After step 8, reboot BACK into recovery and flash the new zip file (24.....zip)

NOW boot into the system. At this point , you should be on non - rooted MJ5. Run the rldv script if you wanna root, but report back how wifi is treating you.

If this fixes it, then I'll update the OP.
 

Anthonok

Senior Member
Jul 21, 2010
1,389
209
0
St. Cloud
Ok, try this:

I'm gonna knix the last couple steps and re - organize a bit, so hold on to your hats...

Put this file on your ext sdcard then;

Assuming you have already flashed with this method, start at step 5.

After step 8, reboot BACK into recovery and flash the new zip file (24.....zip)

NOW boot into the system. At this point , you should be on non - rooted MJ5. Run the rldv script if you wanna root, but report back how wifi is treating you.

If this fixes it, then I'll update the OP.
Damn there's nothing we can flash without losing everything? I'm not home so I can't test it at the moment.

Sent from my SAMSUNG-SM-N900A using XDA Premium 4 mobile app