[-]
Who's Online
There are currently 4258 online users. [Complete List]
» 8 Member(s) | 4250 Guest(s)
AvatarAvatarAvatarAvatar
AvatarAvatarAvatarAvatar

[-]
Latest Threads
Sexy Girls in your town for night
Last Post: omegapr
Yesterday 16:41
» Replies: 1
» Views: 398
Need ROM for Q223_MB_V41
Last Post: aamm065065
2024-05-13 00:34
» Replies: 0
» Views: 632
K107-MB-V4.2
Last Post: Alby
2024-04-24 00:37
» Replies: 0
» Views: 266
[ROM] NEED ROM ZH960-MB-V5.0 MTK 6592
Last Post: sendycat2
2024-04-21 08:57
» Replies: 0
» Views: 274
ZH960 Tablet Bricked
Last Post: luis mar que
2024-03-20 19:52
» Replies: 14
» Views: 9871
Thanks, I've been looking for this for a...
Last Post: StevenRip
2024-02-25 05:00
» Replies: 0
» Views: 246
[SOLVED] Need ROM for ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:59
» Replies: 0
» Views: 334
NEED ROM ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:53
» Replies: 18
» Views: 13794
Budget phone choice help needed
Last Post: sabir7272
2024-02-10 06:52
» Replies: 4
» Views: 4319
ZH960-MB-V3.1 SOLVE
Last Post: Pranav1
2023-12-20 20:22
» Replies: 74
» Views: 33918
Need ROM for SONIM XP7S Android 5.1.1
Last Post: Alpa
2023-11-29 22:17
» Replies: 0
» Views: 221
Need rom for X101 Mt6592
Last Post: carencell
2023-11-24 21:30
» Replies: 3
» Views: 2214
Gizbeat 101: Get your MTK6589 MTK6577 MT...
Last Post: Alexia78
2023-11-13 11:28
» Replies: 8
» Views: 22380
Need rom for a tablet with board id "K10...
Last Post: oliver2
2023-10-24 20:23
» Replies: 6
» Views: 5616
How to Connect open public wifi
Last Post: oliverben45
2023-10-24 16:03
» Replies: 11
» Views: 8989
I NEED FILE FOR ITEL MOBILE PHONE AND TO...
Last Post: Meghnad45
2023-10-22 02:38
» Replies: 1
» Views: 1470
NEED Help Bricked my phone.
Last Post: Meghnad45
2023-10-22 02:36
» Replies: 4
» Views: 4885
Introduction
Last Post: ezrahidaya
2023-10-14 14:38
» Replies: 2
» Views: 1376
Needs help to root a china tablet brand ...
Last Post: ezrahidaya
2023-10-14 14:37
» Replies: 1
» Views: 266
Any tips to stay awake?
Last Post: ezrahidaya
2023-10-14 14:35
» Replies: 6
» Views: 6134
Need ROM for china TAb MT6797
Last Post: ezrahidaya
2023-10-14 14:34
» Replies: 1
» Views: 450
need this stock firmware for my tablet M...
Last Post: ramzii888
2023-10-14 02:20
» Replies: 4
» Views: 4683
Encryption Unsuccessful - Reset Android
Last Post: Aakriti
2023-10-13 16:51
» Replies: 3
» Views: 12488





Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Testing for true root
#1
Hi
Try at own risk, but I suspect it should be safe enough.

#########
CREDITS
#########
vampirefo for his helpful explanation of true root and test as supplied in replies now embedded in the Windows section and updated Linux script.

WHAT IS TRUE ROOT ANYHOW?
A lot of buyers of Chinese, Indian, Korean phones from various resellers are told their phone is rooted. But that can mean just the su executable is installed and the maker of the ROM has not tested all functions.

So true root means amongst other things
1) That you have the su executable installed
2) that your Android system is in read write mode
3) That this condition persists over a reboot

Otherwise, you need a script to re-enable rw status
or,
an app that can defeat your secure mode kernel
_____________________

Please Note I may change, tinker or otherwise edit this post to keep it the most recent version. Pls check the edit date/time and you may need to re-read?
##############
ANDROID ONLY
##############

Pls install the following 2 apps which are: an Android Terminal and busybox
[Only registered and activated users can see links Click here to register]

I have changed my recommendation as first busybox offers normal or recovery mode install
[Only registered and activated users can see links Click here to register]

I used to use this one but YMMV
[Only registered and activated users can see links Click here to register]

For me to bypass my secure mode ROM I needed to install and enable this app.......YMMV
adbd insecure
[Only registered and activated users can see links Click here to register]

2) Open the terminal and issue the commands
Code:
su
id
mount | busybox grep /system

if command not found then you have no super user apk installed and need to root your phone. This TUT assumes you have su installed so skip the rest if you don't have it pls.

Next within Android look at your prompt......the stuff before the # symbol
I believe it must be root@something as per image. I have a bad image in a reply below as well.
[Image: 20r5r0h.jpg]

Notice the id result must be as per image

If your image differs, I suggest you install a new su app from playstore called SuperSU by CHAINFIRE
once enabled you can delete your old app. Then do a full reboot please and recheck true root from the beginning.
[Only registered and activated users can see links Click here to register]

But be aware that playstore will not show any updates in the notification area for any "rooted" app. So you need to click on it within playstore to see if an update is available.......and to update it.....later on.....you need CWM or TWRP or similar tool installed.

You might also consider flashing via adb but I have not tested that.

The THIRD command is a check that busybox is working and shows an output that includes a status of your /system as either ro or rw
read only is occurs often on devices that have a secure mode as discussed by vampirefo below
read write means you are more likely to pass all other true root tests

3) You can try within Android to make your system go from ro to rw if you like?
Code:
su
mount -o remount,rw /system
mount | busybox grep /system
[Image: 2vrsyvk.jpg]

As thats a lot of typing if you ever reboot or shutdown your phone, I will test a downloadable script later


########
Linux
########

I have an udev system and use adb as a local user (non-root)
this requires a relaxed permission in the udev rule as showing for most
devices here....grab the raw file from here
[Only registered and activated users can see links Click here to register]

Use a text editor to change to perm 666 instead of 660

If you intend to redistribute his udev rule pls incorporate the License as per
[Only registered and activated users can see links Click here to register]

but that does not yet know about my iOcean so my rule is here
Quote:SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="666", GROUP="plugdev"

and to reload the udev rules you follow this instruction for a systemd system
[Only registered and activated users can see links Click here to register]
or if that fails use
Code:
sudo udevadm control --reload-rules

Script is here
Now version d
[Only registered and activated users can see links Click here to register]

##########
Windows
##########

USB window driver associated with Android
adb installed and running as Adminstrator

commands and explanation to follow

I have no Windows to test this on

change Directory into where you have the adb tools unpacked
Next we start the server off with a full restart
Code:
adb kill-server
adb start-server
adb devices -l

Thanks to vampirefo we have another test for true root
Code:
adb shell id

You must see something like this
Code:
uid=0(root) gid=0(root)

You must be able to see the serial number of your device to continue. If there is a question mark in the serial number, you are not running as Admin,

Next we test to see if you already have system in read write mode.
Code:
adb shell su -c "mount | busybox grep /system"

(above line has been editted as busybox is easier to type that /system/xbin

3 things will happen here
1) You get permission denied because you are not truly rooted. For most that means installing the abdb insecure app which worked for me
2) status shows as ro
3) status shows as rw

If (1) meant you downloaded and enabled the app, you repeat above command
If (3) skip the next bit
For (2) users only we attempt to mount as rw------and recheck for rw status
Code:
adb shell su -c "mount -o remount,rw /system"
adb shell su -c "mount | busybox grep /system"

If you got OK to here, we now discuss the owner and group rw permissions.

In this context * means r or w or x or -
For true root we need rw* rw* ***

But how to test?
In your folder/Directory place a text file you create with the following contents
cats
name the file aus9.txt
The file size you can see in properties.......I am guessing its about the same as Linux which is 5 bytes

We then copy into Android system and recheck its owner group permissions and size.
My faulty device transferred it with only owner perms......so its a good test to do pls

Here is my suggested command
Code:
adb push aus9.txt  /system/aus9.txt
adb shell su -c "ls -al /system/aus9.txt  "

You are now checking that the size you can see in Windows was the full amount of the transfer into Android PLUS
that owner and group are root root PLUS
perms are minimum of rw* rw* ***

When finished with this test we can clean up the Android with
Code:
adb shell su -c "rm /system/aus9.txt"
adb kill-server

Optional, delete that file from your Windows folder

good luck

TODO

Can some kind Windows soul confirm you need usb driver correctly installed before you can use adb?

Hint, if you can't get it working you may prefer to use Linux?
WuddaWaste likes this post
Reply
#2
True root is gained only from unsecure boot.img, secondary root is gained by suiding su binary either by direct command or via installing a su app.

secure boot.img only secondary root can be gained.
Code:
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=1
ro.allow.mock.location=0
persist.mtk.aee.aed=on
ro.debuggable=1
persist.sys.usb.config=mass_storage,adb
persist.service.acm.enable=0
ro.mount.fs=EXT4


not secure boot.img true root or 100% root.
Code:
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=0
ro.allow.mock.location=0
persist.mtk.aee.aed=on
ro.debuggable=1
persist.service.adb.enable=1
persist.sys.usb.config=mass_storage,adb
persist.service.acm.enable=0
ro.mount.fs=EXT4
You, aus9, umby1333 like this post
If you use my scripts or work in your own scripts, your scripts or license should reflect that.

ZTE Open C
Reply
#3
vampirefo

Are you suggesting that my gapp abdb insecure is not gaining true root?
You and GizBeat like this post
Reply
#4
(2014-05-24, 09:21)aus9 Wrote: vampirefo

Are you suggesting that my gapp abdb insecure is not gaining true root?

You can only gain secondary root unless you modify boot.img, or if your boot.img is already unsecure.


Quick test for root?

Code:
adb shell id

my output
Code:
adb shell id
uid=0(root) gid=0(root)

post yours
You and aus9 like this post
If you use my scripts or work in your own scripts, your scripts or license should reflect that.

ZTE Open C
Reply
#5
Thanks you are too quick for me
reference
[Only registered and activated users can see links Click here to register]

Code:
gordon@box:/a/1ANDROID/9build/1root-tests$ adb shell id
uid=0(root) gid=0(root)

disable abdb insecure and retest

Code:
adb kill-server
gordon@box:/a/1ANDROID/9build/1root-tests$ adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
gordon@box:/a/1ANDROID/9build/1root-tests$ adb shell id
uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)

I believe I can now say
abdb insecure is a confirmed app that will give true root to most devices if needed

EDIT

I will update my first post to include this info thanks.....all credit to you of course

Ok I feel this is as far as I need to go to be anal on root checking

If any kind Windows user can see if it works or not, feel free to comment
You and vampirefo like this post
Reply
#6
EDIT

Ok I think I have found one more test this is internal to Android

First attached image is the old FALSE root as discussed next

I just updated the su apk thru gapp......opened a terminal and ran su command and prompt has finally changed to root@"myphonename"

second attached image is proof su APK is now working correctly

The other tests still need to be done as your stock ROM may come as ro etc

You and vampirefo like this post


Attached Files Thumbnail(s)
       
Reply
#7
51-android-rules has been updated to
[Only registered and activated users can see links Click here to register]

I rec'd a reply from upstream maintainer.....he is now using usbids and has not accepted my iOcean usbid as its already reported
---but reported as a HTC device by make and by model as a fairphone

0bb4:0c03



2) Ok last tests for Sunday

I turned off abdb insecure and found my device was not true rooted after a full reboot so my updated su was not enough.

test (2) enabled that insecure app and also ticked another box for it to be enabled over reboot
full reboot......retest......fails

In checking the app again......I found that its gone back to disabled

this is a puzzlement

I imagine most people do not reboot their phones but leave them permanently
---but I am trying to work out what is funny.....about my phone

Its possible I should offer feedback to that developer, but I am mentioning it here
a) as a way of making online notes what I tested.....something I failed to do in the past
b) to let other users know it is not all smooth sailing.
----meaning its a lot trickier than it looks.

cheers
Reply
#8
(2014-05-26, 08:01)aus9 Wrote: [Only registered and activated users can see links Click here to register]

I rec'd a reply from upstream maintainer.....he is now using usbids and has not accepted my iOcean usbid as its already reported
---but reported as a HTC device by make and by model as a fairphone

0bb4:0c03



2) Ok last tests for Sunday

I turned off abdb insecure and found my device was not true rooted after a full reboot so my updated su was not enough.

test (2) enabled that insecure app and also ticked another box for it to be enabled over reboot
full reboot......retest......fails

In checking the app again......I found that its gone back to disabled

this is a puzzlement

I imagine most people do not reboot their phones but leave them permanently
---but I am trying to work out what is funny.....about my phone

Its possible I should offer feedback to that developer, but I am mentioning it here
a) as a way of making online notes what I tested.....something I failed to do in the past
b) to let other users know it is not all smooth sailing.
----meaning its a lot trickier than it looks.

cheers

Yes a lot of phones will show up as HTC (High Tech Computer Corp.), I didn't know a github existed for 51-android rules, I always make my own 51-android rules, but nice to know someone out there is collecting android ID's and maintaining a list of such devices.
You and aus9 like this post
If you use my scripts or work in your own scripts, your scripts or license should reflect that.

ZTE Open C
Reply
#9
a quick word on the superuser app

If your stock ROM came from China and has a su app, it is unlikely to update thru google apps

I suggest you install SuperSU made by CHAINFIRE

Once it is installed you can delete the existing su app

2) But playstore will not inform you when SuperSU updates.
Instead, once every so often, click on it...in playstore and it will display if update is available

3) You need CWM or TWRP or other recovery design to update this app.

Thats how I fixed my prompt in above images

good luck

EDIT
(4) I will be testing a change in my grep command....as when you do it in Android it takes too long to use the standard keyboard with my old line of
Code:
su
mount | /system/xbin/grep /system

to
Code:
su
mount | busybox grep /system

test complete------Linux script now version c.....Windows howto updated
You like this post
Reply
#10
managed to find my way across to your thread about true root, have read through it and I think that this might be beyond me as I do not really understand what to do, thanks for your help so far though.....
You and aus9 like this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tutorial] BACKUP, CUSTOM RECOVERY AND ROOT FOR MT67xx SMARTPHONES djtetei 14 24,251 2020-04-11, 21:53
Last Post: romaneart
  iNo3 MT6735- ROOT, TWRP and Raw Img backup Leonaheidern 3 6,623 2018-06-03, 12:32
Last Post: chinawine
  [Tutorial] Ultimate no-root backup CWM MT6582 MT6592 MT6589 MT6589T MT6577 MT6595 Sniper47 39 114,864 2018-04-17, 05:30
Last Post: lentmain
  [New flash method] MT6752 how to root & flash recovery MT67xx Ninja^F.U.B.A.R. 10 29,998 2018-02-15, 06:46
Last Post: milantic
Question [How-To] Root MT6595 android phone Farik23 0 1,709 2017-12-13, 04:22
Last Post: Farik23

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Tech & Science
[Sci-Am] Why Are Bears ‘Friend-Shaped’?
Last Post: Scientific American
Today 10:59
» Replies: 0
» Views: 18
[Sci-Am] SpaceX Starship Blasts through Plasma on Return fro...
Last Post: Scientific American
Yesterday 19:15
» Replies: 0
» Views: 27
[Sci-Am] Should Blood Pressure Guidelines Be Different for W...
Last Post: Scientific American
Yesterday 05:43
» Replies: 0
» Views: 32
[Sci-Am] Many Prenatal Supplements Don’t Provide Enough of K...
Last Post: Scientific American
2024-06-15 15:52
» Replies: 0
» Views: 23
[Sci-Am] How Baby Orangutans Become Master Treehouse Archite...
Last Post: Scientific American
2024-06-15 01:45
» Replies: 0
» Views: 27
[Harvard] Glimpse of next-generation internet
Last Post: Harvard
2024-06-15 01:45
» Replies: 0
» Views: 18
[Sci-Am] Ada Lovelace’s 180-Year-Old Endnotes Previewed the ...
Last Post: Scientific American
2024-06-14 12:16
» Replies: 0
» Views: 28
[Sci-Am] Heat Waves Make AC Too Expensive for Many People
Last Post: Scientific American
2024-06-13 22:23
» Replies: 0
» Views: 39
[Sci-Am] Fauci Calls COVID Cover-Up Claim ‘Preposterous’
Last Post: Scientific American
2024-06-13 08:48
» Replies: 0
» Views: 39
[Harvard] Science is making anti-aging progress. But do we w...
Last Post: Harvard
2024-06-13 08:48
» Replies: 0
» Views: 39
[Sci-Am] China’s Chang’e 6 Probe Lands on Far Side of the Mo...
Last Post: Scientific American
2024-06-12 18:59
» Replies: 0
» Views: 28
[Sci-Am] World’s Largest Known Genome Discovered in Small, U...
Last Post: Scientific American
2024-06-12 04:45
» Replies: 0
» Views: 27
[Harvard] Epic science inside a cubic millimeter of brain
Last Post: Harvard
2024-06-12 04:45
» Replies: 0
» Views: 36
[Sci-Am] Warfare’s Climate Emissions Are Huge but Uncounted
Last Post: Scientific American
2024-06-11 15:15
» Replies: 0
» Views: 41
[Sci-Am] It Is Too Soon for Clinical Trials on Artificial Wo...
Last Post: Scientific American
2024-06-11 00:57
» Replies: 0
» Views: 62
[Harvard] What is ‘original scholarship’ in the age of AI?
Last Post: Harvard
2024-06-11 00:57
» Replies: 0
» Views: 46
[Sci-Am] These Five Tanning Myths are Dangerous
Last Post: Scientific American
2024-06-10 11:15
» Replies: 0
» Views: 69
[Sci-Am] How Your Itch Can Make Others Scratch
Last Post: Scientific American
2024-06-09 21:19
» Replies: 0
» Views: 76
[Sci-Am] How Old Is the North Star? The Answer Could Change ...
Last Post: Scientific American
2024-06-09 07:57
» Replies: 0
» Views: 48
[Sci-Am] ‘Pee-Cycling’ Could Help Tackle Cape Cod’s Polluted...
Last Post: Scientific American
2024-06-08 18:32
» Replies: 0
» Views: 48
[Sci-Am] The 5 Hurricane Categories Don’t Fully Capture a St...
Last Post: Scientific American
2024-06-07 15:26
» Replies: 0
» Views: 57
[Sci-Am] This Silk Creates Noise-Canceling Vibrations
Last Post: Scientific American
2024-06-07 01:30
» Replies: 0
» Views: 67
[Sci-Am] Lunar Dust Could ‘Sandblast’ Astronauts on the Moon...
Last Post: Scientific American
2024-06-05 22:07
» Replies: 0
» Views: 70
[Sci-Am] Optical Illusions Can Fool AI Chatbots, Too
Last Post: Scientific American
2024-06-05 08:29
» Replies: 0
» Views: 45
[Harvard] Complex questions, innovative approaches
Last Post: Harvard
2024-06-05 08:29
» Replies: 0
» Views: 82
[Sci-Am] How Often Do Supernovas Strike Earth?
Last Post: Scientific American
2024-06-04 04:36
» Replies: 0
» Views: 68
[Sci-Am] Europe’s Mars Rover Will Use New Nuclear Power Sour...
Last Post: Scientific American
2024-06-03 14:27
» Replies: 0
» Views: 87
[Sci-Am] Black Hole’s Mysterious ‘Plunging Region’ Matches E...
Last Post: Scientific American
2024-06-03 00:29
» Replies: 0
» Views: 124
[Sci-Am] What Is Wind Shear, and How Does It Shape Hurricane...
Last Post: Scientific American
2024-06-02 10:38
» Replies: 0
» Views: 70
[Sci-Am] The Artificial Intelligence Era Faces a Threat from...
Last Post: Scientific American
2024-06-01 21:18
» Replies: 0
» Views: 59
[Sci-Am] Innovative Thinking Could Make New Sickle Cell Trea...
Last Post: Scientific American
2024-06-01 07:55
» Replies: 0
» Views: 50
[Sci-Am] Could Putting Neosporin in Your Nose Fend Off COVID...
Last Post: Scientific American
2024-05-31 17:53
» Replies: 0
» Views: 67
[Sci-Am] Phoenix, America’s Hottest City, Is Having a Surge ...
Last Post: Scientific American
2024-05-31 04:25
» Replies: 0
» Views: 81
[Sci-Am] What Is Pasteurization, and How Does It Keep Milk S...
Last Post: Scientific American
2024-05-30 14:57
» Replies: 0
» Views: 111
[Sci-Am] Hurricanes Caused Lost Income among at Least Half o...
Last Post: Scientific American
2024-05-30 00:59
» Replies: 0
» Views: 104
[Sci-Am] This Year’s La Niña Could Worsen Atlantic Hurricane...
Last Post: Scientific American
2024-05-29 10:41
» Replies: 0
» Views: 87
[Sci-Am] How Can You ‘See’ a Black Hole?
Last Post: Scientific American
2024-05-28 06:03
» Replies: 0
» Views: 119