SANTA CLARA -- Aldon Smith savored every minute of the 49ers' final minicamp practice Thursday, whether he was pass-rushing against Joe Staley, lining up on special-teams drills or congratulating Bruce Miller on a benign carry.
What comes next for the 49ers linebacker won't be as enjoyable.
Smith will be sentenced July 25 in Santa Clara County Superior Court after pleading no contest last month to weapons and drunken driving charges.
"I don't know what's going to happen," Smith said at his locker. "I'm going to enjoy my month. I'll work out and stay here."
Smith, who also plans to spend time with his 1-year-old son, endorsed coach Jim Harbaugh's advice to the team on staying safe before reconvening July 23 for training camp.
"Beware with whom you associate," Harbaugh said, in relaying his end-of-minicamp speech. "It's very important to know your surroundings.
"Friend or foe? There always seem to be a foe present. Get in a good football position and be ready for anything that comes at you. See around corners, see under doors and anticipate. But mainly surround yourselves around good people."
Smith is one of at least five 49ers players who've been involved in police investigations over the past year. And Smith didn't feel as if Harbaugh's advice was solely directed at him.
"He was talking to everybody because anybody can be in a situation," Smith said.
Harbaugh's words resonated with quarterback Colin Kaepernick, who was cleared last week after a Miami police investigation into an April 1 incident with a belligerent woman at his hotel suite.
"Since I really started playing (in 2012), it's something I've been more aware of, and especially in the past few months," Kaepernick said of off-field dangers. "It's something that obviously you have to be very aware of."
Smith's off-field issues, including an April arrest on suspicion of making a false bomb threat at Los Angeles International Airport, could lead to a suspension from the league.
Will Smith be back on the practice field for the 49ers' first session July 24, on the eve of his court sentencing? "That's to be determined," Harbaugh answered.
Harbaugh praised Smith, among several others, for the minicamp effort, stating: "Aldon was dominant today. He had a lot more reps yesterday, and we weren't able to block him."
Said Smith: "It was a good camp. We all look good, even the new guys."
"I want to see this offense do whatever it has to do to win games. That's really what's most important," Kaepernick said. "But I'm always good to throw a few more balls."
Kaepernick also was good with his contract's structure that's been widely regarded as team-friendly, since it didn't give Kaepernick more than $13 million guaranteed up front.
"The things that aren't set up like those (other quarterbacks') contracts are because we wanted them that way so we could sign other players," Kaepernick said. "It was very deliberate by my agents, the organization and myself that we wanted things done this way, so we could keep a solid team here."
Crabtree has looked fully recovered from last year's Achilles tear. "At the end of last year he still wasn't 100 percent," Kaepernick said. "He has a lot more burst to him now. Looks really good."
Three training-camp sessions will be held next door at Levi's Stadium and open to the public; those dates are tentative.
Purdy: Kaepernick making minicamp impression. PAGE 6