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?