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

Mods The root club [Root only]

Do I need to unroot my nexus 5 so I can get the 4.4.3 update? If not is it better to anyways so I can get the update OTA? Still learning, thanks.
 
Do I need to unroot my nexus 5 so I can get the 4.4.3 update? If not is it better to anyways so I can get the update OTA? Still learning, thanks.

Not necessarily. Depending on what you did with root it may be necessary. But if you want to guarantee success, it couldn't hurt.
 
Ok, thanks. Can you recommend a good guide for doing this? I've checked out a few options but not sure what's the best route.
 
Has 4.4.3 even been launched yet?
Id just wait until someone shares a rooted version of it and flash that :thumbup:
 
Ok, thanks. Can you recommend a good guide for doing this? I've checked out a few options but not sure what's the best route.

The best way to unroot is to flash the factory image manually partition by partition so that you don't lose your data. When doing so, unzip the zip file that come with it and flash each .img for except the userdata one to its appropriate partition.
 
Ok, I was reading about that but couldn't find out if there's a difference between getting it from Google or flashing a ROM. Is there a difference as far as performance? I'm on a steep learning curve here and trying to be super careful haha
 
What if I don't care about losing my data? Have to admit although I'm sure I could follow a step by step on how to do that I really have no idea what that even means.... Uh oh
 
I rooted my Tracfone Galaxy Centura a few weeks ago, but it's "all dressed up with nowhere to go" - I'm nervous about trying too much. (I drive on a lot of deserted roads at night, and I don't want to risk frying it.) I don't know Linux at all - I come from a Windows environment and tend to see these things through "DOS-colored glasses".

Sent from my SCH-S738C using androidforums, powered by appyet.com
 
I rooted my Tracfone Galaxy Centura a few weeks ago, but it's "all dressed up with nowhere to go" - I'm nervous about trying too much. (I drive on a lot of deserted roads at night, and I don't want to risk frying it.) I don't know Linux at all - I come from a Windows environment and tend to see these things through "DOS-colored glasses".

Sent from my SCH-S738C using androidforums, powered by appyet.com

Try getting xposed framework. It has tons of modules to mod with and is as easy as installing apps. And completely reversable.
 
I'll definitely look into that. I got hold of the Android SDK, but I haven't done anything with it yet. I don't understand enough to start playing with code and APIs yet.

I've been looking at scripts, but those are different as well. In Winodws, I would create a batch file, stick it in a folder somewhere, and then send a shortcut to the Desktop. I tried that today with a simple reboot script (borrowed from ROM Toolbox) as follows:

#!/system/bin/sh

reboot


and I got a message "App isn't installed". What program is it looking for? Is there a program similar to WScript that runs these, or am I just totally lost? (I think I know the answer. :()

As you can see, I'm stuck at Square One here. (And can someone tell me what the #! is? I'm pretty sure that # means root access, but what is the exclamation point for?)
 
The ! is pronounced bang and #! is pronounced shuhbang. The # in a script means this line is a comment. #! on the first line says that this is a command file to be interpreted by the following named utility - in this case, the shell (sh).

See if you have reboot defined. Do as I've shown here in Terminal Emulator - issue which commands and see if you get a response:

[/] $ which sh
/system/bin/sh
[/] $ which reboot
/system/bin/reboot
[/] $

Btw - if you're not doing development, our Mini SDK is all you need.


http://androidforums.com/faqs/443072-adb-guide-updated-2013-05-21-a.html#post5389081

And how you execute a script matters. Please share more details on what you tried there.
 
You know, I could swear that I replied to this, on my laptop. (Hope I didn't break any rules.) No time right now. Will try again later.

Rob G
 
[/] $ which sh
/system/bin/sh
[/] $ which reboot
/system/bin/reboot
[/] $
OK, let's try again. I hope I type it all in correctly.

app_181@android:/ $ which sh
/system/bin/sh: which: not found
127|app_181@android:/ $ /system/bin/sh
app_181@android:/ $ which reboot
/system/bin/sh: which: not found
127|app_181@android:/ $ /system/bin/reboot
reboot: Operation not permitted
1|app_181@android:/ $

I should add that entering the "su" command before doing anything else gave me the "#" prompt. All of the results were the same, except that /system/bin/reboot restarted the phone.

O/T: I was amused by the "shebang" business. During my days as a Civil War reenactor, the term "shebang" referred to an impromptu shelter. Four pards (buddies) would fix bayonets and then stick their muskets in the ground in the form of a rough square. Then two or more shelter-halves were buttoned together, stretched out, and tied to the trigger-guards with string. It kept the rain or sun off you, but allowed for free circulation of air.
 
OK, let's try again. I hope I type it all in correctly.

app_181@android:/ $ which sh
/system/bin/sh: which: not found
127|app_181@android:/ $ /system/bin/sh
app_181@android:/ $ which reboot
/system/bin/sh: which: not found
127|app_181@android:/ $ /system/bin/reboot
reboot: Operation not permitted
1|app_181@android:/ $

I should add that entering the "su" command before doing anything else gave me the "#" prompt. All of the results were the same, except that /system/bin/reboot restarted the phone.

Rob,

I think you're simply missing a nifty little thing called busybox which should provide the which command for you (as well as a ton of other commands). Here's the one I've always used:


The standard Unix commands that Android supports (or allows) is woefully limited and the busybox does a great job of filling in those gaps.

Cheers!
 
But it apparently did not find the 'which' command. I'll try the other one later. Will advise.

Uninstall the one you have first.

And about # - yes, your prompt changes to that when you're root.

Has nothing to do with what it means in a script though.

The point of the which command was to see what you have.

You have reboot.

And it needs to be run as root.

So, going back to my earlier question - where do you want to execute this from and how?
 
All I wanted to do was to put a shortcut to a script on the desktop (homescreen), as I would with a Windows batch file, and run it. I was told "App isn't installed" and was wondering what app it was looking for... that's all, I swear.

Eventually, maybe I can write some of my own scripts (like, to copy files in batch, for instance) but if I can't run them, I'm dead in the water.
 
All I wanted to do was to put a shortcut to a script on the desktop (homescreen), as I would with a Windows batch file, and run it. I was told "App isn't installed" and was wondering what app it was looking for... that's all, I swear.

Eventually, maybe I can write some of my own scripts (like, to copy files in batch, for instance) but if I can't run them, I'm dead in the water.

Yeah, let me start by apologizing.

I know it's frustrating, we have all been there starting out.

I have been pressed for time and didn't want to take you in the wrong direction in this big subject area. When that happens, I get curt to be brief and quick but it comes across as confrontational. Ask the gang, that's never my intention. So, apologies. :o

Ok so you can get there from here.

Yes, you can make desktop scripts in Linux pretty much like you can with Windows.

In Windows, things get executable by name - if it ends in bat, it's a script.

In Linux, you set execution privileges to text scripts.

Then, the window manager (either operating system) knows how to sort out its own on the desktop.

Except Android doesn't run a window manager, and your desktop is really a space inside an app called your launcher.

So you need to bridge the gap and there's an app for that.

Check out "Script Manager - SManager"

https://play.google.com/store/apps/details?id=os.tools.scriptmanager

Been a few years since I used it.

It's a little confusing because it's not Windows or strictly Linux, it's for Android - and it does a lot. Including widgets to launch your scripts.

Play with it, ask away, but be warned that I'll probably have to get it and play too before I can answer any detailed questions.

Hope this helps! :)
 
Apologies not necessary.

I have SManager installed. I got rid of it because the font they use is so tiny, I almost need a microscope to read it. But I reinstalled it, along with some of its widgets. So I can play with it tonight.

I suppose what I was expecting (instead of "App isn't installed") was one of the "which program do you want to use" choices. But it didn't give any choices at all.

Let me play with it for a bit. Maybe I'll learn something.
 
Linux trusts you, so instead of a second choice, it just says it's not there.

That can happen when the script is there but doesn't have execute permission.

What phone do you have? I might find an alternative app that is easier to read.
 
Back
Top Bottom