[Android Apps and Games] a3955269:
here are some logs w/ chattr method

----------------------------------------------------------------------------------

adb shell ls -la /cache/download

total 10880

drwxrwx--x 2 1000 2001 4096 Feb 29 02:21 .

drwxrwx--x 6 1000 2001 4096 Feb 22 07:43 ..

-rw-r--r-- 1 10017 10017 3708455 Feb 29 02:18 downloadfile-1.apk

-rw-r--r-- 1 10017 10017 3708455 Feb 29 02:22 downloadfile-2.apk

-rw-r--r-- 1 10017 10017 3708455 Feb 29 02:03 downloadfile.apk

----------------------------------------------------------------------------------

adb shell md5sum /cache/download/*

9f8641d023bd235409fa88941c00a9ea /cache/download/downloadfile-1.apk

9f8641d023bd235409fa88941c00a9ea /cache/download/downloadfile-2.apk

9f8641d023bd235409fa88941c00a9ea /cache/download/downloadfile.apk

----------------------------------------------------------------------------------

adb pull /cache/download/downloadfile.apk

1396 KB/s (3708455 bytes in 2.592s)

aapt d badging downloadfile.apk

package: name='com.android.vending' versionCode='8010004' versionName='3.4.4'

----------------------------------------------------------------------------------

adb logcat -s Finsky:*

--------- beginning of /dev/log/main

--------- beginning of /dev/log/system

D/Finsky (10570): [1] SanityChecker.run: # LocalAssets corrected : 0

D/Finsky (10570): Sanity check took : 226 ms

D/Finsky (10570): [1] DfeApiContext.getSmallestScreenWidthDp: smallestScreenWidthDp does not exist, using pre-ics hack.

D/Finsky (10570): [1] DownloadImpl.setState: from null to UNQUEUED.

D/Finsky (10570): [1] DownloadQueueImpl.add: Download added to DownloadQueue

D/Finsky (10570): [1] DownloadImpl.setState: from UNQUEUED to QUEUED.

D/Finsky (10570): [1] AssetStoreUpdater.onAdd: Received package with no PackageProperties... Ignoring

D/Finsky (10570): [1] MainActivity.initializeBilling: Optimistically initializing billing parameters.

D/Finsky (10570): [23] DownloadRecords.initializeAndPrune: Pruned 0 old downloads from the cursor.

D/Finsky (10570): [1] DownloadQueueImpl.startDownload: Download starting

D/Finsky (10570): [1] DownloadImpl.setState: from QUEUED to DOWNLOADING.

D/Finsky (10570): [1] DownloadQueueImpl.onStart: : onStart

D/Finsky (10570): [1] DownloadQueueImpl.onProgress: : onProgress 0/-1 Status: 190.

D/Finsky (10570): [1] PageFragment.rebindViews: Page [class=TabbedBrowseFragment] loaded in [216 ms]

D/Finsky (10570): [1] DownloadQueueImpl.onProgress: : onProgress 0/-1 Status: 192.

D/Finsky (10570): [1] PageFragment.rebindViews: Page [class=TabbedBrowseFragment] loaded in [5051 ms]

D/Finsky (10570): [1] SelfUpdateScheduler.checkForSelfUpdate: Skipping self-update check as there is an update already queued.

W/Finsky (10570): [1] CarrierParamsAction.run: Saving carrier billing params failed.

D/Finsky (10570): [1] CarrierProvisioningAction.shouldFetchProvisioning: Required CarrierBillingParams missing. Shouldn't fetch provisioning.

D/Finsky (10570): [1] CarrierProvisioningAction.run: No need to fetch provisioning from carrier.

D/Finsky (10570): [1] GetBillingCountriesAction.run: Skip getting fresh list of billing countries.

D/Finsky (10570): [1] DownloadQueueImpl.onProgress: : onProgress 3708455/3708455 Status: 200.

D/Finsky (10570): [1] DownloadBroadcastReceiver.onReceive: Intent received at DownloadBroadcastReceiver

D/Finsky (10570): [1] DownloadImpl.setState: from DOWNLOADING to SUCCESS.

D/Finsky (10570): [1] SelfUpdateScheduler.onComplete: Self-update ready to be installed, waiting for market to close.

D/Finsky (10570): [1] DownloadQueueImpl.onComplete: : onComplete

D/Finsky (10570): [1] DownloadQueueImpl.remove: Download removed from DownloadQueue

V/Finsky (10570): [1] 1.onResponse: Logged 1 analytics events successfully.

----------------------------------------------------------------------------------

after patching dex file in dalvik-cache

----------------------------------------------------------------------------------

adb logcat -s Finsky:*

--------- beginning of /dev/log/main

--------- beginning of /dev/log/system

D/Finsky (10882): [1] SanityChecker.run: # LocalAssets corrected : 0

D/Finsky (10882): Sanity check took : 224 ms

D/Finsky (10882): [23] DownloadRecords.initializeAndPrune: Pruned 0 old downloads from the cursor.

D/Finsky (10882): [1] DfeApiContext.getSmallestScreenWidthDp: smallestScreenWidthDp does not exist, using pre-ics hack.

D/Finsky (10882): [1] SelfUpdateScheduler.checkForSelfUpdate: Skipping self-update check as there is an update already queued.

D/Finsky (10882): [1] MainActivity.initializeBilling: Optimistically initializing billing parameters.

D/Finsky (10882): [1] PageFragment.rebindViews: Page [class=TabbedBrowseFragment] loaded in [210 ms]

W/Finsky (10882): [1] CarrierParamsAction.run: Saving carrier billing params failed.

D/Finsky (10882): [1] CarrierProvisioningAction.shouldFetchProvisioning: Required CarrierBillingParams missing. Shouldn't fetch provisioning.

D/Finsky (10882): [1] CarrierProvisioningAction.run: No need to fetch provisioning from carrier.

D/Finsky (10882): [1] GetBillingCountriesAction.run: Skip getting fresh list of billing countries.

V/Finsky (10882): [1] 1.onResponse: Logged 1 analytics events successfully.

D/Finsky (10882): [1] PageFragment.rebindViews: Page [class=TabbedBrowseFragment] loaded in [46667 ms]

D/Finsky (10882): [1] PageFragment.rebindViews: Page [class=TabbedBrowseFragment] loaded in [46833 ms]

D/Finsky (10882): [1] SelfUpdateScheduler.checkForSelfUpdate: Skipping self-update check as there is an update already queued.

D/Finsky (10882): [1] SelfUpdateScheduler.checkForSelfUpdate: Skipping self-update check as there is an update already queued.

D/Finsky (10882): [1] 3.run: onSaveInstanceState() called, not firing onReady().

V/Finsky (10882): [1] 1.onResponse: Logged 1 analytics events successfully.

----------------------------------------------------------------------------------

about deodexed rom... im using CyanogenMod-7.1.0-GalaxyS2 so yar:)

im patching the dex file in dalvik-cache because when modifying the .apk you have to resign the .apk which im guessing might cause other trouble when signed w/ a self signed cert.

if youre decompiling the market apk... look for SelfUpdateScheduler.smali and search for mUpdateInProgress. my trick/patch simply sets that var to true in constructor.