Neither in and of themselves is illegal. What is illegal is trying to carry certain cutting or stabbing objects onto the plane.

If the cell phone has a knife, scalpel blade, P38, or wire saw in it, they would definitely bust you big time because they would assume you were trying to circumvent their security measures by hiding these items in a gutted cell phone and did not declare them as you were boarding.

Bountyhunter