How use any android project source code clever way

How use any android project source code clever way

I have some Source code of the full android project which already published in the play store. how can I change the source code so that I don’t get copyright issue or play store policy violation?

https://support.google.com/googleplay/android-developer/answer/10355942?hl=en

Read the policies before submitting So that you can make changes it depends on code or work you have done.
If you have your own logic then it wont affect you