[GUIDE][FIX][AUTOMATION] Barclay's Mobile Banking Root Fix

Status
Not open for further replies.
Search This thread

RobPitt

Senior Member
Dec 21, 2012
136
19
41
Brighton
www.robpitt.me.uk
Not sure if allowed (please let me know if not, Moderators), but since there's modified versions of WhatsApp etc as well I'm guessing it would be ok. It's not warez.
Don't quote my name on this, but to get it to work, do the following:

  • decompile .apk with APKTool
  • open smali\com\BMBBeta\app\NRegSplashActivity.smali
  • Remove the # static fields lines up until # instance fields (the SU checks etc)
  • Edit the isRootedDevice and runRootCommand functions to be the following:
    Code:
    .method private isRootedDevice()Z
        .locals 7
        const/4 v0, 0x0 
    return v0
    .end method
    
    .method private runRootCommand()Z
        .locals 7
        const/4 v0, 0x0 
    return v0
    .end method
  • Recompile .apk
  • Sign .apk
Barclays 1.3.3 for Rooted Devices I am not responsible for anything that happens with you, your millions of $, your phone, your cat or potato salad by using this method or file.

I started with this APK, then searched for nreg_rooted_device which had an id of 0x7f03004d. This only appeared in jajajj.smali so as an experiment I commented out that line and the resulting APK (attached) works without doing anything to the phone. This is 1.3.3.

Sent from my GT-N7100 using Tapatalk 4
 

Attachments

  • barclays-133-cracked.apk
    5.1 MB · Views: 69
Last edited:

Hawke84

Senior Member
Jan 14, 2010
3,330
1,189
Worthing, UK
I started with this APK, theb searched for nreg_rooted_device which had an id of 0x7f03004d. This only appeared in jajajj.smali so as an experiment I commented out that line and the resulting APK (attached) works without doing anything to the phone. This is 1.3.3.

Sent from my GT-N7100 using Tapatalk 4

Thanks, where is that original post from?

Sent from my GT-I9505 using xda premium
 

RobPitt

Senior Member
Dec 21, 2012
136
19
41
Brighton
www.robpitt.me.uk
Thanks, where is that original post from?

Sent from my GT-I9505 using xda premium

Too lazy to scroll back through this thread or use google search with site:xdaforums.com (very handy that)? This time I will do it for you. The post is here.

As an aside, if you use Tapatalk 4 to read this forum, quotes show up with a link to the original post.
 
Last edited:
  • Like
Reactions: Hawke84

fma965

Senior Member
Nov 20, 2011
3,734
1,659
cyanlabs.net
Too lazy to scroll back through this thread or use google search with site:xdaforums.com (very handy that)? This time I will do it for you. The post is here.

As an aside, if you use Tapatalk 4 to read this forum, quotes show up with a link to the original post.
you guys do know you can click the arrow next to the username in the quote to go to the post right?
 
  • Like
Reactions: Hawke84 and RobPitt

RobPitt

Senior Member
Dec 21, 2012
136
19
41
Brighton
www.robpitt.me.uk
you guys do know you can click the arrow next to the username in the quote to go to the post right?

I do now.

I've been trying to do 1.5.1 all night, even getting as far as completely removing modified: smali/com/barclays/bmb/ui/screens/registration/RootedPhoneActivity.smali but still no joy. If I remove res/layout/nreg_rooted_device.xml the app crashes on startup with logcat saying there was a null pointer in NRegSplashActivity. I think I need to learn an Android debugger to proceed past this point. It's probably being done by the random-looking named smali files.

Sent from my GT-N7100 using Tapatalk 4
 

fma965

Senior Member
Nov 20, 2011
3,734
1,659
cyanlabs.net
I do now.

I've been trying to do 1.5.1 all night, even getting as far as completely removing modified: smali/com/barclays/bmb/ui/screens/registration/RootedPhoneActivity.smali but still no joy. If I remove res/layout/nreg_rooted_device.xml the app crashes on startup with logcat saying there was a null pointer in NRegSplashActivity. I think I need to learn an Android debugger to proceed past this point. It's probably being done by the random-looking named smali files.

Sent from my GT-N7100 using Tapatalk 4

yeah that's as far as I got too.

Sent from my Xperia Play using Tapatalk 4
 

RobPitt

Senior Member
Dec 21, 2012
136
19
41
Brighton
www.robpitt.me.uk
yeah that's as far as I got too.

Sent from my Xperia Play using Tapatalk 4

I learned a little smali and tracked down the Submit button which preceeds the root detection to smali/com/barclays/bmb/ui/screens/registration/ReviewAccDetailsActivity.smali an instance of btSubmit is passed to the OnClick method when it gets clicked. There I get lost as I don't quite understand packed-switch. There are some calls to the smali files with the weird names there and I wonder if that's where the root detection comes in.

Sent from my GT-N7100 using Tapatalk 4
 

x7nofate

Senior Member
Apr 12, 2011
576
65
Samsung Galaxy S24 Ultra
hi, I did use this method:
Method 1
1. Download ES File Explorer
2. Enable root features of ES File Explorer
3. Edit /system/build.prop (mount as RW)
Remove these lines
Code:

ro.cm.version=
ro.modversion=

And change this line
Code:

ro.build.tags=test-keys

To
Code:

ro.build.tags=release-keys

4. Download "SuperSU" from PlayStore
5. Find "Full Unroot" in the settings. And do it.
5. Flash this file ( http://puu.sh/372bd.zip ) using CWM or TWRP Recovery
6. Reboot once file is flashed
7. Download "SuperSU" from PlayStore AGAIN!
8. Load SuperSu "update binary" (Do not move app to system)
9. Download "Barclays Mobile Banking v1.3.3" (Thanks to gazza1988)
10. Setup mobile banking (Do not update)
11. Congrats your done

Method 2
Click Here

When Im in selection 7 and install SuperSu again, when I try to open I get a message: "There is no SU binary installed ans SuperSU cannot install it.This is a problem" please help
 

fma965

Senior Member
Nov 20, 2011
3,734
1,659
cyanlabs.net
hi, I did use this method:
Method 1
1. Download ES File Explorer
2. Enable root features of ES File Explorer
3. Edit /system/build.prop (mount as RW)
Remove these lines
Code:

ro.cm.version=
ro.modversion=

And change this line
Code:

ro.build.tags=test-keys

To
Code:

ro.build.tags=release-keys

4. Download "SuperSU" from PlayStore
5. Find "Full Unroot" in the settings. And do it.
5. Flash this file ( http://puu.sh/372bd.zip ) using CWM or TWRP Recovery
6. Reboot once file is flashed
7. Download "SuperSU" from PlayStore AGAIN!
8. Load SuperSu "update binary" (Do not move app to system)
9. Download "Barclays Mobile Banking v1.3.3" (Thanks to gazza1988)
10. Setup mobile banking (Do not update)
11. Congrats your done

Method 2
Click Here

When Im in selection 7 and install SuperSu again, when I try to open I get a message: "There is no SU binary installed ans SuperSU cannot install it.This is a problem" please help
Then you didn't do
5. Flash this file ( http://puu.sh/372bd.zip ) using CWM or TWRP Recovery
 

RobPitt

Senior Member
Dec 21, 2012
136
19
41
Brighton
www.robpitt.me.uk
In 1.5.1 I've stripped out nreg_rooted_device.xml and both NotSupportedContent1 and NotSupportedContent2 strings yet somehow it's still showing me the RG24 error message.

Sent from my GT-N7100 using Tapatalk 4
 

x7nofate

Senior Member
Apr 12, 2011
576
65
Samsung Galaxy S24 Ultra
This method work for the some phone about 2 weeks ago.unfortunately I have to send phone back and I received another one so tryed to do in the some way.
So what's the latest method which one you recommend?

Sent from Samsung Galaxy S4 Active
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 33
    DO NOT USE THIS TUTORIAL WITHOUT MY PERMISSION, SITES HAVE COPIED THIS AND NOT GIVEN CREDIT TO ME OR LINKED THIS POST.

    Hello well firstly i would like to say thanks to many people in this thread here http://xdaforums.com/showthread.php?t=1823649

    So be sure to thank the people who deserve it.

    CURRENT METHODS PATCHED DUE TO BARCLAYS FORCING LATEST VERSION.

    Click the "show" button below to see old methods that no longer work.

    There are 3 Methods to getting this to work. The first method is extremely simple and automated should work for everyone but untested, The second method should work for everyone (hopefully) but is harder and more time consuming. The third method will only work for people who previous had the app working.
    Method 1 (Xposed) (Credit to @HiddenRambler) NEW
    http://xdaforums.com/showpost.php?p=49296437&postcount=8


    Method 2 (Semi-Automatic)
    This will automatically patch the build.prop and install 1.3.3 barclays (make sure to not have barclays mobile banking installed before). Please show consideration by clicking thanks as this automated method took a little time as i was rusty on edify syntax.

    1. Download and flash this zip file in CWM or TWRP recovery (cyanlabs.co.uk/Automated Barclays Root Fix 1.0.zip).

    See source of above zip file.
    Code:
    ui_print("*********************");
    ui_print("Barclays Mobile Banking 1.3.3 Automated Fix");
    ui_print("Created By Fma965 @ XDA-Developers");
    ui_print("*********************");
    ui_print("- Mounting /system, /data and rootfs");
    
    run_program("/sbin/busybox", "mount", "/system");
    run_program("/sbin/busybox", "mount", "/data");
    run_program("/sbin/busybox", "mount", "-o", "rw,remount", "/system", "/system");
    run_program("/sbin/busybox", "mount", "-o", "rw,remount", "/", "/");
    
    ui_print("- Removing old files");
    delete("/system/bin/su");
    delete("/system/xbin/su");
    delete("/system/bin/.ext/.su");
    delete("/system/app/Superuser.apk");
    delete("/system/app/Superuser.odex");
    delete("/system/app/SuperUser.apk");
    delete("/system/app/SuperUser.odex");
    delete("/system/app/superuser.apk");
    delete("/system/app/superuser.odex");
    delete("/system/app/Supersu.apk");
    delete("/system/app/Supersu.odex");
    delete("/system/app/SuperSU.apk");
    delete("/system/app/SuperSU.odex");
    delete("/system/app/supersu.apk");
    delete("/system/app/supersu.odex");
    run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*com.noshufou.android.su*");
    run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*com.koushikdutta.superuser*");
    run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*Superuser.apk*");
    run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*SuperUser.apk*");
    run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*superuser.apk*");
    run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*eu.chainfire.supersu*");
    run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*Supersu.apk*");
    run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*SuperSU.apk*");
    run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*supersu.apk*");
    
    ui_print("- Extracting files");
    package_extract_dir("system", "/system");
    package_extract_dir("data", "/data");
    
    package_extract_file("buildprop.sh", "/tmp/buildprop.sh");
    set_perm(0, 0, 0777, "/tmp/buildprop.sh");
    
    ui_print("- Patching Build.prop");
    run_program("/sbin/busybox", "sed", "-i", "s/ro.build.tags=test-keys/ro.build.tags=release-keys/g", "/system/build.prop");
    
    ui_print("- Setting permissions");
    set_perm(0, 0, 0777, "/system/bin/.ext");
    set_perm(0, 0, 06755, "/system/bin/.ext/.su");
    set_perm(0, 0, 06755, "/system/xbin/su");
    set_perm(0, 0, 0644, "/system/build.prop");
    set_perm(0, 0, 0644, "/data/app/SuperuserCWM.apk");
    
    ui_print("- Unmounting /system and /data");
    unmount("/system");
    unmount("/data");
    
    ui_print("- Done - Be Sure to click thanks on XDA!");

    -----------------------------------------------------------

    Method 3
    1. Download Build Prop Editor, click "ro.build.tags" and change the "test-keys" to "release-keys" press "save"
    2. Reboot to Recovery
    3. Flash this file http://cyanlabs.co.uk/downloads/Other/Barclays_Root_Fix_v3.0.zip (if it doesn't work try this http://cyanlabs.co.uk/Barclays Root Fix v2.0.zip) using CWM or TWRP Recovery
    4. Reboot
    5. Download "Barclays Mobile Banking v1.3.3" (Thanks to gazza1988)
    6. Go to Barclays in the Google Play store. Press the menu button and untick "Auto Update"
    7. Setup mobile banking


    *If you have 3 devices registered already you will need to contact Barclays to get your accounts reset.

    DO NOT USE THIS TUTORIAL WITHOUT MY PERMISSION, SITES HAVE COPIED THIS AND NOT GIVEN CREDIT TO ME OR LINKED THIS POST.
    4
    can you post the apk please :)

    Sent from my Xperia Play using Tapatalk 4

    Not sure if allowed (please let me know if not, Moderators), but since there's modified versions of WhatsApp etc as well I'm guessing it would be ok. It's not warez.
    Don't quote my name on this, but to get it to work, do the following:

    • decompile .apk with APKTool
    • open smali\com\BMBBeta\app\NRegSplashActivity.smali
    • Remove the # static fields lines up until # instance fields (the SU checks etc)
    • Edit the isRootedDevice and runRootCommand functions to be the following:
      Code:
      .method private isRootedDevice()Z
          .locals 7
          const/4 v0, 0x0 
      	return v0
      .end method
      
      .method private runRootCommand()Z
          .locals 7
          const/4 v0, 0x0 
      	return v0
      .end method
    • Recompile .apk
    • Sign .apk
    Barclays 1.3.3 for Rooted Devices I am not responsible for anything that happens with you, your millions of $, your phone, your cat or potato salad by using this method or file.
    3
    Not sure if allowed (please let me know if not, Moderators), but since there's modified versions of WhatsApp etc as well I'm guessing it would be ok. It's not warez.
    Don't quote my name on this, but to get it to work, do the following:

    • decompile .apk with APKTool
    • open smali\com\BMBBeta\app\NRegSplashActivity.smali
    • Remove the # static fields lines up until # instance fields (the SU checks etc)
    • Edit the isRootedDevice and runRootCommand functions to be the following:
      Code:
      .method private isRootedDevice()Z
          .locals 7
          const/4 v0, 0x0 
      return v0
      .end method
      
      .method private runRootCommand()Z
          .locals 7
          const/4 v0, 0x0 
      return v0
      .end method
    • Recompile .apk
    • Sign .apk
    Barclays 1.3.3 for Rooted Devices I am not responsible for anything that happens with you, your millions of $, your phone, your cat or potato salad by using this method or file.

    I started with this APK, then searched for nreg_rooted_device which had an id of 0x7f03004d. This only appeared in jajajj.smali so as an experiment I commented out that line and the resulting APK (attached) works without doing anything to the phone. This is 1.3.3.

    Sent from my GT-N7100 using Tapatalk 4
    2
    I googled a bit and found apktool which decompiles apks then I edited the source but I can't rebuild the apk because I only have a phone, no PC and the aapt binary is for x86 Linux (I installed Ubuntu on my phone). Here is a thread that gives a whirlwind tour of how to patch apps.

    In ./smali/com/BMBBeta/app/NRegSplashActivity.smali there is a function called isRootedDevice. Probably making this always return false if you learn a little smali or maybe deleting calls to it all together should make it work.

    Sent from my GT-N7100 using Tapatalk 4
    2
    tell Barclay's to get there act together and stop blocking power users, :)

    Sent from my R800i using Tapatalk 2

    I rated the app bad 1star & emailed them & finally got a response the other Day.... basically said if u have root u can't & will never use there app!

    sent from Tapatalk2 via my Supermodded S3 using UltimaRom v13 & running Boeffla v2.12 beta7 kernel