Shattered Screen? Turn Your Broken Device into a Complete Media Center!

A cracked screen usually means you’ll have to spend a hefty … more

Gmail 5.0: Material Design and Multiple Account Support

Google started to materialize many of its applications right after announcing the … more

Some of Our Favorite Features in Android 5.0 Lollipop

Android 5.0 Lollipop is the latest major revision to Google’s mobile operating … more

Sony SmartEyeglass SDK Developer Preview Released

A little over a month ago in Tokyo, Japan, Sony unveiled its new SmartEyeglasstechnology. … more
Post Reply

[Q] Root method discovered for NEC Terrain?

OP jasonmerc

19th August 2014, 04:28 AM   |  #1  
jasonmerc's Avatar
OP Senior Member
Flag Go ahead and try to find me...
Thanks Meter: 89
 
198 posts
Join Date:Joined: Dec 2012
More
So I saw network unlocked NEC Terrain up on Amazon for about $85 or so, and I was thinking of getting one. However, the fact that root permissions haven't been obtained on this phone is really what is holding me back from purchasing it, and the last time I checked, the devs still have not found a PERMANENT root method for it...

I saw an app called Towelroot by geohot that can (maybe) not only root the Galaxy S5, but ANY recent Android phone, AS LONG AS it does not have 3.4.0 kernel or newer (at least that's what the article said regarding the Note 3 anyway).

Since I do not have the Terrain, I can't test this towelroot app to see if it works. So I was wondering if anyone out there with a Terrain would be willing to test this out to see if it works,and then report back the results. This device came out last year, and has not had software updates since October of 2013 because NEC doesn't want to do Androids anymore, so I am going to assume it does not have the 3.4.0 kernel. So maybe, just maybe, it will work. And who knows, if by some chance it does work, that could even lead to greater things being done with this device...

EDIT: I just read an article from ATT regarding the software on the Terrain on what I think is the latest firmware update. It said the kernel version was 3.0.8. I probably shouldn't, but I'm getting my hopes up. I kinda want this phone

http://www.att.com/esupport/article....id=ex0inqn4h0e

Sent from my MB855 from the free version of xda app because cheap
Last edited by jasonmerc; 28th August 2014 at 05:16 PM. Reason: changing thread title again
25th August 2014, 04:11 PM   |  #2  
Junior Member
Thanks Meter: 9
 
12 posts
Join Date:Joined: Aug 2014
It does not work
Hello,

Towelroot doesn't work on NEC Terrain. I've tried it with different configurations. I've also tried: labda root, poot, framaroot, z4root, vroot, baidu root, saferoot. Moreover I've tried manually root phone using this guide, tried dd modified boot.img, but that didn't stick and after reboot there wasn't any changes.

Problem is that one can't remount /system partition to rw. It just says “invalid argument”. Furthermore there is not any fastboot support (locked out I guess).

I can get temp root using method discribed by justDave, remount / and /data (maybe others partitions too, nether tried) partitions, mount ././tmp/xbin (with busybox and su in it) over /system/xbin, but that doesn't get me anywhere.

I'm thinking about dd custom recovery, but I need to read on it thirst. If you have any suggestions or other rooting methonds, manual rooting guides etc., please post them here and I will try them if my knowledge lets me.

Off topic: NEC closed their mobile devision. Just google “NEC Pulls the Plug on Smartphones” (I can't post links form outside). So there isn't any good news for peaple with NEC Terrain.
26th August 2014, 03:49 PM   |  #3  
jasonmerc's Avatar
OP Senior Member
Flag Go ahead and try to find me...
Thanks Meter: 89
 
198 posts
Join Date:Joined: Dec 2012
More
Well that sucks, towelroot was pretty much my only suggestion. I'll look into others. But just as a heads up, I don't think I'll be buying one anymore, so I won't be taking a LOT of time to research root methods.

And yes, I am aware that NEC stopped with smartphones. I assume that is why they are so cheap on Amazon?

Edit: bin4ry universal root for 4.0/4.1: http://m.ibtimes.co.uk/root-android-...install-385487 Chances are low that this will actually work, but I posted it anyway.

Sent from my MB855 using XDA Free mobile app
Last edited by jasonmerc; 26th August 2014 at 03:53 PM.
26th August 2014, 06:55 PM   |  #4  
Junior Member
Thanks Meter: 9
 
12 posts
Join Date:Joined: Aug 2014
Yeah... no.
Personally I don't think you should buy it if there isn't permanent root method and I don't think there will be any. NEC Terrain isn't popular so nobody with know-how will join the effort to root it. Also at least my phone has problems with battery (from the moment I got it). It holds charge for 8 hours max. "Wakelock Detector" says it's always awake. Something with suspend_backoff, but because I can't uninstall bloatware I can't find out which app actually causes it. Furthermore without the root one can't turn off "Fast Dormancy", which in my country drains battery. At this point I'm not afraid to hard brick it or nailed it to the wall, because without the root it is good as paperweight for me.

bin4ry universal root for 4.0/4.1 don't worked either. When I ran RunMe.sh (I'm on linux) nothing happens. Script is using commands like "am start -a android.intent.action.MAIN -n com.sonyericsson.android.servicemenu/.ServiceMainMenu" and moving folders which phone doesn't have.
26th August 2014, 07:25 PM   |  #5  
jasonmerc's Avatar
OP Senior Member
Flag Go ahead and try to find me...
Thanks Meter: 89
 
198 posts
Join Date:Joined: Dec 2012
More
Quote:
Originally Posted by FFDA

Personally I don't think you should buy it if there isn't permanent root method and I don't think there will be any. NEC Terrain isn't popular so nobody with know-how will join the effort to root it. Also at least my phone has problems with battery (from the moment I got it). It holds charge for 8 hours max. "Wakelock Detector" says it's always awake. Something with suspend_backoff, but because I can't uninstall bloatware I can't find out which app actually causes it. Furthermore without the root one can't turn off "Fast Dormancy", which in my country drains battery. At this point I'm not afraid to hard brick it or nailed it to the wall, because without the root it is good as paperweight for me.

bin4ry universal root for 4.0/4.1 don't worked either. When I ran RunMe.sh (I'm on linux) nothing happens. Script is using commands like "am start -a android.intent.action.MAIN -n com.sonyericsson.android.servicemenu/.ServiceMainMenu" and moving folders which phone doesn't have.

Yeah, I don't think I'm going to buy it anymore. I mean, that $80 price tag on Amazon looks good, but if no one can even get it ROOTED, then even for that price it's not worth it. I've been looking at another cheap, rugged phone to get, the Kyocera Hydro Life which is $125 at Wal-Mart for T-Mobile. At least that phone has a root method.

But maybe one day, if I see a Terrain for like $40 or something ridiculously cheap like that on an online store, I'll pick one up. Yes, smartphones can get that cheap. I saw a Motorola Bravo (not a bad phone, I have one myself with a 4.4.4 ROM) for $40 new on eBay.

But anyway, if I find a new root method, I'll be sure to post it here. Chances are really slim for anything actualy working, but hey, it's worth a try.
28th August 2014, 06:03 AM   |  #6  
jasonmerc's Avatar
OP Senior Member
Flag Go ahead and try to find me...
Thanks Meter: 89
 
198 posts
Join Date:Joined: Dec 2012
More
*BUMP* *BIG NEWS*

Just spoke with the very generous Kemonine96, a developer who I came to know through his work on the Rugby Smart. What started out as a half-sarcastic post made by me regarding Towelroot and the Terrain turned into what looks like a solution to this device's root issues! He thinks he has a solution to finally root this Terrain. And I believe him, because it sounds like he knows what he is talking about. Here are his exact words regarding some of my questions:

Quote:
Originally Posted by kemonine96

You're welcome to borrow my work. All I'd ask is a note that it was adapted from the work done on the Rugby Pro.

He ran into a similar problem with the Galaxy Rugby where the /system would not mount as read/write. He made a root update.zip that fixed this issue. We are welcome to use it/modify it for the Terrain. But BE SURE TO GIVE HIM CREDIT IF YOU RELEASE SOMETHING BASED ON HIS ROOT.ZIP!!!! Please continue reading for more information:

Quote:
Originally Posted by kemonine96

As for using it outright on the terrain: you likely need to adjust it some. Each device varies some and you'll need to hunt down the exact details. Fortunately the d2 familiy are all very similar so modifications should be minimal if necessary. I'd start by trying it and going from there.


You can use the following root (see OP root instructions). Dig through the update script and look for the file I'm renaming. You'll likely need something similar for the terrain. I developed this by gaining temporary root, unpacking an image I took of the boot partition and walking through the init scripts to see if they were calling anything "interesting" on /system. Managed to track down the file that was paving root/custom recovery. Once I knew the file I setup the update.zip to move the file out of the way so the call to it during boot would fail.

https://nuskunetworks.box.com/s/f1h6murg79lcoavvg0fk


The update.zip root stuff I've published requires a custom recovery to be available. The current "best way" prior to towel root was to flash a custom recovery with ODIN, immediately boot into recovery after the ODIN flash, applying the root update.zip and then booting into system. I came up with the exact procedure after much trial, error and chasing down ghosts.


If you have temporary root I'd do something similar to the following for permanent root

  1. Setup busybox somewhere (/data maybe?) and use dd from it to copy off the whole emmc to an external sd card (use OTG + usb key if necessary). Do a full dd of the emmc disk under /dev and do a full dd of each partition under /dev
  2. Start going through the partition images (BACKUPS are important here) using loopback mounts (or similar) and see where everything is at
  3. Create a rough partition map (/dev/emmc0p1 maps to boot, /dev/emmc0p12 maps to recovery, etc [note these are contrived examples, look at the Rugby Pro stuff I've published for a starting point] -- This is a huge help to get others invovled and so you can figure out what is where quickly.
  4. Once you find recovery/boot/system start looking for ways to adjust to get a developer version permanent root. It doesn't have to be pretty, It just needs to work to aid development along. The initial root method for the Rugby Pro was devloped by using a temp root to pull the boot partition, slip permanent root into the boot image, re-flash the updated boot image using dd. Once I had this I was able to start work on custom recovery and a saner root method.
  5. Once you find a permanent root that can be used by developer types start looking at a proper custom recovery and get TWRP/CWM working
  6. Ensure custom recovery (TWRP is a win all around at this point) is 100% and figure out if it's ever blown away during boot by some goofy script in /system (test by flashing custom recovery, booting it, rebooting into normal android, reboot back into recovery)
  7. Get custom recovery mostly situated and work on an update.zip that sets up permanent root in a way that can be used by others easily (see my update.zip as a starting point)
  8. Release custom recovery image, update.zip root and good instructions

This could be it. Thanks, Kemonine96. Thanks for not only this, but for your Rugby work as well

EDIT: To see the whole conversation, or in case I am leaving out information, please visit the Samsung Galaxy Rugby Pro Super Thread and go to the latest post. It should be somewhere around there.

Sent from my MB855 using XDA Free mobile app
Last edited by jasonmerc; 28th August 2014 at 06:15 AM.
28th August 2014, 06:07 AM   |  #7  
Recognized Developer
Flag Michigan
Thanks Meter: 1,223
 
1,244 posts
Join Date:Joined: Jan 2011
Donate to Me
You may also want to look at the root methods for other msm8960 and msm8660 devices. HTC, Sony and Samsung all used the platform prior to JB and there may be other examples floating around.

The Terrain was late to the party compared to some so it'll likely be trickier.
28th August 2014, 06:13 AM   |  #8  
jasonmerc's Avatar
OP Senior Member
Flag Go ahead and try to find me...
Thanks Meter: 89
 
198 posts
Join Date:Joined: Dec 2012
More
Quote:
Originally Posted by kemonine96

You may also want to look at the root methods for other msm8960 and msm8660 devices. HTC, Sony and Samsung all used the platform prior to JB and there may be other examples floating around.

The Terrain was late to the party compared to some so it'll likely be trickier.

Since NEC gave up on smartphones after they made the Terrain, I doubt we will be getting any official drivers/kernels or anything of the sort from them.

Sent from my MB855 using XDA Free mobile app
28th August 2014, 06:15 AM   |  #9  
Recognized Developer
Flag Michigan
Thanks Meter: 1,223
 
1,244 posts
Join Date:Joined: Jan 2011
Donate to Me
Quote:
Originally Posted by jasonmerc

Since NEC gave up on smartphones after they made the Terrain, I doubt we will be getting any official drivers/kernels or anything of the sort from them.

Sent from my MB855 using XDA Free mobile app

As long as you can get the 3.0 kernel (it's GPL after all) you should be able to get newer releases going. It'll be a pita, but it's doable if you've got a starting point.

The real pain will likely be the keyboard / screen drivers since they are non standard compared to other devices.
28th August 2014, 06:19 AM   |  #10  
jasonmerc's Avatar
OP Senior Member
Flag Go ahead and try to find me...
Thanks Meter: 89
 
198 posts
Join Date:Joined: Dec 2012
More
Quote:
Originally Posted by kemonine96

As long as you can get the 3.0 kernel (it's GPL after all) you should be able to get newer releases going. It'll be a pita, but it's doable if you've got a starting point.

I'd LOVE to be able to do these things myself, but alas, I am but a script kiddie as of now. I will begin my Android-modding studies as of now. Give me about 100 years and I should be good to go!

Sent from my MB855 using XDA Free mobile app

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Questions and Answers by ThreadRank