Skip to content

Creating a PureKFD package

Lrdsnow edited this page Sep 10, 2023 · 4 revisions

THIS WILL MOST LIKELY BE REWRITTEN FOR v4

Repo config (add this to the packages array) (this will stay in v4):

{
   "name": "Test",
   "bundleid": "uwu.lrdsnow.test",
   "author": "Lrdsnow",
   "description": "Test",
   "long_description": "Test",
   "version": "1.0",
   "icon": "icons/PlaceHolderIcon.png",
   "banner":"icons/PlaceHolderBanner.png",
   "path": "pkgs/uwu.lrdsnow.test.purekfd",
   "screenshots":["icons/PlaceHolderScreenshot.png"]
}

info.json (In package):

{
  "version" : "1.0",
  "author" : "Lrdsnow",
  "name" : "Test",
  "bundleID" : "uwu.lrdsnow.test"
}

tweak.json (In Package):

{
  "operations" : [],
  "spec" : "1.0"
}

spec?: Only required for picasso, purekfd does not use this
operations:Array: Operations for the package, Possible operations:

  • springboardColor: Changes springboard colors, sub-options:
    • springboardElement:String: Chooses what element to change, Possible options:
      • bannerbg: Changes Notification Banner Background
      • bannershadow: Changes Notification Banner Shadow Background
      • ccbg: Changes Control Center Background
      • cctile: Changes Control Center Tile Background
      • dock: Changes Dock Background
      • folder: Changes folder icon background
      • folderbg: Changes folder background
      • libraryFolder: Changes App Library folder background
      • switcher: Changes App Switcher Color
  • replacing: Replaces a file, sub-options:
    • replacementFileName:String: Path to replacement file
    • replacementFileBundled:Bool: Makes replacementFileName Relative to the package folder
    • originPath:String: Target file name
  • resset: Sets the resolution
  • accentOperation: Sets the Accent
  • supervise: Supervises the device
  • changeregion: Changes the device region
  • whitelist: Runs Whitelist
  • clearsms: Clears SMS Cache
  • dynamicIsland: Sets subtype to 2796
  • fixdynamicIsland: Sets subtype to screen hight
  • removing: Hides a file, sub-options:
    • originPath:String: Path to file to hide

prefs.json (In Package):

{
  "preferences" : [
      {
        "valueType" : "picker",
        "key" : "picker",
        "options": ["test1", "test2", "test3"],
        "optionValues": [0, 0, 0],
        "title" : "Test",
        "description" : "Test"
      },
      {
        "valueType" : "resfield",
        "key" : "resfield",
        "title" : "Test",
        "description" : "Test"
      },
      {
        "valueType" : "color",
        "key" : "color",
        "title" : "Test",
        "description" : "Test"
      },
      {
        "valueType" : "string",
        "key" : "string",
        "title" : "Test",
        "description" : "Test"
      },
      {
        "valueType" : "double",
        "key" : "double",
        "title" : "Test",
        "description" : "Test"
      },
      {
        "valueType" : "int",
        "key" : "int",
        "title" : "Test",
        "description" : "Test"
      },
      {
        "valueType" : "bool",
        "key" : "bool",
        "title" : "Test",
        "description" : "Test"
      },
  ]
}

preferences: Package Preferences:

  • valueType:String: Type of pref
  • key:String: Key of pref
  • title:String: Pref Title
  • description:String: Pref Description

Clone this wiki locally