yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Paschfire:
nexus 5 lrx22c factory images Franco kernel r69- supersu v2.42B, busybox pro installed to /xbin,twrp 2.8.3.0, just installed AIK-mobile suggested few days ago in Materialised themes.

Problem;

AIK-mobile: the image-new.img once flashed via fastboot or flashify will not boot gets stuck at google bootloops.

If I use the TWRP recovery side AIK interface and it worked flawlessly changed the curtain image, but if I try to use AKI-mobile through the terminal emulator app, after I type aik it returns /data/local/AIK-mobile/# ,when I type the ./unpackimg.sh "myrecovery".img(no" ") it is works but returns a ton of can't create symlink from sbin errors then Done!, it does create the split-img and ramdisc. if i continue to change the curtain.img under / ramdisc/res/images save then give the curtain.img permissions 0644 rw-r-r then ./repackimg.sh it repacks with no errors. the image-new.img is the same size as the original image and the curtain used for testing is the same I use through the twrp Ui. I appreciate any guidance into what could be the issue or what I'm doing wrong thank you.
[Android Software Development] osm0sis:
That's from the workaround for the SuperSU/L versions prior to Chainfire hacking the sepolicy. Read back a page or so for the workaround revert until I release the new version. :good:
[Android Software Development] Paschfire:
Works now with no errors, I apologize I had read the previous post you mentioned on the last page I was not sure if this was pertaining to the same issue.

---------- Post added at 03:50 PM ---------- Previous post was at 03:31 PM ----------

Is this how i edit the aik script? again thank you so very much.

example below.

#go local and request root

cd $aik;

su --context u:r:system_app:s0;

;;

esac;

do I just remove "su --context u:r:system_app:s0;

should I leave the remaining?

;;

esac;
[Android Software Development] osm0sis:
Only remove the --context parts, so in effect, just change the su line to only "su;"
[Android Software Development] po8pimp:
Thank you

Just wanted to say that this tool has helped me out a lot. At first I thought it didn't work, however it was the way I was making the .tar.md5/.tar/.tar.gz files afterward. Talk about a pain in the but that was. I was looking for a way to split and put back together my boot.img file for my Samsung Galaxy Player 4.2 and this did it. So please add that to the list. Also while I was using the product, I wanted to find a way to give back so I changed some of the script and added a GUI with a ThemeChanger. I have the links to the files and you are more than welcome to take it all and do with it as you please. I use it now a lot. I changed script to allow you to place your .img file in the "Input" folder and work the GUI which once you "unpack" the file will do so and open the file up in a window for editing. Once done, you just repack the img and it changes the name to match the original files name and places it in the "Output" folder. Then you can do cleanup either cleanup just the "Input" folder and the leftover created folders from unpacking, the "Output" folder by itself, or "Both" folders and leftover created folders. This is so you can test the product, if changes are still needed, you can do so by manual editing and clean the "Output" and rerun the packaging script. It sounds right in my head, sorry if it is confusing on here. Anyways here are two links: MediaFire link & mirror: GoogleDrive link
[Android Software Development] Paschfire:
Works great just as you explained. I will admit took me a moment to realize I reeded to rename the image file to "recovery.img" or "boot.img" but from that moment on all green lights, the cleanup really is a nice touch too. I have yet to give the themeing GUi a try but I will report back on my experience...(once I figure it out) only thing I noticed was when you launch ThemeChooser.bat if you select any of the "9" options or "X" to exit it errors that windows cannot find the corresponding .bat file for the selected option. This of course is probable nor more than my noobieness tripping me up and I'm sure i'll feel dumb when it hits me. Really I just wanted to take a moment and say excellent! Job! and thank you for sharing, for the parts of your take on android image kitchen I can figure out it works like a dream.

Cheers.
[Android Software Development] osm0sis:
Cool stuff! [MENTION=2719389]z31s1g[/MENTION] added support to his amazing Materialised TWRP themes for AIK-mobile as well, allowing people to switch the TWRP curtain/bootsplash with ease. I highly encourage everyone to check it out! :cool:
[Android Software Development] osm0sis:
Looks like the mobile and Linux versions have finally taken off! Over 3300 and 1800 downloads, respectively, for version 1.6. Thanks for the interest everyone! :D

Naming scheme for mobile has changed to use the UPDATE- prefix (following Chainfire's example) to indicate flashable zips, since the cwm- prefix was still causing far too much confusion for newer users.

AIK-mobile v1.7 + AIK-Linux v1.7:

- Make /data/local/AIK-mobile/bin/aik --restore delete /system/xbin/aik to ensure the new aik symlink gets created over old installations, e.g. from a nandroid system restore (AIK-mobile).

- Switch from return to exit script commands to fix errorlevels and script warnings on some distros (AIK-Linux).

- Fix output newline spacing on some distros (AIK-Linux).

- Revert su prompt context switching (required for L preview/SuperSU <2.35) since newer SuperSU patched sepolicy resolves it entirely (AIK-mobile).

- Update file binary (5.20) which resolves the seg faults of 5.19; 5.21 is now out but has seg faults again (AIK-mobile).

- Update mkbootimg and mkbootfs binaries from my repos.

- Update slimmed magic file (from file 5.21) with my own fixes for older Linux versions of the file binary.

- Update my Cygwin-Linux cross-compile toolchains to gcc 4.9.1 and glibc 2.19 and add Linux x86_64 support to my AIK Build Farm (AIK-Linux).

- Add architecture detection to use corresponding binaries for i686 and x86_64 support (AIK-Linux).

- Update xz binary (5.2.0) (AIK-mobile).

- Update lz4 binary (r126).

- Fix error catching after unpackboot/mkboot and compression commands.

More on my own build changes in the commits here: https://github.com/osm0sis/mkbootimg; https://github.com/osm0sis/mkbootfs.

Installation information and details on each edition can be found in the OP for Win32 or the AIK-mobile and AIK-Linux initial release notes.

If you are reporting a problem with your device, please clearly state your device name and model/variant as well as provide a link to the image file.
[Android Software Development] po8pimp:
Yeah the reason for the errors if you select ThemeChooser.bat is due to the way it is made to work. The AIK.bat is what drives the ThemeChooser, which brings the ThemeChooser up to that starting directory. It needs to be at that point to drive the other files. If you were to copy and paste the ThemeChooser.bat from the ".\Theme" directory into the "." directory, then it would work. So in order to use it, you have to start AIK.bat and inside that pic #4 I believe for changing theme, and it will go from there. I am also playing with it so there is more to follow. OP I sent you a pm please check it. :)
[Android Software Development] ACHILLES R32:
I'm having some issues with repacked twrp image. I used android image kitchen to repack twrp 2.8.3.0 with a custom curtain. Image was repacked fine however sometimes I can't boot into recovery, however stock twrp image reboots fine all the time. Has anyone experienced similar issue.

Thanks

Sent from my Nexus 5
[Android Software Development] Dan Dreßen:
How exactly do I use it?

Hello,

I´m pretty new to the whole custom rom, recovery thing but have some basic knowledge of programming.

Anyways, I just wanted to ask if you could explain the exact steps for changing the splash screen on TWRP 2.8.1.0.

I am running Cyanogenmod 12 10.01.2015 NIGHTLY build and I´m using a Mac, so the Windows image kitchen does not work for me.

Is there any way I could change my splash screen despite all this?

Thanks in advance,

Dan
[Android Software Development] osm0sis:
Read the OP and use the mobile version to do it on-device. You can also use [MENTION=2719389]z31s1g[/MENTION]'s excellent Materialised TWRP theme to change the splash for you, but you'll need to update to 2.8.3.0.
[Android Software Development] gekkehenkie11:
First of all, I really love your tool, great work !

I'm having a problem though that's actually a bit beyond the scope of your tool but hopefull you or somebody else can answer it. I have a boot.img-zImage that I want to unpack, it's for the Galaxy S4 but I can't unpack the Kernel correctly. I tried the usual 'repack-zImage.sh' script, which breaks with an error and the output doesnt contain the extracted kernel. Also I tried 'imgtool' but that one too cant extract a decompressed kernel. I *THINK* the problem is that it contains a device tree ... Any idea's/suggestions ? Thanks !!
[Android Software Development] osm0sis:
zImage is just compiled source code, it can be in a compressed state as well but decompressing it wouldn't serve any purpose; there's nothing you can do with it.
[Android Software Development] gekkehenkie11:
Actually I just found a great tutorial that worked: http://xdaforums.com/showthread.php?t=2763946

Thing was that the unpack script did create an LZO file but the LZO magic header appeared twice and the tool picked the wrong one :)

Well the reason I want the decompressed kernel is to reverse engineer it, we're working on CM12 for the Note 4, it's getting along really nice already but the cpu governor seems differently configured than Samsung itself is using, so I want to reverse engineer it.

Anyway, sorry to have bothered you and again BIG props for your tool, really love it !!
[Android Software Development] osm0sis:
Haha fair enough. Yes, that's pretty much the only thing you can do, and binary patches of course but I wasn't sure how advanced you were! Clearly fairly advanced! Best of luck with the hackery! Glad AIK came in handy! :)
[Android Software Development] romasik:
Bumped recovery TWRP 2.8.3.1 not repack correctly ? always secure boot error . Please fix it ! with 2.8.1.1 repack ok work fine . 2.8.3.1 repack whithout error but not boot in recovery get error "secure boot error"

p.s LG G2 LS980
[Android Software Development] osm0sis:
Nothing to do with me, ask in the bump tool threads.
[Android Software Development] krija:
You need rebump the repacked image.
[Android Software Development] romasik:
How repack TWRP 2.8.3.1 and to stay working? ?:confused:
[Android Software Development] Raiden Skywalker:
CM11 Kernel Editing

hey guys I'm trying to change the boot logo from the Kernel 3.0.101 by Munjeni and XperiaSTE

When I try to unpack I keep getting this error :silly:

Device : Xperia P running CM11 build 76 by percy_g2 from here : http://xdaforums.com/xper...-11-0-t2626639

Link to the kernel (boot.img) : http://d-h.st/4OB

How can I resolve this?
[Android Software Development] krija:
Upload somewhere your repacked recovery.img and i'll bump it for you.
[Android Software Development] romasik:
Please say me how bump ?:)

Thanks!

View attachment 3113772
[Android Software Development] krija:
Now i'm tired and here is time to sleep :)

But i'll ask few great developers for permission to share one tool that would enable to bump recovery images with our LG G2 device.

Your bumped image is attached.
[Android Software Development] romasik:
Thanks Frend , please bumped another file View attachment 3113835

THANKS.
[Android Software Development] krija:
We are OT with this :)

Contact me via PM next time please.
[Android Software Development] mscion:
Deleted
[Android Software Development] franzyroy:
about that

A dump of your device's aboot.img is required to re-loki

Is it aboot.img?

Or is it boot.img?
[Android Software Development] franzyroy:
Well, I've put the aboot.img file in the reloki folder, it's better but I've another issue.

This one in the screen

[MENTION=4544860]osm0sis[/MENTION]

Any idea?
[Android Software Development] osm0sis:
Basically you need to reloki manually if the image you started with wasn't unloki'd using my AIK add-on. It would read whether the image was a recovery or boot image and passes that on to the reloki script.
[Android Software Development] franzyroy:
With your tool, I've successful to:

Unlokied the recovery

Unpacked the recovery

Modified the curtains screen

Repacked the recovery

It's only when I want to reloki it that I've this issue.

It was loki...
[Android Software Development] osm0sis:
Per usual, post your starting image and your aboot.img for me and I'll take a look.
[Android Software Development] franzyroy:
Below

Thanks! ;)
[Android Software Development] osm0sis:
Works flawlessly here. Must be your method. Reread the instructions in the OP and give it another shot. Remember the Add-on zip should be unzipped over top of a AIK directory, and you need to follow all the steps in order with the image, starting with unlokimg.
[Android Software Development] franzyroy:
It's like that I did but I gonna try again.

---------- Post added at 08:24 AM ---------- Previous post was at 08:08 AM ----------

[MENTION=4544860]osm0sis[/MENTION]

It's good, it works. The cause was that I had to put the recovery.img file in the AIK folder. Before, it was out of this folder.
[Android Software Development] jackdubl:
Anyone know why this might be happening when trying to re-loki?

Free storage from Copy:

https://copy.com?r=cScoov
[Android Software Development] franzyroy:
Your first "recovery.img" must be in the tool folder otherwise it doesn't work! Put also the "curtain.jpg file inside, even if I don't think what it's really a big need for this one.
[Android Software Development] franzyroy:
[MENTION=4544860]osm0sis[/MENTION]

In your script, you have this command to extract the zip content

unzip -o "$ZIP";

I've a mod with several recoveries which enables to install one that we want with its theme (the one of my signature). When it installs the TWRP recovery and its theme, I would like also install your file:"UPDATE-AIK.Mobile.Installer.v1.7-ALL.zip", so I would add the 2 directories in my zip and extract only them. However, this command have to extract all folders of the zip.

So my question is: what command enables to extract only these directories?

Thanks!
[Android Software Development] osm0sis:
Check my shell script reference thread.
[Android Software Development] franzyroy:
I'll take a look, thanks!
[Android Software Development] franzyroy:
I looked for, but I don't see how do.

Thanks for your help!

---------- Post added 23rd January 2015 at 12:15 AM ---------- Previous post was 22nd January 2015 at 11:57 PM ----------

Is this can work?

unzip -oq myfile.zip FolderToUnzip/* -d destination/
[Android Software Development] osm0sis:
It's the extract folder function in my reference thread. Please, from now on, direct your questions to the appropriate thread. What you're asking really doesn't have anything to do with AIK, and is more about recovery shell scripting. :good:
[Android Software Development] franzyroy:
OK Thanks

Sorry!
[Android Software Development] aoleary:
My question answered by post #237
[Android Software Development] ChinmayKunkikar:
@osm0sis as you know that I got AIK mobile working for Xperia P/U/Sola/Go here, am I allowed by you to make a new thread of it?

I've used munjeni's binaries to do the work. Plus, there are some script changes too.

One question -

After executing 'aik' in the Terminal Emulator, it doesn't redirect to /data/local/AIK-mobile .

I saw the aik binary, after reviewing, I found that it should redirect to the working folder.

:confused:
[Android Software Development] MarchriusDennis:
Mac OS X Version

Hi, I haven't seen the version for mac os x in this thread so I compiled it on Mac OS X Yosemite (both 32 and 64 bit) and modifyed the scripts to support automatically the current system (Linux or Darwin).
[Android Software Development] Balino:
Hi there,

great tool, I managed to switch ramdisk between 2 kernels for my phone (one is from omni and the other one is from cm ) and I hoped that it would fix the wifi issue (wifi is not activating). Unfortunately it didn't work, any advice? feel free to not reply if you find my answer inappropriate.

thank you for reading
[Android Software Development] johnvuong1999:
Can it support Android wear for example LG G Watch?
[Android Software Development] osm0sis:
Try it and let us know. :good:
[Android Software Development] ryanjms07:
i have tried for unpack boot.img from asus zenfone 5 with arch x86.

"Android boot magic not found"

can't do this.

could you help me?
[Android Software Development] shoey63:
Unfortunately, it means another device for [MENTION=4544860]osm0sis[/MENTION] to add to his "unsupported " list.
[Android Software Development] osm0sis:
Yup. Please post the boot.img so I can see why and add it to the list.
[Android Software Development] ryanjms07:
fast response,

thanks for attention i am waiting news from you. what cause failed when unpack this boot.img (x86).

and it is the file what you want
[Android Software Development] Darian71:
Same thing here. Tried unpacking my Verizon LG G2 VS98026A 1- modem.img and got no Android magic message. Heres mine. http://downloads.codefi.re/autoprime/LG/LG_G2/VS980/Stock_Firmware/26A_Partitions/1-modem.img Sorry i couldn't get the link to work in proper format. Probably just tired and aggravated as i rooted my LG for the 2nd time trying to get a newer version of TWRP using stump for root and AutoRec for the version of TWRP. It worked the first time i used it but for whatever reason this time when i booted to recovery after completely updating the 27A kdz file it immediately went into fastboot mode and will not come out. I can actually fastboot recovery img to it, and it resets popping up around 8 different partitions on my computer that all say they need formatting. Most will format but a few are write protected it says. I had high hopes this would be my magic bullet as i am brand new to the whole LG setup. Been a lifetime Samsung user, but bought this unlocked phone to fix the glass on and figured id play around with different roms......Bad idea.LOL Thanks
[Android Software Development] osm0sis:
Modems aren't kernels, so there is no ramdisk to unpack. Recovery or boot images only, as per the OP.
[Android Software Development] Darian71:
Crap. Now I know I need to sleep. Lol. Sorry man. And thank you. But now I have a quick question if you haven't already written me off for an idiot..., I successfully unpacked my boot.img into 2 separate files. The split_img and ramdisk. But not knowing how to repack them both I decided just to try each one but the repackimg just briefly opens, then closes. Have I installed something wrong? Thanks again man and forgive my ignorance

Update: OK, I clicked on the repack and it started working. So now I just gotta figure out how to get then both into one file img again. Lol.
[Android Software Development] Darian71:
It didn't make a difference. I haven't tried the loki file with it but think I'll give Ubuntu a shot next. Nice program though sir. Really appreciate you making it. Might just come in handy after I educate myself more on cooking and experience more of this file change. [emoji106] [emoji106]
[Android Software Development] kpirnie:
Works good on ubuntu
[Android Software Development] Darian71:
It works great once you familiarize yourself with it on Windows. For whatever reason, my new laptop installed Ubuntu and then Ubuntu couldn't recognize my password for root. Uninsulated and installed 3 times. Anyhow, I managed to find the 11 .img files I needed and the correct fastboot commands to erase, then flash them all to my device and got download mode back. Flashed stock Rom back to it and I'm back up and running. Still not sure exactly what went wrong. I rooted and installed twrp the same way as I did before my factory reset.., OH well. More rooting it. It's going on Ebay. Lol. Thank!
[Android Software Development] sajjjjjjad:
support android L?!
[Android Software Development] Captain_Throwback:
This works fine on Lollipop images. Did you try it?
[Android Software Development] Pannam:
works with lg g3 f460k. just unpacked changed sth in ramdisk and repacked boot.img. I hope the new one is image-new.img ? haven't tested the new boot image will do in a while.
[Android Software Development] shoey63:
Yup, image-new.img is the repacked boot.img containing your changes. Fastboot it and see how you go:thumbup:
[Android Software Development] krhtikos:
Can someone see why this boot.bin can't unpack ramdisk? It's from LG G3 Stylus (D690)
[Android Software Development] masInvasion:
Unpacking VS985(Verizon LG G3) AOSP boot.img that is BUMPED

Will this work for a BUMPED VS985 boot.img from Illusion 6.5 Lollipop AOSP? If not what tool can be used?

I really want to add settings to the kernel so that I can use XPrivacy on lollipop.

Here is the documentation that describes it: XPrivacy GitHub
[Android Software Development] JRJ442:
It'll work for unpacking the image, but you have to rebump the image after you repack it, if those settings can be added that way. I've unpacked some kernels and rebumped them for my VS980 and all was fine. I haven't tried specifically what you want to do though
[Android Software Development] masInvasion:
Ok thanks.

---------- Post added at 07:52 PM ---------- Previous post was at 07:19 PM ----------

Could you do me a huge favor and tell me if I am doing this correctly.

This is how I have inserted the xprivacy line:

[IMG="End Of RamDisk/Service_contexts file"]http://i.imgur.com/5bcOvJy.png[/IMG]

and here is what the instructions say:

As you can see I have added it to the second to last line(blank line).

When I pasted the line it was not spaced like the rest of the lines so I used tab but that did not line it up so I had to add 2 spaces.

My concern is due to past experience with coding for certain programs,

The past program(unrelated to Android/Linux) required the space in between to be a tab input or it would not read the line correctly.

Does it matter if the spacing is done a certain way or is tab + 2 spaces OK?

I really appreciate your help, I really want to load lollipop but I not going to unless I can have XPrivacy as well.

EDIT While I was waiting/hoping for your reply. I tried to bump using open_bump.py I installed python for windows and I ran

open_bump.py c:\boot1.img

and it did create a bumped image but this is the error I recieved in cmd:

[IMG="open_bump error"]http://i.imgur.com/WwDT2lE.png[/IMG]

EDIT 2

I looked at the rest of the lines in the file and realized I shouldn't use tab but just spaces.

I re-packed the new boot.img but still receive the error when bumping it

EDIT 3

I would just ask in the bumped thread but people seem pretty pissed that cybojenix copied and open sourced the bump script.

EDIT 4 I found bump for windows and I did not receive an error. I am reading up on restoring to stock just in case. thank you
[Android Software Development] osm0sis:
Has non-standard section header "labels" like MTK devices. Check the OPs for a link to more details. :good:

Edit: Googled and it looks like it is a MTK chipset, so there you go. ;)
[Android Software Development] krhtikos:
Tnx for the answer , I know it has MTK header , but still it won't unpack. I have unpacked hundreds of MTK boot. Does it need bumping? Then possibly is not supported via normal bump.
[Android Software Development] osm0sis:
No. I just told you, my tool only supports the standard, not MTK's weird version. You need the MTK tools from another thread instead.
[Android Software Development] krhtikos:
Tnx , nothing works (tried them all) , seem ramdisk is locked somehow :)
[Android Software Development] sabrefresco:
OnePlus One

Did anyone try the AIK mobile zip on the OPO? Don't want to flash it on my daily driver without some assurance.
[Android Software Development] bombadier:
Yes its fine to flash

tapatyping fae the bacon
[Android Software Development] sabrefresco:
Good for CM12 nightlies? What about CM11S? Sorry should've asked in my first reply.

EDIT: I see OP is running 5.1 and 5.0.2, so I am guessing it's good.