yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend XT Questions & Answers] shawnchalfant:
Or drop to adb shell and type su to verify to have root access, then type "setenforce 0"
[Huawei Ascend XT Questions & Answers] divineBliss:
See this: https://xdaforums.com/xposed/how-to-set-selinux-to-permissive-boot-t3034245/page2

for script way that apparently will do it on boot if I understand correctly.
[Huawei Ascend XT Questions & Answers] shawnchalfant:
su

mount -o remount,rw /system

mkdir /system/su.d

echo "#!/system/bin/sh" > /system/su.d/permissive.sh

echo "setenforce 0" > /system/su.d/permissive.sh

echo "0" > /sys/fs/selinux/enforce

chmod 755 /system/su.d/permissive.sh

Source, read on...

https://xdaforums.com/xposed/how-to-set-selinux-to-permissive-boot-t3034245/page2

---------- Post added at 09:16 PM ---------- Previous post was at 09:04 PM ----------

Go Team Go!!!

Give me an X.

Give me an D.

Give me an A.
[Huawei Ascend XT Questions & Answers] divineBliss:
EDIT: We don't need the permissive.sh script for systemless root, so ignore the following for XT:

Ha! It looks like they have an error and

echo "setenforce 0" > /system/su.d/permissive.sh

should contain ">>" not ">" so it should be

echo "setenforce 0" >> /system/su.d/permissive.sh

but apparently it still works according to all those posts. Correct way should include ">>" :) otherwise first line would not be in the file.

EDIT: Yep, I'm right ....... correct implementation here with ">>"

http://stackoverflow.com/questions/...or-permissive-mode-in-android-4-4-4-and-above

su

mount -o remount,rw /system

mkdir /system/su.d

echo "#!/system/bin/sh" > /system/su.d/permissive.sh

echo "echo 0 > /sys/fs/selinux/enforce" >> /system/su.d/permissive.sh

chmod 755 > /system/su.d/permissive.sh

---------- Post added at 10:24 PM ---------- Previous post was at 10:18 PM ----------

Go enigma2446 Go! :)
[Huawei Ascend XT Questions & Answers] shawnchalfant:
Hey, I'm human. Just wanted to give you the idea. The community will clean me up. Thanks.
[Huawei Ascend XT Questions & Answers] divineBliss:
@ shawnchalfant,

:) Hey, it was a great idea! I'm human too, ya' know ;) . I found and posted the same link a minute before you, but just spotted the error now ..... but apparently it still works with the error. It was your great idea that made me search ...... go shawnchalfant, go shawnchalfant ........ more good ideas needed :) .

---------- Post added at 10:38 PM ---------- Previous post was at 10:30 PM ----------

@enigma2446 ,

When you get a chance to answer this ...... is this going to be systemless root? I'm guess this answer is yeah since you are just working on being able to write to /system now after you already got root :) .

http://www.howtogeek.com/249162/what-is-systemless-root-on-android-and-why-is-it-better/
[Huawei Ascend XT Questions & Answers] enigma2446:
Not sure at the moment. Im still working but giving it a rest for now. I'll resume tomm.

"Mvno Master"
[Huawei Ascend XT Questions & Answers] divineBliss:
Thanks for the hard work :highfive: ........ get some well deserved rest.

Pretty sure it's systemless root. Seems like light is at the end of the tunnel now for having root anyway. I would not mind having root now and fully functioning TWRP later as time permits :) . Will be glad to help you test if you want it.
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
sign me up! Thank you all that have had a hand in getting us this far. I will be out most of tomorrow so if by tomorrow night we have something that is ready for testing/debugging ill be sure to download and give it a whirl.
[Huawei Ascend XT Questions & Answers] powerserge1:
If we get TWRP and root I have no problem donating a few bucks for all the hard work. Thanks again guys and I am sure others are willing to pitch in as well
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
I was unsure if that was allowed otherwise I would've started a bounty long ago lol
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
Well I know from playing around with this phone that encryption is an option in the settings, have you tried accessing /data after a clean factory reset making sure encryption has not yet been set?
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
Hmm well maybe it just takes a clean reset. Guess we will find out later. Thanks for letting us know the steps you have taken so far. I don't have much to offer but at the point we have working TWRP and system root I'm willing to donate some coffee.
[Huawei Ascend XT Questions & Answers] divineBliss:
Great idea! The real test will be to then format the system partition and restore it from the backup. What about the .img files that came from the upgrade.app file? Is that system.img file basically usable and the same as what you would get from TWRP system image backup?

EDIT: n/m, no system.img file in the collection from update.app.

Can the recovery.img file be flashed by TWRP to go back to the stock recovery?

Keep up the great work everyone :) . Happy Friday!
[Huawei Ascend XT Questions & Answers] unque9:
mobile@huawei.com
[Huawei Ascend XT Questions & Answers] madvane20:
i ordered the phone last night hope u all get a working twrp and root so i can remove bloat
[Huawei Ascend XT Questions & Answers] divineBliss:
Thanks! I think having a good system.img, etc and a way to flash them it is going to be critical so we don't end up with bricks from doing something fatal with root power :) .

Hope that the light speed progress made yesterday continues for you guys.

"I can't wait to debloat my XT" says everyone :) .

---------- Post added at 12:01 PM ---------- Previous post was at 11:16 AM ----------

I posted about this before and never got a response...

I installed several weather apps and instead of seeing the temperature displayed in the status bar, all I see is a miniature icon if the weather app - totally useless unlike all my other phones which show the temperature in the status bar.

Is this what you guys see too or do I have a setting wrong?

Thanks! :)
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
Our phone uses a customer status and navigation bar. It's not standard Android as previously stated way back in this thread. So until we get a custom ROM that's what we have to deal with as it's part of the system.
[Huawei Ascend XT Questions & Answers] divineBliss:
Amazing that AT&T would cripple basic functionality like being able to see the temperature.

I found an app on the Play Store that overlays on top of the status bar and tried it on XT a while back, but didn't like the whole overlay idea. My Verizon G4 doesn't do any nonsense like this AT&T crippling of the status bar :( .

I did recall reading about the Airplane mode display in the status bar. The overlay app got rid of that.
[Huawei Ascend XT Questions & Answers] enigma2446:
Anyone try doing a full wipe and restoring a backup?

"Mvno Master"
[Huawei Ascend XT Questions & Answers] divineBliss:
Nobody has XT TWRP aside from

dolph8886, do they?
[Huawei Ascend XT Questions & Answers] enigma2446:
I do

"Mvno Master"

---------- Post added at 07:35 PM ---------- Previous post was at 07:28 PM ----------

My port seems to be working well for me. Aside from restoring a backup cuz I havnt tried it yet. And I have System less root as well.

"Mvno Master"
[Huawei Ascend XT Questions & Answers] divineBliss:
So only you two can try. What partitions were you able to back up with your TWRP? Which partitions will get blown away by a full wipe? How do you feel about doing this full wipe test, which is a great idea :) .

Does wiping cache and Dalvik cache work from your TWRP? Those are supposed to get regenerated anyway, so should be low risk to try ;) .
[Huawei Ascend XT Questions & Answers] enigma2446:
I was able to wipe dalvik and cache with no problem and I'm able to make backups and I have access with file manager to both internal and sd

---------- Post added at 07:59 PM ---------- Previous post was at 07:58 PM ----------

Also do y'all want me to link you guys to my ported twrp
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
This is exciting news. Can you please share the recovery image?
[Huawei Ascend XT Questions & Answers] powerserge1:
You have it working now enigma according to your post above?
[Huawei Ascend XT Questions & Answers] divineBliss:
That would be awesome :) .

Some brief instructions on flashing the TWRP image, installing SuperSU, and anything else helpful would be greatly appreciated by us all. Thanks! :)

Did you happen to try flashing back to stock recovery.img?

After you wiped caches, did it rebuild the files on reboot?
[Huawei Ascend XT Questions & Answers] enigma2446:
Yes I can make backups now. I just havnt tried restoring yet. I'll upload the img when I get off work tonight.
[Huawei Ascend XT Questions & Answers] powerserge1:
Excellent, good enough for me. Donation coming, thanks again!
[Huawei Ascend XT Questions & Answers] divineBliss:
Anyone with multiple XTs that wants to test restoring TWRP backups? :)

Someone here once had three, but sold two because root looked like it wasn't going to happen.
[Huawei Ascend XT Questions & Answers] enigma2446:
Ok so to save time I decided to make a copy of the recovery using flashify app. But to be safe I recommend using fastboot to boot it first and make sure it works . Using the following command:

Fastboot boot xtrecovery.img

The img must be in the same folder you have adb and fastboot.

https://drive.google.com/file/d/0B12_sZzJAt2qeTdoR0tzYU9GQnM/view?usp=drivesdk
[Huawei Ascend XT Questions & Answers] divineBliss:
Is that the stock recovery.img or TWRP.img you shared? Thanks :) !
[Huawei Ascend XT Questions & Answers] enigma2446:
Should be the twrp port. I made a backup with the xt that's why I suggested booting it first to verify that it is the right recovery. I
[Huawei Ascend XT Questions & Answers] divineBliss:
I downloaded the shared filed and named it TWRP.img

TWRP.img

Size: 67,108,864

MD5SUM: 795C944FA4D7477AF3883F39C94C33B7

I fastbooted it. Looks good so far. What version of SuperSU did you use?

Should I leave the system as read-only to flash SuperSU? Do I have to do anything else like that script from yesterday to get root?

EDIT1:

I tried to backup everything first and getting /data errors .......... is that normal?

EDIT2:

progress is being made :) ! Great job everyone!

Backup fails if I select all partitions including /data, so unselected /data and it's backup up everything else now. Is this maybe because /data is encrypted or what? It won't even mount /data for me - so I guess that's why the errors.

EDIT3:

Even after deselecting Data partition, backup ends with

[3001 MB TOTAL BACKED UP]

Updating partition details . . .

"Failed to mount '/data' (Invalid argument)"

. . .done

but it wrote files to external SD this time :) .

EDIT 4:

Rebooted to normal mode (I have not flashed TWRP yet)

17 files/2.9GB in TWRP folder on microSD!

EDIT 5: What next :confused:

I would like to root next while leaving stock recovery in place by fastbooting TWRP.img. Is that possible? What do I need to do now? Do I need that script from yesterday?
[Huawei Ascend XT Questions & Answers] xx_iamxanderman_xx:
Oh wow ?
[Huawei Ascend XT Questions & Answers] xx_iamxanderman_xx:
I am going to download the TWRP Recovery and try to debug it. I will let y'all know if I make any progress. Also, since someone else has compiled TWRP, I may try for compiling Linage OS, CRDroid, or something similar. I will need to get home first as this hotel Wi-Fi is terrible for downloading git repositories. Let me know what custom ROM y'all would like to see compiled for this phone.
[Huawei Ascend XT Questions & Answers] divineBliss:
Awesome! :highfive: CandySix ROM is nice on my Huawei Ascend Mate 2 . :)
[Huawei Ascend XT Questions & Answers] mj56gt:
I just got exactly the same response.
[Huawei Ascend XT Questions & Answers] enigma2446:
I ran into that and all I had to do is format the data partition in twrp and all worked after that. Mine works with no issues. Got systemless root using the latest supersu zip.
[Huawei Ascend XT Questions & Answers] powerserge1:
Looks like we don't need them anyways... Screw Huawei
[Huawei Ascend XT Questions & Answers] divineBliss:
Thanks!

That will blow away all my data on internal SD, so I better back up my files first! :)

Do I need to create that script discussed last night?

What are proper steps to root? Can I just flash SuperSU from fastbooted TWRP?

I guess I don't need to make a copy of stock recovery since we have recovery.img, correct?

I can leave System are read-only to flash SuperSU?

Thanks again!
[Huawei Ascend XT Questions & Answers] powerserge1:
To start, as most know the Ascend XT has 16GB, which 8.5GB is usable so there is alot of bloatware to tie up storage and slow down the phone. People have complained about lag and this should not be the case with an octacore processor. I would start by debloating all the AT&T stuff along with all the Google apps except for google play and google play services. This should free up quite a bit of space and should see a huge increase in performance using a stock ROM.

Once we have root we can then use EMUI stock and install themes like the other Huawei phones can. I would love a black theme myself and we have the ability to do that with EMUI without making drastic changes.

Freed storage space, faster performance, root and ability to apply themes with a debloated stock ROM would be an excellent starting point.

Edit: Do I have to bootloader unlock as per post #7 before doing any of this? Or can i just use flashify to install TWRP as it is? I do not have much experience with adb.
[Huawei Ascend XT Questions & Answers] enigma2446:
I went ahead and just flashed the twrp to mine then rebooted. Got the errors regarding data so I formatted then rebooted twrp. From there I flashed the supersu zip. Right now till we have selinux set to permissive we can't debloat that's because system less root can't.
[Huawei Ascend XT Questions & Answers] xx_iamxanderman_xx:
ROM

I just researched the CandySix ROM. It does look very nice. When I get home, that will probably be the ROM that I try to compile, I think after I compile that, I will also try to compile Linage OS as it is Android 7 and the continuation of CyanogenMod.

I will be home on Saturday, probably pretty late. My internet speed is only 100 Mbps at home so the repository download will still take awhile. Also, I share this computer with my family, so access cannot be 24/7 but I am willing to pull a few all nighters. Hopefully, I get my new computer soon that way I can spend more time developing.

Anyways, thank you to enigma2446 for the TWRP port, it is going to help a lot.
[Huawei Ascend XT Questions & Answers] powerserge1:
You also have a donation, thank you for your efforts! If more of us can chip in to encourage development of this phone, let's do it
[Huawei Ascend XT Questions & Answers] enigma2446:
Once the lucky person who gets to full wipe and restore with a backup and it works, I will attempt to port roms as well.
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
I pretty much got the same reply today.

---------- Post added at 05:02 PM ---------- Previous post was at 05:00 PM ----------

Linage OS would be my top pick. I love getting as original/vanilla experience as possible to i can change or modify to the fullest extent beyond that. Gives more room to work with as far as apps and stuff goe too as its usually is pretty small.
[Huawei Ascend XT Questions & Answers] jg1210:
Me too LMAO!
[Huawei Ascend XT Questions & Answers] ensol52:
Well i flashed the recovery, not fastbooted it, did i made a mistake or not?? btw superSu will do systemless root automatically??

and im having problems with the data partition too, can someone help me??
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
I fastbooted into twrp and flashed the latest supersu and ended up with a soft brick. Buuuuut i did a full backup so i should be back up in a few. [MENTION=5064117]enigma2446[/MENTION] how did you flash supersu and not end up with a brick?
[Huawei Ascend XT Questions & Answers] ensol52:
omg youre same as me lol XD omg. at least i have the back up lol
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
yes, mines restoring now. did yours restore correctly?
[Huawei Ascend XT Questions & Answers] ensol52:
it restored, trying to boot it now.
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
BRICKED, it will go into recovery and into fastboot mode and respond via terminal but thats as much as im getting. :confused::crying: hopefully we make a little more progress with twrp and i can nap someone else's backup. :fingers-crossed:
[Huawei Ascend XT Questions & Answers] ensol52:
i know the exact issue with this, is that the dalvik/art cache is not being cleared cause of the data mount issue. that is what is happening. and im going to check for a fix to it.
[Huawei Ascend XT Questions & Answers] divineBliss:
Did you guys with bricks leave system as read-only or make it writable?

Waiting for some guidance cause I don't want to lay a brick :) .
[Huawei Ascend XT Questions & Answers] ensol52:
ok bro so do this

1. go to the wipe section and go to advanced wipe.

2. after that go to data and press on advanced options or whatever it is.

3. go to change file system

4. change to ext2 and then return to ext4.

5. check if it works
[Huawei Ascend XT Questions & Answers] divineBliss:
Did you guys reformat the data partition first?

---------- Post added at 07:39 PM ---------- Previous post was at 07:37 PM ----------

Are you currently successfully rooted with TWRP recovery flashed? What will step 4 below do?
[Huawei Ascend XT Questions & Answers] ensol52:
umm noo. maybe that is the issue with this. I made a backup of boot and system on sd card. im restoring it. i reformatted the partition after this, btw it was actually ext4 right??
[Huawei Ascend XT Questions & Answers] divineBliss:
Yes, I'm still stock and data partition is ext4.

I would try wiping/reformatting data as ext4.
[Huawei Ascend XT Questions & Answers] ensol52:
we made system writable, but the data partition was not reformatted.
[Huawei Ascend XT Questions & Answers] shawnchalfant:
Go into fastboot and flash partitions manually.

---------- Post added at 06:46 PM ---------- Previous post was at 06:45 PM ----------

Then erase cache after you flash system.img.

NEVERMIND, FORGOT YOUR USING TWRP BACKUP. SORRY GOT AHEAD OF MYSELF.
[Huawei Ascend XT Questions & Answers] ensol52:
ok let me do that again
[Huawei Ascend XT Questions & Answers] divineBliss:
With what? Especially the data partition - flash it with what?

---------- Post added at 07:48 PM ---------- Previous post was at 07:47 PM ----------

Clear both cache and Dalvik cache.
[Huawei Ascend XT Questions & Answers] ensol52:
exactly how?? we dont have a system img to do that or the complete os to do that neither
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
I must ask if you can be a little more clear in your steps. its seems you left out parts of the steps here and there. i know we are both dealing with the same twrp version but i couldnt follow them. btw did this work for you?
[Huawei Ascend XT Questions & Answers] divineBliss:
We have the stock system that's shared folder in earlier post from days ago. (UPDATE: it does not include system.img)
[Huawei Ascend XT Questions & Answers] ensol52:
nope. i havent booted up the phone, i sometimes hear like a device mounted on the pc but the phone doesnt do ****.

---------- Post added at 01:52 AM ---------- Previous post was at 01:51 AM ----------

bro can you please search where is exactly?? i need to restore this phone as quick as possible

---------- Post added at 01:55 AM ---------- Previous post was at 01:52 AM ----------

ok so when im in the data partition it says that i have 8,758mb of storage but when i see the free is says 8,738mb and in used it says 0mb
[Huawei Ascend XT Questions & Answers] ensol52:
ok good, btw im downloading the boot img since the one i have weights 64mb and the one you have on mediafire weights only 40mb
[Huawei Ascend XT Questions & Answers] divineBliss:
Thanks! Were you able to get rooted successfully? If yes, I have not tried yet. Do you have some basic instructions you can share?

---------- Post added at 08:05 PM ---------- Previous post was at 08:02 PM ----------

Worth a try, but I bet 64MB is the entire partition and 40MB is the used section. I'd prefer the 64MB file to eliminate any doubt.
[Huawei Ascend XT Questions & Answers] ensol52:
wait, my phone hasnt booted up properly, and im not seeing the at&t logo. what you recommend me to flash apart from the boot img?? i hate when i had to be a stupid idiot and not wait.
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
this isnt a complete system image at least from my experience. me and you are going to have to wait until somebody else gets can do a full twrp backup and use theirs. for some reason wether it be the current limitations of our twrp or something unknown to me. it looks like we are bricked for awhile.

If you find a way to get running please please please let me know. wifes mad lol.
[Huawei Ascend XT Questions & Answers] ensol52:
ok hahaha lol, ill check what i can do
[Huawei Ascend XT Questions & Answers] divineBliss:
Flash your TWRP system.img if you made a copy before you started flashing.
[Huawei Ascend XT Questions & Answers] ensol52:
i may know what could work or maybe, can someone upload a backup of their EFS file?? and what is that exactly??
[Huawei Ascend XT Questions & Answers] divineBliss:
That doesn't look to be a file to share:

http://www.droidthunder.com/how-to-backup-efs-imei-on-android-phones/

Unique data for each phone if I'm reading correctly.

Why do you think it's that partition that needs to be flashed?
[Huawei Ascend XT Questions & Answers] enigma2446:
Wow I missed a lot. All this reading is making me confused.

"Mvno Master"
[Huawei Ascend XT Questions & Answers] divineBliss:
Can someone please tell me who successfully rooted earlier today? We need their help :) .

My heads spinning too.
[Huawei Ascend XT Questions & Answers] ensol52:
ok, btw does the erecovery and recovery are the same stuff??
[Huawei Ascend XT Questions & Answers] divineBliss:
Both had the same checksum, but I think they go into different partitions.
[Huawei Ascend XT Questions & Answers] enigma2446:
I'm one of the ones that have System less root.

"Mvno Master"
[Huawei Ascend XT Questions & Answers] divineBliss:
And your phone boots? Can you tell me what you did to get there from stock? I don't want to lay a brick, so I'll listen to you :) . Thanks!
[Huawei Ascend XT Questions & Answers] ensol52:
how you did that bro?? im bricked right now. im very sad cause this phone is so good and for being stupid i just bricked it. im hopeless
[Huawei Ascend XT Questions & Answers] enigma2446:
OK to start, everyone that's been following this thread please don't flash anything untill we get this resolved.

I used my port and tested via Fastboot boot command and it worked. So I took the risk and went ahead and flashed it to my device. From there I attempted to root and failed. Was getting that data error. From there I Googled a lot of stuff and tried to format just the data partition. After that I successfully made a backup. With that Confirmation that they data partision is now accessible I flashed the latest supersu zip file in turn gave me System less root. I'm not sure what's going on.

"Mvno Master"

---------- Post added at 02:49 AM ---------- Previous post was at 02:41 AM ----------

I think I might have to flash back to stock and replicate the process to get twrp working and su working. Can anyone confirm the process I laid out?

"Mvno Master"

---------- Post added at 02:51 AM ---------- Previous post was at 02:49 AM ----------

Unfortunately I'm at work for a while and can't work on it till I get home

"Mvno Master"