You will need the following tools:
- A rooted HTC Desire, or maybe another HTC android device.
- ADB, and some knowledge of a linux shell.
- SQLite3, and some knowledge of SQL.
- Text editor (vim, etc)
Open a shell, and use ADB to pull the following files.
/data/system/accounts.db/data/system/sync/accounts.xml
Open accounts.xml in a text editor and remove the News and Stocks entries.
...
Save the file and exit.
Open the sqlite database accounts.db and remove the News and Stocks entries from the accounts table.
sqlite> select * from accounts;You can also clear the authtokens, grants, and extras tables of related entries. The following is an example of clearing the authtokens table with the accounts_ids from above.
1|News|com.htc.newsreader|
2|Weather|com.htc.sync.provider.weather|
3|Stocks|com.htc.android.Stock|
sqlite> delete from accounts where _id = 1;
sqlite> delete from accounts where _id = 3;
Exit from SQLite.sqlite> delete from authtokens where accounts_id in (1,3);
Remove the following files from the /system/app directory.
Note: this list also includes the Footprints application.
DCSStock.apk
DCSStock.odex
Stock.apk
Stock.odex
com.htc.StockWidget.apk
com.htc.StockWidget.odex
NewsReader.apk
NewsReader.odex
com.htc.NewsReaderWidget.apkcom.htc.NewsReaderWidget.odex
HtcFootprints.apkExit the ADB shell and click "reboot" on the phone.
HtcFootprints.odex
HtcFootprintsWidget.apk
HtcFootprintsWidget.odex