[MOD][GUIDE] Removing SysScope - Permanent "Official" Device Status [update 8-12-13]

Aou

Senior Member
Aug 4, 2008
794
777
0
Arizona
Samsung must have read this thread. I didn't look at MF3, but the newer international releases they made major changes to status.smali. :mad:

sent using xda Premium
Not good. I know that in MF3, it was only minor changes. It took a little extra effort, plus the string number changed for "Official". But otherwise, the mod was still easily possible.

I created an MF3 version (and flashable zip), included as File#9 in this thread. But this is mostly useless for existing MF3 users that only have root, and no recovery/odin yet.
 
  • Like
Reactions: Dean1650

Dean1650

Senior Member
Dec 11, 2012
465
178
0
Webster
Not good. I know that in MF3, it was only minor changes. It took a little extra effort, plus the string number changed for "Official". But otherwise, the mod was still easily possible.

I created an MF3 version (and flashable zip), included as File#9 in this thread. But this is mostly useless for existing MF3 users that only have root, and no recovery/odin yet.
I have been working with MGA. Made some changes to stock kernel and that darn screen came back to stay. When I found your thread, I had hope. Half way through the smali edits I noticed all the changes. I did play the odds and tried to replace the entire smali but my device had different thoughts about that. Had to go back to mdl and start over. Looks like you put a big effort into this. Hats off to you.

sent using xda Premium
 

Aou

Senior Member
Aug 4, 2008
794
777
0
Arizona
I have been working with MGA. Made some changes to stock kernel and that darn screen came back to stay. When I found your thread, I had hope. Half way through the smali edits I noticed all the changes. I did play the odds and tried to replace the entire smali but my device had different thoughts about that. Had to go back to mdl and start over. Looks like you put a big effort into this. Hats off to you.

sent using xda Premium
Post your unedited status.smali, and if I get time this weekend, I'll take a look to see how do-able it is.
 
  • Like
Reactions: Dean1650

polish_pat

Senior Member
Nov 30, 2011
1,823
488
0
Montreal
This reallu sucks cajse im on mg1 with custom rom and kernel and cal use my miracast receiver because im rooted and have custom status. This really sucks

Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
 

mikew29

Senior Member
Mar 10, 2008
293
49
48
Flashable Zip?

Hi,
Any chance of a flashable zip of this for I337UCUAMDL? I'm back to 'stock' and would like to do this; but editing in java is waay over my head.
Thanks and I appreciate the help.
 

Aou

Senior Member
Aug 4, 2008
794
777
0
Arizona
Thanks for taking a look. I really appreciate this. Don't worry if it looks like too much work.

View attachment 2177796
Hi,
Any chance of a flashable zip of this for I337UCUAMDL? I'm back to 'stock' and would like to do this; but editing in java is waay over my head.
Thanks and I appreciate the help.
Whew, long weekend but didn't even login to XDA. I'll see what I can get done today. MDL shouldn't be a problem, I've got a copy of the finished .apk that I can slip into the flashable zip I have already, and upload it.
 

Aou

Senior Member
Aug 4, 2008
794
777
0
Arizona
I've update the OP (cleaned it up a bit), and added flashable zips for MDL and MF3.
@Dean1650 - I looked into your Status.smali. Indeed it's very different than the I337 version, however it was similar enough to make the same changes. It just took a lot more careful editing, but the differences between MDL and MF3 were similar between MF3 and MGA. Also I had to go learn what the differences between "registers" and "locals" were. :)

Attached is the modified Status.smali for MGA.
 

Attachments

Dean1650

Senior Member
Dec 11, 2012
465
178
0
Webster
I've update the OP (cleaned it up a bit), and added flashable zips for MDL and MF3.

@Dean1650 - I looked into your Status.smali. Indeed it's very different than the I337 version, however it was similar enough to make the same changes. It just took a lot more careful editing, but the differences between MDL and MF3 were similar between MF3 and MGA. Also I had to go learn what the differences between "registers" and "locals" were. :)

Attached is the modified Status.smali for MGA.
That's sort of where I gave up. I saw the register/local difference and not being very good at smali, quit. It is extremely good of you do to this. I will update you when I try this this evening.

sent using xda Premium
 

Dean1650

Senior Member
Dec 11, 2012
465
178
0
Webster
I believe you can add MGA to your list. I compiled settings with the smali and tried to break Official. All the changes I made to stock kernel and installing busy box worked great. Great job and thanks so much. This is a 5 star thread.

sent using xda Premium
 
  • Like
Reactions: Aou

Aou

Senior Member
Aug 4, 2008
794
777
0
Arizona
I believe you can add MGA to your list. I compiled settings with the smali and tried to break Official. All the changes I made to stock kernel and installing busy box worked great. Great job and thanks so much. This is a 5 star thread.

sent using xda Premium
Awesome, glad to hear of the success! I've added this Status.smali to post#2.
 

slapdaddy

Senior Member
Apr 9, 2008
386
84
0
Louisiana
I'm on stock rooted MDL and I had no custom screen before flashing. I flashed the MDL zip and upon reboot, the custom unlocked padlock status screen showed up. I rebooted again - still there. Then I powered down instead of rebooting and turned the phone back on... Official S4 screen. :D So I rebooted a couple times to verify and it's still there... Whew.

So I have a question. Is this normal? Should I be worried that the flashable zip did not work?

Sent from my Galaxy S4.
 

Aou

Senior Member
Aug 4, 2008
794
777
0
Arizona
I'm on stock rooted MDL and I had no custom screen before flashing. I flashed the MDL zip and upon reboot, the custom unlocked padlock status screen showed up. I rebooted again - still there. Then I powered down instead of rebooting and turned the phone back on... Official S4 screen. :D So I rebooted a couple times to verify and it's still there... Whew.

So I have a question. Is this normal? Should I be worried that the flashable zip did not work?

Sent from my Galaxy S4.
That's pretty strange o_O. I've heard many people on MDL rooted say that their custom/official status was very finicky, depending on whether or not SysScope found their root/busybox/whatever.

So, I don't know what caused the temporary "custom" screen, or why the reboot healed it... but it shouldn't be a problem going forward. The only things that can bring it back now are:
  • Returning to stock (and then making a /system modification like rooting it).
  • Reversing the changes (restoring files).
  • Restoring a Nandroid.
  • Flashing a new stock-based ROM that has SysScope included (or otherwise unmodified SecSettings.apk).
  • Flashing a Kernel or recovery that isn't lokified, and then trying to boot it. This gives that nasty warning screen about custom firmware, and then marks the boot screen as "custom".

If any of the above happen, you'll have to find some creative way of getting the Official status back, because the "normal" way this returns is for SysScope to scan the system, find that it's stock, and then mark the boot screen as official. I usually just take a nandroid, Odin-to-stock, boot it once/fully (to flag it as Official), reboot, and restore nandroid that has the mod in-place already.
 
  • Like
Reactions: Shadyguy

slapdaddy

Senior Member
Apr 9, 2008
386
84
0
Louisiana
Okay that's good to know. But I pretty much thought it was due to that busybox reason as well. But no custom screen today so I think I'm all set! Every dev should cook this into their ROMs as I'm sure they will. Great work!

Sent from my Galaxy S4.
 

angelosabatini

Senior Member
Oct 3, 2009
91
11
28
Hi Aou,
I have a note 2 GT-N7102 with SVA Custom Rom 3.1 http://forum.xda-developers.com/showpost.php?p=43736249&postcount=590
with a clockwork touch recovery;
I want the allshare cast dongle to work , since the MHL does not work on this phone ( shame on Samsung for this).
Do you think you could try to make a flashable zip for this custom rom ( for this phone unless you use the chinese original rom, the SVA rom is the best custom rom that is available ).
thanks for all you efforts.
 
Last edited: