temp root through adb? - Nexus 5 Q&A, Help & Troubleshooting

Hi guys,
is it possible to gain a temp root through adb?
after upgrading from Android 4 to 6, there are some applications that has been removed.
For example, Microsoft Account application which provide you the 2-step authentication for your accounts.
I can't install it anymore, i keep getting error code: -505
which is probably related to some data already present on the device which it cannot erase.
right now, that there's permission management for application, i don't see any real reason to be rooted.
therefore, my question is if i can remove this specific application data from the data partition without being rooted?
Thanks

I've read since day one of my Android experience that when you upgrade a full version (as opposed to small incrementals) such as Kitkat to Lollipop, or Lollipop to Marshmallow, you should back up, do a full wipe, and reinstall all your apps from scratch. You have upgraded two full versions, so it's not surprising that you're having problems. Rather than messing around with temporary root and deleting from partitions you should be doing it right as I've stated above.

Thanks dahawthrone,
This might work indeed but will take too much time to accomplish.
not really worth it.

Really? You prefer to put up with a broken phone? This is just one symptom of corruption. Who knows how many others there may be? And particularly with something as important as 2-factor authentication...

root ur phone do wht ever u need to do then unroot through super user
and yes u can delete data from data partition using es explorer and after everything is done unroot ur device through super user!

not broken.. just having a difficulties with his specific app

I just solved it.
root was not needed, although, usb debugging mode was mandatory.
through adb:
1. adb uninstall com.microsoft.msa.authenticator
2. adb install com.microsoft.msa.authenticator-2.apk
and we're done, works like a charm!
thanks for all the advice's.

Related

[Q] root & webtop2sd technical question

Hi,
I am new to the Atrix, but have a background in software development and was a sys admin on unix for a number of years.
I would like to know if, after a phone is rooted, do all apps run as root? or does routing simple install a setuid "su", and root apps call that when they need root access?
The webtop2sd post looks very complete and also something I will try soon. Do I need to unlock the bootloader to run a modified webtop from my sd card?
I would like to keep my phone as stock as possible, but enable a hacked webtop on the sd card.
Also there are 1000's of root threads, what is the safest canonical method (that can easily be undone)?
Many thanks and sorry for asking for your time. I have not found these answers around, but then again, there is a great amount of mis-information out there.
thx,
Scott.
Don't take this as "authoritative" but I don't believe they do, for 2 reasons.
1) If all the apps were running as root, we wouldn't run into permissions problems and have to run "Fix Permissions" to fix the resulting FC's. But we do.
2) If all the apps were running as root, none of them would need "su" to gain superuser permission but I still get that for certain root apps (Samba, Titanium Back, Rom Manager, etc, etc, etc).

[Q] How do I gain root without wiping my data on stock 4.1.2

Yesterday I spend the whole day trying to gain root on my Nexus S while preserving my precious data on the phone.
Ho do I gain root without wiping my data?
Is there currently a way at all?
All I need is to be pointed into the right direction.
I'd be really thankful for helpful responses.
Thanks for reading
I have:
a functional ADB connection
a locked Bootloader
a stock Recovery
a Desktop Backup Password set which is unknown to me
I tried gaining root with:
SRS One Click Root for Android
Root_with_Restore_by_Bin4ry_v26
I ruled out:
Unlocking the Bootloader
doing a Factory reset
creating a backup via desktop backup since I have set an unknown password
Samsung Nexus S (GT-I9023) :: herring 4.1.2/JZ054K :: Radio I9020XXKI1 :: Bootloader I9020XXLC2
An unknown password on ur phone?
What data u talking about?
Copy it all to ur computer before rooting then copy it back. Backup ur SMS with "SMS backup +" then restore it.
Vs Nexus S4G using tapatalk2
You can't.
OK, so I was writing this big reply telling how I don't think that rooting makes you lose you data and all. Then I googled it for a bit (as it's been a long time since I rooted mine, I could be wrong) and found out I was indeed wrong
Thing is, when you unlock your bootloader, as a safety precaution, your data partition is erased. As far as I can tell, there's nothing you can do about that.
OK, so you don't want to unlock the bootloader, you want to simply gain root access, right? So, it should be doable. I don't believe that just flashing a recovery will erase your data partition (i think).
There's this guide I found that should help you. Just remember to read the whole thing through before following it
completeandroid.wordpress.com/2011/01/31/complete-guide-to-rooting-the-nexus-s
Now, about that desktop backup password. Initially, I don't think that should be a problem. After you have root access you can use something like Titanium Backup to backup all your data and then unlocking the bootloader (if you want to do that). I don't have my desktop backup password set, so I'm not sure this would work.
Hope I have helped.
Cheers!
The simple answer is that you cant... i tried a lot, but failed
If you want all your precious data restored in its original position, get Titanium Backup and backup everything... Restore it after getting rooted...
Sent from my Nexus S using xda premium
Partially resolved
Thanks for all your replies.
Luckily I was able to brute force guess the forgotten Desktop Backup Password. So for me the topic is resolved since I now was able to make a full Desktop Backup. Unlock the Bootloader and restore the backup.
I did set the password at a time where I got ICS and wanted to give it a try just to realize that the full backup is more designed for development purposes then for the end user. At that point I just abort that mini project and forgot about it. That's how I forgot the testing password I initially set when I got ICS.
For me this issue is resolved for someone else having the same issue probably not.
So at the time writing I don't know of any root exploit in existence that works for a stock build 4.1.2/JZ054K
--
hehe @gmantovani I also stumbled about that blog post, followed it's instructions just to realize that it didn't apply for my case.
You can use Go Backup to backup everything you don't want to lose, that is in the SD Card. But it's usually SMS and Call-logs so I'd personally use SMS-Backup/Restore and CallLogs-Backup/Restore apps to do it. Contacts will be synced with your Gmail account and photos will be stored in your SD card.

[Completed] how to clean malware from kingo rooted android 4.1.1 huawei y300-100 phone

hi. really i just want my phone to be sure to clear from any malware, but this could also be a request of how to flash a new OS if this is needed. the phone runs as slowly as it ever did so i can't see any major difference in that. one thing is that a data usage app shows no increase in data since the possible infection, even though i know i am using the mobile data. and this seems strange as though something could be blocking this to hide its own communications.
i rooted my UK android phone with kingoroot a while back to gain SU access to allow me to store apps on the external SD card. that was ages ago and i don't access to the same windows PC. (i have a linux'd laptop)
foolishly i clicked on a whatsapp message with a 'free voucher offer' link, even though i though this was too good to be true and i knew i shouldn't click on this kind of nonsense.... i have since installed norton antivirus and it says the phone is fine, though i am still dubious that the app can check for any malware that may have entered into the lower levels of the system given kingoroot has messed with the access controls. for now i have removed any apps that have my bank details
i have read that in these circumstances even factory reset may guarantee clearing anything. is this correct? so am i right that the only way to be sure the phone is clean is to re-install a new boot loader and OS?
if so, this is a little beyond me and i find conflicting instructions as to what to do, or where to download the correct files. i find more links to installing non- standard android 4.3 or 4.4, with reports that these maybe aren't stable. if they are OK i'd happy with these, but 4.1.1 does most of what i want (apart from the lack of internal memory and not being able to store apps on the external SD)
would doing a firmware update to a newer version B209 do the same? (mine is currently B197) i can find a link from a place i trust from github, and if this helps the phone run better then i would be up for doing that anyway but again would not know how to.
do i have to undo the Kingoroot before i start any of this? is the CNET download link for kingoroot safe to use as the kingoapp.com website doesn't work for me anymore.
massive thanks in advance for any thoughts on this
flyaway76 said:
hi. really i just want my phone to be sure to clear from any malware, but this could also be a request of how to flash a new OS if this is needed. the phone runs as slowly as it ever did so i can't see any major difference in that. one thing is that a data usage app shows no increase in data since the possible infection, even though i know i am using the mobile data. and this seems strange as though something could be blocking this to hide its own communications.
i rooted my UK android phone with kingoroot a while back to gain SU access to allow me to store apps on the external SD card. that was ages ago and i don't access to the same windows PC. (i have a linux'd laptop)
foolishly i clicked on a whatsapp message with a 'free voucher offer' link, even though i though this was too good to be true and i knew i shouldn't click on this kind of nonsense.... i have since installed norton antivirus and it says the phone is fine, though i am still dubious that the app can check for any malware that may have entered into the lower levels of the system given kingoroot has messed with the access controls. for now i have removed any apps that have my bank details
i have read that in these circumstances even factory reset may guarantee clearing anything. is this correct? so am i right that the only way to be sure the phone is clean is to re-install a new boot loader and OS?
if so, this is a little beyond me and i find conflicting instructions as to what to do, or where to download the correct files. i find more links to installing non- standard android 4.3 or 4.4, with reports that these maybe aren't stable. if they are OK i'd happy with these, but 4.1.1 does most of what i want (apart from the lack of internal memory and not being able to store apps on the external SD)
would doing a firmware update to a newer version B209 do the same? (mine is currently B197) i can find a link from a place i trust from github, and if this helps the phone run better then i would be up for doing that anyway but again would not know how to.
do i have to undo the Kingoroot before i start any of this? is the CNET download link for kingoroot safe to use as the kingoapp.com website doesn't work for me anymore.
massive thanks in advance for any thoughts on this
Click to expand...
Click to collapse
Greetings and welcome to xda. Factory resetting or reflashing stock firmware should wipe any offending program so you will be ok there. If you ask your question here
http://forum.xda-developers.com/android/help
hopefully the experts there can help you with kingroot
Good Luck
Sawdoctor

[Resolved] How to properly root with magisk

Hi. My phone is: NXT-L29 ( Huawei Mate 8, Europe, unlocked bootl., Marshmallow, EMUI 4.0 ). I installed official TWRP for this device via fastboot, tried all 8 versions available but black screen is all I achieved (probably because they are all for EMUI 4.1). Used SRKtools and TWRP asked me for password to decrypt data, which I don't know. Can I flash magisk with fastboot over encrypted data? Won't that brick the phone? Or should I update to EMUI 4.1? Or what else do you suggest? Also, should I somehow disable dm-verity and RMM or should I just format data partition? Will it get reencrypted on next boot? Any help appreciated.
EDIT: One more question: is firmware update possible with unlocked bootloader or must I relock it first?
Every time I rooted a phone you erase and format data partition first. Nothing encrypted or otherwise should be on the phone iirc... Then flash custom recovery, then rom, then modem / whatever else. Then sideload root script or whatever method to root. Nowadays since there are so many payment methods and ways to get ripped off on phones, I use LineageOS which has a radio button in settings the switches root over adb on or off. Serves my pruposes and avoids the danger of having open bootloader and root 24/7 and brainlessly easy. Don't know if LineageOS supports Mate 8 but it should, it's a popular phone here in USA. Good luck!
PS. If it's not too personal, what are you wanting to achieve once you get root access? All I use it for is to run powermanager over adb and remove bloatware and change hosts files to block malware hosts and social media (internet cancer). I only need to gain root once to do this so no need to run it all the time, too risky to me imo.
SublimeFoxTheater said:
Every time I rooted a phone you erase and format data partition first. Nothing encrypted or otherwise should be on the phone iirc... Then flash custom recovery, then rom, then modem / whatever else. Then sideload root script or whatever method to root. Nowadays since there are so many payment methods and ways to get ripped off on phones, I use LineageOS which has a radio button in settings the switches root over adb on or off. Serves my pruposes and avoids the danger of having open bootloader and root 24/7 and brainlessly easy. Don't know if LineageOS supports Mate 8 but it should, it's a popular phone here in USA. Good luck!
PS. If it's not too personal, what are you wanting to achieve once you get root access? All I use it for is to run powermanager over adb and remove bloatware and change hosts files to block malware hosts and social media (internet cancer). I only need to gain root once to do this so no need to run it all the time, too risky to me imo.
Click to expand...
Click to collapse
Hello and thanks for your reply. I'll try that tomorrow if time allows me. I need root mainly to get rid of ads! There are so many brilliant apps ruined by ads and AdAway is the solution. Bloatware removal also is a good enough reason. Previously I rooted Galaxy Note 3 and it was a breeze, no problem at all, so I hadn't realised how things changed for worse. I found LineageOS but beta version so I think I'll stay with the current system which works absolutely fine for me.
Ok let us know what you did and if it works. I have never heard of AdAway I just add offending urls to hosts file. To do this you need to have root and mount system and edit the hosts file, then reboot even back to rootless and it still works. If you need to block and unblock fast then I could see an app being needed but if you know what you want to get rid of you only need root and to edit human readable hosts once and you're done.
SublimeFoxTheater said:
Ok let us know what you did and if it works. I have never heard of AdAway I just add offending urls to hosts file. To do this you need to have root and mount system and edit the hosts file, then reboot even back to rootless and it still works. If you need to block and unblock fast then I could see an app being needed but if you know what you want to get rid of you only need root and to edit human readable hosts once and you're done.
Click to expand...
Click to collapse
On reflection, I think I won't rush into things. I must read more on dm-verity and other protection mechanisms so at least I have a foggy idea what I'm doing and what can go wrong. AdAway is a great ad blocker working with websites and apps and the idea of doing all this manually seems rather tedious. As for safety, I only ever use one pre-paid card without overdraft and loaded with tiny amounts at a time that's connected to my google account, so if it gets compromised that won't be the end of the world - not that it ever happened.
most fraud comes from social engineering, catfish, etc.
I used supersu back in the day even worked stock rom, as long as bootloader and flashing are unlocked.
The Dev zipped the binary and a script to copy it wherever it goes and make it only accessible to you (after lock screen)
Then install supersu apk and you'll be asked to give root when an app wants it
I used this to use a game editor to give myself more in game currency haha.
I beat people in the game and they did in app purchase to devs in China, received nothing, so I had no problem exploring this flaw and handing out Justice to those in deep nerd rage haha.
In app items, come on bro that ain't what money's for.
I'm immune to social engineering, mate I still have supersu on my Galaxy Note 3 with SlimRom, but I notice it's no longer maintained, so that's how I found out about Magisk which is opensource into the bargain and attemps to hide root so maybe my banking app will work for a change.
I used this to use a game editor to give myself more in game currency haha.
Click to expand...
Click to collapse
Did you use custom editor to hack into the game? Cause I assume the devs weren't so accommodating to provide one for your convenience.
Ok, it works. Got tired of inaction and just did it and no catastrophic scenario materialized. Job done!

I've deleted some important files by mistake and I would really like to recover them.

Hello,
I hope that this is the right side of the forum to describe my problem. I desperately need help. It's a long story:
I had on my Samsung phone the app of "Chrome", which I always use to surf the internet. Using the google browser IN THAT APP, I have downloaded lots of things (I'm a scholar, so I like to read and I use to download everything that I found interesting). I have updated the app and I was frustrated, because I couldn't take anymore screenshots while surfing in "incognito mode". So, I decided to delete the update: i went into "settings", then "apps", and then I have brought back the app of "Chrome" as it was when i bought my phone. Sadly, I then noticed that I had lost every file in my download folder; I had lost every file downloaded with that app.
I had not synchronized my Google account, I can do no backup. I'm so angry and sad because I've always thought that the files downloaded would have stayed in my phone until I and only I would have decide to delete them.
I have done a lot of research on the internet and I have found out that there are some apps that can recover a very large part of lost files. But, in order to do this, I have to root my phone.
My phone is a Samsung Galaxy J2 SM-J250Y/DS, and the Android version is 7.1.1. I have seen that rooting a phone could be very dangerous; also, to me is very complicated. But there is a program called Kingoroot, which, once installed on my computer, could (it's a possibility, I know!) rooting my phone easily.
What should I do? Should I try the rooting method? It seems to me the only way...
I ask you any suggestions... Please help me. I am a depressed student that, in this life, can only enjoy reading and books...
(I am Italian, and I hope my English is understandable. If I did any mistake, please forgive me.)
Sorry can't help you get what you lost back... I feel your pain.
After losing thousands of bookmarks over the decades I started using Colornotes to save my important bookmarks.
You can save the hyperlink with a title, color, and whatever text you want to add. If you punch the hyperlink it opens in the default browser.
The app allows you to save it's data to your sd card which you can backup on your PC.
Use ApkExport to make a loadable copy of the app to future proof it.
ColorNote Notepad Notes - Apps on Google Play
ColorNote® - Easy to use notepad for notes, shopping list, to-do list, calendar
play.google.com
Thank you very much for your reply.
But... If I root my phone, and if the rooting is done without any damage, is there a possibility to get most of my files back? Or, even if I root my device, I will never be able to recover them?
It sounds like it deleted the data when you rolled the apk back (to factory load?).
If so it's going to be very sketchy at best to recover them.
I guess history's been deleted as well?
There are many coders here that have far greater knowledge than myself with Chrome.
My understanding of rooting is very basic as with Chrome which I rarely use.
If no one else replies in a day or two, bump it back to the top. Hope you find a work around solution.
AlexiusFrigerius said:
But... If I root my phone, and if the rooting is done without any damage, is there a possibility to get most of my files back? Or, even if I root my device, I will never be able to recover them?
Click to expand...
Click to collapse
Rooting Android by means of TWRP and/or Magisk ( keyword: SuperSU ) affects its /data partition where phone's data typically are housed. Therefore it cannot be excluded that data stored there is overwritten and can therefore no longer be restored.
jwoegerbauer said:
Rooting Android by means of TWRP and/or Magisk ( keyword: SuperSU ) affects its /data partition where phone's data typically are housed. Therefore it cannot be excluded that data stored there is overwritten and can therefore no longer be restored.
Click to expand...
Click to collapse
Is there the possibility if deleted that it's still on the system cache and is there a way to recover it if so on a none rooted phone?
Maybe using ABD?
Don't some on the "one touch" root solutions claim to preserve the data?
Android doesn't have a recycle bin thus nothing gets cached. Deleting a file means nothing else than marking the space it occupies - whereever this disk space is located - as usable so that it can be overwritten by the system.
Have never used a "One-Click-Root" utility ...
blackhawk said:
It sounds like it deleted the data when you rolled the apk back (to factory load?).
If so it's going to be very sketchy at best to recover them.
I guess history's been deleted as well?
There are many coders here that have far greater knowledge than myself with Chrome.
My understanding of rooting is very basic as with Chrome which I rarely use.
If no one else replies in a day or two, bump it back to the top. Hope you find a work around solution.
Click to expand...
Click to collapse
Yes, it's just like I told. And yes, even history has been deleted.
Thank you for your help! I will wait until someone may give me a solution, or a possibility for a solution.
jwoegerbauer said:
Rooting Android by means of TWRP and/or Magisk ( keyword: SuperSU ) affects its /data partition where phone's data typically are housed. Therefore it cannot be excluded that data stored there is overwritten and can therefore no longer be restored.
Click to expand...
Click to collapse
Ok, I understand...
jwoegerbauer said:
Android doesn't have a recycle bin thus nothing gets cached. Deleting a file means nothing else than marking the space it occupies - whereever this disk space is located - as usable so that it can be overwritten by the system.
Have never used a "One-Click-Root" utility ...
Click to expand...
Click to collapse
Thank you for your explanation.
jwoegerbauer said:
Android doesn't have a recycle bin thus nothing gets cached. Deleting a file means nothing else than marking the space it occupies - whereever this disk space is located - as usable so that it can be overwritten by the system.
Have never used a "One-Click-Root" utility ...
Click to expand...
Click to collapse
Yeah I was aware of the overwrite issue but on an unrooted device I don't think you can access the system cache. Even if you could the data could be so juxtaposed from lose of file structure as to be unusable.
One-Click-Root worked on older versions of Kitkat allegedly.
So... I understand. But I want to try. I want to root my phone. But I have to know how and I must prevent my phone from all the risks.
blackhawk: you said that the "One-Click-Root" method worked only for Kitkat Android. But I have read here that with Kingoroot i could have a chance:
How to Root Android Nougat (7.0/7.1) | KingoRoot Apk
Root any Android Nougat 7.0 7.1 device with KingoRoot.
www.kingoapp.com
(It's important: I AM NOT SPAMMING Kingoroot, I just want to understand If I can trust what it's written in their site. Also, in the link, at the end of the page, there is written that I can root my phone with my PC, which, to me, seems a safer way. It's the main idea I had when I decided to write in this forum, because I wanted to know the opinions of people that are very able to use these methods and these kind of programs.)
AlexiusFrigerius said:
So... I understand. But I want to try. I want to root my phone. But I have to know how and I must prevent my phone from all the risks.
blackhawk: you said that the "One-Click-Root" method worked only for Kitkat Android. But I have read here that with Kingoroot i could have a chance:
How to Root Android Nougat (7.0/7.1) | KingoRoot Apk
Root any Android Nougat 7.0 7.1 device with KingoRoot.
www.kingoapp.com
(It's important: I AM NOT SPAMMING Kingoroot, I just want to understand If I can trust what it's written in their site. Also, in the link, at the end of the page, there is written that I can root my phone with my PC, which, to me, seems a safer way. It's the main idea I had when I decided to write in this forum, because I wanted to know the opinions of people that are very able to use these methods and these kind of programs.)
Click to expand...
Click to collapse
You can try it; it will either work or nothing will happen. Even if it works it's likely those files are gone. Maybe better to chalk it up to another lesson from the University of Hard Knocks.
You could try contacting Google tech support to see if they have any ideas.
The last AT&T firmware update was specifically to block easy rooting by Kingroot; the rats learn quick.
blackhawk said:
You can try it; it will either work or nothing will happen. Even if it works it's likely those files are gone. Maybe better to chalk it up to another lesson from the University of Hard Knocks.
You could try contacting Google tech support to see if they have any ideas.
The last AT&T firmware update was specifically to block easy rooting by Kingroot; the rats learn quick.
Click to expand...
Click to collapse
Thank you very much for your help. I understand: I must give up. But the most important thing is to learn something about anything we do. Anything could help for future situations.
"It's a shame to stumble twice on the same stone" (Polybius, 31,11, 5).
Thank you again. Goodbye!
AlexiusFrigerius said:
Hello,
I hope that this is the right side of the forum to describe my problem. I desperately need help. It's a long story:
I had on my Samsung phone the app of "Chrome", which I always use to surf the internet. Using the google browser IN THAT APP, I have downloaded lots of things (I'm a scholar, so I like to read and I use to download everything that I found interesting). I have updated the app and I was frustrated, because I couldn't take anymore screenshots while surfing in "incognito mode". So, I decided to delete the update: i went into "settings", then "apps", and then I have brought back the app of "Chrome" as it was when i bought my phone. Sadly, I then noticed that I had lost every file in my download folder; I had lost every file downloaded with that app.
I had not synchronized my Google account, I can do no backup. I'm so angry and sad because I've always thought that the files downloaded would have stayed in my phone until I and only I would have decide to delete them.
I have done a lot of research on the internet and I have found out that there are some apps that can recover a very large part of lost files. But, in order to do this, I have to root my phone.
My phone is a Samsung Galaxy J2 SM-J250Y/DS, and the Android version is 7.1.1. I have seen that rooting a phone could be very dangerous; also, to me is very complicated. But there is a program called Kingoroot, which, once installed on my computer, could (it's a possibility, I know!) rooting my phone easily.
What should I do? Should I try the rooting method? It seems to me the only way...
I ask you any suggestions... Please help me. I am a depressed student that, in this life, can only enjoy reading and books...
(I am Italian, and I hope my English is understandable. If I did any mistake, please forgive me.)
Click to expand...
Click to collapse
Hi, I would suggest you can try free tool for Android Phone such as Stellar Data Recovery for Android which easily recover deleted files like, photos, audio files, videos files from your Android phone internal memory storage.
Source: https://www.stellarinfo.com/media-tools/android-data-recovery.php
{Mod edit: Quoted post has been deleted}
That drfone again. Scamware.
Do Not Use.
Drfone if used will encrypt "recovered" data and ask you to pay for it. After which the original data is gone leaving only the encrypted copy.
It is not free... not to be trusted!
Ran into this scam many years ago.

Categories

Resources