[-]
Who's Online
There are currently 920 online users. [Complete List]
» 1 Member(s) | 919 Guest(s)
Avatar

[-]
Latest Threads
ZH960 Tablet Bricked
Last Post: luis mar que
2024-03-20 19:52
» Replies: 15
» Views: 9724
Thanks, I've been looking for this for a...
Last Post: StevenRip
2024-02-25 05:00
» Replies: 0
» Views: 36
[SOLVED] Need ROM for ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:59
» Replies: 0
» Views: 123
NEED ROM ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:53
» Replies: 18
» Views: 13588
Budget phone choice help needed
Last Post: sabir7272
2024-02-10 06:52
» Replies: 4
» Views: 4227
ZH960-MB-V3.1 SOLVE
Last Post: Pranav1
2023-12-20 20:22
» Replies: 77
» Views: 33625
Need ROM for SONIM XP7S Android 5.1.1
Last Post: Alpa
2023-11-29 22:17
» Replies: 0
» Views: 88
Need rom for X101 Mt6592
Last Post: carencell
2023-11-24 21:30
» Replies: 3
» Views: 2072
Gizbeat 101: Get your MTK6589 MTK6577 MT...
Last Post: Alexia78
2023-11-13 11:28
» Replies: 8
» Views: 22274
ZH960-MB-V3.1
Last Post: Giankyworld81
2023-11-01 19:35
» Replies: 21
» Views: 15398
Need rom for a tablet with board id "K10...
Last Post: oliver2
2023-10-24 20:23
» Replies: 6
» Views: 5286
How to Connect open public wifi
Last Post: oliverben45
2023-10-24 16:03
» Replies: 11
» Views: 8804
I NEED FILE FOR ITEL MOBILE PHONE AND TO...
Last Post: Meghnad45
2023-10-22 02:38
» Replies: 1
» Views: 1384
NEED Help Bricked my phone.
Last Post: Meghnad45
2023-10-22 02:36
» Replies: 4
» Views: 4796
Introduction
Last Post: ezrahidaya
2023-10-14 14:38
» Replies: 3
» Views: 1308
Needs help to root a china tablet brand ...
Last Post: ezrahidaya
2023-10-14 14:37
» Replies: 1
» Views: 183
Any tips to stay awake?
Last Post: ezrahidaya
2023-10-14 14:35
» Replies: 6
» Views: 5140
Need ROM for china TAb MT6797
Last Post: ezrahidaya
2023-10-14 14:34
» Replies: 1
» Views: 323
need this stock firmware for my tablet M...
Last Post: ramzii888
2023-10-14 02:20
» Replies: 4
» Views: 4478
Encryption Unsuccessful - Reset Android
Last Post: Aakriti
2023-10-13 16:51
» Replies: 3
» Views: 12385
betools
Last Post: egdeim
2023-09-21 12:41
» Replies: 4
» Views: 5027
[Movie Suggestion] Automata with Antonio...
Last Post: GottaGetX
2023-09-07 09:19
» Replies: 3
» Views: 4098
Suggest a movie thread
Last Post: GottaGetX
2023-09-07 09:17
» Replies: 5
» Views: 8784





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,143 2020-04-11, 21:53
Last Post: romaneart
  iNo3 MT6735- ROOT, TWRP and Raw Img backup Leonaheidern 3 6,608 2018-06-03, 12:32
Last Post: chinawine
  [Tutorial] Ultimate no-root backup CWM MT6582 MT6592 MT6589 MT6589T MT6577 MT6595 Sniper47 39 114,667 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,904 2018-02-15, 06:46
Last Post: milantic
Question [How-To] Root MT6595 android phone Farik23 0 1,698 2017-12-13, 04:22
Last Post: Farik23

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Tech & Science
[Sci-Am] We Are Living in the Pyrocene, the Age of Fire that...
Last Post: Scientific American
Yesterday 16:45
» Replies: 0
» Views: 20
[Harvard] Hate mosquitoes? Who doesn’t? But maybe we shouldn...
Last Post: Harvard
Yesterday 03:05
» Replies: 0
» Views: 35
[Sci-Am] Why Some People Always Get Lost—And Others Never Do
Last Post: Scientific American
2024-04-17 13:33
» Replies: 0
» Views: 30
[Sci-Am] U.S. Carbon Removal Needs Have a $100-Billion Price...
Last Post: Scientific American
2024-04-16 23:48
» Replies: 0
» Views: 33
[Sci-Am] New Books Help Parents Explain Climate Disasters to...
Last Post: Scientific American
2024-04-16 10:13
» Replies: 0
» Views: 48
[Sci-Am] Renewable Energy Shatters Records in the U.S.
Last Post: Scientific American
2024-04-15 20:19
» Replies: 0
» Views: 65
[Sci-Am] The Dunning-Kruger Effect Shows that People Don’t K...
Last Post: Scientific American
2024-04-15 06:47
» Replies: 0
» Views: 64
[Sci-Am] AI Chatbots Will Never Stop Hallucinating
Last Post: Scientific American
2024-04-14 17:12
» Replies: 0
» Views: 54
[Sci-Am] How Do Periodical Cicadas Know When to Emerge?
Last Post: Scientific American
2024-04-14 03:11
» Replies: 0
» Views: 44
[Sci-Am] It’s Never Too Late to Take Climate Action
Last Post: Scientific American
2024-04-13 13:43
» Replies: 0
» Views: 54
[Sci-Am] To Ancient Maya, Solar Eclipses Signified Clashing ...
Last Post: Scientific American
2024-04-12 23:09
» Replies: 0
» Views: 55
[Sci-Am] What We Know about Taiwan’s Magnitude 7.4 Earthquak...
Last Post: Scientific American
2024-04-12 09:25
» Replies: 0
» Views: 75
[Sci-Am] Plastic Pollution Is Drowning Earth. A Global Treat...
Last Post: Scientific American
2024-04-11 19:50
» Replies: 0
» Views: 75
[Sci-Am] Eclipses Reveal a Comforting Clockwork in Our Chaot...
Last Post: Scientific American
2024-04-11 06:28
» Replies: 0
» Views: 42
[Harvard] ‘Harvard Thinking’: Climate alignment is no easy t...
Last Post: Harvard
2024-04-11 06:28
» Replies: 0
» Views: 40
[Sci-Am] Men Succumb to Anesthesia More Easily than Women
Last Post: Scientific American
2024-04-09 14:02
» Replies: 0
» Views: 57
[Sci-Am] How to Watch the Total Solar Eclipse Online
Last Post: Scientific American
2024-04-09 00:30
» Replies: 0
» Views: 72
[Sci-Am] Memories Are Made by Breaking DNA — and Fixing It, ...
Last Post: Scientific American
2024-04-08 10:50
» Replies: 0
» Views: 51
[Sci-Am] Ever Larger Cargo Ships Threaten Bridges, Ports and...
Last Post: Scientific American
2024-04-07 21:14
» Replies: 0
» Views: 56
[Sci-Am] Baltimore Bridge Collapse Will Teach Engineers to B...
Last Post: Scientific American
2024-04-07 07:47
» Replies: 0
» Views: 50
[Sci-Am] Pregnancy Increases Biological Age, but Giving Birt...
Last Post: Scientific American
2024-04-06 18:13
» Replies: 0
» Views: 19
[Sci-Am] Understanding Dyscalculia, Dyslexia’s Numeric Count...
Last Post: Scientific American
2024-04-06 04:35
» Replies: 0
» Views: 13
[Sci-Am] Baltimore Bridge Collapse Wreaks Havoc on Coal, Car...
Last Post: Scientific American
2024-04-05 15:14
» Replies: 0
» Views: 12
[Harvard] A playbook for policy change
Last Post: Harvard
2024-04-05 15:14
» Replies: 0
» Views: 13
[Sci-Am] Does Long-Term Benadryl Use Increase Dementia Risk?
Last Post: Scientific American
2024-04-05 01:43
» Replies: 0
» Views: 21
[Sci-Am] How Visually Impaired People Can Experience Solar E...
Last Post: Scientific American
2024-04-04 11:44
» Replies: 0
» Views: 18
[Harvard] Under pressure
Last Post: Harvard
2024-04-04 11:44
» Replies: 0
» Views: 37
[Sci-Am] Wild Birds Gesture ‘After You’ to Insist Their Mate...
Last Post: Scientific American
2024-04-03 08:12
» Replies: 0
» Views: 90
[Harvard] Glimpse into how mind may affect healing
Last Post: Harvard
2024-04-03 08:12
» Replies: 0
» Views: 52
[Sci-Am] The Future of Driving in the U.S. Is Electric—Sort ...
Last Post: Scientific American
2024-04-02 18:49
» Replies: 0
» Views: 24
[Sci-Am] What Climate Change Means for Your Garden
Last Post: Scientific American
2024-04-02 05:13
» Replies: 0
» Views: 48
[Sci-Am] Banning TikTok Would Do Basically Nothing to Protec...
Last Post: Scientific American
2024-04-01 15:15
» Replies: 0
» Views: 51
[Sci-Am] Can AI Replace Human Research Participants? These S...
Last Post: Scientific American
2024-04-01 01:16
» Replies: 0
» Views: 60
[Sci-Am] We Need a Public Service Internet to Free Us from B...
Last Post: Scientific American
2024-03-31 10:31
» Replies: 0
» Views: 71
[Sci-Am] How Do Babies Realize They Can Influence the World?
Last Post: Scientific American
2024-03-30 19:18
» Replies: 0
» Views: 65
[Sci-Am] Earth Has More Than One Moon
Last Post: Scientific American
2024-03-30 05:26
» Replies: 0
» Views: 66
[Sci-Am] Kitten Season Is Out of Control. Are Warmer Winters...
Last Post: Scientific American
2024-03-29 15:41
» Replies: 0
» Views: 55