How to create and update AB OTA zip for rockchip AOSP11(android11) ROM? - android-source

I trying create AP OTA zip file on AOSP11 in (android11) for ROCchip.
Cloned source code from https://wiki.radxa.com/Rockpi4/rockpi-android11 and copied the source code.
would like someone to let me know How to create AB OTA zip file.
Ideally give me valuable tips such as references, or step-by-step guide for that if it's possible. My ROM is based on Android 11.
Thank you in advance.

Related

Use Private FRamework in Xcode Celestial

I'm a Xcode beginner so I would really appreciates if the answers were as much detailed as possible (if image could be included it would be best)
I would like to use the celestial private framework, I do not care if it get rejected by the app store since it's a private project.
I would like to use the AVSystemController in the celestial framework.
If I go to the xcode directory, I find only an exec file in the framework.
I found the headers files at:
https://github.com/masbog/PrivateFrameworkHeader-iOS-iPhone-5.-
download:
https://github.com/masbog/PrivateFrameworkHeader-iOS-iPhone-5.-/archive/master.zip
The questions are:
1-Do I add the framework that's included in the xcode directory the one that has only on file (exec named Celestial)? or should I add a headers folder first and put all the downloaded headers in it?
2-IS Github a trusted site? btw I couldn't help but noticing that the downloaded zip file headers (at least the AVSystemContriller.h ) are different then the ones you directly open on the website
3-After adding the the celestial framework (in the linked Binary with librairy of the project ) to use it I should use #import but I get an error not found
The purpose of this project is to turn the iphone to silent profile by code.
Please Help, I've been reading threads all over the internet and I wasn't able to solve it.
P.S.: Like I said before I am a beginner so it would be appreciated to detail you answer as much as possible
Thank You
dumping private header is for helping you to find functional without documentation, to load private framework you just type on your code like this :
NSBundle *b = [NSBundle bundleWithPath:#"/System/Library/PrivateFrameworks/WhatEver.framework"];
that mean, you will load/use private framework at your iDevice :)

How do you create a .bundle to store images?

Actually, I’ve read somewhere that keeping images as bundle would be the proper way to prevent it from being copied from .ipa file. So, I would like to know how to make bundles for images. Please help me out.
There's some good advice regarding creating and accessing an asset bundle in the answers to this question.

Read Dbx File From aWebsite(Iphone Development)

I want to read Dbx file In my App from The Following site.
http://www.weather.gov/geodata/catalog/wsom/data/bp03my11.dbx
How i can do This??Any suggestion or any Sample Source Code
Thanks in advance.
With best regards
Search Iphone development Framework for your work.use nsdictionary to separate different identities

How to use Offline Cloudmade Maps in an iPhone App

I’ve looked through the posts on the Cloudmade site here and I get some of it, but not all. I've posted the question below, but haven't had the help I need, so I thought I'd ask the question here.
I can see that I need to:
download the tiles for the required area to my Mac (but can’t see how to do this)
convert these to a sqlite database using the map2sqlite utility, changing the code to output the tiles to a table called “ZCACHE”, not “tiles”
Copy the DB to the Application Bundle
insert some code to copy this DB on first run, from the Application Bundle to the Documents Directory
Somehow get App to use this DB and not an online one – I can’t see how that’s done.
Any help would be warmly welcomed,
Chris.
The best solution for me to have iPhone offline maps is:
1.- Generate your own maps with TileMill and then export to MBTiles format.
2.- Get the mbtiles-ios-example and use the MBTiles file you just generated. In order to compile it, you need to download Route-Me and add it to the project.
Now, there is another option (not for free): Mapbox.
please check this tutorial, it can help - http://www.gisnotes.com/wordpress/category/sqlite3/.

"Untar" file on iPhone

I'm writing an iPhone app which downloads a tar-gzipped file from a Webserver, then needs to unarchive this file so that it can be copied into the app's Documents folder.
I'm using tar/gzip because I want to download a whole bunch of small files in one HTTP request, to make everything nice and fast.
I've investigated solutions like http://www.feep.net/libtar/, but as a C/Objective-C newb, I can't get any of them to compile for the iPhone platform.
(I felt like I should just be able to do a system call to "tar -zxvf myfile.tar.gz", but it would appear it's not that easy!)
So is there a simple way to just un-tar a file on the iPhone? Or am I going about this all wrong, and is there a better way to do this?
Thanks in advance!
Nik
This blog post should help you:
http://blog.hawkey.org/?p=332
EDIT: Google cache version of the same page which actually links to a forum post here which links to a Google Code project here, containing some code which implements unzipping on iOS.
Here is a light untar library for iOS : https://github.com/mhausherr/Light-Untar-for-iOS
Complete blog post about the solution : http://blog.octo.com/en/untar-on-ios-the-pragmatic-way/
Hope this helps,
Vincent
I took a different approach by building libarchive and bz2lib as a static library for iOS. You can find it here:
http://github.com/davepeck/iOS-libarchive/