kgamecarter / ChameleonMiniApp

ChameleonMini Android Client
GNU General Public License v3.0
24 stars 5 forks source link

Android 10 Crash #8

Closed In3x0rabl3 closed 5 years ago

In3x0rabl3 commented 5 years ago

After update to android 10 the application will crash when attempting to connect the mini. Tested on Pixel 3 and not sure if anyone else is having this issue. The Mini is able to connect to Chameleon Mini Live Debugger Application after update but oddly not ChameleonMiniApp.

kgamecarter commented 5 years ago

I tested Pixel 2 crash too. It's maybe usb serial library problem.

https://github.com/altera2015/usbserial/issues/19

In3x0rabl3 commented 5 years ago

Not sure if you have used this apk (ChameleonLiveDebugger) but it seems to be working on 10. Not sure if you can alter your code like their application? https://github.com/maxieds/ChameleonMiniLiveDebugger/search?q=usb&unscoped_q=usb Not really a java developer but i'm good with python lol

On Sat, Sep 14, 2019 at 1:48 PM kgame notifications@github.com wrote:

I tested Pixel 2 crash too. It's maybe usb serial library problem.

altera2015/usbserial#19 https://github.com/altera2015/usbserial/issues/19

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kgamecarter/ChameleonMiniApp/issues/8?email_source=notifications&email_token=ANF7D3BMIJCGQUEORNWI3DTQJUWW3A5CNFSM4IWWA7R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6XBZVQ#issuecomment-531504342, or mute the thread https://github.com/notifications/unsubscribe-auth/ANF7D3HYBGF6SH6FQDORVETQJUWW3ANCNFSM4IWWA7RQ .

In3x0rabl3 commented 5 years ago

https://github.com/felHR85/UsbSerial Maybe this repo will work? I can try it out

On Sat, Sep 14, 2019 at 4:10 PM John Wotton jwotton91@gmail.com wrote:

Not sure if you have used this apk (ChameleonLiveDebugger) but it seems to be working on 10. Not sure if you can alter your code like their application? https://github.com/maxieds/ChameleonMiniLiveDebugger/search?q=usb&unscoped_q=usb Not really a java developer but i'm good with python lol

On Sat, Sep 14, 2019 at 1:48 PM kgame notifications@github.com wrote:

I tested Pixel 2 crash too. It's maybe usb serial library problem.

altera2015/usbserial#19 https://github.com/altera2015/usbserial/issues/19

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kgamecarter/ChameleonMiniApp/issues/8?email_source=notifications&email_token=ANF7D3BMIJCGQUEORNWI3DTQJUWW3A5CNFSM4IWWA7R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6XBZVQ#issuecomment-531504342, or mute the thread https://github.com/notifications/unsubscribe-auth/ANF7D3HYBGF6SH6FQDORVETQJUWW3ANCNFSM4IWWA7RQ .

kgamecarter commented 5 years ago

Yes. The usb serial lib that I used is ref felHR85/UsbSerial.

https://github.com/altera2015/usbserial/blob/cfc69714ef15a0afb435e8fe635172fe8c580c5e/android/build.gradle#L50

Maybe try 6.1.0 version will work.

In3x0rabl3 commented 5 years ago

Yea maybe it will work.

Do I just have to modify the gradle files?

On Sat, Sep 14, 2019 at 5:18 PM kgame notifications@github.com wrote:

Yes. The usb serial lib that I used is ref felHR85/UsbSerial.

https://github.com/altera2015/usbserial/blob/cfc69714ef15a0afb435e8fe635172fe8c580c5e/android/build.gradle#L50

Maybe try 6.1.0 version will work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kgamecarter/ChameleonMiniApp/issues/8?email_source=notifications&email_token=ANF7D3DQTJFXMN7WR7XAXA3QJVPL3A5CNFSM4IWWA7R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6XFERA#issuecomment-531518020, or mute the thread https://github.com/notifications/unsubscribe-auth/ANF7D3HNVDMDNFLMRGVI6DLQJVPL3ANCNFSM4IWWA7RQ .

kgamecarter commented 5 years ago

I add detect usb pid, vid as default app. It can work android 10. But still crash when unplug usb line. will release 0.3.11

In3x0rabl3 commented 5 years ago

Awesome at least it's a fix for now

On Sat, Sep 14, 2019 at 6:44 PM kgame notifications@github.com wrote:

I add detect usb pid, vid as default app. It can work android 10. But still crash when unplug usb line. will release 0.3.11

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kgamecarter/ChameleonMiniApp/issues/8?email_source=notifications&email_token=ANF7D3B37CIIIGAK5C3MCXLQJVZMPA5CNFSM4IWWA7R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6XGDZQ#issuecomment-531522022, or mute the thread https://github.com/notifications/unsubscribe-auth/ANF7D3GQXM72BOQT2HIJHLDQJVZMPANCNFSM4IWWA7RQ .

In3x0rabl3 commented 5 years ago

Working on pixel 3 just tested. Same issue you experienced with the crash after disconnecting.

On Sat, Sep 14, 2019 at 8:19 PM John Wotton jwotton91@gmail.com wrote:

Awesome at least it's a fix for now

On Sat, Sep 14, 2019 at 6:44 PM kgame notifications@github.com wrote:

I add detect usb pid, vid as default app. It can work android 10. But still crash when unplug usb line. will release 0.3.11

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kgamecarter/ChameleonMiniApp/issues/8?email_source=notifications&email_token=ANF7D3B37CIIIGAK5C3MCXLQJVZMPA5CNFSM4IWWA7R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6XGDZQ#issuecomment-531522022, or mute the thread https://github.com/notifications/unsubscribe-auth/ANF7D3GQXM72BOQT2HIJHLDQJVZMPANCNFSM4IWWA7RQ .

kgamecarter commented 5 years ago

fix all android 10 crash problem. release 0.3.12

In3x0rabl3 commented 5 years ago

awesome!!

what was the issue?

On Sun, Sep 15, 2019 at 11:16 PM kgame notifications@github.com wrote:

fix all android 10 crash problem. release 0.3.12

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kgamecarter/ChameleonMiniApp/issues/8?email_source=notifications&email_token=ANF7D3EXPDHNBP32QO2DTALQJ4CDBA5CNFSM4IWWA7R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6YB4HQ#issuecomment-531635742, or mute the thread https://github.com/notifications/unsubscribe-auth/ANF7D3ETFH7F333AGWCFGSTQJ4CDBANCNFSM4IWWA7RQ .

kgamecarter commented 5 years ago

https://github.com/altera2015/usbserial/pull/21/files https://developer.android.com/reference/android/hardware/usb/UsbDevice.html#getSerialNumber()

UsbDevice.getSerialNumber() before acquire USB permission will throw SecurityException on Android 10.