Question Rooting LE2117 TMobile OP95g - OnePlus 9

So I have a T-Mobile variant op9 and I was wanting to root the phone..
My bootloader and sim are locked. In developer menu, I was able to tick "allow oem unlock" so that's turned on.
Is it possible to root this phone with these conditions?
If not, can someone direct me to someone providing sim unlock services ?

Im kinda in the same boat. Mine must have had newer software because I had to disable a service to enable the oem unlocking option.
You will need an unlock token from here though: https://www.oneplus.com/us/unlock_token
that I know. I would submit asap. (Im still waiting its been 3 days)
This fastboot command will help you get info for the token page: fastboot oem get_unlock_code
There is a pc program called "ADB App control" that seems to be able to remove or disable almost anything. Im not rooted either but am very debloated now, signficant gains to free memory and free up about 3 gigs. Be careful if you use it, for example disabling Oneplus launcher (I use nova) stops bottom gestures from working... so definitely dont remove that!
PS: This adb shell command will remove Oneplus account log in from menu, if you want:
pm uninstall --user 0 com.oneplus.account
pm uninstall --user 0 com.oneplus.membership

TimmyP said:
Im kinda in the same boat. Mine must have had newer software because I had to disable a service to enable the oem unlocking option.
You will need an unlock token from here though: https://www.oneplus.com/us/unlock_token
that I know. I would submit asap. (Im still waiting its been 3 days)
This fastboot command will help you get info for the token page: fastboot oem get_unlock_code
There is a pc program called "ADB App control" that seems to be able to remove or disable almost anything. Im not rooted either but am very debloated now, signficant gains to free memory and free up about 3 gigs. Be careful if you use it, for example disabling Oneplus launcher (I use nova) stops bottom gestures from working... so definitely dont remove that!
PS: This adb shell command will remove Oneplus account log in from menu, if you want:
pm uninstall --user 0 com.oneplus.account
pm uninstall --user 0 com.oneplus.membership
Click to expand...
Click to collapse
Thanks for the response. Here's my current "about phone" , which allowed me to enable oem unlocking without doing anything extra other than ticking it on.

Related

[Q] How to enable usb tethering through adb and still have adb

I've been searching through the posts but I can't seem to find an answer.
I've found a post suggesting that the following should work: adb shell "echo 1 > /sys/class/usb_composite/rndis/enable"
When I try it, it says that the file/directory doesn't exist.
The post is also about a year old, so I didn't want to reopen an old thread.
Besides how to enable usb tethering through adb, I was wondering if it is possible to still use adb to connect to the phone while usb tethering is enabled. currently when I enable usb tethering through the phone, adb does not detect the phone anymore.
I saw a few posts saying that it is possible but their methods usually involve an app or buying an app. Is there a way to accomplish this without using an app?
Thanks for help
TKH1218 said:
I've been searching through the posts but I can't seem to find an answer.
I've found a post suggesting that the following should work: adb shell "echo 1 > /sys/class/usb_composite/rndis/enable"
When I try it, it says that the file/directory doesn't exist.
The post is also about a year old, so I didn't want to reopen an old thread.
Besides how to enable usb tethering through adb, I was wondering if it is possible to still use adb to connect to the phone while usb tethering is enabled. currently when I enable usb tethering through the phone, adb does not detect the phone anymore.
I saw a few posts saying that it is possible but their methods usually involve an app or buying an app. Is there a way to accomplish this without using an app?
Thanks for help
Click to expand...
Click to collapse
http://stackoverflow.com/questions/16631185/how-to-turn-wifi-on-using-adb-or-any-other-way-when-usb-debugging-is-disabled
do it through changing settings from adb

[Completed] [Q] XXX Video / Droid Porn Ransomware Removal via ADB

Hello,
So long story short my brothers an idiot and installed a "Flash Player" because he thought he needed it. Now he has the "Prism FBI Child Porn/Bestiality" ransomware installed. I can get into safe mode and I am unable to uninstall the app. It is listed as "XXXVideo Droid Porn." It does not exist in safe mode under "Device Administrators" so the uninstall button is locked in normal and safe mode. I have since rooted his phone and I can gain access via ADB, I figure removing the package via ADB is my only option at this point. Within the shell I can gain Superuser access and can navigate fairly well having just learned how to do all this in an hour. So far I am having no luck locating the package or where to go at this point to remove this for him. I have tried Avasts ransomware removal tool as well as some others but none of them are working. I can get into these apps and run them normally but after about 30 seconds the ransomware starts and cuts off any progress made, and none are available in safe mode. About the only thing I can find is when I connect through the ADB Shell and list the packages I recognize all but one. It is labeled "package:ysvv.dvvsg.bfydrij." I cannot find any information online regarding this package, I even hail mary-d and tried to uninstall the package but it failed. I have also searched through the root folders looking for some hint of where it could be. If there is a way to enable one of these in safemode to try and have them run it then i cant find it. Or if there is some shell command to list packages by install date, I can try to uninstall it that way.
So any help at this point would be appreciated. Sorry if this is the wrong area but after a few hours working on it I am at a loss.
Phone: Galaxy S3
Carrier: Tmobile
Model: SGH-T999
Android: 4.1.2
vyletrakun said:
Hello,
So long story short my brothers an idiot and installed a "Flash Player" because he thought he needed it. Now he has the "Prism FBI Child Porn/Bestiality" ransomware installed. I can get into safe mode and I am unable to uninstall the app. It is listed as "XXXVideo Droid Porn." It does not exist in safe mode under "Device Administrators" so the uninstall button is locked in normal and safe mode. I have since rooted his phone and I can gain access via ADB, I figure removing the package via ADB is my only option at this point. Within the shell I can gain Superuser access and can navigate fairly well having just learned how to do all this in an hour. So far I am having no luck locating the package or where to go at this point to remove this for him. I have tried Avasts ransomware removal tool as well as some others but none of them are working. I can get into these apps and run them normally but after about 30 seconds the ransomware starts and cuts off any progress made, and none are available in safe mode. About the only thing I can find is when I connect through the ADB Shell and list the packages I recognize all but one. It is labeled "package:ysvv.dvvsg.bfydrij." I cannot find any information online regarding this package, I even hail mary-d and tried to uninstall the package but it failed. I have also searched through the root folders looking for some hint of where it could be. If there is a way to enable one of these in safemode to try and have them run it then i cant find it. Or if there is some shell command to list packages by install date, I can try to uninstall it that way.
So any help at this point would be appreciated. Sorry if this is the wrong area but after a few hours working on it I am at a loss.
Phone: Galaxy S3
Carrier: Tmobile
Model: SGH-T999
Android: 4.1.2
Click to expand...
Click to collapse
Your best bet is gonna be to fully wipe the device. Then reload the rom.
[Solved!]
zelendel said:
Your best bet is gonna be to fully wipe the device. Then reload the rom.
Click to expand...
Click to collapse
Actually I was able to do it without wiping the phone.
I just navigated to /data/app and did the "rm" command on the suspicious package and it worked. The prism ransom ware became broken and I was able to boot up normally and delete the broken piece of the app.
-----
adb shell
su
pm list packages -3 [found the start of the ransom ware]
cd /system/app
ls [found the ransomeware .apk file here]
rm /system/app/ysvv.dvvsg.bfydrij-2.apk
------
Then it worked

Is there a way to turn this pop up notification crap?

everytime I get a message or notification wether its whatsapp or whatever, it pops up from above and im sick of this!
is there a way to simply disable this feature? please any one
I know exactly what your talking about - i hate it too. Lucky I found the solution. Do you know how to use ADB? install the easy ABD thing, got into developer mode, connect ur phone etc. Then just run this ADB command:
adb shell
settings put global heads_up_notifications_enabled 0
exit
Done! Fixed! Sorted!
Dean F said:
I know exactly what your talking about - i hate it too. Lucky I found the solution. Do you know how to use ADB? install the easy ABD thing, got into developer mode, connect ur phone etc. Then just run this ADB command:
adb shell
settings put global heads_up_notifications_enabled 0
exit
Done! Fixed! Sorted!
Click to expand...
Click to collapse
MY MAN! I owe you!

Debloat Chinese apps via ADB

Just noticed I can't get adb to work , it's unauthorised every time on my Chinese model.
I'm trying to uninstall hivoice and Huawei assistant and atleast download the international versions of these apps as they're all in Chinese despite everything else changed to English....
Anyway to debloat this thing?
pafc66 said:
Just noticed I can't get adb to work , it's unauthorised every time on my Chinese model.
I'm trying to uninstall hivoice and Huawei assistant and atleast download the international versions of these apps as they're all in Chinese despite everything else changed to English....
Anyway to debloat this thing?
Click to expand...
Click to collapse
Look into project menu I believe the default or manufacturer USB option or whatever it was might change that, I would also prefer the int version of those apps
o012 said:
Look into project menu I believe the default or manufacturer USB option or whatever it was might change that, I would also prefer the int version of those apps
Click to expand...
Click to collapse
Nope doesn't work. When adb message comes up it says "an app is preventing you from selecting an option"
It's blocked by china
pafc66 said:
Nope doesn't work. When adb message comes up it says "an app is preventing you from selecting an option"
It's blocked by china
Click to expand...
Click to collapse
Damn maybe someone smarter will figure it out
Have you enabled Developer menu, and there ADB debugging in charge only mode and USB debugging
zgfg said:
Have you enabled Developer menu, and there ADB debugging in charge only mode and USB debugging
Click to expand...
Click to collapse
Yeah did that, no luck
I have the Chinese version and have used adb without much problem....well, I usually do have some kind of problem with adb. In this case, I find that I need to use the cable that came with the phone, and I seem to need to enable 'enable usb when in charge-only mode'...well, I'm not sure, tbh, but that's what I do. I also seem to have to plug the usb cable, rebooting, and running adb in a specific order...and have the adb daemon started already...or something. Anyway, I have used it successfully, so perhaps it takes some persistence.
I've only used it for 'pull', 'push' and 'shell'...essentially getting my music collection on there quickly...and it is very quick, IMO...about 480Mbps, I think.

P40 Pro Demo .. remove apps via ADB.. No Mobile data ??

So i Got my hands on a P40 pro demo
normally i play around with Samsung
so Huawei is a new world for flashing
Couple of youtube videos late i used these adb commands to remove demo apps
adb shell cmd package uninstall -k --user 0 com.huawei.retaildemo
adb shell cmd package uninstall -k --user 0 com.huawei.experience.els.oversea
adb shell locksettings set-pin 8888
last one to so you can use fingerprint and face id. 8888 is password if none was on before
Used an app call Screen Timeout_v1.4.3 to stop the screen from dimming after 15 sec ( wont change in setting)
calls working fine
and I am able to goto settings - mobile network- mobile data- and turn on data ( but no data) APN IS CORRECT
slide down from top and icon ( mobile data) is greyed out .. touch it and i go back to home screen and stays greyed out
If i turn on Hotspot all devices can connect to hotspot and gain Internet access but no transfer bar of data above
all apps on device have no data at all
If anyone has a route they think could help
Please post
Thanks in advance
Any updates on how to remove retail demo on p40 pro?
have you managed to activate mobile data?
Thanks
I have the same problem. Can anyone solve mobile data?
Is there any improvement in this matter?
Is it not a setting in developer settings?
Cannot be enabled in developer settings
datto666 said:
So i Got my hands on a P40 pro demo
normally i play around with Samsung
so Huawei is a new world for flashing
Couple of youtube videos late i used these adb commands to remove demo apps
adb shell cmd package uninstall -k --user 0 com.huawei.retaildemo
adb shell cmd package uninstall -k --user 0 com.huawei.experience.els.oversea
adb shell locksettings set-pin 8888
last one to so you can use fingerprint and face id. 8888 is password if none was on before
Used an app call Screen Timeout_v1.4.3 to stop the screen from dimming after 15 sec ( wont change in setting)
calls working fine
and I am able to goto settings - mobile network- mobile data- and turn on data ( but no data) APN IS CORRECT
slide down from top and icon ( mobile data) is greyed out .. touch it and i go back to home screen and stays greyed out
If i turn on Hotspot all devices can connect to hotspot and gain Internet access but no transfer bar of data above
all apps on device have no data at all
If anyone has a route they think could help
Please post
Thanks in advance
Click to expand...
Click to collapse
hi, I manage to do it uninstalling packages:
- com.huawei.secretregionalphone
- com.huawei.skytone
- com.huawei.hiskytone
I litterally tried to uninstall everything one package by one and finally this is the way!
I'm using mobile data on a p40 pro+ for days now
(edit, uninstall everything it's in special_cust or cust folder, read below, worked on every huawei I tried except a p40 pro)
Ciao , come posso farlo
filippo94it said:
hi, I manage to do it uninstalling packages:
- com.huawei.secretregionalphone
- com.huawei.skytone
- com.huawei.hiskytone
I litterally tried to uninstall everything one package by one and finally this is the way!
I'm using mobile data on a p40 pro for days now
Click to expand...
Click to collapse
hello, I also have the same problem .... I managed to eliminate the demo mode and restore the lock screen and fingerprint, the only big problem is mobile data! I removed the packages you indicated but nothing has changed… do you have any other suggestions to solve this problem? thanks a lot
vale220990 said:
hello, I also have the same problem .... I managed to eliminate the demo mode and restore the lock screen and fingerprint, the only big problem is mobile data! I removed the packages you indicated but nothing has changed… do you have any other suggestions to solve this problem? thanks a lot
Click to expand...
Click to collapse
Hi @vale220990, for my p40 pro + worked perfectly fine, do you have other packages in the folder /special_cust or /cust ?
I find out that all I removed was in there
I also tried on a p40 pro (no plus) without success up to now; instead works on the p40 lite and on the p30's
filippo94it said:
Hi @vale220990, for my p40 pro + worked perfectly fine, do you have other packages in the folder /special_cust or /cust ?
I find out that all I removed was in there
I also tried on a p40 pro (no plus) without success up to now; instead works on the p40 lite and on the p30's
Click to expand...
Click to collapse
first of all thanks for your kind reply. we hope it can also go on the 40pro (no plus) and among other things I should also try it on a 40lite later. I just wanted to ask you how do I find the packages you indicated to me? com what program could I find them? thank you so much
vale220990 said:
first of all thanks for your kind reply. we hope it can also go on the 40pro (no plus) and among other things I should also try it on a 40lite later. I just wanted to ask you how do I find the packages you indicated to me? com what program could I find them? thank you so much
Click to expand...
Click to collapse
you're welcome.
Once your adb is connected, assuming you're in W10 and already has the adb tools, you can use the following command to print on the terminal all the packages installed on your phone:
Code:
adb shell "pm list packages -f"
You can then press ctrl+F to find for any package located in cust or special_cust folder.
filippo94it said:
you're welcome.
Once your adb is connected, assuming you're in W10 and already has the adb tools, you can use the following command to print on the terminal all the packages installed on your phone:
Code:
adb shell "pm list packages -f"
You can then press ctrl+F to find for any package located in cust or special_cust folder.
Click to expand...
Click to collapse
ok perfect you were very clear! i try to see what i find inside cust or special_cust and remove all packages. I hope I don't have to bother you again. thanks for the support
filippo94it said:
you're welcome.
Once your adb is connected, assuming you're in W10 and already has the adb tools, you can use the following command to print on the terminal all the packages installed on your phone:
Code:
adb shell "pm list packages -f"
You can then press ctrl+F to find for any package located in cust or special_cust folder.
Click to expand...
Click to collapse
hello filippo94it, thanks to your instructions, I was able to find 4 packages (I am attaching the photo) within cust and special_cust and I uninstalled them all. unfortunately the situation on mobile data has not changed…. I am attaching the photos of what is shown to me by the p40pro, were you also in this situation? Can you think of something else I could do or some other package to remove?
Thank you very much
vale220990 said:
hello filippo94it, thanks to your instructions, I was able to find 4 packages (I am attaching the photo) within cust and special_cust and I uninstalled them all. unfortunately the situation on mobile data has not changed…. I am attaching the photos of what is shown to me by the p40pro, were you also in this situation? Can you think of something else I could do or some other package to remove?
Thank you very much
Click to expand...
Click to collapse
Up to now I am not able to unlock the mobile data on a p40 pro that I am trying unfrtunately, I am at the same point. I am trying to uninstall everything one package by one, once again, but still didn't got the rigth answer.
It worked out perfectly on the other models that I tried.
But I will try something else soon and let you know if I find something!

Categories

Resources