[Need Test] Enable mass storage in normal boot #36

Closed
opened 2018-12-14 13:32:16 -08:00 by HappyZ · 23 comments
HappyZ commented 2018-12-14 13:32:16 -08:00 (Migrated from github.com)

Expected behavior:
while booting in normal mode, pc should have mass storage popped up

boot-1.4.01.16100-mod-181214-152910.zip tested, not working.

boot-1.4.01.16100-mod-181214-205356.img.zip still not work

boot-1.4.01.16100-mod-181214-205902.zip confirmed working

[2018-12-21] Flashable pkg (while in normal boot up mode) for above boot.img is FwUpdater.pkg here. Make sure you have patched your updater bash.

also this should not affect adb service

if not working, post your getprop sys.usb.config and getpropersist.t.sys.usb.config here in adb, and specify which one you have tried.

Known issue:
Even if I have set persist..sys.usb.config to acm,hid,adb,mass_storage in default.prop, there must exist some other script that change it back to acm,hid,adb.
I can't figure out what did this.
But the ugly version forces to add mass_storage in init.pxa1908.usb.rc, which shall be working for sure.. I just don't like the dirty hack personally..
If you are an experienced developer, please let me know why the system didn't take acm,hid,adb,mass_storage (source code here).

Expected behavior: while booting in normal mode, pc should have mass storage popped up ~~[boot-1.4.01.16100-mod-181214-152910.zip](https://github.com/HappyZ/dpt-tools/files/2681757/boot-1.4.01.16100-mod-181214-152910.zip)~~ tested, not working. ~~[boot-1.4.01.16100-mod-181214-205356.img.zip](https://github.com/HappyZ/dpt-tools/files/2682361/boot-1.4.01.16100-mod-181214-205356.img.zip)~~ still not work [boot-1.4.01.16100-mod-181214-205902.zip](https://github.com/HappyZ/dpt-tools/files/2682363/boot-1.4.01.16100-mod-181214-205902.zip) confirmed working [2018-12-21] Flashable pkg (while in normal boot up mode) for above boot.img is [FwUpdater.pkg](https://github.com/HappyZ/dpt-tools/blob/master/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img/FwUpdater.pkg) here. Make sure you have patched your updater bash. also this should not affect adb service if not working, post your `getprop sys.usb.config` and `getpropersist.t.sys.usb.config` here in adb, and specify which one you have tried. Known issue: Even if I have set persist..sys.usb.config to `acm,hid,adb,mass_storage` in default.prop, there must exist some other script that change it back to `acm,hid,adb`. I can't figure out what did this. But the ugly version forces to add `mass_storage` in `init.pxa1908.usb.rc`, which shall be working for sure.. I just don't like the dirty hack personally.. If you are an experienced developer, please let me know why the system didn't take `acm,hid,adb,mass_storage` (source code [here](https://github.com/HappyZ/dpt-boot-img/tree/1.4.01.16100-mod)).
ziegfeld commented 2018-12-14 15:02:24 -08:00 (Migrated from github.com)

For the record, I tried the 1st rev with HappyZ but usb mass_storage did not pop up automatically as expected.

@HappyZ is going to update this and need another volunteer with DPT-RP1/CP1 for testing.

For the record, I tried the 1st rev with HappyZ but usb mass_storage did not pop up automatically as expected. @HappyZ is going to update this and **need another volunteer with DPT-RP1/CP1 for testing.**
nyanadassana commented 2018-12-14 18:01:21 -08:00 (Migrated from github.com)

Tested, it would not pop up the mass_storage in MacOS
get prop:

(edited to shrink it a bit more)
[persist.sys.usb.config]: [acm,hid,adb]
...
[sys.usb.config]: [acm,hid,adb]
...
[sys.usb.state]: [acm,hid,adb]
...

Tested, it would not pop up the mass_storage in MacOS get prop: (edited to shrink it a bit more) [persist.sys.usb.config]: [acm,hid,adb] ... [sys.usb.config]: [acm,hid,adb] ... [sys.usb.state]: [acm,hid,adb] ...
HappyZ commented 2018-12-14 18:33:38 -08:00 (Migrated from github.com)

thx I'll check a bit more

for the record, manual typing works; wonder why persist.sys.usb.config isn't changed

before this comment, boot-1.4.01.16100-mod-181214-152910.zip has been tried

thx I'll check a bit more for the record, manual typing works; wonder why persist.sys.usb.config isn't changed before this comment, `boot-1.4.01.16100-mod-181214-152910.zip` has been tried
HappyZ commented 2018-12-14 21:31:41 -08:00 (Migrated from github.com)

@nyanadassana since you asked, I would appreciate if you can try the two new boot.img I modded. It will not affect your usage of the device.

@nyanadassana since you asked, I would appreciate if you can try the two new boot.img I modded. It will not affect your usage of the device.
sekkit commented 2018-12-14 23:21:44 -08:00 (Migrated from github.com)

@HappyZ tested, last boot.img works in Mac

@HappyZ tested, last boot.img works in Mac
nyanadassana commented 2018-12-15 01:06:02 -08:00 (Migrated from github.com)

@sekkit it won't pop up the mass storage for both boot.img.
@HappyZ It seems adb getprop is not working as before

@sekkit it won't pop up the mass storage for both boot.img. @HappyZ It seems adb getprop is not working as before
HappyZ commented 2018-12-15 06:56:50 -08:00 (Migrated from github.com)

@nyanadassana you are using windows?
and what does it say when you run adb shell getprop on PC, or getprop inside adb shell?

@nyanadassana you are using windows? and what does it say when you run `adb shell getprop` on PC, or `getprop` inside adb shell?
sekkit commented 2018-12-15 07:13:29 -08:00 (Migrated from github.com)

That last boot.img will cause DPT unable to connect to WIFI by DigitalPaperApp, has anyone tried that?

That last boot.img will cause DPT unable to connect to WIFI by DigitalPaperApp, has anyone tried that?
HappyZ commented 2018-12-15 08:07:56 -08:00 (Migrated from github.com)

@sekkit the boot.img shouldn't change anything on wifi, check if reboot resolves it. check logcat why wifi crashes

@sekkit the boot.img shouldn't change anything on wifi, check if reboot resolves it. check logcat why wifi crashes
nyanadassana commented 2018-12-15 15:32:07 -08:00 (Migrated from github.com)

Wifi working in my place.
@HappyZ I am using Mac, it's seems adb can't connect to the device any more, when I type "adb devices" no answer. I even tried restore-bootimg with the "boot-1.4.01.16100-mod-happyz-181118.img" .no adb convection.

Wifi working in my place. @HappyZ I am using Mac, it's seems adb can't connect to the device any more, when I type "adb devices" no answer. I even tried restore-bootimg with the "boot-1.4.01.16100-mod-happyz-181118.img" .no adb convection.
nyanadassana commented 2018-12-15 15:59:26 -08:00 (Migrated from github.com)

I tried with your old version of restore-bootimg, which take about 20 mins to flash, works now.

I tried with your old version of restore-bootimg, which take about 20 mins to flash, works now.
nyanadassana commented 2018-12-15 16:00:55 -08:00 (Migrated from github.com)

...
[sys.usb.config]: [acm,hid,adb]
...
[sys.usb.state]: [acm,hid,adb]

[persist.sys.usb.config]: [acm,hid,adb] ... [sys.usb.config]: [acm,hid,adb] ... [sys.usb.state]: [acm,hid,adb]
nyanadassana commented 2018-12-15 16:28:04 -08:00 (Migrated from github.com)

Second img boot-1.4.01.16100-mod-181214-205902, after reboot, a drive named Untitled shows, inside have a file a coped into it previously: boot.img.bak. adb shell getprop says this:
...
[persist.sys.usb.config]: [acm,hid,adb]
...
[sys.usb.config]: [acm,hid,adb]
...
[sys.usb.state]: [acm,hid,adb]
...

Second img boot-1.4.01.16100-mod-181214-205902, after reboot, a drive named Untitled shows, inside have a file a coped into it previously: boot.img.bak. adb shell getprop says this: ... [persist.sys.usb.config]: [acm,hid,adb] ... [sys.usb.config]: [acm,hid,adb] ... [sys.usb.state]: [acm,hid,adb] ...
HappyZ commented 2018-12-15 17:36:10 -08:00 (Migrated from github.com)

I tried with your old version of restore-bootimg, which take about 20 mins to flash, works now.

Can you let me know what you did before which isn't working?
If you followed the newer script instructions, is it not booting up (with either boot.img I shared)?

> I tried with your old version of restore-bootimg, which take about 20 mins to flash, works now. Can you let me know what you did before which isn't working? If you followed the newer script instructions, is it not booting up (with either boot.img I shared)?
nyanadassana commented 2018-12-15 19:06:44 -08:00 (Migrated from github.com)

If I follow the new script instructions, the flash only takes 1 second.
It will boot (with the 1gb new system.img), just can't get adb working.(with both of your boot.img)

If I follow the new script instructions, the flash only takes 1 second. It will boot (with the 1gb new system.img), just can't get adb working.(with both of your boot.img)
HappyZ commented 2018-12-17 13:27:58 -08:00 (Migrated from github.com)

ok this sounds like the boot.img isn't successfully flashed in your device with the new mass storage method. It probably is due to you didn't eject the disk so DPT diagnosis cannot mount the drive correctly. I'll either enhance the script later to correctly identify if that happens, or just make a flashable pkg later.

ok this sounds like the boot.img isn't successfully flashed in your device with the new mass storage method. It probably is due to you didn't eject the disk so DPT diagnosis cannot mount the drive correctly. I'll either enhance the script later to correctly identify if that happens, or just make a flashable pkg later.
ziegfeld commented 2018-12-20 14:29:25 -08:00 (Migrated from github.com)

Tried this, works as magic!
Good thing about this boot.img is:
both adb and mass storage works at the same time!

When you hit "unmount mass storage", the adb still works.

Tried this, works as magic! Good thing about this boot.img is: **both adb and mass storage works at the same time!** When you hit "unmount mass storage", the adb still works.
ZenCooper commented 2018-12-22 06:54:45 -08:00 (Migrated from github.com)

This is probably dumb question but...

When I copy a file to this mass storage area, where is it stored on actual Android partition? I want to copy some ROM files for an emulator app to /sdcard via mass storage.

This is probably dumb question but... When I copy a file to this mass storage area, where is it stored on actual Android partition? I want to copy some ROM files for an emulator app to /sdcard via mass storage.
ZenCooper commented 2018-12-22 06:57:48 -08:00 (Migrated from github.com)

My understanding is that "normal" boot mode and "diagnosis" boot mode works on separate OS partition but this "untitiled" mass storage seems to share same data area...

My understanding is that "normal" boot mode and "diagnosis" boot mode works on separate OS partition but this "untitiled" mass storage seems to share same data area...
ziegfeld commented 2018-12-22 08:06:11 -08:00 (Migrated from github.com)

@ZenCooper yes same place.
/tmp/updater

@ZenCooper yes same place. /tmp/updater
ultraboy commented 2018-12-22 09:08:23 -08:00 (Migrated from github.com)

Newest img do not work on my win10 pro 1809. Can see a usb stick, but it is gray. Win+R, then type d:/, it tell me to insert a disc..

Newest img do not work on my win10 pro 1809. Can see a usb stick, but it is gray. Win+R, then type d:/, it tell me to insert a disc..
ultraboy commented 2018-12-22 09:11:01 -08:00 (Migrated from github.com)

Also, I am using #37 system image.

Also, I am using #37 system image.
HappyZ commented 2018-12-22 16:10:30 -08:00 (Migrated from github.com)

Thanks @ultraboy, can you open up a new issue instead of this one. You can refer to this issue.

And regarding the usb stick being gray, I think it is related to windows specific issues. I have not used windows for a while, but have you tried disconnect, reboot, and retry? If it happens consistently, it may be 1) windows cannot recognize the format of the usb drive (not very likely.. but may happen); or 2) the drive has bad sectors and cannot be correctly recognized. Usually 2) requires reformatting. But I don't have the device in hand, so I can't precisely tell you about the command.

Thanks @ultraboy, can you open up a new issue instead of this one. You can refer to this issue. And regarding the usb stick being gray, I think it is related to windows specific issues. I have not used windows for a while, but have you tried disconnect, reboot, and retry? If it happens consistently, it may be 1) windows cannot recognize the format of the usb drive (not very likely.. but may happen); or 2) the drive has bad sectors and cannot be correctly recognized. Usually 2) requires reformatting. But I don't have the device in hand, so I can't precisely tell you about the command.
Sign in to join this conversation.
No description provided.