Azelphur / PokemonGo-CalcyIV-Renamer

Uses adb to send fake tap events to your phone, alongside Calcy IV to automatically rename all your pokemon.
GNU General Public License v3.0
77 stars 32 forks source link

No longer working for me after Pogo/Calcy Update in the last month on two devices #60

Closed MichaelSchra closed 4 years ago

MichaelSchra commented 4 years ago

I need help interpreting the error log. On two devices it still correctly scans the pokemon into the log, but performs no actions on the devices.

PS C:\adb> python .\ivcheck.py 2019-12-13 20:27:18,152 - PokemonGo - DEBUG - Running ['adb', 'devices'] 2019-12-13 20:27:18,246 - PokemonGo - DEBUG - Return code 0 2019-12-13 20:27:18,253 - PokemonGo - DEBUG - Starting logcat ['adb', '-s', 'e3c91d74', 'logcat', '-T', '1', '-v', 'brief'] 2019-12-13 20:27:18,353 - PokemonGo - INFO - Sending intent: am broadcast -a tesmath.calcy.ACTION_ANALYZE_SCREEN -n tesmath.calcy/.IntentReceiver --ez silentMode true 2019-12-13 20:27:18,353 - PokemonGo - DEBUG - Running ['adb', '-s', 'e3c91d74', 'shell', 'am broadcast -a tesmath.calcy.ACTION_ANALYZE_SCREEN -n tesmath.calcy/.IntentReceiver --ez silentMode true'] 2019-12-13 20:27:18,772 - PokemonGo - DEBUG - Return code 0 2019-12-13 20:27:18,772 - ivcheck - DEBUG - logcat line received: D/NetdConnector( 2836): RCV <- {614 Address updated ::2039:7c62:43ba:a73b/64 wlan0 1 0} 2019-12-13 20:27:18,772 - ivcheck - DEBUG - logcat line received: --------- beginning of main 2019-12-13 20:27:18,773 - ivcheck - DEBUG - logcat line received: D/AndroidRuntime(15443): >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<< 2019-12-13 20:27:18,773 - ivcheck - DEBUG - logcat line received: D/AndroidRuntime(15443): CheckJNI is OFF 2019-12-13 20:27:18,773 - ivcheck - DEBUG - logcat line received: D/ICU (15443): No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat 2019-12-13 20:27:18,774 - ivcheck - DEBUG - logcat line received: I/Radio-JNI(15443): register_android_hardware_Radio DONE 2019-12-13 20:27:18,774 - ivcheck - DEBUG - logcat line received: D/AndroidRuntime(15443): Calling main entry com.android.commands.am.Am 2019-12-13 20:27:18,774 - ivcheck - DEBUG - logcat line received: D/AndroidRuntime(15443): Shutting down VM 2019-12-13 20:27:19,943 - ivcheck - DEBUG - logcat line received: V/AlarmManager( 2836): Triggering alarm #0: Alarm{62c0a7 type 2 when 1853372 com.google.android.gms}operation =Intent { act=com.google.android.location.ALARM_WAKEUP_LOCATOR } 2019-12-13 20:27:19,958 - ivcheck - DEBUG - logcat line received: D/WifiService( 2836): acquireWifiLockLocked: WifiLock{NlpWifiLock type=2 uid=10014} 2019-12-13 20:27:20,244 - ivcheck - DEBUG - logcat line received: D/a (10427): Seconds since last activity: 2 2019-12-13 20:27:20,245 - ivcheck - DEBUG - logcat line received: D/l (10427): * Analyzing 1 screenshots *** 2019-12-13 20:27:20,258 - ivcheck - DEBUG - logcat line received: D/l (10427): Detected monster screen 2019-12-13 20:27:20,258 - ivcheck - DEBUG - logcat line received: D/l (10427): OCR-Dust: 200 2019-12-13 20:27:20,258 - ivcheck - DEBUG - logcat line received: D/a (10427): Waiting 2500ms 2019-12-13 20:27:20,292 - ivcheck - DEBUG - logcat line received: D/l (10427): OCR-CandyName (scaled): NOSEPASS CANDY 2019-12-13 20:27:20,293 - ivcheck - DEBUG - logcat line received: D/l (10427): Max evo - set evo cost to 0 2019-12-13 20:27:20,293 - ivcheck - DEBUG - logcat line received: D/l (10427): Combined Evo and Candy to: 519 (Probopass) 2019-12-13 20:27:20,319 - ivcheck - DEBUG - logcat line received: D/l (10427): OCR-HP: 18/18HP 2019-12-13 20:27:20,326 - ivcheck - DEBUG - logcat line received: D/l (10427): OCR-CP: 2019-12-13 20:27:20,335 - ivcheck - DEBUG - logcat line received: D/l (10427): OCR-CP: 4 2019-12-13 20:27:20,346 - ivcheck - DEBUG - logcat line received: D/l (10427): OCR-CP: 40 2019-12-13 20:27:20,347 - ivcheck - DEBUG - logcat line received: W/l (10427): HP 18 incompatible with level 2.0 for id 519, try other monsters of this family or other candy names 2019-12-13 20:27:20,348 - ivcheck - DEBUG - logcat line received: D/l (10427): Hp 18 compatible for monsterId 298 (Nosepass), 2019-12-13 20:27:20,348 - ivcheck - DEBUG - logcat line received: W/l (10427): CP 40 incompatible with HP range 25 - 28 for level 2.0, id 519; try other monster of this family or other candy names 2019-12-13 20:27:20,349 - ivcheck - DEBUG - logcat line received: D/l (10427): CP 40 compatible for monsterId 298 (Nosepass), 2019-12-13 20:27:20,349 - ivcheck - DEBUG - logcat line received: D/l (10427): Family fallback found 298(Nosepass) 2019-12-13 20:27:20,350 - ivcheck - DEBUG - logcat line received: D/l (10427): Found no fitting HP/CP-Range for 519, but found fallback --> use monsterIdBackup 298, set stati UNCERTAIN_50 2019-12-13 20:27:20,351 - ivcheck - DEBUG - logcat line received: D/l (10427): V >= 0.135.x - move line: 1764 2019-12-13 20:27:20,360 - ivcheck - DEBUG - logcat line received: D/l (10427): OCR-FastMoveName: Rock Throw 2019-12-13 20:27:20,364 - ivcheck - DEBUG - logcat line received: D/l (10427): OCR-Gender: ♀ 2019-12-13 20:27:20,365 - ivcheck - DEBUG - logcat line received: I/l (10427): Screenshot analysis took: 122 2019-12-13 20:27:20,366 - ivcheck - DEBUG - logcat line received: D/i (10427): Received values: Id: 298 (Nosepass), Nr: 299, CP: 40, Max HP: 18, Dust cost: 200, Level: 2.0, FastMove Rock Throw, SpecialMove err, SpecialMove2 err, Gender female, CatchYear 2019, Favorite: false, Level-up false: 2019-12-13 20:27:20,368 - ivcheck - DEBUG - logcat line received: D/f (10427): setValues() - ID: 298 (Level 2.0), 40 CP, 18 HP, 200 dust cost 2019-12-13 20:27:20,920 - ivcheck - DEBUG - logcat line received: D/NetdConnector( 2836): RCV <- {614 Address updated ::c2ee:fbff:fee3:78a6/64 wlan0 0 0} 2019-12-13 20:27:20,921 - ivcheck - DEBUG - logcat line received: D/NetdConnector( 2836): RCV <- {614 Address updated ::2039:7c62:43ba:a73b/64 wlan0 1 0} 2019-12-13 20:27:22,069 - ivcheck - DEBUG - logcat line received: V/AlarmManager( 2836): Triggering alarm #0: Alarm{8e91954 type 2 when 1853948 com.google.android.gms}operation =Intent { act=com.google.android.location.ALARM_WAKEUP_ACTIVITY_DETECTION } 2019-12-13 20:27:22,072 - ivcheck - DEBUG - logcat line received: E/LOWI-7.7.1.0( 2819): [MemoryStream] expand error 2 2019-12-13 20:27:22,072 - ivcheck - DEBUG - logcat line received: E/LOWI-7.7.1.0( 2819): [MemoryStream] append error 2 2019-12-13 20:27:22,073 - ivcheck - DEBUG - logcat line received: E/LOWI-7.7.1.0( 2819): [OutPostcard] addBlobWithType failed 12 2019-12-13 20:27:22,074 - ivcheck - DEBUG - logcat line received: E/LOWI-7.7.1.0( 2819): [MemoryStream] expand error 2 2019-12-13 20:27:22,075 - ivcheck - DEBUG - logcat line received: E/LOWI-7.7.1.0( 2819): [MemoryStream] append error 2 2019-12-13 20:27:22,076 - ivcheck - DEBUG - logcat line received: E/LOWI-7.7.1.0( 2819): [OutPostcard] addBlobWithType failed 12 2019-12-13 20:27:22,076 - ivcheck - DEBUG - logcat line received: E/IzatSvc_Wiper( 2836): W/Num of elements returned by LOWI 15 2019-12-13 20:27:22,122 - ivcheck - DEBUG - logcat line received: V/OSNPGlue_jni( 2836): Entering : void onJavaLocationChanged(JNIEnv *, jobject, jboolean, jlong, jboolean, jlong, jboolean, jdouble, jboolean, jdouble, jboolean, jfloat, jboolean, jdouble, jboolean, jfloat, jboolean, jfloat, jboolean, jint) 2019-12-13 20:27:22,123 - ivcheck - DEBUG - logcat line received: E/QMI_FW ( 2836): QCCI qmi_cci_xport_recv: txn not found. svc_id: 16 2019-12-13 20:27:22,124 - ivcheck - DEBUG - logcat line received: E/LocSvc_LBSApiV02( 2836): E/virtual int lbs_core::LBSApiV02::injectCoarsePosition(const CoarsePositionInfo &):352]: Error : st = 3, ind.status = 0

MichaelSchra commented 4 years ago

I put a print in the tap function, and it's never getting called.

async def tap(self, x, y):
    print(str(["adb", "-s", await self.get_device(), "shell", "input", "tap", x, y]))
    await self.run(["adb", "-s", await self.get_device(), "shell", "input", "tap", x, y])
Azelphur commented 4 years ago

Hi, There were two issues when I tested. The Calcy IV intent and Received values line seems to have changed. I've patched both of these issues and it now works for me again. Feel free to reopen if this is still an issue :)