Login   Register  
PHP Classes
elePHPant
Icontem

VersionCode = 60638

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Apk Parser  >  All threads  >  VersionCode = 60638  >  (Un) Subscribe thread alerts  
Subject:VersionCode = 60638
Summary:VersionCode not get
Messages:3
Author:nicolas
Date:2012-12-14 12:01:58
Update:2012-12-14 12:29:47
 

  1. VersionCode = 60638   Reply  
Picture of nicolas
nicolas
2012-12-14 12:01:58
Hi,

I've try your wonderful apk parser, but just a little problem,

when I ask the versionCode, the script return 60638 (but, the versionName, packageName works fine)



  2. Re: VersionCode = 60638   Reply  
Picture of nicolas
nicolas
2012-12-14 12:05:26 - In reply to message 1 from nicolas
Here is the manifest XML gets by the PrintXmlManifest.php


We can see "VersionCode" written everywhere, so, of course, "versionCode" coulnd' be cast properly to int ...


Do you have an idea ?

<manifest versionCode="versionCode" versionName="1.1" package="fr.semantic.ecare.android"><uses-sdk minSdkVersion="versionCode" targetSdkVersion="versionCode">
</uses-sdk><uses-permission name="android.permission.BLUETOOTH_ADMIN">
</uses-permission><uses-permission name="android.permission.BLUETOOTH">
</uses-permission><uses-permission name="android.permission.ACCESS_NETWORK_STATE">
</uses-permission><uses-permission name="android.permission.WRITE_EXTERNAL_STORAGE">
</uses-permission><uses-permission name="android.permission.READ_LOGS">
</uses-permission><uses-permission name="android.permission.INTERNET">
</uses-permission><application theme="versionCode" label="versionCode" icon="versionCode" debuggable="versionCode"><activity label="versionCode" name=".ui.SplashScreen" launchMode="versionCode" screenOrientation="versionCode"><intent-filter><action name="android.intent.action.MAIN">
</action><category name="android.intent.category.LAUNCHER">
</category></intent-filter></activity><activity label="versionCode" name=".ui.MainActivity" launchMode="versionCode" screenOrientation="versionCode">
</activity><activity name=".ui.WaitActivity" launchMode="versionCode" screenOrientation="versionCode">
</activity><activity name=".ui.ErrorActivity" launchMode="versionCode" screenOrientation="versionCode">
</activity><activity name=".ui.BatteryActivity" launchMode="versionCode" screenOrientation="versionCode"><intent-filter><action name="fr.semantic.ecare.android.ui.BatteryActivity">
</action><category name="android.intent.category.DEFAULT">
</category></intent-filter></activity><activity name=".ui.AlertActivity" launchMode="versionCode" screenOrientation="versionCode">
</activity><activity name=".ui.MeasureActivity" launchMode="versionCode" screenOrientation="versionCode">
</activity><activity name=".ui.ChartActivity" launchMode="versionCode" screenOrientation="versionCode">
</activity><activity name=".ui.MesureSetPatientActivity" launchMode="versionCode" screenOrientation="versionCode">
</activity><activity name=".ui.DebugActivity" launchMode="versionCode">
</activity><service name="com.signove.health.service.HealthService" permission="android.permission.BLUETOOTH" enabled="versionCode" exported="versionCode" stopWithTask="versionCode"><intent-filter><action name="com.signove.health.service.HealthService">
</action></intent-filter></service><service name="com.signove.health.service.BluetoothHDPService">
</service><service name=".core.ServiceEcare">
</service><service name=".core.ServiceAntidoteClient">
</service></application></manifest>

  3. Re: VersionCode = 60638   Reply  
Picture of nicolas
nicolas
2012-12-14 12:29:47 - In reply to message 1 from nicolas
Hi,

I found the problem.

Apparently this code works fine under 32 bits OS,

But, using a 64Bits OS, there is a small arrangement to do :

In file lib/ApkXmlParser,
line 87 :
replace -1, by 4294967295

if($attrValueSi != -1){
becomes :
if($attrValueSi != 4294967295){

Or, better, to use under 32 or 64 bits,
if(($attrValueSi != -1) && ($attrValueSi != 4294967295)){



Regards ("ticket" close ;)