yashsingh1/xdaforums huggingface dataset:
[Fire HD 8 and HD 10 General] nujak:
[MENTION=9916780]Wambaxssss[/MENTION] I tried it on my already rooted HD 8 using terminal and I get the same error after the chmod step (maybe needs Android 8.x + to work?) . Maybe someone else will have a solution for the terminal method. I'd definitely recommend doing it through adb if possible.
[Fire HD 8 and HD 10 General] diplomatic:
What is the output of 'ls -l' and 'ls -lZ'? EDIT: Might need to use /system/bin/ls -lZ to get at it.

It's certainly possible to run it in terminal under Fire OS.
[Fire HD 8 and HD 10 General] borissprat:
Absolutely! I noted the potential redundancy at the time of execution and the realised redundancy at the time of replying to the OP. However I was convinced that even if the OP spotted the fact, they perhaps may still find utility in a working solution however inelegant, or unlearned.
[Fire HD 8 and HD 10 General] Wambaxssss:
[MENTION=8132642]diplomatic[/MENTION] ls -l lists the files as I expect.... mtk-su is there and has permissions -rwx------

I feel like I"m missing something obvious...

---------- Post added at 07:41 PM ---------- Previous post was at 06:50 PM ----------

[MENTION=1033093]nujackk[/MENTION] is the adb method working for people? I had trouble with my new HD8 and so just went for the terminal method as per the instructions. I could go back and keep messing with the adb....
[Fire HD 8 and HD 10 General] nujak:
I did root and magisk on my 2018 Fire HD 8 using Ubuntu following Bilbaka's guide.

Fire Toolbox has an Adb shell option to do the temporary root shell (using mtk-su) through adb if that helps.
[Fire HD 8 and HD 10 General] Snigglez:
That is rad - I wonder if it will work on hd 8 2017?

I'm having issues getting superSU to stick. I'm running Linux (forsaken windoze) taken apart the auto SU batch script to make it work it with Bash... every command is entered correctly, all looks well, but still can't verify root & superSU is unresponsive to superuser requests.

Yes, a .sh script would be awesome, and obviously I'm doing something wrong otherwise I'd have it up here.
[Fire HD 8 and HD 10 General] dutchthomas:
Did you set SuperSu to grant?
[Fire HD 8 and HD 10 General] diplomatic:
OK, so there may be some issues with Termux that have to do with it having its own set of libraries as a layer between the executable and Android. That prevents you from running 32-bit programs on a 64-bit OS or lead to other compatibility problems. So make sure that you're running the arm64 version, unless you have an HD 8 2018. If that doesn't work, just switch to another app like Terminal Emulator for Android (my preferred) or JuiceSSH. Those are more lean and straightforward than Termux.

The ADB method works just fine too....
[Fire HD 8 and HD 10 General] Wambaxssss:
[MENTION=8132642]diplomatic[/MENTION] thanks a lot for responding!

Yeah, something is going on. Brand new HD8 bought a couple days ago.

The ADB method didn't work due to permissions issues. I figured this was as noted in the tutorial so I have to run on an emulated terminal on the Fire. I'm trying to run the "arm" version (ie. not 64) which as you note should be correct for HD8.

In Termux there's odd behaviour as noted above, where ls reports mtk-su is present; I can adjust permissions via chmod; but when I try to run it reports "No such file or directory".

As you recommend, I switched to Terminal Emulator to give it a try but again there's limited permissions since I'm not rooted. I can find mtk-su in the $HOME/mnt/sdcard directory but cannot run. Trying sudo command results in "su: not found".

Hmmmm...
[Fire HD 8 and HD 10 General] diplomatic:
Well, no reason you have to run it in a terminal app. The only time you have to use an app is if it's Android 8.0+, which that tablet isn't. In adb shell, did you try mtk-su more than once? I mean, if you don't get selinux permissive at first, then you can simply exit, press up and press enter to rerun it.... as the FAQ section says.

IDK, something's fishy about that HOME variable. It looks like it's just blank, so the path just resolves to /mnt/sdcard. What is the output of 'echo $HOME'? It does show up correctly in that app on my tablet. You cannot run a custom program unless it's inside the app's private directory.

If you were rooted, there would be no point in running mtk-su. So of course there's no sudo or su.
[Fire HD 8 and HD 10 General] Snigglez:
Thanks, I see I missed that!

Will tinker when I get back home after this work week.

So grant rwx permission for supersu, like so:

cd /data/local/tmp/

./mtk-su

chmod 0755 superSU.apk

Sorry, just on a kwik break & on my mobile, thank you for the help, guys - so many thanks to all in this thread
[Fire HD 8 and HD 10 General] nujak:
[MENTION=9916780]Wambaxssss[/MENTION] I've had both ADB and Terminal Emulator work for my 2018 HD 8 using mtk-su_r11.zip ('arm' not 'arm64')

For ADB, both manually typing the commands and using Amazon Fire Toolbox worked. The toolbox is probably easier, just because it auto downloads the tablet drivers. Just make sure you have USB Debugging enabled in developer options and allow permission when prompted on the tablet's screen.

For Terminal Emulator, I used Mixplorer (my file manager of choice) to extract the 'arm' version of mtk-su into my download folder. I then noted the path (aka copied it to clipboard) and entered the following (verbatim) into Terminal Emulator

cp /storage/emulated/0/Download/mtk-su $HOME/
cd $HOME
chmod 700 mtk-su
./mtk-su

Before trying any of this again, you might just want to try to start from scratch with the downloads and apps. Just make sure you have the right mtk-su (sounds like you do) and delete the mtk-su currently in the $HOME directory of Terminal Emulator (easiest way is probably uninstall the Terminal App and reinstall). If for some reason it still isn't working, maybe just reset the tablet and start from scratch again if you don't have anything important on it.

If you manage to get mtk-su to work for you and your end goal is to ultimately have Magisk and TWRP, I'd definitely recommend this guide by Bibikalka.

Best of luck, hope it sorts itself out.
[Fire HD 8 and HD 10 General] dutchthomas:
Open SuperSu > Settings > Access > Default Access > Grant

The SuperSu prompt does not work. You have to either set the default to always grant, or manually edit a config file (instructions are somewhere in the thread)
[Fire HD 8 and HD 10 General] Snigglez:
Oh....omg, I feel silly.

Thanks
[Fire HD 8 and HD 10 General] Wambaxssss:
[MENTION=8132642]diplomatic[/MENTION] [MENTION=5766689]nujak[/MENTION]

TOTAL SUCCESS! Thank you so much team. I'm currently enjoying my rooted, bloat-free kindle with novalauncher :).

Sadly I'm not quite sure what got things working as I wasn't systematic enough in my reboots - I deleted and downloaded a new copy of mtk-su; rebooted a few times, etc. But all is well. Thanks so much for all the hard work.
[Fire HD 8 and HD 10 General] hw90i:
Please help

Hi,

Need help with :

2. Connect your device to ADB and push mtk-su to your /data/local/tmp folder

Code:

adb push path/to/mtk-su /data/local/tmp/

Whatever I use ADB SHELL (all drivers been installed, tablet unknown sources and developer mode is ON)

Turning ADB Shell on PC typing adb push ( Location mtk-su on my PC ) /data/local/tmp/

The reply is always same - adb: not found

Do i use wrong ADB SHELL? Can somebody please help me with step 2. As I understand i need to copy mtk-su to tablets /data/local/tmp/ directory, but i stuck for 2 days already....

Thank you.
[Fire HD 8 and HD 10 General] Legitsu:
.......................................
[Fire HD 8 and HD 10 General] diplomatic:
[MENTION=9923670]hw90i[/MENTION], have you actually installed adb to your computer? If not, this is a good source for adb and fastboot for Windows without much fuss.
[Fire HD 8 and HD 10 General] diplomatic:
So did you end up using adb or an app? You didn't need to reboot as far as mtk-su is concerned.
[Fire HD 8 and HD 10 General] hw90i:
Thanks very much will follow your link.
[Fire HD 8 and HD 10 General] donslade:
Would this work on the new Walmart ONN tablets?

https://www.walmart.com/ip/Onn-Android-Tablet-8/767511102

I read they use a MediaTek MT8163 processor.

Might get one in a few days to test.
[Fire HD 8 and HD 10 General] diplomatic:
Release 14

A new version has been uploaded. Check it out, especially if you have an Android 8+ device. This release no longer requires using a terminal app for the first run on newer Androids. That change is less due to a new development, but more to a removal of a restriction that was never really necessary. As always, let me know if anything broke for already compliant devices. If that's the case, use a previous release until I fix it.
[Fire HD 8 and HD 10 General] diplomatic:
Wow, that's really cheap for an MT8163 tablet that's unsubsidized. This tool will probably work on it to give you temporary root. First time I've seen an MT81xx tablet with Android 9. The firmware on it might come in handy to port custom ROMs to other MT8163 tablets.
[Fire HD 8 and HD 10 General] donslade:
I will probably pick one up early next month. Let me know what you would like to know about it and I'll try to help. If a port is possible that would be great. Even though I have a HD10 for daily use (rooted/debloated/etc.) I do have a HD8 that I use as a Smartthings console with Action Tiles.

Besides, exploring these new gadgets is always fun.
[Fire HD 8 and HD 10 General] snoofaki:
hi

i am trying this method to my fire stick 2 but i take this error

shell@tank:/data/local/tmp $ chmod 755 mtk-su

shell@tank:/data/local/tmp $ ./mtk-su

/system/bin/sh: ./mtk-su: not executable: 64-bit ELF file

any idea whats wrong ?
[Fire HD 8 and HD 10 General] Legitsu:
the fire stick 2 is not rootable using any known software method
[Fire HD 8 and HD 10 General] diplomatic:
Well, for now just try out mtk-su on it, and check if the OS is 64-bit ARM all the way through.

Yes, what's wrong is that it doesn't have a compatible chip in it. Check out this thread instead.
[Fire HD 8 and HD 10 General] joostdirkzwager:
Help with Fire HD 10

Hi everyone,

I am trying to root my Fire HD 10 (7th Gen) which according to the first page [MENTION=6680544]bibikalka[/MENTION] has gotten it to work.

I have downloaded (and tried different releases) and followed the instructions as specified; in all cases it seems to work where the logs returns Selinux is already permissive and "New UID/GID: 0/0. I can also confirm this by typing

getenforce

which returns Permissive.

Logs:

shell@suez:/data/local/tmp # ./mtk-suR10 -v
param1: 0x1000, param2: 0x8040, type: 9
Building symbol table
kallsyms_addresses pa 0x40aa4600
kallsyms_num_syms 66786, addr_count 66786
kallsyms_names pa 0x40b26f00, size 832845
kallsyms_markers pa 0x40bf2500
kallsyms_token_table pa 0x40bf2e00
kallsyms_token_index pa 0x40bf3200
Patching credentials
init_task VA: 0xffffffc000e3a960
Possible list_head tasks at offset 0x368
0xffffffc020120368 0xffffffc0106653e8 0x000000000000008c
comm offset 0x5e0 comm: swapper/0
Found own task_struct at node 0
real_cred VA: 0xffffffc044fd8780
Parsing sel_read_enforce
ffffffc00027f0e8+04: ADRP x0, 0xffffffc000f46000
ffffffc00027f0e8+1c: LDR [x0, 2116]
selinux_enforce VA: 0xffffffc000f46844
Setting selinux_enforce
Selinux is already permissive
New UID/GID: 0/0
starting /system/bin/sh
shell@suez:/data/local/tmp # getenforce
Permissive
shell@suez:/data/local/tmp #

However it still doesn't appear that my device is rooted. I am unable to remove amazon apps like Silk Browser and if I install SuperSU it says Root undetected

Is there something I am missing or doing wrong?

Any help would be much appreciated!
[Fire HD 8 and HD 10 General] nujak:
This only gives you a temporary root shell and is what allows software root methods to work. Check out this guide by k4y0z to get a fully rooted tablet.
[Fire HD 8 and HD 10 General] joostdirkzwager:
Thanks, so I guess this is just the prelim step to allow me to follow the guide by k4y0z.
[Fire HD 8 and HD 10 General] Supermatt01:
OPPO devices

Would this method work in an OPPO F11?
[Fire HD 8 and HD 10 General] Supermatt01:
I got temp root on my OPPO F11. This process worked. I'm a bit confused about how to make it permanent. I have a locked boot (disabled in fact) so I can't use TWRP (no dev anyway) and I have no clue how to push the files rightly to use SuperSU... but so far so good. Any ideas?
[Fire HD 8 and HD 10 General] diplomatic:
[MENTION=3211017]Supermatt01[/MENTION], pushing supersu binaries does not apply to most phones with Android 6 or higher because you can't write to the system partition. Generally speaking, you need to unlock the bootloader to install permanent root. But maybe this solution will work for you? (Questions about other devices should go in that thread anyway.)
[Fire HD 8 and HD 10 General] ryevick:
I'm just getting into this but I'm looking to disable OTA and the Amazon launcher so my Nova launcher will again be my default. HD 10 7th Gen Fire OS 5.6.4.0 Auto update screwed me up.

It was suggested I come here to find info to do a quick temporary root and disable fire launcher and OTA.

Please help with the simplest step by step instructions to get this done. I see this thread has been really active so whatever info you can provide would be appreciated. Thanks!
[Fire HD 8 and HD 10 General] Dan_firehd:
(1). Follow OP to get a temporary root.

(2). With temporary root, you can disable OTA:

(2a). Go to /system/priv-app/devicesoftwareota/

Rename DeviceSoftwareOTA.apk to DeviceSoftwareOTA.apk.old (or something like that)

(2b). Go to /systme/priv-app/com.amazon.kindle.otter.oobe.forced.ota/

Rename com.amazon.kindle.otter.oobe.forced.ota.apk to com.amazon.kindle.otter.oobe.forced.ota.apk.old (or something like that)

(3). For HD10 2017 model with temporary root, I would recommend obtaining the permanent root by following post #10 in this thread.
[Fire HD 8 and HD 10 General] ryevick:
$ cp /storage/sdcard1/mtk-su_r11/arm64/mtk-su ./

$ chmod 700 mtk-su

$ ./mtk-su

CANNOT LINK EXECUTABLE DEPENDENCIES: "/data/data/com.termux/files/usr/lib/libtermux-exec.so" is 32-bit instead of 64-bit

$ ./mtk-su -v

CANNOT LINK EXECUTABLE DEPENDENCIES: "/data/data/com.termux/files/usr/lib/libtermux-exec.so" is 32-bit instead of 64-bit

$ /storage/sdcard1/mtk-su_r11/arm/mtk-su

bash: /storage/sdcard1/mtk-su_r11/arm/mtk-su: Permission denied

$

I see no way to grant permission to Termux for anything, it just shows the permissions it has when you view it in settings.
[Fire HD 8 and HD 10 General] Rortiz2:
chmod 755!!!!
[Fire HD 8 and HD 10 General] ryevick:
Thanks I was following the instructions in post 3 for non pc and it didn't list that step.

I should ask, this will be a temporary root correct? That's all I want. I'm looking to disable OTA and the Amazon launcher so my Nova launcher will again be my default.
[Fire HD 8 and HD 10 General] diplomatic:
No! The OP says 700 and that's not a mistake. You don't need permissions for anyone else under an app shell.

Termux doesn't work very well with 32-bit executables. But that's not even the problem. You seem to be trying to run the arm64 file on an HD 8-2018. Copy the arm one instead. If you insist on Termux you have to do this:

unset LD_LIBRARY_PATH
unset LD_PRELOAD
./mtk-su -c sh
[Fire HD 8 and HD 10 General] Rortiz2:
Oh ok..
[Fire HD 8 and HD 10 General] ryevick:
I was trying to run arm64 on an HD 10 7th Gen which to my understanding is 64bit. When I received the first error I tried running arm which failed as well. Termux is what the OP recommended so I went with that. I ran 700 as per OP but chmod 755 was then recommended which I haven't had a chance to run. I just exited out of Termux. I don't know this stuff, I'm relying on you guys.

Given that, someone please give me the info for a temporary root to disable OTA and Amazon launcher. If you already have please repost. There seems to be a little confusion. Thank you!
[Fire HD 8 and HD 10 General] diplomatic:
Oh, then IDK why it gave you the CANNOT LINK EXECUTABLE DEPENDENCIES. So either try it with those commands I listed, or use the Terminal Emulator for Android app (which is the one I prefer) instead of Termux. To disable OTA, I guess you have to rename the 2 files. Going by [MENTION=8553669]Dan_firehd[/MENTION]'s post:

mount -o remount -rw /system
cd /system/priv-app/devicesoftwareota/
mv DeviceSoftwareOTA.apk DeviceSoftwareOTA.apk.old
cd /system/priv-app/com.amazon.kindle.otter.oobe.forced.ota/
mv com.amazon.kindle.otter.oobe.forced.ota.apk com.amazon.kindle.otter.oobe.forced.ota.apk.old
mount -o remount -ro /system

Or something like that ;)
[Fire HD 8 and HD 10 General] ryevick:
Can you please list which code you are referring to? I'm scared I'm going to turn this thing into a brick! :eek:

Oh man... :p Pretend I'm like 5 years old... Correction, 5 year olds can probably do this :laugh: Is this code all I need to run (if the first part above goes through OK), to disable OTA? What about disabling the Amazon launcher? After the OS update the option within Nova Launcher/or settings to select it as default is gone. If I get the Amazon launcher disabled will it then run by default on its own after it boots?
[Fire HD 8 and HD 10 General] ryevick:
u0_a131@suez:/ $ cp /storage/sdcard1/mtk-su_r11/arm64/mtk-su ./

cp: ./mtk-su: Read-only file system

1|u0_a131@suez:/ $ chmod 700 mtk-su

Unable to open mtk-su: No such file or directory

10|u0_a131@suez:/ $ chmod 700 mtk-su ./

Unable to open mtk-su: No such file or directory

10|u0_a131@suez:/ $ cp /storage/sdcard1/mtk-su_r11/arm64/mtk-su

usage: cp [-R [-H | -L | -P]] [-f | -i] [-alNpv] src target

cp [-R [-H | -L | -P]] [-f | -i] [-alNpv] src1 ... srcN directory

1|u0_a131@suez:/ $ chmod 700 mtk-su

Unable to open mtk-su: No such file or directory

10|u0_a131@suez:/ $

What am I doing wrong? Using Terminal Emulator for Android app
[Fire HD 8 and HD 10 General] bigrammy:
You need to give your Terminal app or Turmux app storage permissions it would seem.

/settings/apps/Turmux or whatever/permissions/tick allow storage access
[Fire HD 8 and HD 10 General] diplomatic:
[MENTION=3307333]ryevick[/MENTION], if using Terminal Emulator, you have to use the $HOME directory as the destination, like it says in the bottom half of post 3. i.e.:

cd $HOME
cp [I]<path/to/mtk-su>[/I] ./
chmod 700 mtk-su
./mtk-su
...

And why are you using R11 of the tool? R15 has been out for a while and works much better.
[Fire HD 8 and HD 10 General] ryevick:
I would love to, the recent update removed that ability. Settings only shows you the permissions an app has but doesn't allow you to change them. There's nothing in developer options either. I haven't looked but maybe an app could do this.

---------- Post added at 08:14 PM ---------- Previous post was at 08:06 PM ----------

I have R15 now. I'm guessing I need to figure out a way to grant apps new permissions before I can do anything. Settings no longer allows those changes. Am I right?
[Fire HD 8 and HD 10 General] ryevick:
I'm done here
[Fire HD 8 and HD 10 General] diplomatic:
No, it looks like your permissions are fine. You just need to cd to the $HOME directory before copying mtk-su. Have you tried that?

Huh? If you're complaining about not getting answers quickly enough, my reply is that we're not a technical support line. One of the requirements I listed in the OP is to have some knowledge of Linux shell commands....

Also, I don't have any Amazon tablets. I've created this root tool while testing on another device. I don't know exactly how people use root for disabling specific Amazon features....
[Fire HD 8 and HD 10 General] ryevick:
I'm not complaining at all, just frustrated. I appreciate your help. I just wish there were apps or tools like there use to be that would do the work for you. I would think that someone would have jumped all over this control move by Amazon in a way that was easy for people to beat it.
[Fire HD 8 and HD 10 General] skang188144:
This worked great for me. I don't have the time to look through this entire 72 page thread to see if anybody else has had this issue, but when I first installed this experimental software root (using [MENTION=8978978]Rortiz2[/MENTION] 's batch file) nothing popped up when other apps were trying to access root permissions. I was just fiddling around in the settings, and I put the option "Default Access" as [Grant], and everything worked, including adb shell su.

Anyways, thank you.
[Fire HD 8 and HD 10 General] ryevick:
Which Fire OS are you running? 5.6.4.0? Where exactly did you find the option to grant default access? ABD shell is for PC correct? Did you do the non pc or pc approach? It's been a long day so I may have misunderstood what you were saying.
[Fire HD 8 and HD 10 General] skang188144:
I think I'm running 5.6.4.0, although it might be different (disabled all bloatware, including the software update settings page). I should have clarified, I used the automated root .bat file to install the exploit, and tried to gain permanent root access through SuperSU. When I tried to verify root access with another app and through command prompt (adb shell su), there was no response. I was fiddling with SuperSU, and in there, I changed it so that it wouldn't give me a prompt asking for root access, and instead Grant access to anything. At that point, I was able to do everything. Probably not an issue with the exploit itself or anything, just that the prompt didn't come up for some reason. Anyways, thanks though.
[Fire HD 8 and HD 10 General] DB126:
Yep - that's the member suggested procedure using unmodified SuperSU with this method. For some reason it won't prompt for permissions.
[Fire HD 8 and HD 10 General] Dan_firehd:
SuperSU access workaround for Fire devices

There is a well-known workaround method for SuperSU on Fire devices (many thanks to [MENTION=3497316]retyre[/MENTION]) :

https://xdaforums.com/hd8-hd10/general/supersu-access-workaround-fire-devices-t3738269
[Fire HD 8 and HD 10 General] Klibi:
Hey guys [MENTION=6680544]bibikalka[/MENTION], I am trying very hard but don't understand what I am doing wrong.

I copied the amonet-suez-v1 on my linux system and unpacked it.

I got root access via the mtk-su thingi.

When I then adb push the amonet directory onto the tablet and then go into the /data/local/tmp/amonet

folder to run the script it says:

127|shell@suez:/data/local/tmp/amonet # sudo ./step-1.sh
/system/bin/sh: sudo: not found

but root is avail:

id
uid=0(root) gid=0(root) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0

and only ./step-1.sh doesn't work as well:

127|shell@suez:/data/local/tmp/amonet # sudo ./step-1.sh
/system/bin/sh: sudo: not found

anything I did not understand properly here?

Thanks in advance!!!
[Fire HD 8 and HD 10 General] Michajin:
Tried is on the new fire 7 2019, Mustang( i believe it is the SOC as fire 8hd) - no Luck

mustang:/data/local/tmp $ ./mtk-su -v

armv7l machine

param1: 0x1000, param2: 0x8040, type: 1

Building symbol table

Can't find kallsyms addresses

Unable to get kernel symbol table

New UID/GID: 2000/2000

starting /system/bin/sh

mustang:/data/local/tmp $
[Fire HD 8 and HD 10 General] Dan_firehd:
Please reference here:

https://xdaforums.com/showpost.php?p=79678656&postcount=13

Please provide more details in order to help [MENTION=8132642]diplomatic[/MENTION] debug.
[Fire HD 8 and HD 10 General] bigrammy:
You need to remove the sudo part of cmd as you do not have or need su at this point as you have said your already root user so you can't get any higher privilege than that.

You may need to use the sh cmd instead but mostly this is auto detected.

# this means your root user normally.

Your cmd should probably look like one of the following.

127|shell@suez:/data/local/tmp/amonet [B]# sh step-1.sh[/B]

127|shell@suez:/data/local/tmp/amonet [B]# sh ./step-1.sh[/B]
[Fire HD 8 and HD 10 General] diplomatic:
The sudo script.sh commands are to be run on the host (PC), not on the device. They do all the adb interactions automatically, as well as the temp root.

(Sorry, [MENTION=3924647]bigrammy[/MENTION], your answer's not it either.)
[Fire HD 8 and HD 10 General] bigrammy:
Your 100% correct :good: