Market v. 2.2 - Need help with hacking Froyo Vending.apk
I disassembled eclairs patched and unpatched market versions with (bak)smali. I did a diff -r and it said this:
$diff -r unpatched/ patched/
diff -r unpatched//com/android/vending/model/DeviceConfigurationProto.smali patched//com/android/vending/model/DeviceConfigurationProto.smali
< .field public static final SCREEN_LAYOUT_SMALL:I = 0x1
> .field public static final SCREEN_LAYOUT_SMALL:I = 0x2
diff -r unpatched//com/android/vending/model/DeviceConfiguration$ScreenLayoutSize.smali patched//com/android/vending/model/DeviceConfiguration$ScreenLayoutSize.smali
< const/4 v3, 0x1
> const/4 v3, 0x2
As you see there are only two little changes.
Changing the second value in 2.2 is very easy, but there is no DeviceConfigurationProto.smali when disassembling the new classes.dex file.
Also no luck with
find . -iname '*' | xargs grep -i 'SCREEN_LAYOUT'
The first value seems to be set on a different way in this version, but I can't figure out how. Anybody with assembler-skills here, who can take a deeper look?
Edit: Seems, the second value does not need to be set.