[Galaxy S 5 General] regnighc:
The Dilemma: Apps wont function on Rooted device, running the application on non-Vodafone firmware won’t work, can’t install Xposed on stock Vodafone firmware.

After about a week of tinkering around I've managed to get this working on my rooted device with custom kernel and xposed installed.

The biggest issue is that there really isn’t really any concise information on the subject so everything was pretty much experimental for me.

Initially I tried using Phoenix S5 Touchwiz Rom, which is built from the latest Samsung firmware for S5, this didn’t work as the SmartPass application kept prompting me to update to the latest firmware although I already was on the latest version available to Vodafone S5's, conclusion is that it’s because it was built from the unbranded FW and not VOD FW.

Things you need:

- Vodafone Branded (SmartPass supported) Phone Apparently (I actually doubt that branding matters because Vodafone don’t supply branded Samsung’s, I believe it’s just the VOD FW that counts)

- Vodafone NFC Enabled SIMcard (You can swap for one in store - It has a little nfc logo on the simcard and its basically a sim that allows the storage of your smartpass credit card details and is used to authenticate the transactions using in-built NFC)

- Be on Vodafone's new billing system (I believe that everybody is now but you can confirm over the phone with Vodafone)

- Latest Stock Vodafone Firmware (I used G900FXXU1BOE2_G900FVFR1BOE2_VOD from Sammobile)

- Latest Odin

- Latest Custom Recovery Odin flashable (I used TWRP)

- Latest SU Binary flashable ZIP

- Selinux Permissive kernel Flashable Zip (I used Boeffla-Kernel for Samsung Stock Android 5.0 Lollipop for G900F)

- Latest Xposed flashable zip for arm7

- Android SDK for ADB

- Samsung usb drivers for S5

- JoelDroid Lollipop Batch Deodexer V 2.4 (2.4 is very important, it doesn’t seem to work on 2.5 - http://xdaforums.com/android/software-hacking/script-app-joeldroid-lollipop-batch-t2980857)

- This Guide for DeOdexing your rom - http://xdaforums.com/sprint-galaxy-s5/general/how-to-deodex-lollipop-rom-t3065596

Unfortunately I'm a very busy guy so I can’t make this guide too comprehensive, it should be easy enough to understand but I recommend not attempting it if you are really unsure of anything.

Please Note that I offer no guarantees and you follow this at your own risk!!!

The Steps:

Official Bit...

1) Use Odin to flash the Stock VOD Firmware you downloaded

2) Boot up and install all the updates and download the Vodafone SmartPass and Wallet Apps

3) Follow the in-app instructions to configure the wallet and smartpass, it should detect your NFC secured simcard and automatically configure. You may need to sign up if you have not already.

4) Ensure you have SmartPass and Wallet working and test it at a pay terminal - if you have any issues during setup you should call the SmartPass team using the phone number in the app.

If your payment gets declined phone the SmartPass team to make sure your NFC chip is activated on the wallet.

5) If you wish to use it on the London Underground or busses you have to login to your Oyster Account online and add the Smartpass virtual card details to your Oyster account as a contactless card, otherwise it’s not authorised and you will get a Red-Light

On to rooting... [Knox will be tripped here]

6) Flash Custom Recovery using Odin

7) Run a Nandroid Backup

8) Flash your permissive kernel in recovery

9) Flash your su binary in recovery

10) Boot device (DONT open Vodafone apps from this point)

11) Enable USB Debugging in developer options and follow the guide listed above for DeOdexing your rom (Remember to only use v2.4)

12) Transfer the flashable ZIP of your deodexed apps you made over to your device

13) Reboot into recovery and flash the Deodexed apps ZIP file then clear Dalvik and cache

14) Perform 1 Boot up - May take a long time to boot

15) Another Backup if you wish might be good at this point

16) Reboot into Recovery and flash Xposed

17) Boot up and install both Xprivacy & Rootcloak Lollipop versions (you may need to enable test versions in settings before you will see them in the download list)

18) Enable both modules and reboot to activate them

19) Add Vodafone SmartPass & Wallet to the Rootcloak list

20) In Xprivacy you need to be very specific with what you deny - See below for details

Xprivacy Configuration

SmartPass App under Shell you must deny only 'exec' & 'su'

Wallet App under Shell you must deny only 'su'

21) Launch the smartpass app and check that it still opens up correctly, displays the NFC symbol and allows you to open the wallet and displays the balance and transaction history.

22) That’s it!

If you get any errors or warnings in the app or if you can’t open the wallet portion, then make sure your xprivacy settings are exactly correct as per above and then delete data for both SmartPass and Wallet apps or even reinstall them as you probably opened them before you finished the process.

Also enjoy your Rooted, Deodexed, Selinux Permissive Stock Vodafone Rom.

I hope this helps anyone experiencing issue with these apps as it was a proper ball ache for me.