Skip to content

Simple file used for checking for new system updates of my Android custom rom builds of LineageOs for Xiaomi Mi A2.

License

Notifications You must be signed in to change notification settings

bachelor-emgi/jasmine_sprout_ota

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

jasmine_sprout_ota

You need:
- Working LineageOS built from source
- File hosting with direct links, for example sourceforge
- GitHub account

  1. create public GitHub repository and create in it JSON file with following text:
{
  "response": [
    {
      "datetime": 1234567890,
      "filename": "ota-package.zip",
      "id": "5eb63bbbe01eeed093cb22bb8f5acdc3",
      "romtype": "unofficial",
      "size": 314572800,
      "url": "https://example.com/ota-package.zip",
      "version": "18.1"
    }
  ]
}

"datetime" - build date in UNIX timestamp, see out/build_date.txt
"filename" - name of your OTA package
"id" - update identificator, simply use password generator
"romtype" - your build type (unofficial)
"size" - OTA package size in bytes
"url" - direct link to package
"version" - ROM version

  1. Go to packages/apps/Updater/res/values and open file strings.xml and find URL define (updater_server_url):
<string name="updater_server_url" translatable="false">https://download.lineageos.org/api/v1/{device}/{type}/{incr}</string>

And copy here Raw of created JSON file, for exapmle:

<string name="updater_server_url" translatable="false">https://raw.githubusercontent.com/marek-guran/jasmine_sprout_ota/main/ota.json</string>
  1. Build package with OTA support with usual method with making installclean. Done! Now you have build with OTA support.

About

Simple file used for checking for new system updates of my Android custom rom builds of LineageOs for Xiaomi Mi A2.

Resources

License

Stars

Watchers

Forks