Moved the exploit from UI thread to its own thread (among other changes)#8
Moved the exploit from UI thread to its own thread (among other changes)#8natinusala wants to merge 4 commits intoDavidBuchanan314:masterfrom
Conversation
… - also fixed some warnings
|
Thanks for the contribution :) First commit looks good. I don't really like the log messages being stored in |
| editor.commit(); | ||
| Logger.log(this, "[*] Payload reset to default (fusee.bin)"); | ||
| editor.remove(PREFERENCE_PAYLOAD_NAME); | ||
| editor.apply(); |
There was a problem hiding this comment.
Are you sure apply() works properly? I think I had issues with synchronisation between Activities when I tried it, although maybe that is fixed with MODE_MULTI_PROCESS. (i.e. the changes would not get picked up by the usb handler activity until the app was relaunched)
There was a problem hiding this comment.
I thought about that when editing the code - I will put commit back
|
Well it's as you want - I don't know if you saw but Android Studio replaces the |
|
@natinusala ah ok, in that case the strings are good :) I'm kinda busy right now, but I'll get this tested and merged soon |
|
If I am going to make changes should I pull from this PR or work on the master? |
@DavidBuchanan314 How was "soon" going? It's been 1.5 years, and some merge conflicts! |
|
Probably more interesting things for them came up, and this app gets the job done alright enough to move along the exploit chain. If you want to work on it fork it, and start your own builds. Github project evolution pretty much c'est la vie. |
I moved the exploit to an
AsyncTaskinUSBHandlerActivity- it uses a weak reference to the activity to prevent leaks.This unlocks the UI thread and allowed me to add a little bit of magic when running the exploit
(∩ ͡° ͜ʖ ͡°)⊃━☆゚
Be warned that I noticed an exploit success rate of ~50% when using the app (failures to send payload, black screens, corrupted payloads), I don't know if it comes from the changes I made or not.
I also took the liberty to :
Loggerintent action string for instance)I let you try my fork and tell me what you think of those changes ! Don't forget to update the README if merging.