[Q] Edit/Change the Android ID - Moto G Q&A, Help & Troubleshooting

Hi all, I'm new to Motorola and have come across something that I am unsure about and could use some reassurance on. Up to now all my devices had been Samsung.
On all my past devices I was able to use various tools (Titanium Pro, Nandroid Manager Pro, Device ID changer ROOT etc) to edit my "android_id" string so that my ID remained the same through ROM flashes. I have never done it manually, in fact, after a bit of digging, I only found out where it is located tonight.
Thus far on my Moto I have tried with Nandroid Manager Pro and a couple of Play Store free alternatives. None have met with any success, the ID is stubbornly staying as it was when I first activated it. This has caused the inevitable headache with a couple of applications whose data I am trying to transfer across from one of my Samsungs (it is on KitKat, too). For example, Viber, it seems to be one of the apps that identifies you via your ID so when it sees a new one it basically has a panic attack crashes and won't operate unless you wipe the data you tried to flash. (Viber offer no proper backup alternative either, unlike Whatsapp )
Earlier I mentioned how I found out where the string with the ID is stored so I was wondering, is there any reason why I can't edit this string manually using a database editor?
Is there a Motorola reason why none of the previous working options work? Does Moto protect the string somehow, much like Win XP file protection? If Moto is protecting it, would a Nandroid save me from any bricks?? :fingers-crossed:
I am bootloader unlocked/rooted, with TWRP recovery, on stock ROM.

Related

[Q] 2 q's on backup or well restoring

Hi there,
Short story, 2 q's:
1) Anyone know where BMA stores it's serial (or whatever you want to call the code it uses to generate it's time based passwords)
2) Anyone know where stock samsung firmware (SGS / Gingerbread) stores the SMS database?
============= Longer story =================
I've upgraded my SGS (Gingerbread) to the ICS ROM. This caused me to loose a lot. Made a nandroid backup (cwm) before proceeding and figured I would be able to get stuff back from it. Well... that's partially correct, could get some apps + settings back, some apps w/o settings and some things not at all.
There's only 2 major things left I really need. My SMS database and battle.net mobile authenticator. The authenticator was restored using appextractor or titanium backup pro. Restoration of the app went fine, but it lost it's key and is thus quite useless as I can't use it to log on.
Is there some hidden place it might store it's serial? If I can't restore it I'll have to go through a procedure to have it removed by Blizzard, which is somewhat cumbersome.
Don't want to restore an entire back-up (ie go back to gingerbread) as several apps have already been re-setup (amongst which my banking app which wasn't restored with it's data either causing me to have to re-subscribe/authenticate it and google authenticator (which btw came by out of backup fine, including it's accounts thus)).
Also am unable to find the SMS database. I have extracted the data.img with unyaffs, but there is no database under the usual com.android.providers.telephony. Samsung probably uses a custom app/location for the database, but haven't been able to find it. Neither titanium backup pro nor appextractor are able to restore the SMS's. Then again, they don't restore wireless either, but since I can just read the wifi/bcm_supp.conf file I don't really care . Just find it strange it doesn't restore whilst the file is that accessible, might be a non-default location as well however...
In case it matters, I run linux >90% of the time. Quite familiar with it, quite new to phones tho' . I do have windows so whatever tools might be required, both OS's are accessible to me.
TIA

New Phone, option to transfer everything?

Hello,
I currently own a LG E900 and just recently I noticed a little scratch on the display. I know this is gorilla glass and it worked really great for more than a year and I don't even know how the scratch got there, but I thought that it might be time to upgrade.
I know that most stuff is synced using Windows Live but there are still a couple of things where I am not sure:
1. What about contacts where I linked their Facebook, Twitter and Windows Live profiles? If they do not have the same name in Facebook and Windows Live, will their linking be preserved?
2. Is it possible to transfer stored data from apps and games? I mostly care about my saved progress from e.g. angry birds, can you transfer that without being banned or so from Xbox Live for cheating?
3. Zune creates full backups and I guess this would be the best you can get, but can you restore them onto another device (I am considering buying either another LG E900 or a HTC Titan 2, but this thread should not be about which phone to chose right now) or is this somehow tied to the IMIE?
All of your contacts are synced from their various accounts. None are currently stored on the phone. Your linked contacts will link if the names are the same. If names differ, you'll have to relink as necessary.
Game and application data cannot be transferred to the new phone unless said game/app offers a cloud backup option. XBoxLive games will remember scores, but I'm not sure about progress.
To my knowledge, a backup can only be restored to the phone it was made from. This means you can't even get the same model and restore from a different backup. Sucky, I know.
That is correct. Manually (using an app like Root Webserver or WPDM), you could back up your Angry Birds isolated storage folder and then restore it on the new phone (if you get another phone that you can achieve at least root-unlock with). I don't believe you're at risk of getting flagged for cheating unless you try to *edit* those game files.
That sound interesting.
Is root-unlock the same as interop-unlock?
No. Interop-unlock can allow apps to gain additional privileges, possibly including TCB privileges ("root" if it were a Unix-like OS; this is what's meant by "root unlock"). However, by default interop-unlock does not grant those permissions.
Root unlock is most commonly gained through either using interop-unlock on a supported device to then install WP7 Root Tools, or by using a full-unlocked custom ROM (full-unlock includes root-unlock).
Thanks, I guess I will be able to figure out the rest on my own since interop-unlock seems to be prettt easy on LG devices.
Just to be sure, if I copy the Isolated Storage from a game to my PC and back onto a different phone, that will still work?
slimshady322 said:
(I am considering buying either another LG E900 or a HTC Titan 2, but this thread should not be about which phone to chose right now) or is this somehow tied to the IMIE?
Click to expand...
Click to collapse
Angry Birds does not seem to require phone or owner identity privileges, so I doubt it is.
Also, keep in mind that the Titan II has no unlock at all yet - you couldn't get your files back on it then.

Accessing system folder without root access

Hi all.
I'm after quite specific need but would like to know more general answer / solution if possible at all.
I know that wihtout being rooted there's not much one can do with system folders, but still, there are some ways and tricks to get to them, one of them being Backup option provided by android, using ADB shell.
I'm after specific file, that is /data/data/com.android.mms/shared_prefs/com.android.mms.categoryInfo.xml
Using Htc One M8, stock rom, I've tried to do adb backup of com.android.mms application, but all I got was 1kb (actually 41 bytes) sized file, which contains nothing.
I wonder, is there any other way to get to the specific system app folder, if you're NOT rooted?
Any help would be highly appreciated.
Additional info: I'm after that file because it has stored Secure message box password in Plain text. My phone is about to go to the service due to several issues, including battery getting way overheated when used, and not charging over 25% at all, and the only thing left to make a backup is the secure box storage, which I used as an "Other inbox" folder in order to have the main Inbox a bit more "clean", and I know I've set it to something stupid and short, and I've accessed them not long ago, but for the f's sake I can't get in the folder anymore (and I'm highly betting that after several attempts even the real password is no longer accepted, and that being the reason I can't figure out the pass by trying, but there's nowhere info it thats true, and if so, how long to wait before real one would be accepted etc...)
Big thanks if anyone could help out, if not - not gonna be the end of the world. But would kinda like to store some of the messages that are newer than my latest backup...
Cheers!
cucolino said:
Hi all.
I'm after quite specific need but would like to know more general answer / solution if possible at all.
I know that wihtout being rooted there's not much one can do with system folders, but still, there are some ways and tricks to get to them, one of them being Backup option provided by android, using ADB shell.
I'm after specific file, that is /data/data/com.android.mms/shared_prefs/com.android.mms.categoryInfo.xml
Using Htc One M8, stock rom, I've tried to do adb backup of com.android.mms application, but all I got was 1kb (actually 41 bytes) sized file, which contains nothing.
I wonder, is there any other way to get to the specific system app folder, if you're NOT rooted?
Any help would be highly appreciated.
Additional info: I'm after that file because it has stored Secure message box password in Plain text. My phone is about to go to the service due to several issues, including battery getting way overheated when used, and not charging over 25% at all, and the only thing left to make a backup is the secure box storage, which I used as an "Other inbox" folder in order to have the main Inbox a bit more "clean", and I know I've set it to something stupid and short, and I've accessed them not long ago, but for the f's sake I can't get in the folder anymore (and I'm highly betting that after several attempts even the real password is no longer accepted, and that being the reason I can't figure out the pass by trying, but there's nowhere info it thats true, and if so, how long to wait before real one would be accepted etc...)
Big thanks if anyone could help out, if not - not gonna be the end of the world. But would kinda like to store some of the messages that are newer than my latest backup...
Cheers!
Click to expand...
Click to collapse
Yes and not.
if you don't have root access, you can not copy an application from the system folder, to make this the ADB would need root permissions. but....
You can download the stock rom, and copy/extract/edit the app you need it.
xdedeone said:
Yes and not.
if you don't have root access, you can not copy an application from the system folder, to make this the ADB would need root permissions. but....
You can download the stock rom, and copy/extract/edit the app you need it.
Click to expand...
Click to collapse
Actually no, if the file is user specific, as in my case, the help of stock rom's file is not gonna help.
Anyway, SOLVED now.
As per this post: http://forum.xda-developers.com/showthread.php?t=2054401
The backup of the app was made and got the file. I've done the same thing without success, because on HTC, the messaging app is com.htc.sense.mms and NOT com.android.mms.
Therefore creating backup of the com.htc.sense.mms did result kin getting exactly what I needed.
In the extraction of the tar .ab archive using dd in linux, I got folder app, within there is a folder com.htc.sense.mms, wihtin there's a folder sp, and there is com.htc.sense.mms.categoryInfo.xml which has the secure box password stored in plaintext.
Voila! )

Android Backup directly to PC

Hello everyone,
i searched for this topic and found several threads without an answer, but all of them were years old, so heres my hope that things have changed over the years (And that Android finally catches up with what i would consider basic functionality and damn, even iPhones can do it...)
Im looking for a backupsolution directly to my PC. A tool for either my PC (Both Windows of Linux would be fine) or my phone (which is a rooted LG G4 with the last, and therefore very old, official Lineage OS (i intend to upgrade to something newer.) I want to backup every app including appdata, my contacs, sms and mediafiles.
I dont have a lot of space left on my phone which rules out any backupsolution that backs up to my phone. Which means Titanium Backup (which besides looking ugly and not very userfriendly by my usual standards for a user interface but the Pro version can apparently otherwise do everything i want) or Nandroidbackups (assuming that they dont fully backup my phone including the rom and therefore would be unusuable for migration to a new Rom) are out. Also the need to manually copy this over after the backup smacks me as slighly cobbled together, but well that might be just me.
I also dont want to use any internetbased solution. Both for ideological and paranoia reasons. Its my data and i dont intend to giving it to others. Therefore any cloudbased services are out.
Which leaves me with backing up directly to my PC. When i started looking for such a soltion i thought that would be easyly solved since it is such a basic usecase. But oh boy how wrong i was.
What i have found so far:
Syncdroid: Cant backup Apps+Appdata.
Helium: endless spinning wheel while checking root (even though i triplechecked, helium HAS root) and without root i cant backup two thirds of the apps i want to backup like all my instant messaging apps). Apparently the issues with root are known but the Devs are silent.
Apowersoft ApowerManager: Is supposedly able to do what i want BUT doesnt have a trial so i could test it (the free version only allows backups but no restore or anything which comes down to a trust issue) and its simply to expensive (20$ per month with the current superduperspecialpricejustforyouandjustnowoffer) to just buy blindfolded. Also again Trustissues for a tool this expensive without a way to fully try before...
So in conclusion: Do i have to throw away my LG G4 and switch to an iPhone to get this basic functionality or did i just overlook something (maybe a hidden feature in Titanium Backup)?
Bonuspoints if this works over wifi and can be automated (like PC is running, PC suite pings phone, finds phone and updates the backup)

Backup and Restore ALL Accounts on android

GOAL - a universal backup and restore solution that can take ALL device accounts and ALL their related passwords - back them up - and restore them to ANY version of android - including Phones, Tablets, and Emulators such as bluestacks, memu, nox etc. even from different android versions.
This is primarily to get all EMAILS - google - outlook - etc loaded into a new device *This is NOT for apps as there are plenty of solutions for apps already but none for ACCOUNTS
This software should basically have a database, preferably in an easy to edit CSV format - which would never need to change as it would always have ACCOUNT_TYPE,USERNAME,PASSWORD,RANDOM_DATA
-you could manually populate this via your computer or you could have the android software export it via coding magic. Maybe use a different format and have it load a spreadsheet or a different database type...
Importing would be trickier- you'd have to have a drop down asking questions like - What android version are you importing to- so that the code could be properly inserted...
I intend to ask for advice here and see what solutions you all have; I will edit this first topic to help others if a solution exists.
Some people spend 50 hours of labor installing hundreds of apps on their phone; each needing custom configured, many require having an Account to access data through the app.
What if you have to load 50+ emails into the phone; each of them having huge complicated passwords.
What if you are always buying new devices, changing roms and having to set this all up again?
=Some Solutions exist but none have worked for me.
1. Built in google 'set up new device' -
This only seems to work when you have reset your phone.. once the phone is active and you've actually used it -- there appears to be no way to turn this on and attempt to bring new accounts over...
q. How can you activate this after the fact?
If you have more than a few accounts on the device, say.. 4... maybe you have 20 or 40 email accounts loaded.. it is almost guaranteed to fail.
q. What causes it to fail? Is there any work around.
If you are on android versions too far apart its also likely to fail
q. Why? is there any work around.
*Here is a site with code related to the account transfer API; I'm not sure how accurate it is:
Account Transfer API | Android Developers
developer.android.com
2. Samsung Smart switch
This only copies ONE account - but it also does a fine job of moving text messages, SOME apps and other info over.
*Is there any way to get it to copy all email accounts; and other random app accounts to the new device?
3. Titanium backup - for non root and root.
I've played with this numerous times over the past 10 years and never successfully. I dont think it is capable of taking all accounts and backing up / restoring to different devices.
More to be added later.
Reserved for random info so I can update later;
One month later and no replies...
Anyone?
1. Is there any app on the planet that can do this - or close? ((samsung smart switch - sometimes - though it mostly fails -- Googles built in set up - which fails 95% of the time) - I know of no other solutions.
2. Is there any desire for this? have any of you been annoyed with the menial task of setting this stuff up again and again?
another month goes by.. now I have a new android tablet.. and guess what?
Samsung smart switch wont copy my accounts...
I cant seem to get the built in google 'set up device' to start == and I'm not looking forward to adding 50 email accounts and various other accounts into this manually.. thats gonna take ages...
Buying a new device every couple months.. is a grueling task when it comes to account transfers...
Nobody has any suggestions on a solution for this? I'm searching around randomly again and finding Nothing.
what is your concern?? reading your thread give me headache
I have the same issue. I am "bored" in getting another mobile because i have to setup from beggining soooo many things
IIRC then account details are stored in SQLite database named accounts.db, its location depends on Android version.
Wi-Fi passwords are stored in file named wpa supplicant.conf.
@jwoegerbauer thanks for the tip. using your filename I found a tutorial that listed the location as follows:
/data/system_de/0/accounts_de.db
I've verified this on Nox; my bluestacks still isnt rooted and it seems the phones I have with all email accounts loaded == are not rooted either== I'm going to need to find a workaround for that or make time to root bluestacks to get the account data out of it...
Problem is;
1 there are no passwords included here. Where are they? mine are all crazy long and I have no clue what they are... its very time consuming to manually input them via my password managing tool.
2 Once I export; and change the CSV into a spreadsheet to include all the other missing email /google accounts; how do I replace the accounts_de.db file on each device
3. Why isnt there an app that can do this already; lol?
EDIT
Titanium backup does have an 'accounts' export option that -sorta - works... problem is how picky the app is about using root plus super SU and refuses to work with Magisk (sometimes) or will constantly crash on (some) devices - or will fail to export/import unless you try (5 different file managers that can eventually figure out how to import their file type) - or is otherwise NEEDING root access to function...
Would be nice if a solution existed via ADB or simply in an un rooted device to do this; sorta like how google ''set up nearby device'' was supposed to work (and will; if you use only 5 or less accounts... but its also buggy and fails)
Any ideas on how we can export/import accounts?
Still no successful solution.
1. Notes regarding Titanium:
I've tried about 15 versions of bluestacks using android 4.4.2 and have had mild success with titanium to backup/restore =
however it seems to randomly restore less than all the accounts (missing a few different ones each time)
it also seems to randomly miss the google password tokens randomly =forcing me to log into 10% of the imported accounts with each restore.
It also seems to fail 100% when trying to restore a bluestacks 4.4.2 accounts file on to android 7 bluestacks; or nox / or memu
It has limited success importing into a proper non emulated tablet (again missing about 60% of the accounts randomly)
all in all Titanium doesn't appear to be a good solution.
2. Perhaps a direct edit of the Accounts DB file would be wiser;
I've attempted to export it a few times and am not sure yet how to edit it ...
HeidiSQL has errors when accessing the file
Oracle's sql developer is WORSE; most of the text is gibberish.
*Any ideas on how to edit this?
3. Other xda searches lead me to:
The google password isn't a real password. After first successful authentication, an Auth Token is downloaded to device which is stored in accounts.db.
From the Auth Token is impossible to guess the password.
So I guess I answered my own question on that... I was hoping the passwords were stored on the device database so I could import/export them via a text editor.
4.
*File manager for super users allows one to explore and edit (to a point) a sql database - but one can not add new entries; only edit existing entries.
one can only export to csv; not import.
so this is only a partial solution.
5. an open source XDA solution looks promising but will not work.
Each OnAndBackup version uses different file extensions that are not compatible between versions... so yuo can't backup one android version and restore to another.
OAndBackupX is a fork of the popular open source backup app for Android
Looking for an open source solution to backup individual apps and their data? OAndBackupX is a handy Android app for the job. Check it out!
www.xda-developers.com
Blombardo said:
2. Perhaps a direct edit of the Accounts DB file would be wiser;
I've attempted to export it a few times and am not sure yet how to edit it ...
HeidiSQL has errors when accessing the file
Oracle's sql developer is WORSE; most of the text is gibberish.
*Any ideas on how to edit this?
Click to expand...
Click to collapse
In post #7 you were told it's a SQLite database. Hence use a SQLite browser.
Downloads - DB Browser for SQLite
sqlitebrowser.org
It appears that the art of editing the database file on this is more complicated than it should be...
1. Taking the old DB file from 4.4.2 with a million accounts loaded... -- Export the 'accounts' table into csv
2. taking the new DB file from 7.1.1 with one account loaded - delete existing and then import the old 'accounts' table -
Swap original .db file with new edited one...
and congrats you too have a bootloop...
Anyone know how to PROPERLY export / import the accounts information ?
The sql table otherwise appears the same.. but I'm by no means an expert on these databases so perhaps I missed something simple.
Can't wait to see what happens from nox to bluestacks to memu to real versions of android on multiple devices with multiple android versions...
There HAS to be a better way to do this.?
Edit: 20 plus hours and many weeks into this problem
delving deeper into Titaniums site they have a suggestion for use on emulators that I did not notice; I will try and report back.
12. I have an Android device that is x86 based, and rooted. Can I use Titanium Backup ?​
YES. Please ensure that you have a working BusyBox on your device and make the following changes in TB preferences:
enable the “Force use external BusyBox” option (under Troubleshooting) then hit MENU -> Reload application.
1. I've noticed there are two places for saved account info; I still have no success in getting my edited database to properly recognize in the emulator.
system DE on older 4.4.2
and
system CE on 7.1 (also has the DE folder)
2. No luck on titanium either.
a. I've tried making busy box work on the emulator; it pretends to install successfully but when running shell commands it doesnt seem to work; therefore the number 12 from Titanium FAQ is something I can't seem to accomplish either... so Titanium will not work yet; maybe due to the busybox fail.
Blombardo said:
@jwoegerbauer thanks for the tip. using your filename I found a tutorial that listed the location as follows:
/data/system_de/0/accounts_de.db
I've verified this on Nox; my bluestacks still isnt rooted and it seems the phones I have with all email accounts loaded == are not rooted either== I'm going to need to find a workaround for that or make time to root bluestacks to get the account data out of it...
Problem is;
1 there are no passwords included here. Where are they? mine are all crazy long and I have no clue what they are... its very time consuming to manually input them via my password managing tool.
2 Once I export; and change the CSV into a spreadsheet to include all the other missing email /google accounts; how do I replace the accounts_de.db file on each device
3. Why isnt there an app that can do this already; lol?
EDIT
Titanium backup does have an 'accounts' export option that -sorta - works... problem is how picky the app is about using root plus super SU and refuses to work with Magisk (sometimes) or will constantly crash on (some) devices - or will fail to export/import unless you try (5 different file managers that can eventually figure out how to import their file type) - or is otherwise NEEDING root access to function...
Would be nice if a solution existed via ADB or simply in an un rooted device to do this; sorta like how google ''set up nearby device'' was supposed to work (and will; if you use only 5 or less accounts... but its also buggy and fails)
Click to expand...
Click to collapse
Thanks for the tip just used Titanium Backup to transfer accounts backup generated from one phone to another (using the generated backup files) both N916K rooted with Magisk version 23.0 (23000) without issues!
So is there any Progress or Solutions found yet?
A good thing would be to see all the accounts and then retype them manually if needed.
Else it would be much better to have something like Smart Switch.
Problem I noticed with SmartSwitch, when you try to transfer the Accounts. Samsung trys to grab and upload all the accounts to their server!! Why? I don't know, but it always asks for Internetconnection etc. ONLY when you want to transfer accounts, everything else works more or less.. some appdata not included sadly anyway.
Swift Backup doesn't seem to or did someone manage it to work with it?
Tipps and possible Solutions would be greatly appriciated.
It seems to be especially problematic with Android 12...
Hello, I'm having the same problem. I'm "bored" with obtaining a new phone because I have to set up so many things from scratch. real estate istanbul
A shame there still doesn't seem to be a good solution for this. TB only tries to backup the non-existent location, while the correct is /data/system_de/0/accounts_de.db
Manually moving just puts me into a bootloop, even after setting the correct permissions.
I dont know if this works, someone should test it.
GitHub - cluk33/android-multiuser-backup: A set of scripts to backup and restore apps and data of multiuser android devices.
A set of scripts to backup and restore apps and data of multiuser android devices. - GitHub - cluk33/android-multiuser-backup: A set of scripts to backup and restore apps and data of multiuser andr...
github.com
akhilkhan said:
I dont know if this works, someone should test it.
GitHub - cluk33/android-multiuser-backup: A set of scripts to backup and restore apps and data of multiuser android devices.
A set of scripts to backup and restore apps and data of multiuser android devices. - GitHub - cluk33/android-multiuser-backup: A set of scripts to backup and restore apps and data of multiuser andr...
github.com
Click to expand...
Click to collapse
I spent hours trying to get the script to work, but it will not backup anything in A13. I even disabled DFE on the device and started it over to test.

Categories

Resources