Tuesday, January 25, 2011

why wont google maps work after resigning or recompiling?

this is because access to google's stuff requires an api key, stored in xml as a resource or perhaps in code, that is linked with the certificate of the app. if you modified and resigned it, the certificate is different and will not match the api key. you will have to get a valid key for the signature you are using.

you should already have your own certificate you sign everything with. this way if you release an updated version of the app, users of your previous modified version can update without needing to uninstall the old one first. if you don't already have your own certificate, follow the directions here: Signing Your Applications | Android Developers. you will need to use keytool and examples are given in the link.

once you're done or if you already have your own certificate, follow the instructions here: Obtaining a Maps API Key - Google Projects for Android.

when finished with that, and you have your own api key, decompile your apk with apktool so you can modify resources. you are looking for an xml file with a string like:
android:apiKey="3BCknOWFD_vyechU238a1f9YOWyYP2Z91CEfQWw"

or if it is created dynamically in code, you will see the initialization of a mapview object. the constructor takes a string as the second parameter which is the api key. here's an example:
# replace p2 with our api key here:
const-string p2, "3BCknOWFD_vyechU238a1f9YOWyYP2Z91CEfQWw"

# create the mapview object with our modified api key
# this line should already be here and doesn't need to be changed
invoke-direct {p0, p1, p2}, Lcom/google/android/maps/MapView;-><init>(Landroid/content/Context;Ljava/lang/String;)V

8 comments :

  1. Hi,
    Firstly, thanks for your great educational blog.
    I wonder if Youtube application have a similar issue when decompiling. I tried to decompile and compile without a modification but when I try to start app, force crashes immediately .

    ReplyDelete
    Replies
    1. Android Cracking: Why Wont Google Maps Work After Resigning Or Recompiling? >>>>> Download Now

      >>>>> Download Full

      Android Cracking: Why Wont Google Maps Work After Resigning Or Recompiling? >>>>> Download LINK

      >>>>> Download Now

      Android Cracking: Why Wont Google Maps Work After Resigning Or Recompiling? >>>>> Download Full

      >>>>> Download LINK 1g

      Delete
  2. you're welcome. what did you use to decompile? always, always check logs if you get a force close. depending on the decompiler you used, post what you did, what happened and the logs as a bug report.

    ReplyDelete
  3. I've used apktool (apktool d ) as always I do. I checked logs and logcat during compiling (again, apktool), installation and starting the application. No error raised during compiling. But when i tried to start application on my phone, saw an error in logcat:

    E/dalvikvm(29116): Could not find class 'dI', referenced from method dT.b...

    Well can't check the exact error right now. But I'll post a full log soon.

    ReplyDelete
  4. It is nice blog Thank you provide important information and i am searching for same information to save my time Big data hadoop online Training

    ReplyDelete
  5. Great Article..Thanks for the sharing..

    Bigo live is a GooD APK.Connect friends.
    Install the application here.....

    Bigo Live App

    ReplyDelete
  6. **SELLING SSN+DOB FULLZ**

    CONTACT
    Telegram > @leadsupplier
    ICQ > 752822040
    Email > leads.sellers1212@gmail.com

    >>1$ each without DL/ID number
    >>2$ each with DL
    >>5$ each for premium (also included relative info)

    *Will reduce price if buying in bulk
    *Hope for a long term business

    FORMAT OF LEADS/FULLZ/PROS

    ->FULL NAME
    ->SSN
    ->DATE OF BIRTH
    ->DRIVING LICENSE NUMBER WITH EXPIRY DATE
    ->COMPLETE ADDRESS
    ->PHONE NUMBER, EMAIL, I.P ADDRESS
    ->EMPLOYMENT DETAILS
    ->REALTIONSHIP DETAILS
    ->MORTGAGE INFO
    ->BANK ACCOUNT DETAILS

    >Fresh Leads for tax returns & w-2 form filling
    >Payment mode BTC, ETH, LTC, PayPal, USDT & PERFECT MONEY

    ''OTHER GADGETS PROVIDING''

    >SSN+DOB Fullz
    >CC with CVV
    >Photo ID's
    >Dead Fullz
    >Spamming Tutorials
    >Carding Tutorials
    >Hacking Tutorials
    >SMTP Linux Root
    >DUMPS with pins track 1 and 2
    >Sock Tools
    >Server I.P's
    >HQ Emails with passwords

    Email > leads.sellers1212@gmail.com
    Telegram > @leadsupplier
    ICQ > 752822040

    THANK YOU

    ReplyDelete
  7. Android Cracking: Why Wont Google Maps Work After Resigning Or Recompiling? >>>>> Download Now

    >>>>> Download Full

    Android Cracking: Why Wont Google Maps Work After Resigning Or Recompiling? >>>>> Download LINK

    >>>>> Download Now

    Android Cracking: Why Wont Google Maps Work After Resigning Or Recompiling? >>>>> Download Full

    >>>>> Download LINK L6

    ReplyDelete

Do NOT post about or link to specific apps!