Android Open Handset Developers Community

 
Guest Announcements

:arrow: Welcome: you are not yet registered; you can register here.
:arrow: A new forum on the new HTC Magic is available here.

It is currently Mon Feb 06, 2012 5:46 pm

All times are UTC


 Topics   Replies   Views   Last post 
No new posts HTC magic user agent

by negri on Tue Aug 31, 2010 12:01 pm in HTC Magic Android Gphone

8

1804

Tue Aug 31, 2010 12:01 pm

negri

No new posts HTC Magic forever boot

by sampei on Wed Jul 07, 2010 4:06 pm in HTC Magic Android Gphone

1

301

Wed Jul 07, 2010 4:06 pm

sampei

No new posts How to Backup SMS to PC for HTC mobile

by tingelsky on Fri Apr 23, 2010 1:52 am in HTC Magic Android Gphone

2

541

Fri Apr 23, 2010 1:52 am

tingelsky

No new posts Attachment(s) Vodafone UK: HTC Magic, pre-order 17th April, Out:1st May

by Jack on Wed Apr 08, 2009 12:25 pm in HTC Magic Android Gphone

0

213

Wed Apr 08, 2009 12:25 pm

Jack

No new posts Attachment(s) HTC Magic as a 3G modem, it will be possible ?

by barban on Sun Mar 01, 2009 1:54 pm in HTC Magic Android Gphone

0

1332

Sun Mar 01, 2009 1:54 pm

barban




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: HTC Magic forever boot
PostPosted: Mon Jul 05, 2010 9:19 am 
Offline

Joined: Thu Jun 25, 2009 11:30 am
Posts: 2
Hi all.

My device (HTC Magic, Rogers ROM) boots forever when I power on it.

If I do adb logcat the problem seems to be this:

Code:
W/dalvikvm(   75): threadid=15: thread exiting with uncaught exception (group=0x4000fe70)
E/AndroidRuntime(   75): Uncaught handler: thread android.server.ServerThread exiting due to uncaught exception
E/AndroidRuntime(   75): *** EXCEPTION IN SYSTEM PROCESS.  System will crash.
D/MountListener(   75): handleEvent ums_disabled
D/MountListener(   75): handleEvent ums_connected
E/AndroidRuntime(   75): java.lang.NullPointerException
E/AndroidRuntime(   75):        at com.android.server.status.NotificationViewList.clearViews(NotificationViewList.java:114)
E/AndroidRuntime(   75):        at com.android.server.status.StatusBarService.getNotification(StatusBarService.java:831)
E/AndroidRuntime(   75):        at com.android.server.status.StatusBarService.performAddUpdateIcon(StatusBarService.java:689)
E/AndroidRuntime(   75):        at com.android.server.status.StatusBarService$H.handleMessage(StatusBarService.java:644)
E/AndroidRuntime(   75):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(   75):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(   75):        at com.android.server.ServerThread.run(SystemServer.java:374)



So it is something related to the e notification area.

Maybe if I delete all notifications via adb shell (that works), then it can boot.

How to do this?

Is there any key in the file

Code:
/data/data/com.android.providers.settings/databases/settings.db

in order to mange the notifications?

Is there any on line guide for all the keys that are in the table system?

i.e. if I do (from adb shell):

Code:
# sqlite3 /data/data/com.android.providers.settings/databases/settings.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> .tables
android_metadata   bookmarks          secure           
bluetooth_devices  gservices          system           
sqlite> .dump system


it returns:

Code:
BEGIN TRANSACTION;
CREATE TABLE system (_id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT UNIQUE ON CONFLICT REPLACE,value TEXT);
INSERT INTO "system" VALUES(5,'volume_alarm','6');
INSERT INTO "system" VALUES(9,'mode_ringer_streams_affected','38');
(...etc...)


Now, I think there must be a lot of other keys, maybe some of them related to notifications..

Thanks to all.

Mario
http://www.dataworks.biz


Top
 Profile  
 
 Post subject: Re: HTC Magic forever boot
PostPosted: Wed Jul 07, 2010 4:06 pm 
Offline

Joined: Thu Jun 25, 2009 11:30 am
Posts: 2
OK, I found a solution.

Conditions:

The device boots forever, but adb shell works fine.
You have an old nandroid backup but if you restore it newer data are lost.

1) via adb shell do a copy of data directory:

Code:
adb shell
# cd /data
# tar cvzf data.tar.gz data/
# exit
adb pull /data/data.tar.gz data.tar.gz


Now your data are in the file data.tar.gz stored on your PC

2) Restore the old nandroid backup. Now the device starts but you do not have newer data.

3) If you have the recovery v1.7.0 power on in recovery mode.
Otherwise downolad it and start via fastboot with:

Code:
fastboot boot recovery-RA-sapphire-v1.7.0G.img


(1.7.0G is for my HTC Magic - download the version for your device)


4) mount the data partition via adb shell

Code:
adb shell
mount -o rw,nosuid,nodev -t yaffs2 /dev/block/mtdblock5 /data
exit


5) Then copy the data saved before from PC to device:

Code:
adb push data.tar.gz /data/data.tar.gz


6) Replace the data directory of the device with your data:

Code:
adb shell
cd /data
/data # rm -r data
/data # tar xzf data.tar.gz
/data # rm data.tar.gz
exit


7) Now your data are saved, but if you boot the device they will erased because of uid mismatches

So, from the recovery menu do:

Code:
Others


and

Code:
Fix apk uid mismatches


then reboot


Hi all.
Mario
http://www.dataworks.biz


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
phpBB SEO

This site is not affiliated with nor endorsed by the Open Handset Alliance.
All trademarks and logos used in this site are of properties of their respective owners.