Google Wallet Help (ADB Shell related)

haitu

Senior Member
Mar 6, 2012
149
11
0
I'm going through these instructions but they are pretty complicated for me.

Instructions for getting rid of ZIP version only <4.0.3:

  1. Open ClockworkMod Recovery
  2. Download the correct files from http://googlewallet.lukegb.com/stock/system/ that match your Android build and system - ICL53F is Android 4.0.2, yakju is GSM and mysid is LTE.


    You'll need:
    • NfcGoogle.apk
    • com.android.nfc_extras.jar
  3. Open an adb shell from your computer to your device from the directory you've just downloaded those files to
  4. Run (on device via adb shell):
    Code:
    mount /system
    mount /data
    rm /system/app/Wallet.*
    rm /system/app/NfcGoogle.*
    rm /system/framework/com.android.nfc_extras.*
    exit
  5. Run (on computer):
    Code:
    adb pull /data/system/packages.xml packages.xml
  6. Make a backup of the newly-created packages.xml file which is on your computer
  7. Open packages.xml in a text editor (which isn't notepad)
  8. Copy ALL the content
  9. Open http://googlewallet.lukegb.com/gn_packages_xml_fixer.html in a web browser
  10. Paste the content into the left-hand "Input" box
  11. Click "Fix it"
  12. Copy ALL the content from the right-hand "Output" box
  13. Delete all the content in the text editor with packages.xml open
  14. Paste the content
  15. Save packages.xml
  16. Close your text editor
  17. Run (on computer):
    Code:
    adb push NfcGoogle.apk /system/app/NfcGoogle.apk
    adb push com.android.nfc_extras.jar /system/framework/com.android.nfc_extras.jar
    adb push packages.xml /data/system/packages.xml
    adb shell chmod 644 /system/app/NfcGoogle.apk
    adb shell chmod 644 /system/framework/com.android.nfc_extras.jar
  18. You're done.
EDIT (28/12/11)
Important notice for all those who have already attempted to remove the ZIP version to replace with the APK version
Read this if NFC has disappeared from your more menu, you get crashes in the More menu, Wallet now forcecloses where it didn't before after removing the ZIP

I have just (idiotically) noticed a blindingly obvious flaw with the files I had previously uploaded to the stock folder on http://googlewallet.lukegb.com - they were the odexed versions of the files, crucially WITHOUT the .odex files. I've replaced them with pseudo-stock (same signatures) versions of the apks and if you replace the NfcGoogle.apk, Android should correctly take this into account.

Don't forget to chmod 644 the NfcGoogle apk and the com.android.nfc_extras.jar files!
I'm stumped here: Open an adb shell from your computer to your device from the directory you've just downloaded those files to

I can open cmd and open adb shell but i don't understand how to open adb from the directory where i donwloaded said files.
 

shanman-2

Senior Member
Nov 18, 2011
658
169
0
Cork
Best thing to do is put the file(apk) in the tools directory of the android-sdk directory and use the exact same command
Same thing for the jar file...
 

efrant

Senior Moderator / Developers Relations
Staff member
Feb 12, 2009
11,468
10,979
253
Montreal
[snip]

I can open cmd and open adb shell but i don't understand how to open adb from the directory where i donwloaded said files.
Open a command prompt and navigate to where the directory is. For example, let's say you downloaded the files to C:\users\n00b\desktop\junk, and you open a command prompt and it opens in C:\users\n00b\, then all you have to do is type:

cd /users/n00b/desktop/junk

Make sure you have your adb files in that directory.