AeThex-OS/android/app/src/main/java/com/aethex/os/AppInfo.java
MrPiglr b3c308b2c8 Add functional marketplace modules, bottom nav bar, root terminal, arcade games
- ModuleManager: Central tracking for installed marketplace modules
- DataAnalyzerWidget: Real-time CPU/RAM/Battery/Storage widget (unlocked by Data Analyzer module)
- BottomNavBar: Navigation bar for Projects/Chat/Marketplace/Settings
- RootShell: Real root command execution utility
- TerminalActivity: Full root shell with neofetch, sysinfo, real Linux commands
- Terminal Pro module: Adds aliases (ll, la, h), command history
- ArcadeActivity + SnakeGame: Pixel Arcade module unlocks retro games
- fade_in/fade_out animations for smooth transitions
2026-02-18 22:03:50 -07:00

50 lines
1.7 KiB
Java

package com.aethex.os;
import android.graphics.drawable.Drawable;
public class AppInfo {
private String name;
private int icon;
private String appId;
private Drawable drawableIcon; // For real Android app icons
private String packageName; // For real Android apps
private boolean isSystemApp; // AeThexOS built-in vs third-party
private boolean isPinned;
private boolean isHidden;
// Built-in AeThexOS app
public AppInfo(String name, int icon, String appId) {
this.name = name;
this.icon = icon;
this.appId = appId;
this.isSystemApp = true;
this.isPinned = false;
this.isHidden = false;
}
// Real Android app from PackageManager
public AppInfo(String name, Drawable drawableIcon, String appId, String packageName) {
this.name = name;
this.drawableIcon = drawableIcon;
this.appId = appId;
this.packageName = packageName;
this.icon = 0;
this.isSystemApp = false;
this.isPinned = false;
this.isHidden = false;
}
public String getName() { return name; }
public int getIcon() { return icon; }
public String getAppId() { return appId; }
public Drawable getDrawableIcon() { return drawableIcon; }
public String getPackageName() { return packageName; }
public boolean isSystemApp() { return isSystemApp; }
public boolean hasDrawableIcon() { return drawableIcon != null; }
public boolean isPinned() { return isPinned; }
public void setPinned(boolean pinned) { this.isPinned = pinned; }
public boolean isHidden() { return isHidden; }
public void setHidden(boolean hidden) { this.isHidden = hidden; }
}