suroij / market-enabler

Automatically exported from code.google.com/p/market-enabler
0 stars 0 forks source link

MarketEnabler has no effect on rooted HTC Hero #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have sim free version of HTC Hero (bought form expansys) which
I rooted according to this procedure: 
http://forum.xda-developers.com/showpost.php?p=4257045&postcount=38

After running market enabler "succesfully" I still can not see paid apps.
After some investigation I found out that system properties were set
apropriately.

After trying the procedure done by the enabler by hand in console I
discovered that I do not have "grep" program. I serached, killed and
deleted the vending cache manually. After that I was able to see the paid apps.

Would it be possible to parse the PID in the code instead of using grep?

Original issue reported on code.google.com by 5rkoz...@gmail.com on 14 Aug 2009 at 6:55

GoogleCodeExporter commented 8 years ago
I have this same issue but with a mt3g running a hero Rom, it would be awesome 
to get this fixed :P

Original comment by neoxtia...@gmail.com on 20 Aug 2009 at 6:18

GoogleCodeExporter commented 8 years ago
Same issue here. A manual workaround would be great too. (Where is the vending 
cache? What is the process 
name? What has to be deleted/done in order to clear it?).

Original comment by joakim.c...@gmail.com on 22 Aug 2009 at 7:30

GoogleCodeExporter commented 8 years ago
Ok, here's a workaround that worked for me (I live in Finland and fake the O2 
network in Germany in order to 
get access to paid apps). What you need to do is root, enter terminal (I use 
ConnectBot) and issue

su
rm -rf /data/data/com.android.vending/cache/*

After this I booted the phone, ran market enabler and started the market app. 
Works great now. I have a htc 
hero, and no terminal app has a working on-screen-keyboard, so in order to 
access the star symbol I had to 
write it in a notepad, copy it and paste it as needed. You can skip booting the 
phone if you kill the vending -
process before deleting the cache, but having such a limited keyboard, I opted 
for the easier way out.

Original comment by joakim.c...@gmail.com on 22 Aug 2009 at 8:19

GoogleCodeExporter commented 8 years ago
Just throwing my note in too. Normal release and beta release show my network 
operator 
as t-mobile (In Canada on Fido), but still can't access paid apps.

Have not tried temp fix above yet though.

Original comment by brigg...@gmail.com on 23 Aug 2009 at 6:54

GoogleCodeExporter commented 8 years ago
Thanks for the fix Joakim! 

It would be nice to know the name of the process so that I didn't have to 
reboot (I 
flash a lot of new ROMs). I tried issuing the ps command but didn't find 
anything that 
resembled com.android.vending. Also would like to know what this process 
does/is it 
completely safe to terminate/what are the side effects.

Original comment by pwnag...@gmail.com on 25 Aug 2009 at 3:09

GoogleCodeExporter commented 8 years ago
Just switched from HTC G1 to HTC Hero. On my G1/Dream, Market Enabler would 
perfectly
do its duty, but on HTC Hero, although it tells me all settings are set ok, I 
do not
have access to paid apps.
Maybe an easy way would be to create a small package to get this "grep" command 
on
HTC Hero as well... ?

Original comment by fmott...@gmail.com on 25 Aug 2009 at 3:13

GoogleCodeExporter commented 8 years ago
I installed connectbot, entered su, but when I pasted the rm command, I had to 
use
the back button, then reenter the session to hit enter. The result I got was: 
"rm
failed for -rf, Read-only file system" I followed a tutorial to gain root, but 
maybe
I did something wrong?

Original comment by peterwoo...@gmail.com on 26 Aug 2009 at 4:50

GoogleCodeExporter commented 8 years ago
Peeterwoolery: You might be lucky it failed. rm -rf is a recursive, forced 
erase, so if you point to the wrong 
folder (directory), you might remove something you're not supposed to. Be 
careful! I think I had to cd into the 
right folder and empty each folder individually, so something like this:

su
cd /data/data/com.android.vending/cache
rm *
cd webviewCache
rm *

... because rm -rf for some reason gave me an error message along the lines of 
-rf being an unknown flag. I 
don't know what the webviewCache folder is for, but since it would be included 
in the recursive erase, I felt it 
was safe to erase that as well.

Original comment by joakim.c...@gmail.com on 28 Aug 2009 at 9:49

GoogleCodeExporter commented 8 years ago
pwnage97: I derived the location of the cache from information on this page, 
which I stumbled upon when 
googling solutions to this problem. 
http://www.2030.tk/wiki/Android_market_switch

There are two lines:

kill $(ps | grep vending | tr -s ' ' | cut -d ' ' -f2)
rm -rf /data/data/com.android.vending/cache/* 

These seem to kill the vending process and erase the cache. Lately, I've been 
wondering if erasing the cache 
could just as easily be done by going to settings -> applications -> manage 
apps -> market -> empty cache 
on your android handset... But since I only needed to do this once, I have no 
way of testing it.

Apparently the process is called "vending" something and the script fails 
because there is no "grep" on the 
hero.

Original comment by joakim.c...@gmail.com on 28 Aug 2009 at 9:56

GoogleCodeExporter commented 8 years ago
the grep command comes from busybox binaries and if you just rooted but didn't
install busybox u don't have it...
On next rewrite of the app, the dependencies to busybox shouldn't exist anymore 
;-)

Btw. 2030.tk is my site and the code from there is used in the app too but for a
rewrite it's planned to do the killing part trough api (no grep needed anymore)

Original comment by michel.racic on 29 Aug 2009 at 5:27

GoogleCodeExporter commented 8 years ago
thanks after doing su
rm -rf /data/data/com.android.vending/cache/* even it said failed i did reboot 
the 
phone and it worked i have a hofoion rom!

Original comment by malkis...@gmail.com on 1 Sep 2009 at 11:10

GoogleCodeExporter commented 8 years ago

Original comment by michel.racic on 6 Sep 2009 at 12:49

GoogleCodeExporter commented 8 years ago

Original comment by michel.racic on 19 Oct 2009 at 9:41

GoogleCodeExporter commented 8 years ago
It had worked perfectly on my hero until one today i could only see free apps, 
maybe 
google got suspicious when i changed from us to australia then germany?

Original comment by strt...@gmail.com on 15 Feb 2010 at 10:10

GoogleCodeExporter commented 8 years ago
I test every update on my ADP1 (G1), my Hero and my new Nexus...
No problems at all.

Could you submit a logcat?

Original comment by michel.racic on 15 Feb 2010 at 10:49

GoogleCodeExporter commented 8 years ago
This is my logcat. I've got it when I try to re-establish the T-Mobile operator
number. It doesn't work for me. My rom version is SuperD 1.10.2:

I/MarketEnabler( 1313): Changed to tab initiated [List]
D/MarketEnabler( 1313): starting setValues with list item[3]
D/MarketEnabler( 1313): starting setValues with list item[3] provider config[T-M
obile]
D/MarketEnabler( 1313): starting setValues
I/MarketEnabler( 1313): dropping shell commands for list values
D/MarketEnabler( 1313): Starting shell thread with [4] commands
I/MarketEnabler( 1313): Starting exec of su
I/MarketEnabler( 1313): Starting command loop
I/MarketEnabler( 1313): Executing [setprop gsm.sim.operator.numeric 310260]
I/MarketEnabler( 1313): Executing [setprop gsm.sim.operator.numeric 310260] os.f
lush()
D/MarketEnabler( 1313): progress msg[1, -1] getprogress[0]
D/MarketEnabler( 1313): increment progress msg[1, -1] getprogress[0]
I/MarketEnabler( 1313): Executing [setprop gsm.operator.numeric 310260]
I/MarketEnabler( 1313): Executing [setprop gsm.operator.numeric 310260] os.flush
()
I/MarketEnabler( 1313): Executing [killall com.android.vending]
I/MarketEnabler( 1313): Executing [killall com.android.vending] os.flush()
D/MarketEnabler( 1313): progress msg[2, -1] getprogress[1]
D/MarketEnabler( 1313): increment progress msg[2, -1] getprogress[1]
D/MarketEnabler( 1313): progress msg[3, -1] getprogress[2]
D/MarketEnabler( 1313): increment progress msg[3, -1] getprogress[2]
I/ActivityManager(  115): Process com.android.bugreport (pid 1307) has died.
I/MarketEnabler( 1313): Executing [rm -rf /data/data/com.android.vending/cache/*
]
I/MarketEnabler( 1313): Executing [rm -rf /data/data/com.android.vending/cache/*
] os.flush()
D/MarketEnabler( 1313): progress msg[4, -1] getprogress[3]
D/MarketEnabler( 1313): increment progress msg[4, -1] getprogress[3]
D/su      ( 1345): 10063:10063 com.androidiani.MarketEnabler executing 0:0 /syst
em/bin/sh
D/dalvikvm( 1313): GC freed 4535 objects / 275336 bytes in 127ms
D/Zygote  (   97): Process 1233 terminated by signal (15)
I/ActivityManager(  115): Process com.android.vending (pid 1233) has died.
D/MarketEnabler( 1313): progress msg[0, 0] getprogress[4]
D/MarketEnabler( 1313): dismiss progress msg[0, 0] getprogress[4]
I/NotificationService(  115): enqueueToast pkg=com.androidiani.MarketEnabler cal
lback=android.app.ITransientNotification$Stub$Proxy@43cb9c68 duration=1
W/InputManagerService(  115): Window already focused, ignoring focus gain of: co
m.android.internal.view.IInputMethodClient$Stub$Proxy@43c0fb00

Original comment by casill...@gmail.com on 23 Apr 2010 at 7:25