• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Market force closes above v. 2.3.6

robinta

Well-Known Member
I'm running redux 1.2 and assume this is causing a conflict with newer versions of the market. I always seem to be able to view anything OK (I could even download samples of Google books) but as soon as I try to update or purchase an app it f/c. I've tried clearing cache and then data before rebooting to no avail. Yet as soon as I rollback to 2.3.6 its fine. Is there any cure ?
 
As ever Dan you are a legend. That worked perfectly. Is it a permanent fix ? Thanks once again.

No it is lost at reboot but now we know the problem.

Now we have two solutions. Both script based.

A script is just a batch of commands. We know the command, chmod 777 /cache.

We can either add it to init.d as a,script. Or we can download script manager from the market. I personally use the latter as its a handy app anyway for me.
 
Dan I`ve downloaded script manager but am unsure how to use it. I did check their website but im a bit `green` unfortunately. Can you point me in the right direction please ?
 
Initial setup

Open Script manager
Navigate to the root of your SD card (You may already be there)
menu
new
new directory
Name it "Scripts" or whatever and press [ok]

Menu
More
Advanced Options
Config
Home Directory
Long press on "Scripts"
Back

Creating your script


menu
New
New Script
Name it "Cache permissions" or whatever and press [ok]
If it asks what to open with, choose Script manager
After
Code:
#!/system/bin/sh
add a new line.

The new line is
Code:
chmod 777 /cache
menu
save
back

Now the script should appear in the list. Press it.
Select the "run as root" and "run at boot" option.
Save
EXIT

Reboot to test
 
When i get to create a new directory it says `unable to create` - In the advanced options I clicked on `mount R/w` but it wont accept and asks `are you rooted`. The app didnt flag up superuser access so I re-downloaded the Superuser app again. Its still the same - it doesnt appear to ne asking for root access rights ?
 
it shouldnt ask for root access until you try to run a script as root.

Where are you trying to create the folder? Are you sure its on teh SD card?
 
Still no further forward. I've set up the script as per Dan's instructions (its in sdcard/scripts) and the only option I was unsure of in script manager was to run as either a script or an executable (I've tried both options). I've selected both run at boot and root, but it doesn't work after rebooting. Although entering the code in terminal emulator works fine ? Again though there has not been any request for superuser access.
 
cheers Dan, done this and it works, but i had to delete #!/system/bin/sh from the script permission to get it to work,
ive tested it after reboot and its fine. ive backed up vending apk incase it goes wrong.
 
How long are you waiting after boot to test?

It could be that you're not giving it long enough.

Or it could be that the script needs to run later. For this you can add between line 1 and line 2 another line that says "sleep 60"
 
mine works fine after reboot, i just tested it again, works a charm, BUT the new market does seem slower.
 
No. . I've just tried manually running the script and it says permission denied.. .should it not be requesting root access at this stage ?
 
No. I've just tried to manually run the script from within the editor as an executable and its showing permission denied in the log. Should it not be requesting root access at this point ? Is there a way to run the script other than through the editor ?
Sorry double post !
 
Its not an executable, its a script. When you run, wirth "run as root" set, it should just run.

Does it show in Superuser at all?
 
Yes it does now. When I go back to script manager it shows 2 scripts with the cache permission file name in lists. One in sdcard/scripts and 1 in mnt/sdcard/scripts with both run at boot and run as root unticked. Is this normal ?
 
sdcard/scripts is a symlink of mnt/sdcard/scripts so font worry about that. They are both the same location. This is a linux thing.

I think you would need to run this as root though. so ensure that is selected (and also "is script"). Because you had to put SU in terminal (root access) so script manager would need root too.

here is how mine looks if it helps.

screenshot-1320325633438.png
 
So its allowed in Superuser as green?

It USED to run when you hit run but now it doesnt?

Its never ran at boot?

Its odd because it should.

Maybe just go the init.d route then
 
Back
Top Bottom