Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to update binary without custom recovery on 4.3? #174

Closed
ogr3 opened this issue Aug 12, 2013 · 16 comments
Closed

Not possible to update binary without custom recovery on 4.3? #174

ogr3 opened this issue Aug 12, 2013 · 16 comments

Comments

@ogr3
Copy link
Contributor

ogr3 commented Aug 12, 2013

Before 4.3 if you updated Superuser on play on a stock device you could update the binary by pressing OK in the dialog. Now it only shows cancel and recovery.

Is it not possible to update the binary without a custom recvovery if you're on stock 4.3?

This is on a takju Galaxy Nexus, everything stock except Superuser-4.3beta4 flashed in.

@koush
Copy link
Owner

koush commented Aug 12, 2013

Correct. Daemon can't be stopped once started. So installation over it wouldn't work.

There's ways to work around this (shutdown command, move/delete file). But I punted on those until I can get to it.

@sparkym3
Copy link
Contributor

I am far from a linux expert, but I thought you could delete/overwrite files that were in use on a linux system since it would still remain, under the covers, unit all uses of it were removed.

Wouldn't this allow the app to update the binary to the most recent and then upon reboot start using the new binary? It may not be as smooth as updating and automatically switching over to the new binary, but it would work in the interim.

@koush
Copy link
Owner

koush commented Aug 12, 2013

@sparkym3 Simply deleting the file fails if the daemon is running. Rename works though.

@sparkym3
Copy link
Contributor

I can confirm this process for those who do not have custom recovery. Copy new binary to xbin with a different name and set proper permissions. Rename old su to something. Rename new binary to su. Reboot.

@alktlr
Copy link

alktlr commented Aug 14, 2013

Maybe this is a stupid question. But where is the new su binary located on the device? Getting the su binary out of date notification and is on stock ROM and recovery.

@koush
Copy link
Owner

koush commented Aug 14, 2013

@alktlr Are you "fixing root" after recovery exits?

@alktlr
Copy link

alktlr commented Aug 14, 2013

No, I want to keep it as stock as possible, making new ROM updates as painless as possible. Fastbooting CWM recovery when needing it.

@koush
Copy link
Owner

koush commented Aug 14, 2013

I mean are you choosing the "fix root" option after installing it via recovery

@alktlr
Copy link

alktlr commented Aug 15, 2013

I do not recall there was a "fix root" option or question when installing superuser-4.3-beta3.zip in recovery if that is what you mean. Btw its a Nexus 4.

@pjc123
Copy link

pjc123 commented Aug 16, 2013

I lost root and TWRP when I updated to 4.3 as would be expected. So I re-installed the latest TWRP and I downloaded the superuser.zip from Google Play (I assume that it is your latest 4.3 compatible version). Once I install superuser.zip via TWRP, is the next step to select the "fix root" option to re-root and then I am done? I did not do the "fix root" step when I unrooted 4.2.2, so I am a bit confused.

@koush
Copy link
Owner

koush commented Aug 16, 2013

I'm not speaking of TWRP, just CWM.

@alktlr Try installing the final superuser.zip. The beta3 had some issues.

@pjc123
Copy link

pjc123 commented Aug 16, 2013

Oops. I apologize for interjecting in the middle of your thread. I will now try installing your program.

EDIT: By the way, superuser installed flawlessly and all my "root only" apps are working fine with it. Thanks for all the hard work on this.

@alktlr
Copy link

alktlr commented Aug 17, 2013

Downloaded and installed the latest superuser.zip and the su binary out of date notification is gone. Thanks. Had not seen the link in Google Play if pjc123 had pointed me in that direction. Maybe you should add a not note in there if you have troubles then try install the superuser.zip again. Not sure if that helps the issue by OP.

@hellomoto124
Copy link

Hello , I can build myself ROM (android 4. 3)by myself , however, how to build image for rooted device by change some source code to work well with superupser.apk, could you give me some comments ?
by the way, adb root is available on my ROM , and adb remount is avaiable as well. however, some special apk still not get the root permission.

@x3rAx
Copy link

x3rAx commented Mar 22, 2014

Workaround:

See ~> #216 (comment)


This seems to be related to the following: #216, #214, #185 , #233

@lusoelay
Copy link

#217

@ogr3 ogr3 closed this as completed Sep 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants