yashsingh1/xdaforums huggingface dataset:
[Fire General] Dan_firehd:
Your discovery is consistent with what I found for Mustang:

Removing or renaming /system/priv-app/DeviceSoftwareContracts/DeviceSoftwareContracts.apk seems to cause the following problems:

(1). Amazon app "Docs" will not launch -- screen just flashes and returns back to prior.

(2). Settings --> Device Options --> System Updates will show blank screen and close back to prior screen

(3). Settings --> Device Options --> Date & time will not allow the selection of "Select time zone" -- screen just flashes and returns back to prior.
[Fire General] delgada89:
So I removed the Home Pages, replacing with Nova. Anyone have a list of stuff I could debloat safely? I'm using App2SD's Swap Manager to pretty great affect and GAPPs is working just fine. I'd like to purge the rest. Additionally are the Special Offers removed with this root, seems like it but want to make sure.
[Fire General] wodgey:
I've found this thread for previous generations.

https://xdaforums.com/hd8-hd10/general/debloat-fire-hd-2017-kindle-prime-music-t3729209/page4

I've not actually gone through the process yet though.

Unrelated to the bloat removal but I've installed Google play store via 4 APK's (account manager, framework, account login and play-store) rather than by flashing gapps.

Really looking forward to flashing a purer Android ROM rather than making fireos feel\behave like native Android.

Edit2add

I copied the whole column of 'pm disable' commands and pasted into my ADB terminal and it all completed happily. There were a few that weren't enabled\installed but that's not surprising as the instructions are for an older variant.

My device still boots happily and I haven't noticed any glitches or crashes as yet.

Out of curiosity, I did try installing Amazon prime video from the play store but it won't let me log in. I'm not concerned or unhappy about this as it's unlikely I'll use it in this tablet but felt it worth mentioning for purely FYI reasons
[Fire General] gs_racer:
Hi Dan,

I also have found similar behavior on my 9th Gen Fire 7 after rooting it with this method. I ran that finialize.zip data and among other things it definitely removed the /system/priv-app/DeviceSoftwareContracts/DeviceSoftwareContracts.apk I am now not able to use Docs, Amazon App Store, Prime Video, Books, etc because it is not a registered device and I am not able to get past the "Device not registered" screen, each time I click on register the same pop up window appears asking me to register again.

I would like to install a clean version of android on this (which would then make these issues no longer relevant) but it looks like there is none available for the moment (is this correct?). How do I revert back these changes that I made so that I can use the table as normal? I am not even able to install the play store because I have no working file manager (Docs won't open).

Sorry for the basic questions, I am an android root noob and this was my first root (which luckily worked without bricking the device), but it seems like I may have done one step too many without really realizing what I was doing.
[Fire General] wodgey:
Surely flashing fw.zip again in twrp will restore functionality? Just don't flash finalise.zip although will likely leave you at the mercy of the ota updates from Amazon.

(This is an educated guess rather than an expert opinion)
[Fire General] ghagiel:
This is exactly what I did, reflashed fw.zip then didn't flash finalize.zip. Then disabled a bunch of stuff (including ota packages) with Titanium Backup. Prime Video works and ota def doesn't.
[Fire General] gs_racer:
Thanks yeah this seems to help. I can at least log in to amazon accounts and such.

When I tried it I wasn't able to get root privileges back but didn't have time to spend too much more time on it. I'll try again later this week and report back if I have any other issues.

But I will ask again because no one responded the first time: Are there no available Android ROMs to flash onto these 9th gen Tablets?
[Fire General] stupid_questions:
They are working to port lineage OS 14.1 from the Fire 8 to it. Waiting for it too, will use my 7th gen tablet in the meantime :).

https://xdaforums.com/hd8-hd10/gene...e-hd8-2018-t3936242/post79915018#post79915018
[Fire General] Rortiz2:
I already port it. The problem is that I don't have a good Wi-Fi since I'm not a thome this days.
[Fire General] wodgey:
Awesome news
[Fire General] stupid_questions:
This is epic. Thank you a lot for your effort and your work :). Please tell me if you need a beta tester.
[Fire General] wodgey:
Root comes from flashing magisk.zip
[Fire General] gs_racer:
Hi, how can I go about removing these files manually? I do not want to delete DeviceSoftwareOTAContracts due to the issues other users here (including myself) have mentioned, so I wanted to do everything in this script except deleting this directory. But when I try to execute "rm -rf /system/priv-app/DeviceSoftwareOTA" in a root abd shell, I get the following error message:

What am I doing wrong?

---------- Post added at 05:12 PM ---------- Previous post was at 05:05 PM ----------

Agreed, would really be interested in trying this out when you have a chance to make a post about your success!

---------- Post added at 05:14 PM ---------- Previous post was at 05:12 PM ----------

How did you go about "disabling a bunch of stuff? What did you disable and how did you do this?
[Fire General] delgada89:
Edit the text file itself in the zip file and rezip it.
[Fire General] gs_racer:
Tried this but my booter keeps telling me it's an invalid zip file format... I rezipped/uncompressed to make sure the folder structure appears the same as the finalize.zip ( ./META-INF/com/google/android/update-binary ), pushed the zip file and tried to install in TWRP but keep getting that error
[Fire General] wodgey:
Interesting. I was going to try this myself.

I wonder if you can edit the text file as rw, from inside the zip, using archive manager. (Or even from a Windows boot using 7zip)

Edit 2add.

I might also try an "adb shell" when booted into twrp and see if that has more favourable results. Although I'm not with my device again until tomorrow evening so I imagine you'll attempt these before I do

---------- Post added at 09:19 PM ---------- Previous post was at 09:03 PM ----------

You could also try remounting the file system as rw, deleting whatever and then remounting as ro again afterwards.

Mount system RW: mount -o rw,remount /system

Mount system RO: mount -o ro,remount /system
[Fire General] gs_racer:
Editing the file with out uncompressing the .zip, repushing and trying to install the new zip didn't work either. It tells me

But the mount as rw, deleting the files manually except for DeviceSoftwareOTAContracts and remounting as ro worked perfectly, so thank you!!
[Fire General] briodan:
what are yo using to zip the folder?

i used the native windows utility and it worked just fine. can't post my zip file (guess not high enough post count)
[Fire General] gs_racer:
I just used the compress function that becomes available upon right clicking a folder in Linux

It is a virtualbox version of Linux (Ubuntu) so maybe that was the reason?
[Fire General] wodgey:
I had a mini brainwave and realised I don't need access to my laptop.

I've re-flashed the fw and magisk zips (although I didn't wipe cache) and realised I only need access to a terminal emulator, so I've installed JuiceSSH (which is brilliant because it has \ - ESC ctrl keys along the bottom of the terminal).

I can log into Amazon shop, Alexa etc but the packages I'd previously disabled are still disabled.

I'll rinse and repeat the exercise but next time I'll do a factory wipe at the same time
[Fire General] whittssg:
Thanks for this, worked perfectly after i finally figured out how to stop ModemManager (first time on linux). Now that its rooted does anyone know how to remove the lock screen? I found a few ways but they all seem to end up disabling the drop down / swipe down menu at the top. Thanks.
[Fire General] AmznUser444 Dev:
You must be the Fire Launcher is permanently broken or uninstalled
[Fire General] wodgey:
I've already resolved this enquiry by using the "package manager" pm disable com.amazon.firelauncher

Thank you for your response though

Edit 2 add,

Don't disable fire launcher unless you've already installed another launcher
[Fire General] gs_racer:
May I ask which packages you disabled? I just disabled com.amazon.kindle.kso to make sure ads don't pop up and that seemed to work. Would like to disable anything which bloats the system that I don't need and am definitely open to suggestions for what those things might be
[Fire General] wodgey:
I 'rm -rf'd everything that's in the text file within the zip except for contacts line.

I'll add the relevant packages as an edit

Edit 2 add

Device software OTA

Device software OTA idle override

Com. Amazon .Kindle. otter.oobe. Forced. OTA

Com.amazon.precog

System/recovery-from-boot.p

I opened a terminal, obtained su privileges, mounted/system as read\write.

I then deleted the above packages and then mounted system again as read only

Hope this helps
[Fire General] wodgey:
There's a Google spreadsheet in another thread that I linked to, earlier in this thread.

I disabled everything in that spreadsheet without doing any prior research :)

I want this tablet to work properly with Amazon stuff though because I have to configure an echo device for a client, with a "ring" doorbell. I want Alexa working for that. Afterwards I'm gonna be going for streamlined and debloated though. (Although by then, I imagine lineage should be ready to download)
[Fire General] psycotrip:
i just software unlocked using a raspberry pi on raspian, everything went super smooth, i deleted the stock launcher (using titanium backup free) after i installed nova launcher and after a reboot it launches that now as it is the only launcher, i installed open gapps "arm 7.1 nano" in the recovery and it works great. now im just waiting for a proper rom like everyone else
[Fire General] AmznUser444 Dev:
I install the Nova Launcher to make your Fire tablet is Android Stock

Permanently uninstall the Fire Launcher using ADB

adb shell
su
pm uninstall com.amazon.firelauncher
[Fire General] wolfea14:
Error when trying to use amonet-mustang

I keep getting this error on Ubunutu 19.04:

Traceback (most recent call last):

File "main.py", line 5, in <module>

from common import Device

File "/home/abraham/Desktop/fire/amonet-mustang/modules/common.py", line 6, in <module>

import serial

ModuleNotFoundError: No module named 'serial'
[Fire General] wodgey:
Looks like you missed some of the required dependencies from the first post.

Go back and perform the sudo apt install ......... Command from the first post
[Fire General] SwissC:
Do we know when we might see LineageOS available for this? I know it is being worked on but I have no idea how long these things take (days/weeks/months). If I am correct it is expected to be Lineage 14 which is based on Android 7?

How does Lineage differ from stock Android?
[Fire General] wodgey:
Is your port available to download yet m
[Fire General] Rortiz2:
I'm not at home in July and August, so i'm sorry.

Enviado desde mi Mi A2 mediante Tapatalk
[Fire General] wodgey:
Ok that's cool. Is porting easy? Could I do it myself and then upload for everyone else?
[Fire General] gluons:
I tried this and it worked on my new Kindle running 6.3.10.

However, I can no longer access the "Docs" app, and I cannot sign into Google Play. Why is that?

I want to replace the amazon launcher and install new apps. Is there a way to install a stock Android launcher?
[Fire General] Rortiz2:
Use adb install com.package.name

Enviado desde mi Mi A2 mediante Tapatalk
[Fire General] wodgey:
]The answers to these issues\questions are already in previous messages in this same thread.

Using the Amazon apps(like docs) requires an edit to the finalize.zip file and using a different launcher requires you to install your chosen launcher before disabling firelauncher using package-manager (or an app that performs the same functions)[/QUOTE]

Edit 2 add

Google play store can be easily added by using either opengapps flashed using twrp or by installing 4 apk files in the correct order (I used this method myself). The info on how to do this is also easily findable in other threads
[Fire General] gluons:
Thank you for the information. Sorry I am noob. I am testing deleting all Amazon software completely.

I checked out the thread about the HD8 rom. If there is experimental rom for HD9 I will test it on my HD9.
[Fire General] wodgey:
See the Google docs spreadsheet that's in another thread (I've linked to it in an earlier message in this thread)

I blindly pasted all of the 'pm disable' commands from that spreadsheet into an ADB shell and noticed no ill effects (in other words -my tablet worked fine afterwards)
[Fire General] gluons:
I'm testing out different launchers.

Does your tablet boot directly into your new launcher?
[Fire General] wodgey:
After disabling firelauncher, yes.
[Fire General] whittssg:
Not sure if this helps anyone or not but the lock screen was driving me crazy, i managed to disabled the lock screen completely after rooting by installing Actitivty Manager from the play store, running com.android.settings$ScreenLockSuggestionActivity under the settings app (which got me to the default lock screen options) and then selecting "none" removed the lock screen completely and it persists after a reboot.
[Fire General] HeyHoLetsGo615:
So, I tried the software method, got to step 6 and my device froze, shut down, and disconnected from the usb. I try to get it to reconnect, and I can hear a notification that a device is connected to usb but then it disconnects after a few seconds. I did get the "preloader" message once, but I don't think it's giving me even that anymore.

Basically, did I just make a paper weight?
[Fire General] wodgey:
How are you running Linux? Are you running it as a virtual machine, with usb being passed-through to the virtualized Linux build? If so, then the device_ID numbers will have likely changed after rebooting into fastboot mode, meaning you'll have to forward that new USB device through to Linux again.
[Fire General] HeyHoLetsGo615:
Yeah I'm going through a VM. The problem I'm having is that it won't stay on long enough to do anything. The sixth step seemed like it never really did anything after about 15 minutes of waiting so I hit the home button on my device and the whole thing went to a black screen. 10 minutes later nothing happened so I hit the lock button and it didn't do anything. At this point everything was frozen and I never got anything returned to my terminal. So I held in the power button to turn it off, tried to turn it back on, it comes up as "preloader" for about one second in windows then immediately disconnects. I never get anything on screen and it won't stay "on" long enough to do anything with.

I took the back plate off and removed the battery connection to make sure it's doing a full power cycle but this did nothing.

If I bricked it then that's fine (it was given to me by my job as a gift for performance and I kinda hated it if I'm being honest, thus why I wanted to root it) I just thought I'd see if there's any option of recovery so I can try again.

Thanks for the help
[Fire General] wodgey:
You'll have probably not bricked it. When in bootloader mode, the screen stays black unless you press the power button twice.

You might need to do the hardware option detailed in the instructions to get it back into bootloader mode though. Good luck, I've not needed to try that.

When you do get back into bootloader\fastboot mode, look at the device manager (I'm assuming you're using Windows) for unknown\Android\Amazon fire devices and give your virtual machine sole access to it as well (just like you did for the tablet when it was booting up originally)

Excuse the vagueness here but I use Linux on my laptop as my daily-driver and only ever boot Windows when I'm playing games. I'm basing my assumptions on you using virtual box, which I remember as being an annoyance when giving sole access to a passed-through USB device
[Fire General] xyz`:
It's not possible to damage your tablet irrecoverably when following the instructions, just start over and do the "hardware method".
[Fire General] HeyHoLetsGo615:
Alright, I'm trying this hardware process. I get to step 3 and I think my PCB is a bit different than what this was originally using. Because of xda being xda I can't share any links right now, but hop on imgur and search "#fire7PCB". I uploaded a picture of my board on there.

No CLK, CMD, or DAT0 from what I'm seeing. Any advice?
[Fire General] wodgey:
I've not needed to open my device so I'm unable to answer your question
[Fire General] wodgey:
I've popped the back cover off my device and attached a photo

Initial inspection - it looks exactly the same hardware as the photo shown in the 2nd message on page 3 of this thread https://xdaforums.com/amazon-fire/general/fireos-6-3-1-0-amazon-fire-7-2019-t3937209/page3

Edit to add. The point that needs to be grounded is under the big silver shield
[Fire General] jrauck:
I was able to get through all of the inital software steps without any issue, however when I went to extract the amonet-mustang file and load the .sh file I keep getting the error command not found I have tried opening the file by dragging and dropping into a new terminal, using the sudo command, and the bash command. It is very possible I am doing something thats easy wrong, just been at this for a good while and can't figure out my problem.
[Fire General] ad333:
Easy path to Lineage for Fire 7 9th edition

Hi

I have Fire 7 9th Generation. I have followed instructions to run mkt-su to get root (I think). Not even sure if I have been successful or not because I actually want to install Lineage OS.

I understand I need to unlock the bootloader to install lineage OS but the LINUX instructions are too much for my simple mind.

Please can someone advise if I need unlock bootloader to install lineage OS and simple (ish) instructions to do it or just install Lineage, if unlocked bootloader not required?

I am ok using Windows Powershell and connecting with ADB, if instructions are clear, but haven't got Linux and literally need specific steps to have a hope of not getting in a mess.

I can't afford to experiment really because the next amazon black Friday isn't going to be for ages and I can't afford to pay full price to buy my daughter another tablet!

Cheers for any help
[Fire General] Kctucka:
Do you have all of the proper tools installed, as indicated in the beginning of the post? Make sure it all installs without errors.

Mtk-su only gives you temporary root. However, if you want to modify the system partition, or eventually install Lineage, you'll need to unlock the bootloader.

No Lineage port exists yet, so you've got time to experiment. I'd recommend the hardware method, as there's minimal chance to brick with that method.

Also, an easy way to boot linux is with a USB with persistent storage. I'd recommend using live linux creator with ubuntu.
[Fire General] ad333:
Thanks - is there any Custom Rom that can be be installed on this Fire 7 gen 9 yet?, or put it another way is there a way getting rid of all the amazon cr4pola and having vanilla android - that is easy...
[Fire General] Kctucka:
No custom ROMs yet. But Lineage will likely come soonish, as it can be ported from the HD 8, since it has the same system on a chip. I believe someone is working on I.

Without root, the best way to have a vanilla experience is to use launcher hijack with Nova launcher, or some other launcher. You'll also want to disable any of the processes that run in the background. This will free up system resources.

Either way though, root/unlock is the best way to accomplish what you want.
[Fire General] Rortiz2:
Yes It can be ported and it's ported but as you guys know that's not the problem. I will see if I can upload it today or tomorrow.

Enviado desde mi Mi A2 mediante Tapatalk
[Fire General] ad333:
Thanks all.

A very very stupid persons idiot guide , for end to end rooting, hard ware boot loader with pictures and lineage is greatly appreciated, when /if anyone has time
[Fire General] jrauck:
I believe everything is installed as indicated... also as far as I could tell everything installed without errors. I suppose the only thing I am somewhat unsure of is fastboot.

I have checked the version of both python3 and PyPi, which are currently up to date. I also disabled ModemManager successfully.

adb appears to be working fine, as I was able to successfully get the mtk-su file transferred and made sure that the tablet is set to permissive.

As for running the bootrom-step.sh file, whenever use sudo with the file location I get this error: line 5: cd: modules: No such file or directory
[Fire General] wolf45801:
I was wondering I'm setting this up on 3 tablets all the same generation could I make a TWRP backup of 1 and flash it to the rest after I get the TWRP installed on the others?
[Fire General] stupid_questions:
Great news, I am looking forward to test this :).
[Fire General] wodgey:
The info is all contained within the first message.

You literally just have to follow the steps in order.

Pictures are linked to, in another thread, although only needed if you need the hardware method. (If your tablet boots to a functioning operating system, you don't need to open the tablet)

Edit 2add.

I completed the process on my first attempt (although I read the instructions fully, several times, before starting the process)

Also, I use Linux full-time on my laptop so I didn't have to deal with giving sole access to USB devices, piped through to a virtual machine.
[Fire General] Android Adam:
how do I disconnect the battery? I did the sw method and now it doesn't say anything in lsusb

EDIT:

You just pull up with something carefuly. I used a paperclip which worked but was probably not the best
[Fire General] zek9285:
I did this on an Ubuntu VM (running on MacOS) and took a bit of fiddling, so hope it helps:

- After the "reboot" step in the adb shell, the tablet went blank and completely dead. Disconnected the battery, then plugged in USB again and the script started immediately

- I never saw the fastboot step complete, it got stuck in the recovery image transfer. Tablet seemed dead again, I reconnected the battery, switched on, two clicks on the power button and recovery shell came on
[Fire General] stupid_questions:
Custom Rom Thread: https://xdaforums.com/amazon-fire/orig-development/rom-lineage-14-1-t3957329
[Fire General] DaXyro:
If I cannot get to the battery, will letting it die completely also work? I realize that's probably pretty slow.
[Fire General] wodgey:
Why can't you get to the battery? I've unplugged mine this evening and used only my thumbnail to remove the back cover.

But yes, waiting will achieve the same result but will take a long time depending on charge. You'll need remember to boot into twrp though if you want to flash a different ROM. I got distracted and it went back into sleep\hang routine again so I had to disconnect\reconnect the battery again.
[Fire General] DaXyro:
Couldn't get at it with my nails/paperclip, so was just curious while I wait on some wedge tools.
[Fire General] delgada89:
Use a plastic wedge like a credit card.
[Fire General] wodgey:
I used something small to *gently* pull against the battery wires until the black clasp came free.

If the device is sitting face down on a table, I pulled in the direction of the ceiling.

I noticed that the clip has little guides v for alignment that act as a shield. When it's removed you'll see why you were struggling
[Fire General] Ltwxxii:
How did you manually select the USB device with your linux VM?
[Fire General] _random_username_:
UID: 0 cap: 3fffffffff selinux: enforcing
1|mustang:/data/local/tmp # setenforce 0
setenforce: Couldn't set enforcing status to '0': Permission denied
1|mustang:/data/local/tmp # setenforce permissive
setenforce: Couldn't set enforcing status to 'permissive': Permission denied
1|mustang:/data/local/tmp # whoami
root

What now?