Neraud / PADListener

Android application to sync PAD to PADherder
GNU General Public License v2.0
26 stars 18 forks source link

Amazon app store version can't capture #69

Closed Tito151 closed 9 years ago

Tito151 commented 9 years ago

Just updated to the latest version in the Play store on my Kindle Fire, but when I try to do a capture, the Amazon App Store version of PAD doesn't appear as a choice of versions to capture. This may be why I could not capture with the previous versions as well.

Neraud commented 9 years ago

As I don't own any Amazon device, I can't investigate or test the capture mysql.

I'm currently missing 2 pieces of information.

  1. To show Amazon PAD in the AutoCature list, I need its package name. It probably is something like jp.gungho.pad[something]. The easiest way to find it would probably be the link on the PlayStore. It's in the URL. For NA, the link is https://play.google.com/store/apps/details?id=*jp.gungho.padEN*. Can you check if you can find the link for the Amazon version ?
  2. To properly capture, I need GungHo's server name. Each version has a distinct one, and they were updated a few versions ago. Properly finding it is complicated. But the other ones are all built the same way, so I think I can guess it's : api-amz-adr.padsv.gungho.jp or api-na-amz-adr.padsv.gungho.jp. You can manually add a server name in the Listener settings (Listener > Custom target hostname). Can you please try to set this setting to api-na-amz-adr.padsv.gungho.jp and try a manual capture ? If it's not working, try api-amz-adr.padsv.gungho.jp.

If you can capture with this custom server name, I'll properly set it in the app.

Tito151 commented 9 years ago

Ok, I used a file explorer to pull the name from /data/app and it's called "jp.gungho.padKINEN-2.apk" I once tried using an app called "Network Connections" to try to log the address of the GungHo server for a manual entry with the pre-2.0 versions. I just tried it again now, but I don't see the PAD app showing up on there (maybe it's something I'm doing wrong). I am suspecting that maybe the true address is being bundled under another Amazon service. I fiddle around with it some more after work.

Neraud commented 9 years ago

Ok, I'll update the package name.

Did you try my 2 server name guesses ? All the other renames were made using the same format, so it could work ;p

Tito151 commented 9 years ago

I can't do that until I can see the app in PADListener, right? EDIT: Sorry, I'll just try and see what happens.

Neraud commented 9 years ago

Setting the correct package name will allow you to use the "Auto capture" and "Auto capture & sync" features. You can still capture manually by starting the Listener and starting PAD like you did with the V1.x

Tito151 commented 9 years ago

Yea, I thought about it a bit more and realized that. (duh...) So I tried both of those addresses in the custom target hostname, but neither triggered a capture.

Neraud commented 9 years ago

Damn :/

I use SandroProxy to capture data (and URLs when they change).

Tito151 commented 9 years ago

So I tried some more addresses and IPs that I was able to pull using 'Network Connections'. I tried... ec2-54-244-247-151.us-west-2.compute.amazonaws.com s3-us-west-2-r-w.amazonaws.com 54.231.162.9 54.244.247.151 54.231.162.201 54.231.164.73

Below are some screenshots that I was able to grab. I didn't get all of them captured properly. https://dl.dropboxusercontent.com/u/35978231/Screenshot_2014-12-15-07-56-51.png https://dl.dropboxusercontent.com/u/35978231/Screenshot_2014-12-15-07-56-56.png https://dl.dropboxusercontent.com/u/35978231/Screenshot_2014-12-15-18-49-52.png https://dl.dropboxusercontent.com/u/35978231/Screenshot_2014-12-15-18-50-25.png

Also, I've noticed that the application details of this Network Connections app calls PAD "jp.gungho.padKINEN.apk". (no -2) https://dl.dropboxusercontent.com/u/35978231/Screenshot_2014-12-15-19-08-17.png

Neraud commented 9 years ago

I don't think using the IPs would be a robust way to filter PAD calls. The host name would be better.

Could you please try with SandroProxy ? Using the "Developers mode, capture data", manually set your proxy to localhost:8008 and fire up PAD. After logging in PAD, you should be able to see the calls to GungHo's server in SandroProxy

Tito151 commented 9 years ago

OK! Thanks. I'll give that a shot when I get home.

On 12/16/14, Neraud notifications@github.com wrote:

I don't think using the IPs would be a robust way to filter PAD calls. The host name would be better.

Could you please try with SandroProxy ? Using the "Developers mode, capture data", manually set your proxy to localhost:8008 and fire up PAD. After logging in PAD, you should be able to see the calls to GungHo's server in SandroProxy


Reply to this email directly or view it on GitHub: https://github.com/Neraud/PADListener/issues/69#issuecomment-67078678

Tito151 commented 9 years ago

That did it. The Amazon PAD server is api-na-amz.padsv.gungho.jp Uploading my Kindle's first PADHerder right now!

Neraud commented 9 years ago

Thanks for the feedback.

My guesses were close ;p I'll update the app so that the Amazon version is properly captured and can use the Auto capture.