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 Fri Sep 10, 2010 9:08 pm

All times are UTC


 Topics   Replies   Views   Last post 
No new posts Simply Mobiles is pleased to announce

by puni on Tue Sep 07, 2010 4:40 am in HTC Magic Android Gphone

0

8

Tue Sep 07, 2010 4:40 am

puni

No new posts Best place to buy Cheap BrandNew Unlocked Mobile Phones

by puni on Tue Sep 07, 2010 4:39 am in HTC Magic Android Gphone

1

21

Tue Sep 07, 2010 4:39 am

puni

No new posts On Sale Samsung P1000 Galaxy Tab $220, Sony Ericsson XPERIA

by 3and4g on Mon Sep 06, 2010 4:15 pm in HTC Magic Android Gphone

0

10

Mon Sep 06, 2010 4:15 pm

3and4g

No new posts Promo On : Apple Tablet iPad 64GB $210, Google Nexus One

by 3and4g on Mon Sep 06, 2010 4:14 pm in HTC Magic Android Gphone

0

9

Mon Sep 06, 2010 4:14 pm

3and4g

No new posts Promo Sales : Apple iPhone 4G 32GB - $200, HTC EVO 4G $200

by 3and4g on Mon Sep 06, 2010 4:10 pm in HTC Magic Android Gphone

0

7

Mon Sep 06, 2010 4:10 pm

3and4g




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.