My question involves landlord-tenant law in the State of: California
I'm a subtenant who is renting a room from the master tenant in a 2-bedroom unit.
The master tenant recently asked me to move out within two weeks for having my room messy. My room certainly isn't the cleanest room in the world but I don't think it's that messy. I never ate food or drank anything other than water in my room, so there really isn't much of serious mess here. I have some papers, package boxes, and an empty water bottle in my room and other than vacuuming, that's about everything that needs to be cleaned up.
Now, the thing is that I always keep my door closed and never gave her a permission to enter my room. The fact that she knows the current condition of my room suggests that she may have entered my room without notifying me while I wasn't home because it's impossible see inside the room unless you enter the room or look directly at it through the window. In fact, I was away for few days (I told her that I'll be out of town before leaving) and when I came back, I noticed that the position of my window has changed, which pretty much means that she has entered my room while I was away.
I always paid my rent on time and always cleaned after myself after using common areas, such as bathroom and kitchen. I also washed my dishes right after eating, didn't do much of cooking in the first place, and haven't caused any trouble. In fact, I don't even smoke or drink. When the master tenant's boyfriend stayed in the unit for several weeks without notifying me or asking for my permission, I didn't say anything about it because I didn't want to go through any argument. Now that she did this to me, I even somewhat feel betrayed.
Can the master tenant do this to me? And how should I react?

