Huawei device "ptrace" implementation issue - Huawei MediaPad M5 Questions & Answers

Being a no good dirty cheater, I'm a big fan of Game Guardian and I use it with great success on my HTC U11 phone. I recently discovered that it can be used without root, by using a virtualization environment such as Parallel Space or VirtualXposed. As I haven't rooted my M5 (SHT-09), I downloaded Parallel Space and GG and got it all running. However, I've found that I cannot make any edits to game memory space from within GG.
The are a number of posts on the GG forum suggesting that there is a bug (or security feature) in many Huawei device cores / firmware that relates to the implementation of the ptrace system function call. Something in the firmware seems to prevent the GG process from modifying the child process memory space using PTRACE_POKETEXT or PTRACE_POKEDATA.
The suggestion of the developer of GG is to "change the firmware so that there the ptrace system call works normally".
Anyone aware of this "feature" of Huawei device firmwares? Is there / could there be a solution to modify the firmware to "fix" this behaviour?

I saw you posted on my thread. Thanks for that. I wanted to see whether flashing a different kernel like Serenity would help. But i doubt it. Might be worth a try. Would have loved to know that beforehand. :/ Any other ideas? What I am seeing is that it needs a competent developer to recode the Kernel. I would then flash that patch. Other than that it is defined as unfixable. That we'd have to change the device. :/

It's the main reason that I haven't rooted / unlocked the bootloader, as running GG is pretty much all I use root for on other devicxes. And the fact that rooting / boot unlock kills Widevine level 1 support, which is madness on a 2k device like the M5. Wouldn't want Netflix streaming SD content only.
From what I understand, which isn't much, the issue is buried deep down in the kernel. Not sure if a custom kernel would solve the problem or not. Knowing XDA, I'm sure someone will be crazy enough to try it at some point in the future!

mroshaw said:
It's the main reason that I haven't rooted / unlocked the bootloader, as running GG is pretty much all I use root for on other devicxes. And the fact that rooting / boot unlock kills Widevine level 1 support, which is madness on a 2k device like the M5. Wouldn't want Netflix streaming SD content only.
From what I understand, which isn't much, the issue is buried deep down in the kernel. Not sure if a custom kernel would solve the problem or not. Knowing XDA, I'm sure someone will be crazy enough to try it at some point in the future!
Click to expand...
Click to collapse
Yeah I get that, but some games dont have a cloud feature. Making parallel space useless. Plus I appreciate some other root features. I have a note 8 which should work GG without root, but I'll see how it goes. Oh really, I'm a big time stream fan. I havent tried Netflix with root yet . Should still work tho. I think. Hmm well, problem is all kernels are made for devices like the mate 10 or the P20. Not sure if they will work with the M5, wouldn't want to brick after all the trouble. [Edit, found the nextflix module apk. Can flash that with Magisk. Makes it work again ]

mroshaw said:
Being a no good dirty cheater, I'm a big fan of Game Guardian and I use it with great success on my HTC U11 phone. I recently discovered that it can be used without root, by using a virtualization environment such as Parallel Space or VirtualXposed. As I haven't rooted my M5 (SHT-09), I downloaded Parallel Space and GG and got it all running. However, I've found that I cannot make any edits to game memory space from within GG.
The are a number of posts on the GG forum suggesting that there is a bug (or security feature) in many Huawei device cores / firmware that relates to the implementation of the ptrace system function call. Something in the firmware seems to prevent the GG process from modifying the child process memory space using PTRACE_POKETEXT or PTRACE_POKEDATA.
The suggestion of the developer of GG is to "change the firmware so that there the ptrace system call works normally".
Anyone aware of this "feature" of Huawei device firmwares? Is there / could there be a solution to modify the firmware to "fix" this behaviour?
Click to expand...
Click to collapse
Alright guys, I found this out today (I'm also Kr1msonReaper on GG forums);
Huawei kernel prevents GG from working in Android Oreo HOWEVER-- If you downgrade to Android Nougat, I find that it works perfectly. Hope this helps!
Just a note, when you are, of course, debloating Nougat, make sure to disable Huawei system update app so you don't find yourself in Oreo the next day.

Kr1msonReaper said:
Alright guys, I found this out today (I'm also Kr1msonReaper on GG forums);
Huawei kernel prevents GG from working in Android Oreo HOWEVER-- If you downgrade to Android Nougat, I find that it works perfectly. Hope this helps!
Just a note, when you are, of course, debloating Nougat, make sure to disable Huawei system update app so you don't find yourself in Oreo the next day.
Click to expand...
Click to collapse
How do you downgrade to nougat? Any reason not to do it? And will I retain root ?

I actually like Nougat more than Oreo as it fixes issues such as the ptrace error and seems to have more battery optimization. It's been a long time since I downgraded to Nougat and since then I got a new phone but here's the tutorial I followed. @mrmazak has helped me out of se sticky situations and his tutorials have never failed me. https://forum.xda-developers.com/honor-7x/how-to/guide-honor-7x-flash-oreo-update-t3781649/amp/
I believe you will lose root but you can easily flash magisk again after installing the downgrade package.
Hope this helped!

Kr1msonReaper said:
I actually like Nougat more than Oreo as it fixes issues such as the ptrace error and seems to have more battery optimization. It's been a long time since I downgraded to Nougat and since then I got a new phone but here's the tutorial I followed. @mrmazak has helped me out of se sticky situations and his tutorials have never failed me. https://forum.xda-developers.com/honor-7x/how-to/guide-honor-7x-flash-oreo-update-t3781649/amp/
I believe you will lose root but you can easily flash magisk again after installing the downgrade package.
Hope this helped!
Click to expand...
Click to collapse
I am not sure this would work on the Huawei mediapad m5 tablet. As far as I can tell it never had a nougat firmware to rollback too. I looked for sht-w09 and the all the files appear to be for Android 8 and none for 7 nougat. Unless I am missing something??
Other than they locked out ptrace stuff and that it appears unlikely to get Android 9 in the US for my mode l its a pretty good tablet. Maybe I should just sell it and move on to a tab s6 that can be rooted.

paths said:
I am not sure this would work on the Huawei mediapad m5 tablet. As far as I can tell it never had a nougat firmware to rollback too. I looked for sht-w09 and the all the files appear to be for Android 8 and none for 7 nougat. Unless I am missing something??
Other than they locked out ptrace stuff and that it appears unlikely to get Android 9 in the US for my mode l its a pretty good tablet. Maybe I should just sell it and move on to a tab s6 that can be rooted.
Click to expand...
Click to collapse
Hey! You're right I couldn't seem to find a nougat downgrade. On the bright side, I did find a Pie update for your model. Who knows, maybe ptrace will be fixed in that version?
https://www.getdroidtips.com/mediapad-m5-8-android-9-0-pie/
Good luck!

Related

considering buying a honor 5x

i currently use metro pcs . i would like to buy a good phone.
ive been considering the samsung j7 but the specs on the honor 5x look better.
ive been reading up and it looks like it accepts the metro pcs sims.
according to various reviews, the main issue with the honor 5x is the android interface.
i would like to know which is the best way to get a stock android rom while keeping the phone functional. ??
would installing a stock android be alot better than the current interface the phone comes with ? { is it worth it }
also .. can i play games like hitman sniper on the honor 5x ??
Got Modacco rom no problems or lags i camera from almost stock android
i just bought the phone from new egg, now im looking for a tutorial that shows how to change to a custom rom.
also... instead of custom rom, will i be able to increase performance by using another launcher instead of emui ??
or
am i better off installing a custom rom for maximum performance ?
towncarblue said:
i just bought the phone from new egg, now im looking for a tutorial that shows how to change to a custom rom.
also... instead of custom rom, will i be able to increase performance by using another launcher instead of emui ??
or
am i better off installing a custom rom for maximum performance ?
Click to expand...
Click to collapse
Nova Launcher is considerably better than the stock EMUI launcher, though I'm not sure that would increase performance... If a faster phone's what you're looking for, then flash a custom ROM, preferrably one that's debloated and as close to AOSP (stock) as possible, so you don't have Huawei's apps slowing down your device. I'm currently using EMUI and fine with it until fingerprint support comes to stock ROMs, but many people agree that customs are much better, faster and stable than EMUI.
Since you didn't specify wether it's your first time flashing a ROM or doing advanced stuff, I'll advise you to read up carefully and thoroughly about what you're getting into - step-by-step guides are nice, but knowing what you're actually doing will most definitely come in handy in the future!
ive flashed a couple of tablets and phones.
theres two so far im willing to try , cm12 and modaco
ive been doing some research and I have some questions....
1- with cm12 does every thing work fine ? ex. fingerprint hdr etc..
2- with modaco does everything work fine ? ex. fingerprint hdr etc..
i want all of the phones features without any compromise
towncarblue said:
ive flashed a couple of tablets and phones.
theres two so far im willing to try , cm12 and modaco
ive been doing some research and I have some questions....
1- with cm12 does every thing work fine ? ex. fingerprint hdr etc..
2- with modaco does everything work fine ? ex. fingerprint hdr etc..
i want all of the phones features without any compromise
Click to expand...
Click to collapse
only the stock base roms have FP support ...Modaco is a stock base rom
none of the CM based roms have FP support - bliss - crdroid - aokp - RR - cm12 and cm13 all fall in this category
towncarblue said:
ive flashed a couple of tablets and phones.
theres two so far im willing to try , cm12 and modaco
ive been doing some research and I have some questions....
1- with cm12 does every thing work fine ? ex. fingerprint hdr etc..
2- with modaco does everything work fine ? ex. fingerprint hdr etc..
i want all of the phones features without any compromise
Click to expand...
Click to collapse
Hey. I have the honor 5x too. I installed a rom called resurrection remix os.
(http://forum.xda-developers.com/honor-5x/development/rom-resurrection-remix-os-t3386555)
It is a really solid ROM and increases your performance greatly. It is based on cm 13. Everything works and is stable (on my phone at least). The only thing that doesn't work is the FP scanner. I only tried this ROM so I don't know how the other ROMs for this device perform. So far this has been a really stable option for me. Try it if you want.
Sent from my KIW-L21 using XDA-Developers mobile app
jimandroidnerd thncx for the input , i will try it first to see the best performance the honor 5x can give.
im mainly looking at "modaco" rom or the " rom-stock-b151-stock-rooted-deodexed-t3355130 " because they are either the stock or based on the stock rom.
also i want that fp scanner to work.
WAIT... i just noticed that modaco is only for the KIW-L21 ???
im getting a KIW-L24. what are my best options now with fp support??
towncarblue said:
jimandroidnerd thncx for the input , i will try it first to see the best performance the honor 5x can give.
im mainly looking at "modaco" rom or the " rom-stock-b151-stock-rooted-deodexed-t3355130 " because they are either the stock or based on the stock rom.
also i want that fp scanner to work.
with the stock-rooted-deodexed rom will i receive ota updates from the phone manufacturer ??
Click to expand...
Click to collapse
you can't install updates with TWRP/Root on your phone
ok , no updates . no biggie.
what is my best rom options for a KIW-L24 ???
towncarblue said:
ok , no updates . no biggie.
what is my best rom options for a KIW-L24 ???
Click to expand...
Click to collapse
Honestly, if you so desperately want FP support, stay on stock, or debloated which would be the most "custom" you'd get afaik. I'm also waiting for FP support so I know the feeling... There are some nice features in EMUI (that Themes customization app is a great thing honestly, I love it, for example) but I would like to run a custom ROM someday. We'll have to wait for the security base release I guess...
ima put in a stock.debloated.root rom and call it a wrap.
if im unsatisfied with the performance ill try resurrection remix os
and just not use the fingerprint.
im getting a KIW-L24 { as mentioned in post #8}
modaco is only for KIW-L21 { as far as i know }
i want a debloated rom that is stable , no glitches .
all reviews i read so far for this phone are positive,
except the emui interface and the preloaded bloatware .
i know im buying a budget phone , but i want it to work as smooth it possibly can
Arobase40 said:
My bad, I missed the conjunction "or" in your sentence : "im mainly looking at "modaco" rom or the " rom-stock-b151-stock-rooted-deodexed-t3355130 ""...
But nobody than you can say what is a bloatware or not so even though Clsa's rom is good better create your own ROM removing what YOU consider as bloatwares.
Since Xposed framework v83 you can also install it by yourself without the need of a deodex firmware : you just have to consider the pros & cons of "deodex vs odex firmwares". Actual working version of Xposed framework for the Honor 5x is v85.
The other problem except EMUI is the lack of OTG feature as default and some other few stuffs...
Click to expand...
Click to collapse
Well, you actually CAN tell what is bloatware and what isn't, the only difference would be wether you find a particular app useful enough to not consider it a bother on the system...
There's basically no theoretical downside to deodexed ROMs or files, apart from boot time if you wipe dalvik. A question: is Xposed v85 a flashable .zip like normal Xposed? I read somewhere on here that you had to modify system files to do that, but I'f be very happy to know that the Honor 5X now has proper and easy Xposed installation available.
Arobase40 said:
Well I won't argue on what is bloatware or not as this is mainly personal to one another and I won't argue either against deodex vs odex ROM as as I said we now have the choice between apps customizations and ROM performance...
What only matter is your question : you can flash any Xposed Framework zip file with TWRP, but since v83 till v85 you can flash them whether you have deodex or odex firmware and the only change you have to do is to modify the build.prop file.
I actually have Xposed Framework v85 on my odex firmware and it works pretty well.
Click to expand...
Click to collapse
So by flashing v85, I still have to change the build.prop file? Is there any guide on doing this? Honestly I'd rather wait for v86 if it means not having to edit system files, but if it's unavoidable, then I guess it can't be helped...
just got the phone yesterday. after i deleted some apps and changed emui to "google now launcher"
it seems to run fine. ill give it a week before i start changing the rom
Arobase40 said:
I don't think a v86 would be of any help, just a new Xposed framework installer app...
Otherwise you simply need a root explorer (or kind of same app with root rights).
If you don't want to do the changes directly into your system, you can copy the build.prop file to your Sd Card (keep an unmodified copy somewhere just in case), and do the changes from there with a notepad or such. Then copy the modified build.prop back to the system folder keeping the same permissions and reboot... That's it !
Click to expand...
Click to collapse
I'm actually reluctant to modify system files if at all possible not to do so since I almost bricked my 5X doing just that (well, kind of, stupid mistake but still...). I'm missing the easy Xposed framework installer honestly. I really hope someone creates an installer for this, or a single flashable zip that also modifies build.prop...
I also just got the device yesterday. Was surprised it allowed me to delete the bloatware on it! I guess they were nice and did not install them on the system partition.
ALso interested in any performance tweaks. Like the phone and os in general but with "budget" processor it would be good to have it running as light on resources as possible.
johnciaccio said:
I also just got the device yesterday. Was surprised it allowed me to delete the bloatware on it! I guess they were nice and did not install them on the system partition.
ALso interested in any performance tweaks. Like the phone and os in general but with "budget" processor it would be good to have it running as light on resources as possible.
Click to expand...
Click to collapse
For performance there are custom, stock or debloated ROMs, and in case you're looking for something in addition to EMUI in order to make it faster I recommend you the apps "L Speed", "Greenify" (guessing you already know this one), and "Kernel Adiutor" if you're into kernel tweaking. Putting your cores on Performance governor should speed the device like hell, at the cost of battery life, but you can tweak it to a smaller degree and find your balance.
Arobase40 said:
Then write a mail or a post to the author of the Xposed installer and ask him if he could create a specific installer for the Huawei/Honor devices... ^^
Click to expand...
Click to collapse
Wrote a post on the thread that was ignored, lol. It says on the FAQ that there can be problems with Huawei/Xiaomi as they are chinese manufacturers and do things differently to, say, Motorola, so I'm guessing I won't get a reply no matter how loud I cry out.
Arobase40 said:
Maybe you could try with a more polite way ? lol
Click to expand...
Click to collapse
But I was polite though... I think. It's probably got more to do with the fact that it's the general Xposed thread so your message gets buried behind bug reports and other questions, I guess. I was searching for other ways of contacting the dev but desisted upon finding that in the FAQ.

Z5compact (stock out of the box) and question how to flashtool (Nougat),bloody newbie

Hi community,
as far as I read nougat has been torn back from sony. Anybody updated before and has a smooth experience? Would like to update too.
Downloading and starting flashtool does not give me the check updates tab, so is anything wrong or has the device to be prepared?
Does this way need root or unlocked bootloader or something else?
I hoped taking a virgin z5c and flashtool would fit to check for updates, find the device and firmwares according to, choose one of and flash?
Isnt it that easy? Any ideas when nougat from sony official will be provided once more?
Thank you
There were a couple of serious bugs in the Nougat release, hence the draw back by Sony.
Maybe in a month or two, we'll see a fully working Nougat ROM for Z5C.
pitrus- said:
There were a couple of serious bugs in the Nougat release, hence the draw back by Sony.
Maybe in a month or two, we'll see a fully working Nougat ROM for Z5C.
Click to expand...
Click to collapse
I'd suggest to wait too. Backup TA, Root and use Xposed instead. The only thing that is a bit more handy is split screen mode. I have audio bugs and thermal issues running nougat.

question about rooting

hi all,
if I root my phone, what I will lose apart from camera?
Is there any working camera for rooted devices? Whatsapp camera/Instagram camera will work?
I've bought this phone just to root it and I figured out I can't
thx
Everything is already wrote down
Just look through the forum and you will find everything
Just a hint: there are tutorials how to restore all Sony features
Caffeineshock said:
Everything is already wrote down
Just look through the forum and you will find everything
Just a hint: there are tutorials how to restore all Sony features
Click to expand...
Click to collapse
Hello, I'm sorry for my redundant question.
My only biggest fear is that developers stops supporting drm fix so when a new update become available, people who rooted their phone will be stuck with old software version.
I don't know if this ever happened, since it is my first sony device.
So if anyone could report their experience with drm fix support over time it will be great
However, I found a tool over here called xperifix. I may give it a try
If you have doubts about rooting your phone it certainly means that you shouldn't do it. Otherwise if you want to do so that bad just stop updating your phone when support stops.
Kwoon said:
Hello, I'm sorry for my redundant question.
My only biggest fear is that developers stops supporting drm fix so when a new update become available, people who rooted their phone will be stuck with old software version.
I don't know if this ever happened, since it is my first sony device.
So if anyone could report their experience with drm fix support over time it will be great
However, I found a tool over here called xperifix. I may give it a try
Click to expand...
Click to collapse
You don't lose anything using xperifix or Jan Jan kernel. I don't think we lost support so easily, Xperia Z2 was supported until latest stock firmware, XZ is still being supported on last current firmware. But like nick0s23 said, if you have fear.. Think it twice.

how to fix BlueFrag on Honor 9?

hello,
since the Honor 9 isnt getting any security fixes anymore what can we do
about the BlueFrag security hole?
https://www.andreafortuna.org/2020/...-critical-bluetooth-vulnerability-in-android/
It seems right now the only chance would be phussons android 10 GSI
https://forum.xda-developers.com/honor-9/how-to/android-10-t3993461
since there are no Custom Android 9 or 10 ROMS with latest Google Security Fixes - correct?
If someone figures out how to bypass the bootloader that huawei put, then we can start doing this roms thing, until then, unfortunate people like me are stuck at a locked bootloader.
Well i can technically do the whole process of flashing my board again using dc unlocker and then unlocking my bootloader while I'm at it, but that's too much hassle, man, plus you need some money to spare. It's not worth it anymore unless you absolutely have to, I'm just happy with a working phone lol
thanks for answering - i'm also stuck at EMUI 9.1
and with this method?
wouldnt it be free?
https://forum.xda-developers.com/honor-9/how-to/downgrade-unbrick-honor-9-imei-fix-t3934363
then we could try some of theses ROMS out
https://openkirin.net/download/
andPS2 said:
thanks for answering - i'm also stuck at EMUI 9.1
and with this method?
wouldnt it be free?
https://forum.xda-developers.com/honor-9/how-to/downgrade-unbrick-honor-9-imei-fix-t3934363
then we could try some of theses ROMS out
https://openkirin.net/download/
Click to expand...
Click to collapse
Nope, u have to pay for it, and yeah, i'm waiting for them to find an exploit on the security that huawei put in their gpu turbo update, bec. that's the root of our problem, i heard that if you downgrade to a non-turbo firmware, it's gonna brick your device, so might as well be patient until the guys at dc phoenix figures out how to read bootloader codes on emui9.
Also I saw that openkirin has hw buttons fixed, i think it's the capacitive buttons fix that people often lose bec. of installing twrp, so i'm excited for that day that we can install openkirin roms
scarlet_venom said:
Nope, u have to pay for it, and yeah, i'm waiting for them to find an exploit on the security that huawei put in their gpu turbo update, bec. that's the root of our problem, i heard that if you downgrade to a non-turbo firmware, it's gonna brick your device, so might as well be patient until the guys at dc phoenix figures out how to read bootloader codes on emui9.
Also I saw that openkirin has hw buttons fixed, i think it's the capacitive buttons fix that people often lose bec. of installing twrp, so i'm excited for that day that we can install openkirin roms
Click to expand...
Click to collapse
to unlock bootloader, try the potatonv method. I commented it here:
Using Honor 9 after EOL / Unlock bootloader / Flash custom rom
Hi everyone, since Huawei apparently dropped support for the Honor 9 a while ago, I'm getting concerned of my phone being a security risk as the Android security patch is of july 2019. As my 3-year-old phone is still working totally fine, I was...
forum.xda-developers.com

Question When does root/TWRP work on gt2pro?

When does root and trwp work on gt2pro?
Unlock bootloader is not a problem anymore....
So where are the roms, root guides etc??
Why? Why don't you make at least one of what you ask ?
I can't. I'm not a developer...
But since all works now, I wonder why nobody release linageos etc etc ....
I've rooted gt2 pro. It's not a big deal. What's the problem?
paine_one said:
I can't. I'm not a developer...
But since all works now, I wonder why nobody release linageos etc etc ....
Click to expand...
Click to collapse
Where should I start..
- Because Kernel was only released open-source recently, and still there are a lot of grey areas.
- Realme has not released a free flashing tool to fix hard-bricks. The current MSM tool not only requires you to pay someone every time you use it, but also does not have a proper documentation.
- In addition, the MSM tool does funny things sometimes as some users reported, like screwing up persist partition or the lock/unlock BL mechanism, and nobody knows why.
- There are concerns regarding security since the use of fingerprints is becoming popular and apps like banking keep improving root detection mechanisms. Many people prefer to keep their phone with locked bootloader non-root for security reasons.
- The official stream of OS updates for GT2 Pro will be maintained for approx. next 2 years, and Realme seems to be putting effort to make improvements.
- Most of the custom ROM patches/fixes/improvements can be applied manually.
My guess is that once Realme shifts their support to other phones, there will be a need to maintain the OS by the community.
Thx for the answer
I hope there will be any chance to become some stuff next week's/month bc i need a new phone and i don't want a x50pro...

Categories

Resources