yashsingh1/xdaforums huggingface dataset:
[Android General] Ben-B:
Looking at the OP, it says click here to see methods that don't work, but where is the method that does work shown?

---------- Post added at 04:15 PM ---------- Previous post was at 04:03 PM ----------

Sorry, my bad! I thought when you said patched, that the methods had been updated, fixed, by patched you mean all known methods are broken?
[Android General] qwerty1q:
Same here, unrooted with SuperSu but Pingit and Barclays MB still report root ( Galaxy Grand 2)

I used custom roms on s4mini duo and Note 2, unrooted with SuperSu and both bank apps work (even after upgrading them)
[Android General] Sumanji:
I'm on CM11 7th April Nightly for the XT925... I disabled root immediately after first boot.

Barclays app is still refusing to play ball... grrr :(
[Android General] Hawke84:
Is this project dead now?
[Android General] ehsanmp:
I really, really hate this bank.
[Android General] dan1812:
Is there any news on the progress for this? Not to sound impatient or anything but t's been a good month now...
[Android General] fma965:
Not by me but I just gathered the information, afaik there isn't any new fixes
[Android General] speculatrix:
I updated my Xperia Z to KitKat just yesterday, and I didn't re-root my phone, and I don't have supersu, supseruser or busybox installed.

It's pretty much plain vanilla: adb OFF, unknown sources OFF, verify apps ON.

I deinstalled/reinstalled the app and everything. There's nothing in the internal virtual SD card which looks like Barclay's data.

And yet the app still insists I am rooted. ;-(

The annoying thing is that I borrowed an old Samsung Galaxy Wifi5 to get it updated. I installed Cyanogen Mod, it was totally hacked, rooted etc, I simply hid superuser.apk by renaming it, ran an old version of the banking app and it worked with no hassle!
[Android General] fma965:
You can't use a old version so not sure how that made sense.
[Android General] samory:
any update that bypass the root for v1.9 ? and pingit as well ???

thx
[Android General] beforeme:
Same problem here.

Seems like Root Cloak doesn't work with last version of Barclays app.

Any fix or suggestion would be really appreciated.
[Android General] myotai:
status 7

Getting the above error whenever I flash ANY of the 'fix' files posted here - Any ideas?
[Android General] fma965:
uh none of these work any more anyway.
[Android General] johhn:
just read a comment on Barclays, the future looks very bleak for this app to support rooted devices.

https://www.yourbank.barclays.co.uk...urExperiences/article-id/479/page/11#comments

by EmTeedee Friday

Options

I talked to an account manager in our local branch recently. After checking some internal discussion board, he said the app will _never_ be allowed to run on rooted devices. So what does "Under Review" on this idea mean? Is this just left open to keep people hoping and not switching banks?
[Android General] pietrostopponi:
My phone crashed

[MENTION=4348417]fma965[/MENTION]

Hello I have tried method one but after I istalled xposed my phone crashed waht can I do?

Thank you
[Android General] fma965:
as is clearly stated in the OP, none of these methods work... therefore i no longer support this thread. Sorry.
[Android General] vanessaem:
OP,

Since none of your methods or fixes work anymore and you are no longer providing support for this thread, this thread will be closed.

It's pointless to keep a thread open just so that you can tell people nothing works and nothing will be supported or updated.

If you would like it to be opened again, please contact me or any of the other members of the moderating team.

Regards
[Android General] fma965:
Firstly sorry delay, Apparently im not subscribed to this thread :( my bad.

1. It's just the su binary (since you un-rooted your phone when "full unroot" was pressed)

2. No idea sorry, Feel free to try? but i assume you would need a old version of the APK aswell.

And point 2 is obviously the answer for you aswell [MENTION=4728609]sferg.410[/MENTION]

Also about the ROM root, It may be possible to make the normal ROM superuser (whatever that is for your ROM) to work but this works and therefore thats good enough for me, Personally i don't use superSU though i use.

https://play.google.com/store/apps/details?id=com.koushikdutta.superuser

DOES ANY 1 KNOW HOW TO BACKUP THE APP DATA SO IT CAN BE RESTORED AND STILL WORK? TB DOESN'T WORK
[Android General] RobPitt:
I got this to work with the Domination ROM Superuser system like this (should work for other Superuser systems)

0. Copy /system/xbin/su to /sdcard

1-6. As per original post

7. Install Barclays app

8. Run Barclays app and enter all the data until you are logged in.

9. Go to Barclays in the Google Play store. Press the menu button and untick "Auto Update"

10. Mount /system as r/w (ES File Explorer can do this or do it from a terminal)

11. Copy /sdcard/su to /system/xbin

12. Set su permissions as Set UID/GID and readable/executable. In the terminal this is accomplished with:

chmod 6755 /system/xbin/su

Or in ES File Explorer, navigate to /system/xbin and long-press su, press "More" then "Properties" and press the "Permissions" button. Make the properties look like this (that is the three boxes under "Read" and "Execute" checked, the first box under "Write" checked and both "Set UID" and "Set GID" checked).

Now Barclays should still run and your previous Superuser setup should be restored.

I tried restoring the build.prop ro.build.tags to test-keys but this resulted in Barclays detecting the root again and refusing to run. The lines you are supposed to remove from build.prop were not present on my system.

Step 9 should be added to the original post.
[Android General] RobPitt:
The backup option from the app manager in ROM Toolbox Pro and possibly the free version ROM Toolbox Lite backed up and restored a working Barclays app here. Note I only uninstalled it, I didn't erase anything else so it's possible the backup wouldn't be successful across 2 different ROM installations. Give it a try and post if it succeeds or fails.
[Android General] fma965:
Since i just had all my accounts reset i assume i have 2 more free slots for mobile banking, So next time i change ROM i will use the backup from those apps and see what happens

Also did you restore data aswell so you didn't have to re-register?
[Android General] fma965:
"9. Go to Barclays in the Google Play store. Press the menu button and untick "Auto Update"" Added to op :) , Completly forgot to mention this, I guess i assumed people would do this already.

UPDATE: OP updated with easier method, Added above method.
[Android General] RobPitt:
Yes, I restored the data too.
[Android General] fma965:
ok, well i will try it next time i change ROM :)
[Android General] RobPitt:
My Barclays app mysteriously detected root again and has locked me out with error RG24 so I had to revisit this.

You recommend people use Tiatnium Backup to detach the app from the market but when I did this, the link restored itself and the app auto-updated. A searched revealed MyBackup Pro can also detach apps from the market so I bought this and tried it but got an error saying it could not open market db. A search on this revealed this post claiming you can no longer detach apps from the market, which appears to be true.
[Android General] fma965:
Yes i am also getting root detected but its due to it being updated even though i have disabled autoupdates but it still updates WTF?
[Android General] RobPitt:
They've changed something. I did a full system restore from TWRP recovery to a point when it worked and as soon as I logged on it gave me RG24 error. It hasn't updated the version, which is still 1.3.3 but it no longer works.

Maybe they saw this topic and changed it to prevent our workaround?
[Android General] KidCarter93:
It worked on my rooted N7 as default a while ago. It was quite funny actually because I was working for them at the time so I tested the app before they released an update. They told me it wouldn't work if rooted (for security reasons) and yet I was able to install it just fine.

They didn't have a clue how to make it work only on unrooted devices but I guess they must've got there in the end :p
[Android General] fma965:
uh something weird going on here, it says I'm rooted, I reload it , it works fine, I reload it, says I'm rooted, WTF
[Android General] fma965:
tell Barclay's to get there act together and stop blocking power users, :)
[Android General] deanr1977:
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
[Android General] RobPitt:
Even if I use SuperSU to unroot the phone it won't work on Domination ROM.
[Android General] alfei:
I can confirm that this method works on the Galaxy S3 running CM10.1 Nightlies. Thank you very much!

However i will be writing a stern email to Barclays about these apps. Its absolutely ludicrous why they don't allow rooted users to run their apps. Can anyone alert me to any serious security issue that running on root would allow?
[Android General] KidCarter93:
I don't work for them anymore so I can't do a lot unfortunately :)
[Android General] KidCarter93:
One such case would've been with certain exynos devices a while ago when there was an exploit which could gain root access simply from installing an apk. Something like that could gain control and infiltrate anything on the device instantly without us even knowing.

I doubt that'll be the reason why they won't allow root users though as all they said to me was that it was for security reasons. That could mean anything to be honest.

SGS2 FAQ | HTC One FAQ
[Android General] alfei:
Surely that would mean that the same "security issues" would be present regardless of whether the user was rooted or not previously? Oh Barclays... :P

I have asked them for an explanation with regards to Android as to why it's not allowed, so now i'm just waiting for a reply.
[Android General] fma965:
this was what i was thinking,

Basically a phone is more secure with root than without. Most rooted phones run custom ROM's with exploits patched eg the recent masterkey exploits. So therefore a rooted device is safer imo. but whatever the corporations rule and they always will (even in 2077 according to continuum xD)
[Android General] KidCarter93:
Yeah they would be Barclays aren't the most tech savvy people around ;)

I don't advise asking them on there Facebook page though. You'll be unlikely to get a response because I just made a post on the UK page and I doubt I'll get a response to it :p

SGS2 FAQ | HTC One FAQ
[Android General] Yummerzzz:
I can also confirm this working on PACman ROM for the HTC One X, actually, I did not (and could not, led to reboots) remove the ro.modversion= line with Build.prop editor, but I left it and it worked fine.
[Android General] fma965:
Yeah just to clarify the information regarding the ro.mod and ro.cm lines seem to have been BS as i have also just confirmed that those lines are not important, OP updated.
[Android General] Iceax123:
Please bear with me here (im a noob)

Ive downloaded build prop editor but my section already reads : ro.build.tags=release-keys

Can i just crack on and flash the zip etc?

Thanks

A
[Android General] fma965:
Yes you should be good to go, Hope you appreciate the fast response as-well :)
[Android General] Iceax123:
Thanks just on the phone as i guess ive hit the device limit.

PS yes great response thanks indeed ;)

Andy
[Android General] fma965:
did you get rp029 or something like that, if so yeah you have, have fun the guy i spoke to couldn't speak english very well at all :( no offense or racism intended just stating the facts.
[Android General] Iceax123:
I can imagine this may be hard work.

Andy
[Android General] fma965:
Yes, The only hard bit is confirming account security and understanding what is being said, they will probably ask if you want to register over the phone, personally i can register quicker by typing it in but well you may be different :D
[Android General] Iceax123:
Brilliant got through it all then just bloody remembered that i don't have a pin sentry with me LOL

Thanks for the work around!

PS no i typed quicker than them too LOL

A
[Android General] fma965:
I did that when i was at a friends house, needed to check my balance, didn't have mobile banking set up, set it up... then remembered no pin sentry with me :D
[Android General] RobPitt:
This method does not work on BoBCaT ROM, neither does trying to install it after a full unroot.
[Android General] fma965:
OK...
[Android General] i860:
Hi

I unroot and flash the zip fix, install the Barclay 1.3.3 and all fine. Reinstall the supersu and i ca not starts ( can not find supersu binary ) i am on 4.3 jwr66v. I had to flash the supersu on twrp but now the banking is not working. Any ideas ?
[Android General] fma965:
just move the supersu app from /system to /data :)
[Android General] i860:
Sorry to be a pain, can you please show me the path and the files which has to be moved ( cut and past ?)

NVM i manage with this

Originally Posted by Reload147

The Reinstalling worked ace!

What I did by mistake though-

In SuperSU Settings:

1) Full unroot

2) Install Mobile Banking from Market

3) Go through the steps of activating your account in the app

4) Flashed SuperSU from zip http://xdaforums.com/show....php?t=1538053 From Recovery. Because After full unroot I tried installing though market and got error binary cannot be installed.

5) In SuperSU update binary

In SuperSU Settings

6) Reinstall

7) Download SuperSU from Market and update binaries

Thank You!!
[Android General] jed84:
I have the same issue (HTC One X).

Any idea how to fix it?
[Android General] Phoenix09:
deleted for now
[Android General] fma965:
Hi great work, Could you please post a guide on how you modified this APK so i can do the same thing and make sure no dodgy business is going on :) Thanks.
[Android General] fma965:
Why did you remove your post? - :'(
[Android General] Phantom Pt. II:
What does the flashable zip do? I tried temporary unrooting my phone but that didn't do the trick to get the App working.
[Android General] RobPitt:
Yes I'd like to know at the very least what app(s) you used. I've dabbled with cracking on x86 so I'm curious about it on Android.

Can you put it back again?
[Android General] RobPitt:
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.
[Android General] x7nofate:
only method post by ThePureHeart in secon post work for me. ot took a lot of time but it was worth it:good:
[Android General] fma965:
there is no method in the second post???

I see you thanked the second post but the second post was quoting my first post...
[Android General] x7nofate:
No offense but I tried your method and it didn't work. When I tryed method in second post it worked

sent from samsung galaxy s4 active
[Android General] fma965:
yeah but there is no method in the second post,

do you know what a quote is?
[Android General] x7nofate:
right, sorry for that, but where is your post fma965 which is quote in second post?
[Android General] fma965:
no worries wasn't sure how to explain it. my first post has since been edited as some of the steps were not needed. to clarify all you need to do is full unroot > flashh zip > then download supersu and install Barclay's maobile banking.
[Android General] fma965:
Looking in to modifying the APK :)

Here is the latest APK if you want to experiment - https://dl.dropboxusercontent.com/u/19244873/com.barclays.android.barclaysmobilebanking-1.apk
[Android General] fma965:
ok so i gave up with modifying the APK to advanced for me, im not a developer for android.

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

NEW METHOD Added, Automated Method
[Android General] gazza1988:
Had a email back from barclays.

Dear Gavin,

*

Thank you for your email dated 25/7/13.

*

Although having root access does not directly affect the app itself, it may allow 3rd party apps onto the device that otherwise couldn’t be installed unless the device was rooted that could exploit our app. To avoid this from happening and to protect user data, installing BMB on a rooted device is blocked.*

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

*

Our website : http://www.barclays.co.uk

*

Yours sincerely,

*

Tracey Truslove

Barclays Bank plc

*

Original Message Follows: ------------------------

Hello,

Why is the app not available for rooted users?

Is it security? what exactly is the security issue.

Please don't fob me off with some generic response.

If it is MY security I would like the option to take the risks involved not being forced by a bank whether my phone is to be rooted or not.

Thanks

Gavin
[Android General] ezpc98:
Works for Huawei G300

Cool! method 1 worked on my Huawei G300.
[Android General] Phantom Pt. II:
[delete]
[Android General] Phantom Pt. II:
Thanks for that. Worked like a charm. + I believe after re-signing it, it doesn't see that there's an update on the Play Store. :)

Wish I could figure it out for the newest release as well. Anyone know the full changelog from 1.3.3 to the newest? Anything essential or important that got introduced after 1.3.3?
[Android General] fma965:
can you post the apk please :)
[Android General] Phantom Pt. II:
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:

.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.
[Android General] fma965:
now I can understand how it works better thanks
[Android General] Phantom Pt. II:
Let me know if it works on your phone as well. ;) I am awaiting my info to be able to use mobile/internet banking (new customer)
[Android General] kasapin:
Any idea if this new method will work on new versions of the app or it has to be 1.3.3 ?

Regards
[Android General] fma965:
currently only 1.3.3 neither of us are experts in smali however its most likely quite simple for someone with knowledge

or do you mean the method on op? if so again only 1.3.3 currently
[Android General] RobPitt:
This still gives me RG24 error (phone is rooted). If anyone else is still having problems and cares to work on the disassembly, maybe looking for RG24 will reveal where it's being detected.
[Android General] Phantom Pt. II:
Hmm that's odd. And you Uninstalled your Barclays App before installing this version?

It works here. Maybe I'll get an error once I can actually log in. Haven't received my internet banking information yet.

I'll report back if it does error.
[Android General] RobPitt:
Yes I uninstalled first. The error occurs after the screen where you enter account number and sort code. If you have a pinSentry device you should be able to login with your debit card and not need to wait for the details.
[Android General] Phantom Pt. II:
I'll receive my PINsentry next week. I'll let you know then if the App works all the way.
[Android General] fma965:
I will check when I get time :) currently already patched my build.prop though
[Android General] Phantom Pt. II:
Activated mobile banking at the ATM. All seems to work fine on my end. Logged in with no issues.
[Android General] stalli0nUK:
which file do I move please, where is the location of superuser. (i use supersu)

Thanks
[Android General] fma965:
use the automated method on op
[Android General] lindsey80:
need to upgrade

Hi,

I have been using the app on my rooted htc one x for months. The other day tried to use and now getting this error...

00002 sorry you cannot continue until you upgrade to latest version

I have tried all the workarounds and cannot get anything to work as it detects the root? Any advise would be great thanks.
[Android General] fma965:
No one has got this working on latest version yet, And it seems now they are forcing latest version. Well now we must wait or decompile > reverse engineer > patch and then recompile :)

EDIT: just tested works fine on 1.3.3 still.

EDIT2: Trying to crack 1.4.2 :) opening 1334 files in notepad++ currently xD
[Android General] lindsey80:
HELP, i have tried everything all three methods and still get the message that it detects the root. Any ideas where I could be going wrong?

Thanks in advnace
[Android General] fma965:
yes make sure your following the steps correctly. Send me your build.prop located at /system/build.prop and also a list of /system/app and /data/app.
[Android General] RobPitt:
I tried method 1 in BoBCaT ROM and it doesn't work. Also, my launcher Smart Launcher Pro didn't see the Barclays app and I had to run it through the App Manager in ROM Toolbox Pro.

Here's a suggestion for your cracking based on my limited cracking experience in Windows and Linux, use a recursive grep -r to search the disassembly, look for a section rooted message, "support rooted", this returns strings.xml containing the message in a string called NotSupportedContent1. Grepping this returns it contained in res/layout/nreg_rooted_device.xml. Looking for nreg_rooted_device reveals returns ./smali/com/barclays/android/barclaysmobilebanking/R$layout.smali assigning it a value of 0x7f03006a. Grepping for this returns R$layout.smali, public.xml and ./smali/com/barclays/android/registration/NRegRootedPhone.smali (on line 167) suggesting the latter is the only place it's called from. This looks like the onCreate method of NRegRootedPhone. I don't know smali or java so I get stuck here, NRegRootedPhone is only mentioned in one other file, ./AndroidManifest.xml on line 34. Not knowing what I'm doing, I'd first try removing it from the manifest and if that didn't work, I'd need to learn some smali so I can patch ./smali/com/barclays/android/registration/NRegRootedPhone.smali or work out how it is called.

Grepping just for root reveals a file ./smali/com/barclays/android/application/BMBApplication.smali which looks like it contains the magic. Patch out all the tests in there and see how it goes.

Oh I found another isRootedDevice method in ./smali/com/barclays/android/container/DeviceData.smali on line 1226.

Finally, there is MSG_ROOTED_TXT on line 82 of ./smali/com/barclays/android/ContainerCode/MSGConstants_en.smali. This is the only place MSG_ROOTED_TXT appears so I'm not sure what it does.

I can't ser any calls to the isRootedDevice methods using grep, so I'm not sure how smali calls these methods.
[Android General] fma965:
Hi thanks but i already have found all the files i can by searching root :)
[Android General] RobPitt:
Woo, you found some I missed as well, should have used grep -rni. Try rebuilding the apk with these changes. I don't know smali so I might have broke it but apart from what looks like root checks while logging in I tried to jump, it was quite straightforward.
[Android General] fma965:
I think they are now checking root using native c code as there is a function called "CheckRootInC"

which I can't just return false
[Android General] Hawke84:
Hi,

is there any way to do this without flashing? i have stock rooted with no custom recovery?
[Android General] fma965:
manually do what the recovery zip does
[Android General] Hawke84:
will it work in terminal?
[Android General] fma965:
yeah probably.