[Q] What is the difference between flashing and installing an apk? - Android Q&A, Help & Troubleshooting

Sometimes.. you see apps on xda.. that are required to be flashed.. and are in the form of zip files. Now how are these different from apk files with their regular installation? is it something to do with giving these apps you flash a deeper level permission? if so.. if your rooted can't you just give those apps those permissions after a normal install?

Usually making them flashable is just easier for some and if you were to extract the .apk from the zip and install it from sdcard it would work the same. Sometimes the app may require extra libs that are flashed at the same time as the app so they are bundled together as a zip. Or possibly it is being flashed to system for whatever reason and can't be done this way installed through os.
There are lots of varying reasons why it may be a .zip but you could also install it probably any way you'd like (including pushing with adb) if you want to know what's in the .zip just extract its contents, if you want to know what happens when you flash it look at the updater-script
Sent from my Nexus 4 using xda premium

Thank you!
demkantor said:
Usually making them flashable is just easier for some and if you were to extract the .apk from the zip and install it from sdcard it would work the same. Sometimes the app may require extra libs that are flashed at the same time as the app so they are bundled together as a zip. Or possibly it is being flashed to system for whatever reason and can't be done this way installed through os.
There are lots of varying reasons why it may be a .zip but you could also install it probably any way you'd like (including pushing with adb) if you want to know what's in the .zip just extract its contents, if you want to know what happens when you flash it look at the updater-script
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Thank you..! I have one more question.. in some cases.. you are instructed to "copy apk's to system\app folder with a file manager with root permissions and then reboot" ... why this? does this produce the same effect as flashing it?

I guess it depends on the app, but it may only function properly as a system app, and yes it would be just as possible to flash it through recovery or push with adb to get the same effect
Sent from my Nexus 4 using xda premium

Thank you again!
demkantor said:
I guess it depends on the app, but it may only function properly as a system app, and yes it would be just as possible to flash it through recovery or push with adb to get the same effect
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
hey, thanx alot!

rjspark89 said:
hey, thanx alot!
Click to expand...
Click to collapse
And if it's an system app, or framework it's better to flash via Recovery

thanks!
superdragonpt said:
And if it's an system app, or framework it's better to flash via Recovery
Click to expand...
Click to collapse
thanks this is valuable info for a newbie..! any more imp tips related to my question is should know?

rjspark89 said:
thanks this is valuable info for a newbie..! any more imp tips related to my question is should know?
Click to expand...
Click to collapse
Yes
DON'T let you battery go all the way down.
This way it will lst longer (no Joke)

Related

[Q] CWR Script errors

I'm trying to get one of these keyboards http://forum.xda-developers.com/showthread.php?t=754948 on my TB. I'm getting that lovely script error when trying to install it via CWR. Anyone know if this is possible? I'm really not liking the stock keyboard on the TB, its not large enough.
Its a scripting issue....the new CWR doesn't allow the old updater script...I have been looking all over the place for a solution and keep coming up empty...if you find one, let me know and I'll do the same!
This probably should have been in general. Just use adb or root explorer instead since those use the old script.
mob87 said:
This probably should have been in general. Just use adb or root explorer instead since those use the old script.
Click to expand...
Click to collapse
How exactly do you do this? Please and thank you
Turns out we were overthinking it....here ya go!
mykenyc said:
Just install it from the market. Search for gingerbread keyboard, using it.
Click to expand...
Click to collapse
Fodizzle1978 said:
Turns out we were overthinking it....here ya go!
Click to expand...
Click to collapse
Unfortunately this is not the same as the ginerbread keyboard. the gingerbread keyboard has way smaller buttons.
I just need to figure out how to install .zip files over adb apparently...
ZuneNinja! said:
Unfortunately this is not the same as the ginerbread keyboard. the gingerbread keyboard has way smaller buttons.
I just need to figure out how to install .zip files over adb apparently...
Click to expand...
Click to collapse
You don't install zips through adb....you "push" the necessary files to the phone, the zip is just an automated way to do it. Everyone with a rooted phone should have some common knowledge of adb commands....there are some great tutorials out there...I'm no genius in adb but I dabble. Good luck!
Fodizzle1978 said:
You don't install zips through adb....you "push" the necessary files to the phone, the zip is just an automated way to do it. Everyone with a rooted phone should have some common knowledge of adb commands....there are some great tutorials out there...I'm no genius in adb but I dabble. Good luck!
Click to expand...
Click to collapse
Yeah I know how adb works and all that, just didn't know this specific function because I've always been able to install from CWR.
Fodizzle1978 said:
Its a scripting issue....the new CWR doesn't allow the old updater script...I have been looking all over the place for a solution and keep coming up empty...if you find one, let me know and I'll do the same!
Click to expand...
Click to collapse
Search for amend2edify that's the script updater
Sent from my ADR6300 using XDA Premium App

Storage/emulated/0/0/0 after flashing several ROM's

Hi is there a way to clean up these /0 directories who looks identical?
It add's an additional /0 directory in emulated every time I do a clean flash. Don't that use up my internal storage?
I'm using Temasek's cm 10.1 unofficial v83 + kernel but i don't think it has to do with the ROM
Is it safe to just delete these directories or is there any other way around this?
Sent from my GT-I9300 using xda premium
Klype said:
Hi is there a way to clean up these /0 directories who looks identical?
It add's an additional /0 directory in emulated every time I do a clean flash. Don't that use up my internal storage?
I'm using Temasek's cm 10.1 unofficial v83 + kernel but i don't think it has to do with the ROM
Is it safe to just delete these directories or is there any other way around this?
Click to expand...
Click to collapse
You need to upgrade your recovery application to the latest version to stop getting multiple /0 folders.
You only need one level of /0. And, yes you can delete the redundant levels. But make sure your files under the last level are copied to the sole remaining level.
/0 level came in with multi-user support in 4.2
Sent from my GT-I9300
BillGoss said:
You need to upgrade your recovery application to the latest version to stop getting multiple /0 folders.
You only need one level of /0. And, yes you can delete the redundant levels. But make sure your files under the last level are copied to the sole remaining level.
/0 level came in with multi-user support in 4.2
Sent from my GT-I9300
Click to expand...
Click to collapse
Thanks for answering
I've flashed cwmtouch 6.0.2.8 awhile ago and the levels of /0's stopped adding up.
I've copied all the files from the last levels to emulated/0.
Then i deleted the files from the last levels except one made by a rom i had several months ago. It can't seem to be deleted because of some elevated permissions. I've tried with several Explorer's with no luck.
How do I get around to change permissions or simply get rid of former systemfiles not in use anymore?
Sent from my GT-I9300 using xda premium
Klype said:
Thanks for answering
I've flashed cwmtouch 6.0.2.8 awhile ago and the levels of /0's stopped adding up.
I've copied all the files from the last levels to emulated/0.
Then i deleted the files from the last levels except one made by a rom i had several months ago. It can't seem to be deleted because of some elevated permissions. I've tried with several Explorer's with no luck.
How do I get around to change permissions or simply get rid of former systemfiles not in use anymore?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
You can try with philz recovery and aroma file manager inside the recovery, see first posts of thread.
and please search next time, this has been discussed way too much
Klype said:
Thanks for answering
I've flashed cwmtouch 6.0.2.8 awhile ago and the levels of /0's stopped adding up.
I've copied all the files from the last levels to emulated/0.
Then i deleted the files from the last levels except one made by a rom i had several months ago. It can't seem to be deleted because of some elevated permissions. I've tried with several Explorer's with no luck.
How do I get around to change permissions or simply get rid of former systemfiles not in use anymore?
Click to expand...
Click to collapse
Use terminal. Then remove the folder using the 'rm -rf' command. You may need to read up on this if you aren't familiar with Linux commands.
Sent from my GT-I9300
Back you files up to a PC, then boot to recovery and format /sdcard. That will remove all the 0/0/0/0/0/0 folders, then boot and copy your files back.
BillGoss said:
Use terminal. Then remove the folder using the 'rm -rf' command. You may need to read up on this if you aren't familiar with Linux commands.
Sent from my GT-I9300
Click to expand...
Click to collapse
Yes i might have to read up a bit on terminal commands if i should have a chance to use it...
Sent from my GT-I9300 using xda premium
Glebun said:
and please search next time, this has been discussed way too much
Click to expand...
Click to collapse
Actually i did search but didn't understand what to do and what to search for. Thats why i finally asked the question here in the Q n A section. The search motor in the android app is also really difficult to search with.
Sent from my GT-I9300 using xda premium
delsus said:
Back you files up to a PC, then boot to recovery and format /sdcard. That will remove all the 0/0/0/0/0/0 folders, then boot and copy your files back.
Click to expand...
Click to collapse
Thanks that's a good idea
At least it solve my problem for now till i learn more about using the terminal
Sent from my GT-I9300 using xda premium
Striatum_bdr said:
You can try with philz recovery and aroma file manager inside the recovery, see first posts of thread.
Click to expand...
Click to collapse
I flashed aroma file manager and it worked like a charm
Thanks for pointing me in this direction now everything works as it should :thumbup:
Sent from my GT-I9300 using xda premium
Klype said:
I flashed aroma file manager and it worked like a charm
Thanks for pointing me in this direction now everything works as it should :thumbup:
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
hi..
i have the same pb.. can u pls assist me how can u solve it..?
my sinternal storage is now storage\emulated\0
wbr..
t-mobile_mda said:
hi..
i have the same pb.. can u pls assist me how can u solve it..?
my sinternal storage is now storage\emulated\0
wbr..
Click to expand...
Click to collapse
Yes look here http://forum.xda-developers.com/galaxy-s3/general/info-flashed-4-2-sdcard-data-t2274218

Archos Arnova AN7GH3 (7h G3) Need help

Hey there guys!
Well this is gonna sound a bit ridiculous but I've actually deleted Launcher2.apk and SystemUI.apk instead of copied them (stupid yeah I know I could eat my face off right now...) and I need them back. There's no official ROM available for download which pretty much sucks so I can't get them anywhere. So if anyone here has the same tablet as me, consider sharing those two system apps with me.
Thanks.
Benzonat0r said:
Hey there guys!
Well this is gonna sound a bit ridiculous but I've actually deleted Launcher2.apk and SystemUI.apk instead of copied them (stupid yeah I know I could eat my face off right now...) and I need them back. There's no official ROM available for download which pretty much sucks so I can't get them anywhere. So if anyone here has the same tablet as me, consider sharing those two system apps with me.
Thanks.
Click to expand...
Click to collapse
I am surprised that there isn't any restore system. Looks if you have a kernel menu with touch combinaison. Like us with power on button + vol up.
Bizcuite
Sent from my GT-N7100 using xda app-developers app
Well I can get into recovery easily but it's useless, can't mount external sd card so I can't flash anything.
Benzonat0r said:
Well I can get into recovery easily but it's useless, can't mount external sd card so I can't flash anything.
Click to expand...
Click to collapse
Just to be sure you have no way to reflash any firmware?
Else try to connect your tab to your computer and use adb even if your system bootloop. Try to install adb and push your missing files.
I doubt that there are no firmwares to download.
If they havr used the same boot like archos. The mount of the sdcard depend of the initramfs (ramdisk) not the OS.
Bizcuite
Sent from my GT-N7100 using xda app-developers app
bizcuite said:
Just to be sure you have no way to reflash any firmware?
Else try to connect your tab to your computer and use adb even if your system bootloop. Try to install adb and push your missing files.
I doubt that there are no firmwares to download.
If they havr used the same boot like archos. The mount of the sdcard depend of the initramfs (ramdisk) not the OS.
Bizcuite
Sent from my GT-N7100 using xda app-developers app
Click to expand...
Click to collapse
It's not in a boot loop it just hangs at "bootanimation" (If you'd call it that I know I wouldn't) and wham stays like this forever.
Oh and another problem.
Code:
adb shell
- exec '/system/bin/sh' failed no such file or directory (2) -
Can't push files from recovery because I need to mount /system. I can't do that because adb shell isn't working.
I don't see 7h G3 anywhere, see for yourself.
http://arnovatech.com/support/updates_fwm.html?country=gb&lang=en
Benzonat0r said:
Hey there guys!
Well this is gonna sound a bit ridiculous but I've actually deleted Launcher2.apk and SystemUI.apk instead of copied them (stupid yeah I know I could eat my face off right now...) and I need them back. There's no official ROM available for download which pretty much sucks so I can't get them anywhere. So if anyone here has the same tablet as me, consider sharing those two system apps with me.
Thanks.
Click to expand...
Click to collapse
I have the same tablet, if you need these two files ... here they are: View attachment Launcher2.apk
View attachment SystemUI.apk
Just in case when still struggling or for future need:
unbrick-and-reflash-arnova-7h-g3-solved

Flashable Zip to tar.md5

Hi.. Can somebody tell me if there is a way to convert flashable zip files to Odin tar.md5 files !!!!
I hav searched and read some related threads but none of them gave a conclusive answer for the question. Some explained how to convert .img files to tar files & some explained creating tar files by using 7zip (actually 7zip only create a file with .tar extension) but my question is how to convert zip files which don't have image files like for example if i wanted to flash some apps ported from other devices (camera, gallery, keyboard etc...) and i don't want to flash them through Recovery (I don't hav one) then HOW???
Technically speaking, you'd need to create an image of the partition containing content from your .zip folder (with proper permissions and stuff created by updater-script) and then you should pack it as system.img into .tar.md5 file.
The questions is WHY you want to do this, it's NOT common and there's absolutely no point in doing that.
Question is why no recovery
Sent from my GT-I9300 using XDA Premium 4 mobile app
Well, consider installing a corresponding CWM :good:
JustArchi said:
Technically speaking, you'd need to create an image of the partition containing content from your .zip folder (with proper permissions and stuff created by updater-script) and then you should pack it as system.img into .tar.md5 file.
The questions is WHY you want to do this, it's NOT common and there's absolutely no point in doing that.
Click to expand...
Click to collapse
JJEgan said:
Question is why no recovery
Sent from my GT-I9300 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I don't want to install a Recovery as it increases Binary count every time v boot the device. I personally don't like to increase my count. Every time i enter into Recovery to flash a zip file it will trigger the count. I know Triangle away can make the count zero but then i have to use it every time after using Recovery & I don't want to go through all that hassle.
Why i don't like an increase in count.... It's more like OCD
So, is there any easy n simple method to convert files !!! Am not much of a Android student. It's like am at Kindergarten level at Android University
vikram66778 said:
I don't want to install a Recovery as it increases Binary count every time v boot the device. I personally don't like to increase my count. Every time i enter into Recovery to flash a zip file it will trigger the count. I know Triangle away can make the count zero but then i have to use it every time after using Recovery & I don't want to go through all that hassle.
Why i don't like an increase in count.... It's more like OCD
So, is there any easy n simple method to convert files !!! Am not much of a Android student. It's like am at Kindergarten level at Android University
Click to expand...
Click to collapse
There's no easy way of doing what you want. There IS a way, but definitely not easy one.
JustArchi said:
There's no easy way of doing what you want. There IS a way, but definitely not easy one.
Click to expand...
Click to collapse
Can u explain me in a simplest way possible. I want to give it a try.... Thanks for help..
vikram66778 said:
Can u explain me in a simplest way possible. I want to give it a try.... Thanks for help..
Click to expand...
Click to collapse
Already done above.
Easier solution is mobile odin, although it can't flash all zips.
Sent from my GT-I9300 using Tapatalk
vikram66778 said:
Hi.. Can somebody tell me if there is a way to convert flashable zip files to Odin tar.md5 files !!!!
I hav searched and read some related threads but none of them gave a conclusive answer for the question. Some explained how to convert .img files to tar files & some explained creating tar files by using 7zip (actually 7zip only create a file with .tar extension) but my question is how to convert zip files which don't have image files like for example if i wanted to flash some apps ported from other devices (camera, gallery, keyboard etc...) and i don't want to flash them through Recovery (I don't hav one) then HOW???
Click to expand...
Click to collapse
hi do you found the way to? my p7500 olny with internal sd, i cant move the file to it cause it keeps rebooting. i need the tar.md5 file in odin to flash it.
thanks.
Well, I need to do this cuz my screen is broken and I can't see the TWRP options.
I need to flash LockScreen_Security_bypassV1.1 to get my files. Can anyone help me about this? Thanks in advance.

[Q] Update.zip basics

I have managed to create simple "update.zip" files. From what I understand, the text script "updater-script" uses commands found in a binary file, "update-binary". The way I understand it, if I use a command like "ui_print()" then this command is present inside that binary file. As I have copied this binary file off something else, I have no idea what is inside of it. Is there a way to either make this binary file, or obtain a "generic" binary file that has all its commands listed/documented?
Many thanks
In truth I couldn't tell you how to make it, I think few have. I would ask at the aroma thread being the created did.
But being its rather complicated I would suggest just pulling the latest one from a ROM on your device or use the one that comes with the latest gapps or aroma package.
If you want to know more about updater-script commands,edify, see here
http://forum.xda-developers.com/showthread.php?t=2290009
Sent from my Nexus 7 using XDA Premium 4 mobile app
demkantor said:
In truth I couldn't tell you how to make it, I think few have. I would ask at the aroma thread being the created did.
But being its rather complicated I would suggest just pulling the latest one from a ROM on your device or use the one that comes with the latest gapps or aroma package.
If you want to know more about updater-script commands,edify, see here
http://forum.xda-developers.com/showthread.php?t=2290009
Sent from my Nexus 7 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks for all the pointers.

Categories

Resources