yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Nikhil:
Did you select data/apps while creating zip?

[MENTION=4760321]quasim52[/MENTION] help me with rest of the two questions?

Which apps didn't work for you?

Can you share the zip file?
[Android Software/Hacking General [Developers Only]] quasim52:
I tried both system/app and data/app both gave the same results
[Android Software/Hacking General [Developers Only]] logosA:
here are my steps as i did them , as I told you .

Please check for differences of your way
[Android Software/Hacking General [Developers Only]] quasim52:
I did it exactly the same way. and it did get installed but a few of them did not work. Had to remove from system apps through titanium backup. and then it worked. Is it because I was installing on Nougat? May be it has a different files system.

---------- Post added at 06:19 PM ---------- Previous post was at 06:11 PM ----------

yes I did select data/apps and a few of the applications are google duo, imo. and a few others. I was installing on Nougat, may be that could be the problem?
[Android Software/Hacking General [Developers Only]] logosA:
I did that in AICP 7.1.1 (NOUGAT ) ROM for our phone. I think you have Tilak's, if I am not wrong.

I have 10/2/17 rom's version and pico open gapps 13/2/17

This is my setup in which everything was set and works perfect.

PC where I made zip is a windows 7 x64 and latest java installed in it.

Thats all I have, sorry if I cant help anymore, DEVS maybe can figure out something I cant see
[Android Software/Hacking General [Developers Only]] logosA:
Help me understand something, because your error is troubling me all day.

How does user apps , that should be installed in data/app, where found in system/app.

You shouldn't put user apps in that folder.

Did you meant to be installed as privilege apps in system?

I dont think this is the way you can do that.

The way I know is after been installed like user app, with the use of a tool (titanium, link2sd, etc) to be moved and be used as a system app.

Please correct me if I am wrong
[Android Software/Hacking General [Developers Only]] Hawaiihemd:
Oh my goodness, this tool is the bomb. Thanks a bunch [MENTION=4241098]Nikhil.[/MENTION]

I would like to voice a suggestion: I think this tool would benefit from an option to have another group to put miscellaneous files in a standard location like the 'documents' folder on internal storage.

Reason being I, and I imagine others too, do keep certain config files, password files, my favorite wallpaper and alike on all of my devices. With an option like this they would, like my essential apps, be right at hand after flashing.
[Android Software/Hacking General [Developers Only]] Nikhil:
Can you share the zip file?

Also can you check if apk file is present in data/app/FolderNameOfYourApk/base.apk?

Without zip it if difficult for us to understand, kindly share it so that we can try flashing at our end and see if there is any issue present.

Hi,

Thank you for your suggestion!

Flashable Zip is required for pushing files into system so that it is hassle free for end user who doesn't know much about system and its partitions. Also when you do a clean install and wipe partitions it is system and data partitions which are wiped. Thus, you have to use the flashable zip to get back to previous state.

Now in the whole process Internal storage doesn't get wiped out.

Help me understand why we should have a flashable zip for files which wont be deleted by flashing new Roms Instead of just copy pasting that file from other source? :)

We would be happy to add it in our tool if there is a need of it and useful for users.
[Android Software/Hacking General [Developers Only]] m0han:
a case where one would want to wipe everything (including storage) and where the required stuff is available via usb otg, maybe.
[Android Software/Hacking General [Developers Only]] Nikhil:
If the stuff is present in usb otg, it can be easily copied to Internal storage. Right?
[Android Software/Hacking General [Developers Only]] quasim52:
I had put all the apks in data/app, however after they were installed, i could not un-install them if i wanted to. and a few of them refused to work so using titanium backup I moved those apps out of system apps and it started working.
[Android Software/Hacking General [Developers Only]] m0han:
i thought your tool was meant to make things (copying included) easier. but, it's your call.

---------- Post added at 11:19 AM ---------- Previous post was at 10:45 AM ----------

you intend to do a full wipe - cache, dalvik cache, data, system & internal storage (no ext. sdcard in device)

you flash the rom and the zip you make using the tool in this thread - both from usb otg mounted in twrp

you wish to have the phone ready with your favourite apps+data installed & working

you also wish to have your essential files ready in 'documents' folder on your internal storage

is that possible, [MENTION=4867515]Nikhil[/MENTION]? or, have i got it all wrong, [MENTION=5880102]Hawaiihemd[/MENTION]? btw, you seem to have tagged the op wrong. :D
[Android Software/Hacking General [Developers Only]] Nikhil:
Mate, is it not making things easier already?

Read my post. All i need is to confirm if this would be helpful for users. I wrote we would be happy to add if this is useful.

https://xdaforums.com/android/softw...b-android-flashable-zip-t3551772/post71035339

It is possible, I will work on that.
[Android Software/Hacking General [Developers Only]] m0han:
come on, pal. you know i meant 'easier than it is with v3.1'.

ofc, i read your post(s). how else would i be tempted to respond? :D

copying back and forth is mundane, to say the least. you know that.

wipe everything, flash rom & zip; have all your stuff at your fingertips. :highfive::cool:
[Android Software/Hacking General [Developers Only]] Nikhil:
Yeah right, i'll try to add not only documents folder but any folder that user wants. Before that i'll have to find a way.
[Android Software/Hacking General [Developers Only]] Hawaiihemd:
Alright, first sorry for late response. On your question to clarify my point: Yes, indeed I always prefer a really clean start off. So if I wipe system and data I always wipe internal storage too.

It would be pure convenience to just flash the zip over copying a few additional files. You are right, it's not that big of a deal. Just a question of 'why not'. Anyway you decide.

I had the same thought about opening up my idea to include any folder the user chooses. In fact, that was my first idea.

For me that would be awesome. Because I regularly modify several system files after a system update. I could replace them all at once instead of editing/copying them later.

Indeed, that would make even more sense.

But I scaled the idea down to what I proposed, because I thought any folder would be much harder to implement.
[Android Software/Hacking General [Developers Only]] Nikhil:
Thanks for the suggestion!

I will try to incorporate it and send you a test zip. Please test it at your end and let me know if that works once I send you the zip.

Which device do you have btw?

Edit: I created a sample zip file to copy file to sdcard.

Can you please test it on your device and share the logs?
[MENTION=4620757]m0han[/MENTION] can you test it on any device other than Redmi Note 3? I tested it in RN3 and it is working fine.

It would be helpful if you could just check if the file is copied in sdcard.

Download

Hi,

Can you try flashing this file and let me know if it works for you?

Download
[Android Software/Hacking General [Developers Only]] lucasguapo23:
Hi,

Still not working, Error :255 in Twrp
[Android Software/Hacking General [Developers Only]] Nikhil:
Then I think it is device specific. It is working fine here.
[Android Software/Hacking General [Developers Only]] RajatPatel:
This also happened with me once while I was testing - though the problem was with line endings in the updater-script, fixing that solved the issue. But I have checked your zip and line endings are fine, so there might be some other issue specific to your recovery.

Could you please send me recovery.log file?

Steps to get recovery.log file

Boot into Recovery

Flash the faulty zip

After completion exit out of Aroma installer (Don't check reboot)

Go to Advanced options in TWRP and click Copy Log

This will copy recovery.log to your sdcard root

If connected to ADB from your computer, follow till step no. 3 and then open command prompt -> run below command (Keep your phone in recovery mode, don't reboot)

adb pull /tmp/recovery.log
[Android Software/Hacking General [Developers Only]] lucasguapo23:
Here's the log.
[Android Software/Hacking General [Developers Only]] RajatPatel:
Ok so looking at the logs, found following error:

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

This indicates at some flaw in your update-binary file.

Could you please make sure you use properly working update-binary for your device? Try to replace it from some other working zip file.
[Android Software/Hacking General [Developers Only]] bobo_15:
Is Nexus 5 (hammerhead) supported?

Because in the devices list is written "LG Nexus 5 (mako)" but I don't think it's correct
[Android Software/Hacking General [Developers Only]] seetru:
I don't see support for LG G4, can this be added?
[Android Software/Hacking General [Developers Only]] Nikhil:
Could you share update-binary of Nexus 5? I'll add its support and remove mako because of confusion.

Yes, share update-binary of any working Rom.
[Android Software/Hacking General [Developers Only]] ahmed.ismael:
can i share HTC One M8 update-binary

i know i can place it in the tool directory but it will be helpful for other users

thanks in advance
[Android Software/Hacking General [Developers Only]] seetru:
this is for h811 version of lg g4

https://mega.nz/#!ux8RySLK!RcYTY2gCPlsgux5GTKjJ8rmA6qnKk47EjmbYKnVF76U
[Android Software/Hacking General [Developers Only]] silentvisitor:
It's a huge advantage to have [MENTION=5554397]logosA[/MENTION], his testings and feedbacks in any thread.

Big fan of him :good:
[Android Software/Hacking General [Developers Only]] logosA:
I started learning things just reading your signature :)

Having great teachers like you and original developer like people in this thread is what make our community great. We have to support it as much as we can
[Android Software/Hacking General [Developers Only]] Hawaiihemd:
Again, life is keeping me busy ATM. Expect late responses from me ;)

As for my device(s): I tested your tool's zips which I created myself on my i9300 (Galaxy S3) and my p5110 (Galaxy Tab2 wifi). The same file ran just fine on both. I intend to use also on my SM900F (Galaxy S5).

I tested the "CopyFile" zip you provided on my i9300 running lineageos 14.1 and TWRP 3.0.2-2. As expected from looking at the updater-script, it installed the ultimatetabs app as a system app and copied the apk to internal sdcard (storage/emulated/0). Find the log attached.
[Android Software/Hacking General [Developers Only]] Nikhil:
Yes that was intend to copy the file as well as install it.

It's good to know that it is working for you. I will add this feature in near future. :)
[Android Software/Hacking General [Developers Only]] RajatPatel:
Version Update!

Android Flashable Zip Creator version – 4.0 beta 1 & 3.2 Stable

Changelog

Tool now embedded with Universal Update Binary that will work on every Android phone’s recovery supporting Busy Box, no need of device specific binaries! (FYI - All the recoveries above Android Cupcake have Busybox support, including TWRP, CWM, or any other based on these two recoveries)

“Add Device” screen at the start of the program will no longer appear due to above change, just create zip from the tool and flash it on any phone!

Added OTA updates capability

Other minor bug fixes and cosmetic changes around Instructions and developer information windows.

Note about version changes

v3.2 will not have support for the universal update binary and will continue working with conventional device specific update-binary

v4.0 beta 1 will only have support for universal update binary (works on every Android device)

What is Universal Update Binary?

It is nothing but a shell script that replaces the conventional update-binary. Since all the recoveries after Android Cupcake have support for busybox, shell scripts can be executed by android recovery right away without the need of a pre-compiled update-binary! This was first truly done by Chainfire for his SuperSU zips (if you have a look at update-binary of SuperSU zip, you would find a shell script inside).

I have taken advantage of this capability of android recoveries in this tool, which will now write a shell script instead of equivalent Edify script in order to create zips, making a single zip flashable on a wide range of Android devices with different architectures like arm, x86, mips, arm64, x64 and mips64.

Special thanks:

[MENTION=631273]Chainfire[/MENTION] – for inception of such method

[MENTION=4544860]osm0sis[/MENTION] – for providing a brilliant shell script template for Edify replacement

Download

Flashable Zip Creator

v4.0 beta 1

v3.2 Stable

Kindly report bugs and your feedback regarding universal update binary in this thread. Don't forget to attach aroma log and recovery log while reporting bugs.

Happy Flashing!!
[Android Software/Hacking General [Developers Only]] bel57:
Thank you! :highfive:
[Android Software/Hacking General [Developers Only]] m0han:
will it ever be possible to have a version that works without having java installed in pc?

i haven't been able to try this yet, although i did give my opinion about adding features.
[Android Software/Hacking General [Developers Only]] RajatPatel:
Without java - no, sorry about that.

It's not possible to move the whole codebase from java to some other language now! Though I wonder why you wouldn't want to install java on your machine?

Regarding your feature request - we are planning to add ability to add a customized group in the tool, where u can specify any path u want. Which means if you are looking to flash (or should I say copy) files onto sdcard you would need to create a group with install location '/sdcard' and it will copy files to that location.

Though I always wonder why you would want a flashable zip to copy files to sdcard? I mean even if you would be able to create such zip, wouldn't u be copying that flashable zip to sdcard? And if u use otg, then u can always manually copy folders just same as zips!
[Android Software/Hacking General [Developers Only]] m0han:
why would i want java on my machine if i have

no other use

for it?

the feature request wasn't mine, in the first place. i only supported it, kinda.

you're right. nikhil is also right. but, is copying files from within twrp easy?

wipe

everything

, flash rom & zip from otg; have your stuff ready on boot-up.

if this is not easy, i don't know what is. btw, thanks for your response.
[Android Software/Hacking General [Developers Only]] kpenny:
Does this work on Windows 10 with latest java installed?

When I click on the jar file after extracting it it open another WinRAR window with know install file. How do I install?

Thanks.
[Android Software/Hacking General [Developers Only]] SpasilliumNexus:
You don't install. You've set WinRAR to open jar files by default.

Change the default association of jar files to Java (Google it) or right click the jar > open with > Java.

Also, 7-Zip is better than WinRAR.
[Android Software/Hacking General [Developers Only]] DeadXperiance:
Right click on it and open with java platform se binary (If you have installed java in your computer)
[Android Software/Hacking General [Developers Only]] kpenny:
Thanks for your help.
[Android Software/Hacking General [Developers Only]] vygavedha:
Thanks Team.. [MENTION=4867515]Nikhil[/MENTION] The issue with my zip because of deletion of the theme project from the zip..I have watched the video and rectified the same..i was able to create a viper4Android with its apk fix for noughat ..Flashed the same in RR rom for osprey...working fine...Thank you very much..

I am expecting the data restore feature for each app will be included in next release...
[Android Software/Hacking General [Developers Only]] logosA:
i have tested today 3.2 and 4. beta version of the tool. I can confirme that both are working perfect for my phone

Samsung note 2 Running on nougat 7.1

I was able to successfully create a 450 Mb zip file, which flashed from recovery and my 60+ apps were successfully installed and working without a single problem, in AICP 12 (7.1 N) AND RR 5.8.2 (also 7.1 N)

Also if you want to make a fast and always ready setup for the tool, here what i have done.

Extracted the zip tool in a folder in my ext sdcard

copied all my apk in another folder in ext sdcard (you can use either titanium backup and create an update zip with all user apps, or one by one with apk extractor)

Connected my phone to a PC with latest java installed on it

Double clicked the FlashableZipCreator and the tool pop up in windows.

(Follow the instructions in post 3 if you are not already familiar with the process)

you add your apps and can choose the created zip to be stored in the phone directly.

hit create zip and thats it. PC is only used as a work station to create the zip and nothing more, if you have second thoughts about security with java.

You now have all you apps stored in a flashe-able zip file which you can use every time you flash a rom.
[Android Software/Hacking General [Developers Only]] RajatPatel:
That's great to hear!

Just for the heads up, with next release we are planning to continue only with version 4.0 (with universal update-binary) to eliminate the need of having device specific binaries.
[Android Software/Hacking General [Developers Only]] Primokorn:
I used your tool for the first time and it's working flawlessly on my OP3T!

Removing apps will be awesome but I understand it's harder to implement.

Thanks anyway.
[Android Software/Hacking General [Developers Only]] RajatPatel:
Thanks for your feedback!

Regarding removing apps - it wouldn't be much harder I would say. We will consider it in next release. Thanks.
[Android Software/Hacking General [Developers Only]] logosA:
here is the file we were talking about. I packed the others too in the folder, just in case
[Android Software/Hacking General [Developers Only]] RajatPatel:
Hey, thanks for this. Could you please also share the same set of files generated with v4.0? The ones attached by you are generated by v3.2.
[Android Software/Hacking General [Developers Only]] logosA:
ok then in 3.2 was the thing, because as i have told you with 3.1 has worked fine.

I just wasnt sure if that was created with 3.2 or 4.1.

I will create now the same set with 4.1 and will share the binarry .

Just give me some minutes. It wouldnt be a problem.

TOOL IS SO FAST :)
[Android Software/Hacking General [Developers Only]] logosA:
ok here you go. The same set of apps created with the 4.1 beta.

I have included all binary files as before and also the aroma folder, if it can help you
[Android Software/Hacking General [Developers Only]] RajatPatel:
Thanks mate. So I quickly had a look at both set of files and identified that it was a flaw in v3.2 generated script which was causing the issue. (Strongly believe it was introduced after a bad merge operation)

Anyway, I will fix it and re-upload v3.2 when I get access to my machine. Till then you guys can use v4 beta 1 which doesn't have this issue.

Thanks for reporting.
[Android Software/Hacking General [Developers Only]] Nikhil:
Rajat,

Do we need 3.2?

as per [MENTION=5554397]logosA[/MENTION] 's feedback, 4.0 b1 works perfectly. I think we should go ahead with 4.0 beta 1 only.

We would be adding features to 4.0 b1 and not in 3.2 anyway.
[Android Software/Hacking General [Developers Only]] logosA:
Until tommorow two of us are going to test it in two different phones, just to make sure its working in other phones as well as mine.

I will let you know about the results as soon as friends inform me, too.

We have made a very big set of apps, around 450mb with lots of apps in it.

I am sure its going to work, but let me speak after i have confirmation of these two as well.
[Android Software/Hacking General [Developers Only]] Nikhil:
That would help, Thanks!

Could you by any chance try installing fonts, boot animations, ringtones and notification tones too?

If you need I can share zip file containing such files.
[Android Software/Hacking General [Developers Only]] logosA:
Sure why not, that i can do very easily.

But as you said you must provide me these as I dont use any others than the roms provide me.

If you like you can upload a zip with anything you want me to try with the tool.

you can use

http://www.zippyshare.com/

to upload it, or any other server you want to.

I use that because its fast, free and without registration needed for a zip up to 200 Mb.

a dear friend just show it to me.
[Android Software/Hacking General [Developers Only]] Nikhil:
Here you go!

https://drive.google.com/a/maricopa.edu/file/d/0BywZkcR09v6qQlBfbm82d200M1U/view?usp=drivesdk

You will be asked for access request. Do it I will accept your request. Then you will be able to access the file.
[Android Software/Hacking General [Developers Only]] logosA:
i have send request
[Android Software/Hacking General [Developers Only]] RajatPatel:
No, I don't think we would require 3.2 now, though we can just fix the bug IogosA reported and leave it on stable state.

We can continue further with 4.0 without any issues.
[Android Software/Hacking General [Developers Only]] logosA:
ok then, when i will receive the files you have send me i will make a new zip from the begging using the 4.1 version of the tool, including my apps and your fonts, animations etc, and then I will perform a clean flash of my rom and report back to you if everything is fine or anything goes wrong too.
[Android Software/Hacking General [Developers Only]] Nikhil:
You must have received notification. I have accepted the request. Please test and report back!
[Android Software/Hacking General [Developers Only]] logosA:
i am downloading file. Just to confirm its 306 Mb, right?

Do you want me to add my apps to that or just flash it and see if everything is ok?

For example xposed shoud i remove it, as i am on android N and may cause problems?

I dont mind about my rom's installation I can make it again, just for the tool not to give errors

If you have any suggestions please dont hesitate to let me know
[Android Software/Hacking General [Developers Only]] Nikhil:
Yes 306 Mb. Data apps are working. It would be helpful if you could test installing the rest of the files.

Adding/removing apps from group is your choice :)
[Android Software/Hacking General [Developers Only]] logosA:
I can flash everything and see how its working.

I can dis-select xpose or any other user app i already have and flash all the others.

Its made with the 4.1 tool or you want me to create a new one with 4.1 fashable zip creator?

In other words, is it ready to be flashed?
[Android Software/Hacking General [Developers Only]] logosA:
ok guys here it is the zip file was successflly installed, every single folder, font, boot animations was installed with no problem at all and everything is working just fine

As you can see from the screenshots, boot animation, font that i randomly chose, all ringtones are present and working perfect after the initial setup.
[Android Software/Hacking General [Developers Only]] IZI.Xav:
Hi, thanks for your work!

On the other hand I do not manage to run on xubuntu an idea?
[Android Software/Hacking General [Developers Only]] Nikhil:
Yes you can create a flashable bloat zip. Read logosA's posts in the thread, you will find how to do that.

Great! did you create it using v4.0 b1?

I just tested it on ubuntu 16.04. It is working for me.

is latest version of java installed in your system?