How to recover previous android_id?

  • Thread starter Android Central Question
  • Start date
A

Android Central Question

Hi, I used android_id as my zip file password . I reset my phone and now I need to know previous android_id. How can i recover it?
it's very important for me because of my file.
please answer
 

belodion

Co-Ambassador Team Lead
Moderator
Jun 10, 2014
39,246
146
63
Visit site
Okay. Welcome as a new member. :)

I don’t understand what you mean, but I’ll pass the question on to others.
 

Mooncatt

Ambassador
Feb 23, 2011
10,604
160
63
Visit site
I'm not exactly sure what you're asking either, in reference to android_id. So this is admittedly a shot in the dark.

It sounds like you created a password protected zip file? If so, whatever password you gave it when you created it would remain the same from there on out. Resetting the phone wouldn't change the file's password. You could even transfer it to a computer and still open it with the password. So have you tried using your original password to open it?

It would be helpful if you can clarify exactly what you mean by "android_id." Are you saying you used some identification listing from within your phone as the password, such as the IMEI number? All of the info like that I'm familiar with wouldn't change after a factory reset.
 

zahra-t

New member
Aug 5, 2018
4
0
0
Visit site
I don't know the password of my file because i write an application , in this application it set password of file to android_id programmatically.
You are right the password is fixed. I reset my phone and android_id is changed and I don't know how to access to previous android_id
 

belodion

Co-Ambassador Team Lead
Moderator
Jun 10, 2014
39,246
146
63
Visit site
If you're writing applications, you're way ahead of most Android Central members. I had to research 'android_id' since I'd never even heard of it. It's described here:
https://developer.android.com/reference/android/provider/Settings.Secure
...with thanks to Android Developers.

I'm sure there are Android Central members here who will understand your problem. If you wish, I can move the thread to our Developers Lounge forum.
 

Rukbat

Retired Moderator
Feb 12, 2012
44,529
23
0
Visit site
Unfortunately, there's no way to "recover" a previous ID. If the program you developed was supposed to unzip by getting the ID from the phone, that's just bad program development - you never use a password you can't get to. At the very least, you have a debug mode that writes the password out to a text file. Then you turn off debug mode.

Since you wrote the application, you have the source code, so just recompile it and rezip it, but think about that password method first.