Skip to content

Moved project home to ~, fixed a keyboard bug to allow pasting content in Terminal, added support for Navigation through file manager (Read the below content for more information) - #430

Open
IQ-HARRY7 wants to merge 5 commits into
AndroidCSOfficial:devfrom
IQ-HARRY7:TEST
Open

IQ-HARRY7 wants to merge 5 commits into
AndroidCSOfficial:devfrom
IQ-HARRY7:TEST

Conversation

@IQ-HARRY7

@IQ-HARRY7 IQ-HARRY7 commented Nov 30, 2026 •

Copy link
Copy Markdown

this merge includes A few bug fixes & basic features implementation, with safe guard.

1. Private Storage Projects and Repository Cloning

* Environment.java
  - Point PROJECTS_DIR to private $HOME/ACSProjects
  (AT_ACSHOME_PROJECTS) so
    scripts and native binaries run without shared-storage noexec
    failures.
  - Keep LEGACY_PROJECTS_DIR at
  /storage/emulated/0/AndroidIDEProjects, add
    isLegacyProjectsPath(), and attempt best-effort symlinks in
    trySymlinkToLegacyProjects() while ignoring FUSE/sdcardfs EPERM
    errors.
* WizardPreferences.kt, base.kt, AtcWizardDialog.kt, MainFragment.kt
  - Migrate stale default /storage/emulated/0/AndroidIDEProjects save
  paths to
    PROJECTS_DIR without altering custom user folders.
  - Allow Native Game projects under any canonical path inside
  Environment.HOME.
  - Consolidate project listing in
  MainFragment.loadAvailableProjects() to scan
    both PROJECTS_DIR and LEGACY_PROJECTS_DIR, deduplicated by
    canonical path.
* MainFragment.kt, InitFragment.kt, GitManager.kt, GitViewModel.kt,
IDEDocumentsProvider.java
  - Normalize trailing slashes and repo names in
  MainFragment.doClone(), block
    non-empty target overwrites, clean up newly created partial dirs
    on error
    or cancel, and add cloned projects to recent projects.
  - Validate clone URLs and target dirs in GitManager.clone(), attach
    credentials only when provided, and surface lastError in
    InitFragment.
  - Guard null listFiles() arrays in IDEDocumentsProvider.

2. Unrestricted File Navigator

* FileBrowserActivity.kt
  - Always attach FileBrowserFragment even when shared-storage
  permission is
    denied so private $HOME storage stays browsable.
* FileBrowserNavigationHelper.kt, FileBrowserFragment.kt,
FileBrowserDialogFragment.kt
  - Allow Back/Up navigation all the way to /, replacing rootPath
  traps.
  - Centralize directory reading, parent traversal, Quick Jump
  destinations, and
    the Go to Path dialog for both the main browser and copy/move
    dialog.
  - Guard copy/move actions against non-writable destinations and
  fixed
    directory-prefix containment checks.
* fragment_file_browser.xml, dialog_file_browser.xml, menu_main.xml
  - Add Quick Jump and Go to Path controls plus clickable path
  headers.
  - Replace silent failure toasts on protected directories like /data
  with a
    custom empty/protected panel explaining Android non-root limits
    with Go Up,
    App Home, and Enter Path buttons.

3. Terminal Input and Clipboard Paste

* activity_termux.xml, frag_terminal.xml
  - Remove android:autofillHints="password" from TerminalView
  layouts.
* TerminalFragment.kt (IDE sidebar) and TerminalFragment.java (editor
bottom sheet)
  - Disable forced shouldEnforceCharBasedInput() password input mode
  and set
    onLongPress() = false so long-press text selection and Copy/Paste
    work.
  - Implement onCopyTextToClipboard() and onPasteTextFromClipboard()
  via
    ShareUtils and TerminalEmulator.paste(), wire extra-key PASTE,
    and request
    focus before showSoftInput().

4. Multi-Line Keyboard Clipboard Paste

* TerminalView.java, TerminalEmulator.java
  - Route multi-line, tab, and ESC/C1 control commits (length > 1)
  from
    sendTextToTerminal() and KeyEvent.ACTION_MULTIPLE through
    TerminalEmulator.paste() so commands buffer instead of executing
    line-by-line.
  - Preserve single newline Enter commits and avoid ClipboardManager
  polling on
    regular typing (preventing Android 12+ spurious paste
    notifications).
  - Handle performContextMenuAction(), KeyEvent.KEYCODE_PASTE, and
  API 34+
    replaceText() via Api34TerminalInputConnection, and guard paste()
    on
    null or empty text.

5. Toolchain, Build, and CI Signing Safeguards

* Environment.java, EditorBuildEventListener.kt,
BaseEditorActivity.kt, buildGradle.kt
  - Replace hardcoded NDK 28.2.13676358 paths with dynamic version
  discovery via
    Environment.getInstalledNdkVersions(), isNdkInstalled(), and
    getHighestInstalledNdkVersion().
* FBProperties.kt, GCProperties.kt, IPackageInstaller.kt,
ToolsManager.java,
  ConnectionManager.kt, GradleBuildService.kt, ToolingServerRunner.kt
  - Convert FBProperties and GCProperties userProject fields to
  dynamic getters
    with userProjectOrNull fallbacks.
  - Replace unbounded tar -xvf output lists in IPackageInstaller with
  tar -xf
    and bounded diagnostic buffers plus empty-dir cleanup on failure.
  - Add missing binary checks and exit/error propagation across
  ToolsManager,
    ToolingServerRunner, GradleBuildService, and ConnectionManager.
* core/app/build.gradle.kts, SigningConfigPlugin.kt,
SigningKeyProperties.kt, .gitignore
  - Validate keystore unlock and alias before using custom signing,
  ignore
    blank secret values, and fall back to Android debug signing when
    custom
    keystore credentials are absent or rejected.
  - Keep local current-idea.md untracked in .gitignore.

Verification:
* Commits on TEST: 58b95eb23, e9284b379, 596701296, 6ecb52d53 (36
files)
* GitHub Actions release build passed on branch TEST after commit
6ecb52d53
* On-device runtime checks pending for private-storage execution,
File Navigator
  root/protected-folder UX, and multi-line terminal clipboard paste

@IQ-HARRY7

Copy link
Copy Markdown
Author

Hey @Mohammed-Baqer-null
Checkout this merge & mearge this.

It contains a few bug fixes & project improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant