HappyZ / dpt-tools

dpt systems study and enhancement
MIT License
565 stars 130 forks source link

How to restore to official image? #108

Closed grinning2015 closed 5 years ago

grinning2015 commented 5 years ago

i rooted my rp1, and made some changes to the system files (deleting some files and substituting some files) with no backup. now i want to restore to the official package. but when i tried to fw FwUpdater.pkg downloaded from sony website, there seems no any change. the default system files did not come back. can you pls give me some instructions? thanks :-)

HappyZ commented 5 years ago

to restore it, you just need to follow the officials and flash it (note the system files you replaced may not be changed and you need to do a factory reset): https://github.com/HappyZ/dpt-tools/wiki/PKGs-I-Made

grinning2015 commented 5 years ago

to restore it, you just need to follow the officials and flash it (note the system files you replaced may not be changed and you need to do a factory reset): https://github.com/HappyZ/dpt-tools/wiki/PKGs-I-Made

thanks for ur reply i successfully restored the official system files by flashing the "official" pkg you made with version check disabled. it seems that flashing official pkg from sony website is of no use, which shows updating failed.

but i found that factory reset has no effect. the book list/reading list/not list as well as apps i installed before are still there. i have tried resetting the device from sony app setting, and tried resetting by pushing the reset hole.

and there is another big problem: i manually erased the folders under /sdcard and now the old documents are listed in sony app, but cannot be deleted and cannot be opened. what can i do? :-(

thanks!

grinning2015 commented 5 years ago

i successfully deleted the nonexistent files in the document list within SONY DPA, after reseting RP1 several times. omg ;-)

digitalsony commented 5 years ago

I also installed the official pkg from the link above. However, the app I had already installed was not erased. I have attempted a factory reset on the dpt-DPT-CP1 setting. However, the factory reset does not work. Is there any other solution?

grinning2015 commented 5 years ago

I also installed the official pkg from the link above. However, the app I had already installed was not erased. I have attempted a factory reset on the dpt-DPT-CP1 setting. However, the factory reset does not work. Is there any other solution?

try resetting another time maybe several times of reset will take effect. or remove the apps manully by adb uninstall ...

HappyZ commented 5 years ago

@grinning2015 you can help write a restore guide in wiki, i'll close this as problem is resolved

idleft commented 5 years ago

Just a follow up on this question. How do I remove adb and enable official usb connection?

HappyZ commented 5 years ago

You need to flash the modded official PKG I made. After then, everything should go back to stock one. I suggest you to reset after the flash to resolve issue about applauncher crash.

On Tue, Sep 24, 2019, 19:08 idleft notifications@github.com wrote:

Just a follow up on this question. How do I remove adb and enable official usb connection?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/HappyZ/dpt-tools/issues/108?email_source=notifications&email_token=ABDVEKVUNUANGLGB5WM5DPTQLLB3BA5CNFSM4HYUIWW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QLDXA#issuecomment-534819292, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDVEKWLXP2OBLYUI6JROEDQLLB3BANCNFSM4HYUIWWQ .

idleft commented 5 years ago

You need to flash the modded official PKG I made. After then, everything should go back to stock one. I suggest you to reset after the flash to resolve issue about applauncher crash. On Tue, Sep 24, 2019, 19:08 idleft @.***> wrote: Just a follow up on this question. How do I remove adb and enable official usb connection? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#108?email_source=notifications&email_token=ABDVEKVUNUANGLGB5WM5DPTQLLB3BA5CNFSM4HYUIWW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QLDXA#issuecomment-534819292>, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDVEKWLXP2OBLYUI6JROEDQLLB3BANCNFSM4HYUIWWQ .

Thanks for your quick reply. The main reason that I had to do that is because I cannot connect DPT with my Mac via USB connection and the bluetooth was too slow for me.

I followed the unroot guide and managed to fix my issue, without going into the undo diagnosis mode part. I guess that's irrelevant to the usb connection to the DPT app? I thought that's the reason that I cannot connect.

HappyZ commented 5 years ago

I am sorry but also surprised about many of you encountered the USB issue.. I personally had never had that problem.. sometimes it just takes my Mac to reboot to regain USB connection due to Mac's bug.. I am very interested in what exactly you had changed the system (what apps installed etc.) that may cause the problem..

On Tue, Sep 24, 2019, 20:59 idleft notifications@github.com wrote:

You need to flash the modded official PKG I made. After then, everything should go back to stock one. I suggest you to reset after the flash to resolve issue about applauncher crash. … <#m-4365569866158791486> On Tue, Sep 24, 2019, 19:08 idleft @.***> wrote: Just a follow up on this question. How do I remove adb and enable official usb connection? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#108 https://github.com/HappyZ/dpt-tools/issues/108?email_source=notifications&email_token=ABDVEKVUNUANGLGB5WM5DPTQLLB3BA5CNFSM4HYUIWW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QLDXA#issuecomment-534819292>, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDVEKWLXP2OBLYUI6JROEDQLLB3BANCNFSM4HYUIWWQ .

Thanks for your quick reply. The main reason that I had to do that is because I cannot connect DPT with my Mac via USB connection and the bluetooth was too slow for me.

I followed the unroot guide and managed to fix my issue, without going into the undo diagnosis mode part. I guess that's irrelevant to the usb connection to the DPT app? I thought that's the reason that I cannot connect.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/HappyZ/dpt-tools/issues/108?email_source=notifications&email_token=ABDVEKS3MNLX5TTCARCMDMTQLLO3DA5CNFSM4HYUIWW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QQL3Y#issuecomment-534840815, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDVEKVLVLEYLGQ53BGIQ6DQLLO3DANCNFSM4HYUIWWQ .

ultraboy commented 5 years ago

My Mac always recognize my dpt as an usb drive, I guess that's why usb connection to dpt is broken.

HappyZ commented 5 years ago

But after I removed mass storage your problem should be gone. I only added it in the very first release on the oldest system firmware. So if it happens afterwards, the problem must come from something else.

On Tue, Sep 24, 2019, 23:49 ultraboy notifications@github.com wrote:

My Mac always recognize my dpt as an usb drive, I guess that's why usb connection to dpt is broken.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/HappyZ/dpt-tools/issues/108?email_source=notifications&email_token=ABDVEKRF25B442YBZJ6J3KLQLMCXTA5CNFSM4HYUIWW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QZ72I#issuecomment-534880233, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDVEKQ72LCHDYJJLSKUH53QLMCXTANCNFSM4HYUIWWQ .

idleft commented 5 years ago

I am sorry but also surprised about many of you encountered the USB issue.. I personally had never had that problem.. sometimes it just takes my Mac to reboot to regain USB connection due to Mac's bug.. I am very interested in what exactly you had changed the system (what apps installed etc.) that may cause the problem.. On Tue, Sep 24, 2019, 20:59 idleft @.> wrote: You need to flash the modded official PKG I made. After then, everything should go back to stock one. I suggest you to reset after the flash to resolve issue about applauncher crash. … <#m-4365569866158791486> On Tue, Sep 24, 2019, 19:08 idleft @.> wrote: Just a follow up on this question. How do I remove adb and enable official usb connection? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#108 <#108>?email_source=notifications&email_token=ABDVEKVUNUANGLGB5WM5DPTQLLB3BA5CNFSM4HYUIWW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QLDXA#issuecomment-534819292>, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDVEKWLXP2OBLYUI6JROEDQLLB3BANCNFSM4HYUIWWQ . Thanks for your quick reply. The main reason that I had to do that is because I cannot connect DPT with my Mac via USB connection and the bluetooth was too slow for me. I followed the unroot guide and managed to fix my issue, without going into the undo diagnosis mode part. I guess that's irrelevant to the usb connection to the DPT app? I thought that's the reason that I cannot connect. — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#108?email_source=notifications&email_token=ABDVEKS3MNLX5TTCARCMDMTQLLO3DA5CNFSM4HYUIWW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QQL3Y#issuecomment-534840815>, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDVEKVLVLEYLGQ53BGIQ6DQLLO3DANCNFSM4HYUIWWQ .

Just to make sure we are talking about the same USB issue. The one that I was referring to is when you have rooted DPT, the DPT app cannot connect the device via USB. For this one, I think it's what you guys are suggesting, the massive storage issue. Actually, while I was unrooting my device yesterday, flushing the latest modded (I think) official package does allow me to connect to the DPT app. This means your changes are effective I think.

For some others having the dpt-tools connection issue, I think it's because Mac recognizes connected device differently. I managed to do "find /dev | grep modem" to make sure the device is connected to the right port (I think the device end-point is hardcoded to be something like xxx-modem1).

Anyways, my DPT works fine now and I'm able to upgrade it through the DPT apps. In case you are curious why I'm unrooting my device, there is actually nothing to do with the rooting manual. It's just I'm afraid if one day you decided not to work on this project anymore, I probably will have trouble making my device work properly. Thus, I choose to play safely in this case. The rooting guide is a very nice job. Thank you!