yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] itsmedRb:
can yiu pls add features of addon.d?
[Android Software/Hacking General [Developers Only]] Nikhil:
It's there.

Read Changelog:

https://xdaforums.com/android/softw...b-android-flashable-zip-t3551772/post73138525
[Android Software/Hacking General [Developers Only]] itsmedRb:
I mean dirty flash will not remove the apk file installed in system folder?
[Android Software/Hacking General [Developers Only]] Nikhil:
Yes it won't remove, if you have enabled addon.d, it will stay (all the files that you have selected in Aroma installer will stay)
[Android Software/Hacking General [Developers Only]] RSM10:
I want to extract the files in the root directory not in /system but in one upper level ( i.e in /device ). How to do that kindly explain.
[Android Software/Hacking General [Developers Only]] Nikhil:
Root is '/' directly. You can create a custom group, set the location to '/' (without quotes) and add those files that you want to push to root folder. Set appropriate permissions and you are good to go!

Edit: if there is any other partition such as /dev, you can set the location to /dev and push files to it using custom group.
[Android Software/Hacking General [Developers Only]] minhduongtrung:
Good job!
[Android Software/Hacking General [Developers Only]] seanb93:
Is there any coding invold sorry but haven't been able to look at it I'm still at work no PC accces I have java on my PC I'm in process of learning it still a noob tho

Thanks for developing this for the android community it sounds super awesome and convenient
[Android Software/Hacking General [Developers Only]] #3Hx:
Wow..

Good job and thanks bro :D
[Android Software/Hacking General [Developers Only]] vallerydelexy:
imagine the possibility, for noobs like me
[Android Software/Hacking General [Developers Only]] tkt40:
Samsung S7 edge?

Hi, really great work. I can see this saving me a lot of time. I don't see the Galaxy S7 edge in the list of phones when I run the app. Do you have plans to support it in the future? Or, is there another way to use this for unsupported phones? Thanks very much!
[Android Software/Hacking General [Developers Only]] chrisrj28:
Just grab a custom rom from your forum and then you just have to add the updater script from the rom into the program. Then you should be able to make your zips as normal
[Android Software/Hacking General [Developers Only]] Nikhil:
Yes, the tool is coded in java. You'll need latest version of Java installed in your System to run the jar file. :)

Update-binary mate :)

Tool will generate the updater-script by itself.

Yes, as suggested by chrisrj28, fetch update-binary from any working Custom rom of your device and paste it in root directory of the tool. :)
[Android Software/Hacking General [Developers Only]] Minions_Army:
Nice
[Android Software/Hacking General [Developers Only]] Shanmukh1608:
This is amazing work!

I can finally make a script that sets the DPI to 401 while flashing the ROM, instead of having to edit build.prop using ES File Explorer.

Thanks a ton! :)

---------- Post added at 08:22 AM ---------- Previous post was at 08:20 AM ----------

You said this tool can be used by noobs too.

I'm a noob. :P

How do I create a flashable ZIP that edits build.prop and changes DPI to 401?
[Android Software/Hacking General [Developers Only]] martinusbe:
Now this is handy

Great stuff
[Android Software/Hacking General [Developers Only]] drive2droad:
Can you please support the OnePlus 3T or similar 64bit device ?
[Android Software/Hacking General [Developers Only]] Ubimo:
I did that, see screenshot. Still no S7 edge in the list. :(
[Android Software/Hacking General [Developers Only]] RajatPatel:
I'm currently working on a feature that will generate universal update-binary, which will eliminate the need of "finding update-binary for my phone".

Almost done with it, will be released here in few days! ;)
[Android Software/Hacking General [Developers Only]] Nikhil:
Hey, currently this tool supports flashing apps, bootanimations, fonts and ringtones/notification tones. For build.prop, you will have to wait a little bit. We'll add this in next release. :)

From your screenshot, I can still see that updater-script is placed in the root directory. You need to place update-binary. Then, you don't have to select any device.

You can paste update-binary of your device till the time, universal update binary is created by RajatPatel.

If you want us to include it in devices list, share update binary of your device, i'll add it and release in v3.2
[Android Software/Hacking General [Developers Only]] love4chat:
nice tool
[Android Software/Hacking General [Developers Only]] cattolicboy:
[MENTION=4867515]Nikhil[/MENTION] [MENTION=1852653]RajatPatel[/MENTION], here you have attached the binary from Sony Concept 3657 for the z3 compact.
[Android Software/Hacking General [Developers Only]] JackyGreen:
Quote me when a release is aivilable:D
[Android Software/Hacking General [Developers Only]] JackyGreen:
Update binary

Others might need this tool, so I'm sending it to you now
[Android Software/Hacking General [Developers Only]] yung40oz84:
I second this, but for the oneplus3, thanks!
[Android Software/Hacking General [Developers Only]] TheUndertaker21:
so is there a tutorial on how to use this or this is only for advanced users? i'd like to have youtubeadway.apk as zip

i i tried making one before but it didn't show up on my homescreen after i flashed it
[Android Software/Hacking General [Developers Only]] Tp4All:
Nikhil do you do some update?? thanks
[Android Software/Hacking General [Developers Only]] Nikhil:
Yeah, provided a test build in telegram group!

https://telegram.me/AFZCs

For updates, you can keep track of my github.
[Android Software/Hacking General [Developers Only]] :
is there no option to place files in /system/xbin ??

I would prefer that location over using /system/bin - but I don't see an option to choose it...

EDIT: [MENTION=4867515]Nikhil[/MENTION] -> I added /system/xbin support myself. Disclaimer: I'm not a java guy (never used netbeans, either, but....)

https://github.com/nine7nine/AFZC/commit/6e65948b82e3265fc0e0d811c35898d7430c9580

You can take a look, if it's an acceptable patch; I could do a pull request.

EDIT: Your tool seems to fail when making a zip on my Archlinux machine;

Exception in thread "ExportZip" java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
at java.util.ArrayList$Itr.next(ArrayList.java:851)
at flashablezipcreator.Protocols.Export.zip(Export.java:70)
at flashablezipcreator.Protocols.Export.run(Export.java:255)
at java.lang.Thread.run(Thread.java:748)

I tried my patched build and your stable download. both fail.

cheers
[Android Software/Hacking General [Developers Only]] Nikhil:
Hi,

Archlinux, hmm! Any chance you could try on windows and see if it works for you? For me to test the code, I would need a laptop (which I lost recently) and hence I won't be able to help you out for time being.

Also, why not use custom group to push files to /system/xbin? It's good to add its support but for time being...!
[Android Software/Hacking General [Developers Only]] :
ya, I'll try on a windows box, tmrrw... I just generally don't use windows and being Java, advertised as cross platform; I figured it would work.

since posting, I did end up trying the custom group too, but obviously adding support for xbin is better, given that on stock ROMs, especially 8.0+ it's better to be using xbin... plus, you know; my local build does support xbin ?

thanks man. I'll let u know how things go - I'm trying to get to give a hand getting some binaries packed up for some new software for android, and your tool looks like it'll save me a lot of grief... really nice looking softare... I hope it works out! ?
[Android Software/Hacking General [Developers Only]] Nikhil:
Sure, Thanks ?

And Feel free to send pull request if you wish to contribute :)
[Android Software/Hacking General [Developers Only]] :
cool. what I'll do; test on windows && test my changes, once I've verifired it is all working nicely; I'll do a pull request...

after that, I can have a look at the problem that I bumped into on Linux... maybe I can get a better idea of what's going wrong...

BTW, what version of Java do you use?

I did try various versions, thinking maybe that could be linked. IDK though.
[Android Software/Hacking General [Developers Only]] Nikhil:
Sure!

Latest one, always! :)
[Android Software/Hacking General [Developers Only]] :
So I still need to test on Windows,

But I was googling the error that I posted; it really does seem to be a bug in your app;

https://stackoverflow.com/questions...ception-while-inserting-in-arraylist#18227374

https://stackoverflow.com/questions...dificationexception-when-iterating-through-an

Like I said; I'm not a java guy, but it seems like your prgogram;

That's from the second link and I'm pretty sure that's the problem - but lacking in Java experience - I doubt I can fix it - you might want to have a look for yourself. Anyway, I hope that is helpful... I will try in Windows a bit later on, but I suspect I'm going to hit this problem there too.

EDIT: If you need a test case / to reproduce I could probably provide with a zip and tell you what steps to do to trigger this bug. let me know
[Android Software/Hacking General [Developers Only]] Nikhil:
Hi,

I have seen this error before, unfortunately I don't have a laptop (got stolen recently) hence I won't be able to look at it precisely. However, you could pm me or send me a message on telegram (@nikhilmenghani) I can help you get pass that error!
[Android Software/Hacking General [Developers Only]] itsmedRb:
Android oreo 8.0 not supported?
[Android Software/Hacking General [Developers Only]] gialakias:
I have been flashing my cerberus zip in 8.0 with no problem.
[Android Software/Hacking General [Developers Only]] DuskGolem:
[MENTION=4867515]Nikhil[/MENTION] , bro when is the update coming? It's been long since i and others requested some features and are waiting desperately for the update......:confused::confused::confused:

Are you working on this project anymore?????
[Android Software/Hacking General [Developers Only]] gialakias:
Nice! Asking for eta is at least impolite. He doesn't get paid for this he does it for all when he can. Come on. If you want faster updates read and contribute to the project collaborating.
[Android Software/Hacking General [Developers Only]] Nikhil:
The project is not stopped. My laptop got stolen hence I am not able to make any progress, I will be able to continue only once I get my new laptop.

Meanwhile, You can use the alpha version which I released in telegram. That works and the newly added feature is very useful!
[Android Software/Hacking General [Developers Only]] Kippy51:
Can't you attach the new build here as well?? I don't use any social network because of privacy issues. Thanks for your work!
[Android Software/Hacking General [Developers Only]] Nikhil:
Yeah well, since it is going to take some time for me to get a laptop and continue working on tool, it's better if I release whatever I have coded so far.

Okay so everyone,

Could you guys try this build and let me know if the tool is able to detect your phone or not?

All you have to do is connect your device with the pc and enable usb debugging in developer options.

When you run the tool, it will show a popup in your device and you need to allow the permission in order to get this to work. (you can set it to always allow, then you won't need to make any changes)

Also, make sure the drivers for your device are installed correctly! (Google how to install adb drivers)

Too lazy to type instructions, you will have to figure it out yourself :P I'll tell about the added feature however.

Tool can seamlessly take backup of your latest apps installed, all the font files (the ones that you replaced and the ones that came up with system), bootanimation, ringtones and much more.

Now you don't need to go through the hassle of copying file (latest version) in your system after everytime an update comes up for the apps that you are using.

All you need to do is, connect your phone with system and tool will do everything for you Starting from reading/parsing the files, copying it in system, adding groups, files in tool and making a zip out of it.

How cool is that?

Grab it now, here's the download link

https://goo.gl/ELCHTm

Enjoy! :)

Please note following :

-you need to have adb drivers installed in your system.

-app is in alpha stage, your phone may/may not be detected (please report!)

-advanced filter is not working in this build (i had it working in local build but I lost the laptop before I could push it to github)

-I may not get able to fix things immediately but I can keep track of all the bugs that you encounter. For future reference. So let me know in case of bugs/suggestions.

-works only on windows (yet to add Linux support)

-again, alpha stage, should not but can have many bugs!
[Android Software/Hacking General [Developers Only]] Kippy51:
Just a quick feedback: phone Samsung S4 International, ROM: JDC (BB) Oreo 8.1, Win 7 laptop.

As I transfer files to and from laptop daily, I didn't install any extra files. Connected phone, switched to file transfer and started up AFZ 5.0. Instantly got the welcome screen with a bunch of options, some already selected. Didn't have to give any permissions though. Just clicked continue and my phone files got scanned and then automatically backed-up!! Took about 5-7 minutes and it was done! Brilliant work! Thanks again for all your time!
[Android Software/Hacking General [Developers Only]] RajatPatel:
Hey, could you please shoot me a pm with steps to reproduce the concurrent modification exception? Would like to get my hands dirty whenever I get time to try and fix it. I'm pretty much aware about all the code :)
[Android Software/Hacking General [Developers Only]] logosA:
one year anniversary of this wonderful tool. thank you guys [MENTION=4867515]Nikhil[/MENTION] and [MENTION=1852653]RajatPatel[/MENTION]

:)
[Android Software/Hacking General [Developers Only]] nuv:
Hi [MENTION=4867515]Nikhil[/MENTION], just reporting:

phone: BQ Aquaris X Pro

fw: stock 1.6.0 (with TWRP and Magisk)

android version: 7.1.1

started FlashableZipCreator.jar (5.0alpha)

welcome screen pointed out my device is 'Aquaris X Pro'

import as well as zip creation seem to have worked (didn't flash)

edit: added screenshot.

are the whitespaces before the device name intended?
[Android Software/Hacking General [Developers Only]] Nikhil:
Yes, those are just to display the device name decently. ;)

Hope the generated zip file worked for you!
[Android Software/Hacking General [Developers Only]] sanrajbhar:
where is jar or exe file to launch this application?
[Android Software/Hacking General [Developers Only]] Eleo:
Download "Android Flashable Zip Creator" from OP under "Downloads".

You will find a rar archive that holds jar file.
[Android Software/Hacking General [Developers Only]] pedro1977:
I have installed this on windows 10 64bit but receive the following error when executing the jar file.

java.io.IOException: Access is denied

java.io.WinNTFileSystem.createFileExclusively(Native Method)

java.io.File.createNewFile(Uknown Source)

flashablezipcreator.DiskOperations. writestringtofile(write.java:53)

flashablezipcreator.letsbegin(flashablezipcreator.java125)

flashablezipcreator,flashablezipcreator.main(flashablezipcreator.java:87)

Update: jar files weren't set to be run by java by default and the open with option generated the above error.
[Android Software/Hacking General [Developers Only]] Nikhil:
Try from any other drive if you are trying from C:\. Your system is not allowing jar file to create files.
[Android Software/Hacking General [Developers Only]] Kippy51:
[MENTION=6515015]Nikhil [/MENTION] Maybe a bit of a long story .. My device is recognized (GT-I9505), imports works and zip of /data/app is made correctly. Flashing the zip after a clean flash of my ROM (Optimized LOS 5.1 by JDC team) works fine as well, but NO apps are installed! I've attached the creation log, maybe it helps.

Edit: Did not get any errors reported, not flashing ROM and Gapps, nor flashing the created app-zip
[Android Software/Hacking General [Developers Only]] Kippy51:
I started with trying suggestion 2) but no succes (log with '1' in it). Then I tried suggestion 1), mounted data manually and flashed the same zip (with update-binary) once again. Sorry to say, still no success (the second log). Once again: creating zip is without errors, flashing the zip is without errors but nothing gets installed. Ended up restoring my apps with Titanium Backup ...
[Android Software/Hacking General [Developers Only]] Nikhil:
Alright, could you share the zip that you created? Let me try in my redmi note 4.
[Android Software/Hacking General [Developers Only]] Kippy51:
I'll upload it to my Dropbox and PM you the link in about half an hour. Thanks!
[Android Software/Hacking General [Developers Only]] maxmotos:
I am building a zip for a Moto E4 running on android 7.1.1 but for some weird reason when I flash the zip I created using your tool the apps I set for system apps are not appearing.
[Android Software/Hacking General [Developers Only]] Nikhil:
It's weird why apps are not installing in /data without making any changes to the code but /system apps always worked fine. It still does for me. Logs should help identify the problem. Can you share the logs? Also the zip that you created?
[Android Software/Hacking General [Developers Only]] Mikes:
Same problem as above. Everything is working except installing apps in /data partition. Nothing in logs, no errors.
[Android Software/Hacking General [Developers Only]] Nikhil:
Yes, with Android oreo, pushing the apk file to /data/app is not good enough to install an app. For security purposes. There isn't any work around for that yet.
[Android Software/Hacking General [Developers Only]] Sticky Fin:
Seems like using normal Add Group > System Group > system > system/app in Android Flashable Zip Creator won't installed the app in Oreo 8.1. The app is simply pushed to /app instead as in first attachment.

I did some testing and in Android Flashable Zip Creator, I made Custom Group with Install Location "/system/system/app/name_of_app" as in second attachment and it worked. The app is installed as system app.

Thank you so much for making this tool! Really helpful!
[Android Software/Hacking General [Developers Only]] Shiroyasha21:
it is possible to create a universal flashable zip for my kitkat and mm device

kitkat directory is /system/app/appname.apk while mm /system/app/appname/appname.apk
[Android Software/Hacking General [Developers Only]] Nikhil:
Nice finding! Thanks for sharing :)

Yup, create 2 projects.

Add system group to 1st one and add apps (that would work on MM)

Add custom group (with rw-r-r permissions) to 2nd one and add apk files to that (that would work on KitKat)

You can choose which project to load and which to skip in recovery.
[Android Software/Hacking General [Developers Only]] pedro1977:
When I double click on flashablezipcreator.class, nothing happens?? any idea why???

Edit: solved
[Android Software/Hacking General [Developers Only]] JCDentonMale:
Hi,

Thank you for this tool! I have a little issue, I'm trying to add a directory to /data/data (com.somecompany.somepackage for example) but it does not create it. Any pointers?
[Android Software/Hacking General [Developers Only]] Nikhil:
Android oreo onwards Google has added security restrictions which prevents flashing any file to data partition. The zip that you created actually pushes the files to right location but it gets deleted on boot.
[Android Software/Hacking General [Developers Only]] nikku42:
Hi there, I wonder where to find the update binaries or its containing zip's for different devices. I have a Moto G5S Plus and same issue:

E:Can't execute '/tmp/updater': Exec format error

---------- Post added 14th June 2018 at 12:04 AM ---------- Previous post was 13th June 2018 at 11:31 PM ----------

Where could I find update binaries for other devices? I have a Moto G5S Plus and issuing the same error :(
[Android Software/Hacking General [Developers Only]] ahmed.ismael:
extraxt it from any flashable.zip for your device ( i extracted mine from a rom.zip and it wasn't using aroma )
[Android Software/Hacking General [Developers Only]] logosA:
lets find a way to somehow make it work in OREO.

What can I o to help? Is there anything about that?

I have read your posts about oreo not letting apps to be copied to DATA.

Any workaround?

You know I am a big fun of the tool, I am using it since day one in my Note 2, now still running Nougat.

But on my Note 4 , now running OREO, isn't possible for now, as I understood.

So let me know what I could do to help, if any...
[Android Software/Hacking General [Developers Only]] Nikhil:
Definately! :)

Currently I am working on adding new features.

Figuring out how we could install data apps in oreo will take time as it is on low priority as of now for me. It is not impossible, but other features are cool and worth working on before I could work on data apps.

P.S I just added treble support :)
[Android Software/Hacking General [Developers Only]] Kapiljhajhria:
Gapps support, looks interesting. Commits are interesting. Eagerly waiting for it
[Android Software/Hacking General [Developers Only]] Mixterix Se7en:
Finally something that could work

Thanks, I finally found something that could work, I'll try it on the next flash of my two smartphones, I was manually doing a zip but I could not make the permissions correct, zip.me does not do well the backups of the folder /data
[Android Software/Hacking General [Developers Only]] Nikhil:
/data doesn't work for Android oreo and above since Google added limitations to the way we install apps by pushing them to /data/app.

Rest everything works!
[Android Software/Hacking General [Developers Only]] urgali:
Hi and thanks for your work!

I have one question: i don't seem to succeed in installing an app in priv-app folder (tried with nougat and oreo as well).

The zip is working well, no errors and apk folder is correctly generated in /system/priv-app folder but once the phone is booted i just cannot launch the app, it seems it doesn't exist (even in app list with "show system apps" on).

The actual apk folder is something like: /system/priv-app/myappfolder/base.apk

Am i missing something?

I even tried to switch multiple roms to check if it was rom issue (tried LOS, AOSP, Touchwiz) with no success.

Thanks in advantage for your help.

Have a nice day!
[Android Software/Hacking General [Developers Only]] Nikhil:
Try keeping the file Name and folder name same.

/system/priv-app/myappfolder/myappfolder.apk
[Android Software/Hacking General [Developers Only]] urgali:
Thank you for your quick support.

Tried as you suggested but still no luck, package is present in /system/priv-app but nothing when i bootup system.

Tried to create package with both quick setup option flagged and not flagged in AFZC conf but result is the same

Any other hint i might try?

Thanks again,
[Android Software/Hacking General [Developers Only]] Nikhil:
Can you share the zip file? let me try in my device.

Also, is it happening for all priv-apps? or selected ones?
[Android Software/Hacking General [Developers Only]] urgali:
Hi there!

Zip is in atachment, this is the latest one done with apk with same name as folder.

It happens only for the selected one, i'm not using AROMA conf but normal one since i just need a single apk.

Thanks a lot for your time.
[Android Software/Hacking General [Developers Only]] yarpiin:
Hi there . Long time no se . Just quick question why you need libary folders to go with apk ?
[Android Software/Hacking General [Developers Only]] Nikhil:
The app got installed for me. I'm using crDroid oreo on xiaomi redmi note 4.

If the issue is with a specific app, it might not be compatible with your device.
[Android Software/Hacking General [Developers Only]] urgali:
You here too? :)

Need them otherwise the app will crash :P

Thank you for your support, i will try different phones and different pc to create zip.

Thanks again for your time.