[Q] Accessing data from application database - Android Software/Hacking General [Developers Only]

Hi!
We have released an application on the Market, and then made the worst rookie mistake possible: we don't have the passwords for the keystore or alias.
Now we have a HTC Hero that's been getting some weird GPS data, and to find out what went wrong we need to examine the app's sqlite database on the phone. We have an exporting function in our app, but it doesn't give us all the data we need. We've been trying to update our app in the phone via ADB with a new function that will give us what we want, but since the application is downloaded from Market and we don't have the passwords for they keystore it won't allow us to make any updates without first uninstalling it.
After that we've been looking into various ways of rooting the phone and obtaining the data that way, but no success so far. The easiest solution seemed to be InstantRoot, but that refused to work on our phone (it just said that the activity wasn't found and never started).
What possibilities can we explore a little further? Is it possible to retrieve the data at all? We've been looking into other ways of rooting it, but most of them seem to involve installing a custom ROM which in most cases requires Android 2.1. Does upgrading to Android 2.1 wipe our application data? Is there easy way of rooting it without needing to upgrade to 2.1? If possible we would like it to stay at 1.5.
Thanks,
kilboy

I managed to solve this myself after a while. I would post how I did but the forum doesn't let me post the link...
Thanks.

Related

[Q] Factory Data Reset after Root

Hello everyone. Please let me pre-apologize if I'm posting this in the wrong forum. I have spent much, much time reading similar posts on this question, and I am a newbie, but very quickly learning.
I'm only asking this just to be absolutely safe before I do it. -I am very New to android phones and have managed to Root my phone 1st try and have no issues, everything is fine, and I love the phone and this site.
=-QUESTION-=
I want to do a Factory Data Reset (settings/privacy/Factory Data Reset), and the phone is rooted (used KMS One click Root)
1.Is it safe to do this.
2.Should I do anything before I attempt it.
3.Should I expect the phone to be back to it's "factory" state afterwards.
xtra info:
I base my questions off of what I have already read/learned, I have a bunch of programs I installed for testing purposes (1st time android user & all free versions), now that I know what I want installed, I want the phone to start Fresh (I just like the way it runs after a factory reset) and after that, I am going to buy$ all the programs, which are mostly utility programs from the android market.
I already bought App2SD Pro, and want to buy many, many more. I have installed on my pc Eclipse and the full Android-sdk-Tools. Although I am not a Programmer, my intentions is to become one, if I can learn it all .....lol
There are no Mods or anything like that installed and nothing was removed by me. (system apps, etc.)
Bottom Line: - As a "Newbie", as You call it, I don't yet know enough to remedy any serious problem if one was to happen after doing this, the "factory reset after rooted already", So I want to be sure before I attempt anything. So I came here to ask the opinion of the experts, you.
...and on a last and somewhat unrelated issue, after rooting the phone using the KMS thing, I don't even know what it installed or what it did'nt at the time of rooting, and I state this out of confusion due to part of the Readme file stating afterwards on your phone goto the android market and download busybox - but it seems it was installed by the rooter (as far as I could tell) and Superuser.apk as well, since it was there after rooting. -But I know nothing of what these apps do, still trying to understand them.
...So this is where I'm at educationally with my phone, and ALL Respect to all of you.
Thanks for Reading.
My PHONE:
Samsung Galaxy Prevail
Model# SPH-M820-BST
Android Version 2.2.2
Build# FROYO.EE14
Kernel version: 2.6.32.9
Hardware version: M820.07
current added software:
ATK, App2SDPro, Astro, CacheMate for Root, DroidWall, ES File Explorer, LCDDensity, OperaMini, PdaNet, QuickBoot, RomManager, RootCheck, SD-Booster, SpareParts+, SuperManager, SuperUser, Titanium Backup.
(These are the utility programs I mentioned above), I currently only purchased the full version of App2SDPro, and want to purchase/reinstall all the rest at their paid full versions, but only after the factory reset is completed.
Also, after the phone was rooted, I tried to uninstall Superuser (I was trying to update it at the time) and from what I remember, it would not un-install, and still won't. (possibly some need to know xtra info for you)
I use XP-Pro/sp3, tweaked by me, and I am pretty familiar with it, but Linux is new to me, and I am just getting started on learning/using that in Oracle VM VirtualBox for educational reasons for now.
-THANKYOU, Again.-
I'm guessing this question is not interesting enough for an answer.
A factory reset should reset your phone to how it was when you got it. You will lose your apps, but any purchased apps will be remembered so you don't have to worry about that. Superuser is essential on a rooted device to grant apps SU permissions, so don't try to remove it.
k_nivesout thankyou. I have been sitting idle waiting to find out what to do, now at least I understand what Superuser is for and how important it is. -I understand what a Factory-Reset will do, as I have done it a few times already messin' around with it since I bought the phone 2 months ago., ..but.,...
You Stated:
You will lose your apps, but any purchased apps will be remembered so you don't have to worry about that.
Click to expand...
Click to collapse
You mean I will lose the apps I installed myself, not the system pre-installed stuff (i think you guys call it bloatware) CORRECT?
AND
How will the system remember that I bought an App such as the one I did buy, App 2 SD Pro, I ask because I want to know if it's stored on the phone somewhere (meaning it's not a total reset/wipeout --my thinking is still in windows mode) or on the 16GB memory card I have in there, because I was planning on wiping that to start fresh as well, or does the market read/remember my phone id/login email, etc. when I connect and try to redownload/re-install it. ?
-In fact I would like to know that anyway for future reference before I start laying money down on lots of apps I want.
Hope you understand what I'm asking here.
ThanKyou.
Yes, you'll lose the market apps with the factory reset, but your paid apps are tied to your Google account. So whenever you set up the phone again with that account, it will associate those apps, even on a new phone.
I can't remember if its just on gingerbread roms, but the last few times I've done a factory reset, Google has remembered my free apps too, and started redownloading them automatically from the market.
I'm no expert. but here's what I have experience.
If you'll do a factory reset. All will be gone, your settings, apps etc but you the phone will retain its root.
Cool.
I got what I needed to know. Just wanted to go with the experience of others before I do anything involving systemwide things, don't want to wind up with a dead phone that will take weeks of trial and error to fix, especially as I'm new to the whole android thing/programming/linux, and also 'cause boost's customer service is chock full of lazy "I hate my job and don't want to be here" type tech support.
This is all I can afford at the moment and it is fine, and I'm glad I'm able to make it better and mess around and learn from using it. And this site too of course.
Thanks guys

[Q] Rooting Xperia T Build 9.2.A.1.205 - Help please!!!

Hello
I am new to this forum and though I build PC's and write some code (albeit in VBA / SQL), I have no past experience of Android and hence the call for help!
My situation: I have a Sony Xperia T (LT30p & NOT rooted) which I recently upgraded and so now stands at Android 4.3 and Build 9.2.A.1.205. Like most I use it to access emails and for this I had 3 email widgets on my desktop(s), 2 of which were gmail 1 for private emails and one for work. The latter at some point called me to update the Device Policy and that is where many things started going wrong.
In short, after the update for some reason the email widgets stopped working, I deleted them to re-install, only to find they would no longer appear on my desktop (..?). So I decided to reset the phone to the factory settings. I copied all my documents across to a PC and pressed reset... only to remember that I had not backed up my contacts/sms list!
The phone now works great, the email widgets are back on, but I have no contacts (unfortunately I had not backed them up on Google, etc). So for the past few days I have been looking for a way to restore them and found an app that promises it will do so (MYjAD Android Data Recovery, or if you know of a better one please do advise!), only it needs root access to do so!
I have found places that advise 'single button' rooting, but they do not cover my build version. I have looked at various posts here at how to do so, but I will admit I am getting lost! For example even looking at the '{ROM}[STOCK][T][JB 4.3][9.2.A.1.205] Official Firmware - Rooted&Deodexed 03/04' thread here, what is a CWM, a dalvik cache, or PhilZ Touch? Moreover, what is an FTF (so far I understand this as a way to login in unrestricted mode, though unsure exactly what benefits this would have) and I am assuming it is different to rooting (which I so far believe would make the user a super-user, so would have unrestricted rights too), so why would one have a rooted phone with locked FTF/bootloader? Am I loosing the plot, or what?
All that aside though, what I really would appreciate is someone explaining is easy and detailed steps how I can root my phone (or even better how I can 'undelete' my contacts/sms lists?!!) so that I may try to recover what I have rather foolishly lost!
Many thanks
...alternatively could someone please advise where I could find a listing / thread where it is all explained in a bit more detail?
Thanks

[HELP] My mobile is hacked, Someone is remotely accessing my mobile.

Dear All,
I use Samsung Galaxy A8 SM-A800F with marshmallow 6.0.1 (Official).
My mobile is hacked. Someone is remotely accessing my mobile and making changes as per his will, hacker is able to access my device without mobile data/internet enabled.
I have observed following things -
- Hacker can track my keystrocks/screen touch
- He can access my whatsapp messages
- He is able to reply to my whatapp messages
- He is able to make folders in my mobile
- He is able to restart mobile
- He is able to enable/diable mobile data
- He can access my sms and can send me customized sms.
- He is able to do all above things without mobile data enabled
I am not sure whats going on with my mobile, is this some king of virus/malware which is allowing hacker to control my device ?
I have tried installing various antivirus.
I have tried factory reset / installing official firmware using odin but still hacker is able to control my device remotely.
Kindly advice me on how to fix this problem.
Best Regards,
Romob
Please advise
romob said:
Dear All,
I use Samsung Galaxy A8 SM-A800F with marshmallow 6.0.1 (Official).
My mobile is hacked. Someone is remotely accessing my mobile and making changes as per his will, hacker is able to access my device without mobile data/internet enabled.
I have observed following things -
- Hacker can track my keystrocks/screen touch
- He can access my whatsapp messages
- He is able to reply to my whatapp messages
- He is able to make folders in my mobile
- He is able to restart mobile
- He is able to enable/diable mobile data
- He can access my sms and can send me customized sms.
- He is able to do all above things without mobile data enabled
I am not sure whats going on with my mobile, is this some king of virus/malware which is allowing hacker to control my device ?
I have tried installing various antivirus.
I have tried factory reset / installing official firmware using odin but still hacker is able to control my device remotely.
Kindly advice me on how to fix this problem.
Best Regards,
Romob
Click to expand...
Click to collapse
are you sure its a hacker? as mobile apps can do all that if you give them permission. why are you sure its a hacker? why would someone hack you?
simms22 said:
are you sure its a hacker? as mobile apps can do all that if you give them permission. why are you sure its a hacker? why would someone hack you?
Click to expand...
Click to collapse
I am sure someone is doing mischief,
I have tried resetting my device, uninstalling apps etc. but issue still exist.
Any help would be greatly appreciated
Any help would be greatly appreciated
Please help
romob said:
Please help
Click to expand...
Click to collapse
have you tried a full wipe and installing a.cistom rom?
"err on the side of kindness"
it's too dangerous. List some apps and source you got apps from ( if you remember all of them)
Have you let somebody tease your phone?
This is not funny but funny as I'm dealing with the same thing, I believe it comes down to WiFi hack, or through tags or nfc or whatever I've done the same thing resetting, rooting, removing some files ex, I've revoked, froze ect.... not sure what do to my self. It have noticed when I hard reset and it unmounts a file. Still learning code so not tip top on what it says. If I can get maybe a list of exploits it would at least give me a place to start. I'm on an s7 Sept patch bone stock apps I have Google chrome,messages, phone,contacts.
You could write a book on what you possible need to do, depending on how your system was compromised.
As you can see them replying to your messages I'd bet it's one of your mates that has done something! Having access to your phone would make hacking it easier eg start with a remote control apps and then gain more access later.
I'm no expert but I think you did the right thing reinstalling your rom, but if it's coming back then they must be able to reinstall malware as they have your wifi password, network password, or it's on your sd card or a bad app that you have reinstalled and can gain root or something.
You need to change ALL your passwords that may enable access to your network or phone, incl work etc. ALSO update/reinstall or factory reset any modem/router/network firmware/pc you can as they may have opened some backdoor. But only have one thing on at a time as you fix it, else one might just compromise your network again. Make sure things like tv, printers etc have secure wifi settings (change ALL default passwords to your own strong ones)
Once all have been restored/factory reset with new passwords then you can turn them on again. (I would leave sd cards out and don't install all your apps yet, add them one at a time and only from Play store) also change passwords for all apps as they may still be able to gain access to them & check things like two factor authentication is set to use phone numbers you have set, not theirs.
I have to go now, though there are more possibilities, I've probably missed some things too, but hope I have given you some ideas. Good luck

User Installed CA sprfw01 - what is it?

Hello,
I have a lg ls775 and under the user security certificates there is one called sprfw01. I have no idea why or what its for. Im on the sprint network. Is there a way i can inspect the cert or atleast figure out whats using it? Any info is greatly appreciated. Thnx guys!
Could this be from pairing my phone with some device ie. Smart watch or another phone?
Its actually under User credentials. Hope that can jog anyones memory as to what this may be.
I'm currently using the same phone as you and on the same carrier, and just noticed this user credential the other day as well. I didnt recognize it so I deleted it. I'm afraid I cant tell you if it really affected my device as it was already giving me some issues before I deleted the credential. At the time, and again today, I looked for the same answer as you and haven't found any additional information on it, so I can't be much help with exactly why it's there or what put it there.
However, I may be able to help put your mind at ease since I did happen to do a factory reset today and even though I deleted it before, it was back afterward. So my guess is that its not dangerous. (again, thats my opinion, hopefully someone can confirm if I am correct)
Some details to that lead me to think it's safe:
My LG G6 isn't rooted, and was not before the redo. (so technically nothing should have been able to reinstall it that was nefarious)
I didn't install any potentially shady apps when I did the factory reset ( at time of writing this, just a few big name apps from the play store, no random restored apks or anything like that).
I pulled my SD card out before the wipe and haven't put one back in yet, so that rules out something left over on there working itself back in somehow.
I allowed google to "restore" my most recent backup it made, but the most recent backup was AFTER I removed the credential so it shouldn't have been on there (google backups seems to restore very little anyway, and requests all backed up app downloads from the Play store) .
I have connected it to my home secured wifi.
No bluetooth connections yet.
No sharing to any devices or NFC usage, etc.
So from all of that, I believe it is either a Sprint thing, an LG UI thing, or something specific to the LG g6 model, and built into the factory settings. That's just my thoughts, but I thought maybe my experience might make you feel a little more at ease. Hopefully someone can reply with what the heck it actually is though, because little things like not being able to figure out the source of this drive me crazy even after all of that.
Just an update, I was looking through my LG V30+ and found the same credentials stored on this device too. No additional details on it's purpose were really gained from it though. Picture attached.
"User Credential" "sprfw01" also on LG ls 775
I saw the same thing and I searched "sprfw01" . I was wondering what it was. I also have this "User Credential" on an LG ls 775 on Sprint.
Passwords Saved Credential
I did some research into this and what I see is it's a credential from when you saved your passwords for an example unlock screen & any passwords like I have to specific websites.
Jusy my thoughts...
*Any good unlock or root for the ls993?

BLU STUDIO X5 (S390U) Stock ROM infected.

Hello guys, as you probably see I'm new at this forums, there's only one reason I joined and is because I own the BLU STUDIO X5 (S390U) since while ago.
I noticed that this phone has built-in somewhat thing of malware on the system APKs of it. What do I mean? Don't matter how many times you do a clean, use anti-malware apps, hard-reset, even flashing to a new stock ROM or a CROM made from the original one: The problem is going to persist.
So... Tell us, which would be the solution? Well I was analysing all the possibilities, even evolving a CROM of it, however this infection it seems to be part of other APKs components, as it is visible through Anti-MalwareBytes, that Settings.APK is corrupted with it.
The solution it seems to be easy but it could be complex, even knowing that other APKs could be infected but are not listed on the scanns: Erasing Settings.APK and try to replace it with a non-infected one, but this is complex as I said.
Before I continue I need to explain what this infection does: After you use the smartphone for first time (counting resets, flashes, etc.) the smartphone is just good, even if your not using internet.
After sometime you will notice some new apps installed on your smartphone, what this infection does is to install them under what it could be called a "Silence mode", PlayStore is not needed to download such apps, either a Web Browser.
But, hey, this doesn't sound bad as it just sounds annoying lad... Aye, this sounds as if the problem is only something redundantly annoying, but not is only that, this malware is found as a Hijack and doesn't sound bad too, however, if someone with enough knowledge knows how to manage a Hijack it can even steal info from your smartphone.
But probably you're thinking, well you can fix it not allowing Unknown Sources APKs to install on it, well...
This is what it takes me to the second point of it: This malware changes the settings of your smartphone whatever the times it wants by itself, don't matter which app you use to not allow this change by itself, it is going to do it anyway.
But why? It seems that the infection has Root Access, what this mean is that it has a higher level access (is running under an Administrator mode).
And we're back again to the solution, you'll think: Maybe if I root it and replace the Settings.APK is going to be fixed, well is not that easy, apart of wasting your time, the smartphone can be even more vulnerable and unstable.
The best solution that is going to work and that's why I posted this here:
To fix this the Stock ROM must be re-built from zero. I'd do this on my own, the problem is that I'm not an advanced user, and I still learning programming and coding at my degree, every help with this would be flawlessly.

Categories

Resources