phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 660 forks source link

usb file transfer does not work #1875

Open rogergithubbing opened 3 years ago

rogergithubbing commented 3 years ago

Hello, I'm using the latest version, but I cannot set the usb to file transfer because all the options are greyed out If I set the usb debug to on, they seem to enable, but when I click on the "file transfer" radiobutton, it automatically deselects itself.

The bluetooth is also not working.

My tablet has these specifications: Allwinner A50 (Cortex A7 4 cores 1,2 GHz) 1 GB RAM 16 GB ROM screen IPS 8" 1280x800 came with Android 8.1 Go

Thanks !

haruki-taka8 commented 3 years ago

Which variant of GSI are you using? You can try the VNDK variant as it comes with more legacy support towards Android 8.

rogergithubbing commented 3 years ago

Which variant of GSI are you using? You can try the VNDK variant as it comes with more legacy support towards Android 8.

Could you explain your option in detail ? I don't know which file to choose: What I know so far is that the maximum size for the system file should not be greater than the partition's size, that is 1207959552 bytes, and I was looking for a version , greater than android 8 if possible. If not, which file from which version should I choose and why ? I've been told that the only files that can work with that tablet are the ones with "aonly", because those with "ab" or others will not work.

phhusson commented 3 years ago

@rogergithubbing you're correct, only aonly variant works, ignore what @haruki-taka8 said

As for your question, uh that's a tough one. Maybe doing setprop persist.sys.usb.config mtp,adb could help? But my recommendation would be to transfer files through adb

rogergithubbing commented 3 years ago

Which variant of GSI are you using? You can try the VNDK variant as it comes with more legacy support towards Android 8.

I don't understand the question about GSI; I've tried to flash the latest aosp v11 and 10 versions. And about the "VNDK variant", what is that and how can I obtain it ? I Should then flash only Android 8 versions and not try to upgrade the tablet ?

rogergithubbing commented 3 years ago

@rogergithubbing you're correct, only aonly variant works, ignore what @haruki-taka8 said

As for your question, uh that's a tough one. Maybe doing setprop persist.sys.usb.config mtp,adb could help? But my recommendation would be to transfer files through adb

Merci Pierre ! I'll try that; But why are you recommending to transfer files trough adb instead of the "normal" usb transfer ?

rogergithubbing commented 3 years ago

@rogergithubbing you're correct, only aonly variant works, ignore what @haruki-taka8 said

As for your question, uh that's a tough one. Maybe doing setprop persist.sys.usb.config mtp,adb could help? But my recommendation would be to transfer files through adb

Tried, but didn't work: The same behaviour happens: When I click on the "file transfer" it immediately turns back to usb charging"... no worries, I'll do the transfers by putting in an sd card xd