Thursday, May 25, 2017

Android: Install Google Play Store on Amazon Fire tablet

Assuming you know how to sideload an apk. To get Google Play Store to work, basically you need to install 4 apps. No root access required. Note that the order of installation matters.
  1. - Google Account Manager
  2. - Google Services Framework
  3. - Google Play Services
  4. - Google Play Store

For Amazon Fire HD 8 2016 [6th Gen], Fire OS, Build
  1. Google Account Manager, 5.1-1743759
  2. Google Services Framework, 5.1-1743759
  3. Google Play Services, 9.8.77 (230-135396225)
  4. Google Play Store, 7.8.16.P-all [0] [PR] 155590935

For Amazon Fire HDX 8.9 2014 [4th Gen], Fire OS, Build
  1. Google Account Manager, 4.4.4-1227136
  2. Google Services Framework, 4.4.4-1227136
  3. Google Play Services, 11.0.55 (030-156917137)
  4. Google Play Store, 7.8.74.P-all [0] [FP] 157113528

Wednesday, April 19, 2017

Android: v2 signing in Android 7.0

In Android 7.0, APKs can be verified according to the APK Signature Scheme v2 (v2 scheme) or JAR signing (v1 scheme). Older platforms ignore v2 signatures and only verify v1 signatures.

You can use apksigner to check if an app is signed with v2 scheme or not.
apksigner -verify -v <path_to_apk>

APK Signature Scheme v2  |  Android Open Source Project
apksigner | Android Studio

Tuesday, April 18, 2017

Paperless: Opt-out from GEICO Now magazine

Under subject "Opt out of GEICO marketing communications":

If you no longer wish to receive marketing communications from GEICO, or wish to stop receiving the GEICO Now magazine in the mail, please complete our opt out forms.

Monday, April 3, 2017

Clash Royale: Can’t Sign In with Google Play

I left Clash Royale for some time. Today, I re-installed it to try out something, but then it failed to recognize my Google Play account. After going through the tutorial, I went into settings and tried to link my Google Play account. Tapping on Google Play sign-in doesn't do anything. I didn't get any error message or anything.

1. open Google's Play Games app
2. go to Settings
3. check Sign in to games automatically
4. launch Clash Royale, it should detect and load your game profile now
5. once you've logged in, you can go back and revert the auto sign-in setting if you want

How to fix Can't Sign In with Google Play In Clash Royale

Monday, March 27, 2017

Sunday, March 26, 2017

Python 3: ImportError: no module named win32api

I'm using Python 3.5 (32-bit) with pywin32 installed. I was trying to import win32com.client. but I was getting ImportError: no module named win32api

As TulkinRB mentioned here, it seems like a bug with the module. I was able to fix it by editing Python35\Lib\site-packages\win32com\, and replace import win32api with from win32 import win32api.

pywin32 - Python 3.4 :ImportError: no module named win32api - Stack Overflow

Wednesday, March 15, 2017

Wireshark: How to extract HTTP and FTP files from a .pcap file

If you have a packet capture that contains HTTP or FTP files such as images and zip files, you can extract them using Wireshark.

For HTTP files:
1. open the .pcap file in Wireshark
2. go to File -> Export Objects -> HTTP...
3. a file list would pop-up and you can save the desired files

For FTP files:
1. look for the FTP-DATA protocol block of the file you are interested in
2. right-click, Follow > TCP Stream
3. change Show and save data as Raw
4. click Save as...
5. enter the expected file name and extension