Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dawn2k
Old
(Last edited by dawn2k; 5th July 2010 at 06:20 PM.)
#1  
Member - OP
Thanks Meter 10
Posts: 48
Join Date: Apr 2010
Default 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:


Code:
$diff -r unpatched/ patched/
diff -r unpatched//com/android/vending/model/DeviceConfigurationProto.smali patched//com/android/vending/model/DeviceConfigurationProto.smali
43c43
< .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
51c51
<     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
Code:
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?
Any hints?

Edit: Seems, the second value does not need to be set.
 
cn.fyodor
Old
#2  
Senior Member
Thanks Meter 203
Posts: 246
Join Date: Dec 2009
Location: Nanjing

 
DONATE TO ME
Hi,

Ok, it's an exciting discovery. I've just changed v3 variable to 0x2, the number of searching 'video' has increased up to 385. Wonderful!

If you wanna try it, check out the attachment. You should clear data of Market app before launching the new Market app.
Attached Files
File Type: apk Vending.apk - [Click for QR Code] (762.2 KB, 13859 views)
 
KalimochoAz
Old
#3  
KalimochoAz's Avatar
Recognized Developer
Thanks Meter 1998
Posts: 1,109
Join Date: Oct 2007
Location: Tarragona
Quote:
Originally Posted by cn.fyodor View Post
Hi,

Ok, it's an exciting discovery. I've just changed v3 variable to 0x2, the number of searching 'video' has increased up to 385. Wonderful!

If you wanna try it, check out the attachment. You should clear data of Market app before launching the new Market app.
That's great. You can add this to you 0.7 ROM then

For me it works 100%

Thanks down2k
 
moneytoo
Old
#4  
moneytoo's Avatar
Senior Member
Thanks Meter 33
Posts: 970
Join Date: Feb 2007
Location: Prague
And I have 512 results for "video". The problem is that system features are not correctly described in the fyodor FroYo AOSP ROM. I've fixed it right now in my test patched Market but this is not the right solution...
Connect your Bluetooth wrist watch to Windows Mobile | Windows | Android | BlackBerry | Maemo

Android wrist watch phone Z1: CWM recovery | Custom Clean ROM | Tweaks
 
cn.fyodor
Old
(Last edited by cn.fyodor; 5th July 2010 at 04:14 PM.)
#5  
Senior Member
Thanks Meter 203
Posts: 246
Join Date: Dec 2009
Location: Nanjing

 
DONATE TO ME
Quote:
Originally Posted by moneytoo View Post
And I have 512 results for "video". The problem is that system features are not correctly described in the fyodor FroYo AOSP ROM. I've fixed it right now in my test patched Market but this is not the right solution...
Aha, great! What system features had been set improperly? I'll change it in the next release. Waiting for your right solution version.
 
nonoheran
Old
#6  
nonoheran's Avatar
Senior Member
Thanks Meter 2
Posts: 319
Join Date: May 2009
Location: CHERBOURG

 
DONATE TO ME
ok so with is the good version ?

a link to it ?

thank s lot
Nexus S I9023 ....... No native 3G Video Calll
I9023 - BuglessPete !! thank's PETER !!
16 Go Asus transformer ( no dock )
 
moneytoo
Old
#7  
moneytoo's Avatar
Senior Member
Thanks Meter 33
Posts: 970
Join Date: Feb 2007
Location: Prague
getSystemAvailableFeatures() returns only

Code:
android.hardware.camera
android.hardware.camera.autofocus
while different phone returns...

Code:
android.hardware.camera
android.hardware.wifi
android.hardware.location.network
android.hardware.bluetooth
android.hardware.telephony
android.hardware.location
android.hardware.location.gps
android.hardware.camera.autofocus
android.hardware.telephony.gsm
android.hardware.touchscreen
android.hardware.touchscreen.multitouch
android.hardware.sensor.accelerometer
android.hardware.sensor.compass
I will fix one last issue and update the Market patch...
Connect your Bluetooth wrist watch to Windows Mobile | Windows | Android | BlackBerry | Maemo

Android wrist watch phone Z1: CWM recovery | Custom Clean ROM | Tweaks
 
svceon
Old
#8  
svceon's Avatar
Senior Member
Thanks Meter 68
Posts: 391
Join Date: Jun 2010
Location: Lisbon, Sintra
i'm having trouble installing this apk, could someone enlighten me up?
 
KalimochoAz
Old
(Last edited by KalimochoAz; 5th July 2010 at 04:55 PM.)
#9  
KalimochoAz's Avatar
Recognized Developer
Thanks Meter 1998
Posts: 1,109
Join Date: Oct 2007
Location: Tarragona
Quote:
Originally Posted by svceon View Post
i'm having trouble installing this apk, could someone enlighten me up?
adb remount
adb push Vending.apk /system/app/Vending.apk
adb reboot

Also take a look at the /system/etc/permissions directory. As moneytoo said you have to add all the hardware features in order to have more results. 672 for video search.
 
svceon
Old
#10  
svceon's Avatar
Senior Member
Thanks Meter 68
Posts: 391
Join Date: Jun 2010
Location: Lisbon, Sintra
? where do i get those files? :S

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more