invalid literal for int() with base 10
Traceback (most recent call last):
File "/TOOLS/Static/androwarn/test/androwarn-master/androwarn.py", line 116, in
im testing the tumblr app. can you help me?
Hello.. has anyone figured out the solution to this error? I tested a few apks using androwarn.py and I get this same error each time? It would help if someone could reply to this thread.. its about 2 years old!
+1 I had the same issue.
+1 I had the same issue.
+1 I also had this issue with some of my tests
+1 I had the same issue :P
Had the same issue. So modified device_settings.py file and then it worked. Under detect_get_package_info(x) method added the below set of codes flag = get_register_value(2, registers) #prev line if (flag != '0'): #start flags = flag.split() package_name = flags[0] flag = flags[1] #end
I had to slightly modify @mukila92 's code as I encountered cases where the flag was only returning a list with one element; thus an IndexError: list index out of range was thrown again. My code addition (together with mukila92's code):
if (flag != '0'): #start
flags = flag.split()
if len(flags) > 1:
package_name = flags[0]
flag = flags[1] #end
else:
flag = flags[0]
I tried this fix. Still not working
Hi, androwarn/androwarn/util/util.py I did the following:
def recover_bitwise_flag_settings(flag, constants_dict) :
"""
@param flag : an integer value to be matched with bitwise OR options set
@param constants_dict : a dictionary containing each options' integer value
@rtype : a string summing up settings
"""
recover = ''
options = []
try:
flag_var = int(flag)
except ValueError:
print "ValueError, flag = ", flag
else:
for option_value in constants_dict :
# if (int(flag) & option_value) == option_value :
if (flag_var & option_value) == option_value :
options.append(constants_dict[option_value])
recover = ', '.join(i for i in options)
return recover
After that, I get report about apk The error/message was: _ValueError, flag = Lcom/google/android/gms/measurement/internal/zzn;->getContext()Landroid/content/Contex_t;
Hello there,
Thank you for trying to debug this, could you point me an APK leading that issue ?
Best regards.
Hello maaaaz The APK wich generate this "error" follow by this link: https://play.google.com/store/apps/details?id=com.gsgroup.tricoloronline&hl=ru