litesuits/android-common
Android Common Utils or Helper. Such as Log, Averager, Base64, Check, FlashLight, KeyguardLock, LogReader, Network, SilentInstaller, TimeAverager, TimeCounter, Toastor, WakeLock, ScreenReceiver, SmsReceiver, PhoneReceiver, NotificationService, AndroidUtil, AppUtil, BitmapUtil, ByteUtil, ClassUtil, DialogUtil, FieldUtil, FileUtil, HexUtil, MD5Util, NotificationUtil, NumberUtil, PackageUtil, RandomUtil, ShellUtil, TelephoneUtil, VibrateUtil, IOUtils, FileUtils, AsyncExecutor, etc. 通用性强,纯洁简单,体积不到50K!其中包括bitmap处理,文件操作,加密存储器,shell命令,静默安装,计数器,均值器,吐司,日志,校验,提示,网络监测等基础功能,以及一些Base64、MD5、Hex、Byte、Number、Dialog、Filed、Class、Package、Telephone、Random等工具类。
- Repository: https://github.com/litesuits/android-common
- Commit:
4aa89fdf605c7f9d1f5a50f97212f1d4756450ad - Generated: 2026-11-13T23:28:06+00:00
- Scorer 0.1.0, scoring prov-4+qual-2+sec-2, report schema v2
Scores
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 0 | none-detected | 58% | 100% |
| Code quality | 50 | poor | 90% | 100% |
| Security | 81 | adequate | 85% | 100% |
AI provenance
No AI attribution or AI-consistent velocity signals detected.
-
Explicitly attributed share (lower bound): 0.0%
-
Unattributed share in AI-consistent velocity bursts: 0.0%
-
Estimated AI-generated share: 0.0%
-
Stylometry index: 0.90 per 1,000 lines (narrated steps 0, placeholders 0, assistant phrasing 6, emoji 0). Reported as a signal, not scored.
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2014-11 | 653 | 0% |
| 2014-12 | 2,858 | 0% |
| 2015-01 | 59 | 0% |
| 2015-03 | 596 | 0% |
| 2015-04 | 1,099 | 0% |
| 2015-06 | 227 | 0% |
| 2015-08 | 165 | 0% |
| 2015-12 | 373 | 0% |
| 2016-03 | 45 | 0% |
| 2016-08 | 14,139 | 0% |
| 2017-03 | 3 | 0% |
| 2017-05 | 106 | 0% |
Evidence
- assistant-style phrasing left in code: * not skip as many bytes as requested (most likely because of reaching EOF). (app/src/main)
- assistant-style phrasing left in code: * not skip as many characters as requested (most likely because of reaching EOF). (app/src/main)
- assistant-style phrasing left in code: * not read as many characters as requested (most likely because of reaching EOF). (app/src/main)
- assistant-style phrasing left in code: * not read as many characters as requested (most likely because of reaching EOF). (app/src/main)
- assistant-style phrasing left in code: * not read as many bytes as requested (most likely because of reaching EOF). (app/src/main)
- assistant-style phrasing left in code: * not read as many bytes as requested (most likely because of reaching EOF). (app/src/main)
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is poor: test-to-source ratio 0.00, no CI test run detected; 11% of function code in complex or long functions; 15% duplicated lines. Weakest area: testing.
| Area | Score |
|---|---|
| Complexity (lizard) | 71 |
| Duplication | 42 |
| Code smells (Opengrep) | 100 |
| Tests and CI | 0 |
| Documentation | 65 |
| Type safety | n/a |
| Process (Scorecard review/maintenance) | n/a |
- Functions: 661; mean complexity 2.5, 90th percentile 5; 8 complex and 3 long functions
- Duplicated lines: 14.6% of 8,738 compared
- Tests: 0 test lines for 13,350 source lines (ratio 0.00); CI test commands: none detected; 0% of recent source commits also change tests
- Docs missing or thin: contributing, changelog
Most complex functions:
- SilentInstaller::installSilent in app/src/main/java/com/litesuits/common/assist/SilentInstaller.java: complexity 47, 129 lines
- Decoder::process in app/src/main/java/com/litesuits/common/assist/Base64.java: complexity 33, 119 lines
- FilenameUtils::doNormalize in app/src/main/java/com/litesuits/common/io/FilenameUtils.java: complexity 31, 78 lines
- Encoder::process in app/src/main/java/com/litesuits/common/assist/Base64.java: complexity 30, 103 lines
- FilenameUtils::getPrefixLength in app/src/main/java/com/litesuits/common/io/FilenameUtils.java: complexity 26, 52 lines
Security
Security posture is adequate: 1 high-severity SAST findings. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 97 |
| Vulnerable dependencies (OSV) | n/a |
| CI workflows (zizmor) | n/a |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | n/a |
- Posture checks passed: lockfiles; missing: security policy, dependency updates, signed commits
Top findings
| Severity | Finding | Location |
|---|---|---|
| high | opengrep/java.lang.security.audit.command-injection-process-builder: A formatted or concatenated string was detected as input to a ProcessBuilder call. This is dangerous if a variable is controlled by user input and could result in a command injection. Ensure your variables are not controlled by users or sufficiently sanitized. [confidence low] |
app/src/main/java/com/litesuits/common/utils/CpuUtil.java:159 |
| medium | opengrep/java.lang.security.audit.object-deserialization: Found object deserialization using ObjectInputStream. Deserializing entire Java objects is dangerous because malicious actors can create Java object streams with unintended consequences. Ensure that the objects being deserialized are not user-controlled. If this must be done, consider using HMACs to [confidence low] |
app/src/main/java/com/litesuits/common/utils/ByteUtil.java:22 |
| medium | opengrep/java.lang.security.audit.crypto.weak-random: Detected use of the functions Math.random() or java.util.Random(). These are both not cryptographically strong random number generators (RNGs). If you are using these RNGs to create passwords or secret tokens, use java.security.SecureRandom instead. [confidence low] |
app/src/main/java/com/litesuits/common/utils/RandomUtil.java:145 |
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 13,350; test lines: 0
| Language | Lines |
|---|---|
| Java | 13,350 |