In each case the permanganate oxidises the most electron rich ring.
In the nitro-substituted case, that is the unsubstituted ring, probably first at the position alpha to the nitro group, forming a phenol, then para to that to a quinone but permanganate keeps on chewing until the phthalic acid is formed.
In the aniline case the most electron rich ring is the one with the NH2 attached. Oxidation of anilines by acid permanganate give a polymer called "aniline black" Wiki link. Though I can't find a reaction specific to 1-Naphthylamine other than one that documents the destruction of it by sulfuric/permanaganate without identifying the products here. The site of first oxidation is p to the aniline. This creates a reactive intermediate which is attacked by a second aniline as the first step of polymer formation.