[Q] Has anyone tried to move dalvik-cache? - Dell Venue

Tried to move data/dalvik-cache to /cache, then everything is force closed. I mean all startup apps failed.
Any idea?

Me too, created the Ext2 on the SD, then move the existing and created hard links on internal.
Rebooted, then the Stage_UI didn't want to start.
Went back in and reverse everything.

The stage UI caused me the same problem as well so I replaced it with ADW launcher. Way smoother.
Back on topic, the reason why all apps crashed is because the cache folder changes from 771 to 770 after every reboot. I tried to modify the init.rc , but it is useless because the phone loads the default init.rc from ramdisk in every reboot. I can extract the original file but I don't know how to put it back to the phone.

Related

[Q] Replacing Contacts.apk removed my Contatcs and Phone apps from device

Hope i'm not "noobing" here but..
I use SGSII with Litening Rom 6.1
I found a Contacts.apk which fits all SGSII roms that adds Hebrew letters to the letters bar for fast searching a contact
Used Root explorer to replace the old Contacts.apk (did backup the old one to another folder of course) and perfomed a reboot
When the device started, I had no "Phone" and "Contacts" shortcuts at the bottom and everything related to Contacts app did FC
I guessed it was a faulty apk so I restored the old one and rebooted but got the same result: no "Phone" and "Contacts"
of course that before all that I did a full backup with the recovery console so everything's back to normal.. did the same procedure again and got the same result...
am I missing here something? Should I do anything else other then simply replace the apk and reboot? (most of the threads are not stating other steps )
Please help
Thank you
No, you did not miss anything the usual step is to install the apk and reboot.
It might be the apk was not designed for the S2 because it corrupted your phone. Some apks on the market are not designed for all android phones but specific to a model because it contains code that is not on other phones.
Cosmic Blue said:
No, you did not miss anything the usual step is to install the apk and reboot.
It might be the apk was not designed for the S2 because it corrupted your phone. Some apks on the market are not designed for all android phones but specific to a model because it contains code that is not on other phones.
Click to expand...
Click to collapse
I assume that i haven't did nothing wrong but why would restoring the original one did not fix it? that's my actual question
As the download apk that may have been designed for different may have changed some values that were not only associated with the contacts and phone.
because not all the modifications the apk installed on your phone where erased when you tried to restore the old apk.
The only way pnly way to guarantee every thing is deteled is to to do a factory reset or in your case flash your back up which will wipe your phone and reset to stock for that firmware.
This could be a good hint, although i DID notice "fits all S2 custom roms" and i use LR 6.1
So i would like to to a little experiment:
1. Backup Contacts.apk
2. Delete Contacts.apk
3. Reboot (Device will load without Contacts and Phone i guess)
4. Pasting Contacts.apk from backup again
5. Reboot
To your opinion, this will restore the Contacts and Phone right?
If it will, it will proof that the procedure i did was OK and the cooked Contacts.apk was invalid..
am I right?
yes, it should work as long as you make no other changes.
As custom roms as always evolving due to upgrades and changes.
Cooked versions of apks unless they are also upgraded also may have invalid links that are no longer recognized and that why it failed.
i will test it and post a result soon
Cosmic Blue said:
yes, it should work as long as you make no other changes.
As custom roms as always evolving due to upgrades and changes.
Cooked versions of apks unless they are also upgraded also may have invalid links that are no longer recognized and that why it failed.
Click to expand...
Click to collapse
It appears that you and me both were wrong..
just tried the test.. no good, after removing the file, contacts is missing, even after putting it back
still waiting for someone to answer the 1st post and save me :\
EDIT: Iv'e noticed you mentioned: INSTALLING, what do you mean by that? actually running the apk? (have tried, it asks to replace, i say yes but in the end i get "application not installed"
apparently the contact apk is not initializing properly.
I have one other suggestion.
from the recovery back up pull out the contact.apk that you know is working and try your experiment again and see if that solves the problem. do not use the back up you just made.
There maybe an issue with the backed up contacts in that the file maybe damaged.
have you set the correct permissions for the contact.apk?
viva.fidel said:
have you set the correct permissions for the contact.apk?
Click to expand...
Click to collapse
Well, I haven't touched the permissions
Lets try to solve it one step at a time
When everything is working properly and the original apk is I'm system/app.. I cut the apk and paste it elsewhere.. Contacts is removed..
Cutting it and pasting it back wont restore it.. why?
Sent from my GT-I9100 using XDA App
rotemakerman said:
Well, I haven't touched the permissions
Lets try to solve it one step at a time
When everything is working properly and the original apk is I'm system/app.. I cut the apk and paste it elsewhere.. Contacts is removed..
Cutting it and pasting it back wont restore it.. why?
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Well it depends where you are cutting and pasting it to. Your phone works on the ext4 filesystem, where files have built-in permissions setting, they'll keep these permissions as long as they stay on a linux filesystem.. however if you copy contacts.apk to the sdcard or to external_sd (which is fat/fat32), then these permissions are lost.. therefore you'll have issues when moving to sdcard and back
if you wanna test this then try renaming the original apk to contacts.bak (it'll get uninstalled and disappear from app drawer) without moving it out of system/app, then try renaming it back to contacts.apk, reboot phone and it'll be back and working
viva.fidel said:
Well it depends where you are cutting and pasting it to. Your phone works on the ext4 filesystem, where files have built-in permissions setting, they'll keep these permissions as long as they stay on a linux filesystem.. however if you copy contacts.apk to the sdcard or to external_sd (which is fat/fat32), then these permissions are lost.. therefore you'll have issues when moving to sdcard and back
if you wanna test this then try renaming the original apk to contacts.bak (it'll get uninstalled and disappear from app drawer) without moving it out of system/app, then try renaming it back to contacts.apk, reboot phone and it'll be back and working
Click to expand...
Click to collapse
Thanks for the heads up!
Actually i did cut it to and paste it from the sdcard!
will try it and post the result here soon
If this will work.. what are the permissions i should set for the cooked apk?
rotemakerman said:
Thanks for the heads up!
Actually i did cut it to and paste it from the sdcard!
will try it and post the result here soon
If this will work.. what are the permissions i should set for the cooked apk?
Click to expand...
Click to collapse
no problem, app permissions should be rw-r--r--
just have a look at the permissions for any other app in system/app if you're unclear on how to set them
appears that this wasn't the problem either
This try i just renamed contacts.apk to contacts.bak, the permissions remained the same
contacts was removed, renamed back, nothing happend
no one?
maybe you need to wipe Dalvik Cache or even a full wipe to factory
Just to give an outside perspective, have you tried searching the app drawer for the phone and contact apps? The bar at the bottom on the homescreen is just a shortcut bar. If the phone and contact apps are in the app drawer, you need to add their shortcut back to the bar.
It's definitely not just the shortcuts... trying to access contacts through other apps like WhatsApp causing a FC or something..
I'm trying to find a solution that doesn't involve switching rom or wiping anything
What else can I do?
fixed
Found a solution!
Changed the kernel (speedmod t42) and wiped dalvik and cache (kernel is probably not related, but still, that's what I did)

Force Delete Extra '0' Folders

I've been experimenting with a few different ROMs. First, I used UltimaRom, before moving onto Paranoid Android, and then CM10. Currently, I am using RootBox - Its been the best one so far (rivalling UltimaROM)
However, I've been left with lots of '0' directories in the file system. So, if I'm on root using ES File Explorer, I can click on '0' repeatedly to get sdcard/0/0/0.
Now, this 0 folder is taking a lot of space. Previously, the folder was 3.61GB in size(!). I've deleted it, now - reducing the size to 1.8GB.
However, the problem is that the UltimaROM ... ROM simply does not go away. The ROM is 1.8GB in size! So, its taking quite a bit of space. I've tried ES, Astro, and the delete option from 'Storage' in the settings yet, although they indicate they've deleted it, it doesn't actually go - and instead it just comes back again and again!
I'm sure I've full wiped in every instance. So, factory reset, cleared cache, cleared dalvik cache, and I even cleared system before moving between the ROMs.
I know two of the '0's were formed by bad installs of RootBox - one install failed, then, forgetting to format before retrying, the next one installed. To rectify this, I installed RootBox again - formatting this time before doing so.
How do I delete this thing permanently?! I really want to avoid wiping again, because it takes so long to get all my apps back. And, there's no guarantee wiping will even work! Although, if that is the only way, I will try it!
Sent from my Nexus 7 using xda app-developers app
Download a stock ROM, flash it in recovery, and that should get rid of the 0 folder. Just make sure the 0 folder doesn't contain any files or data that you might want to save.
Better yet, update your recovery to at least 6.0.27.
Sent from my GT-I9300 using xda app-developers app
Will updating my recovery really fix the issue?
Seems like an unusual method... But I'll try it!
Also, I'm trying to avoid reflashing, so in going to look for other solutions before i completely must flash to get rid of the 0 folder,
Sent from my Nexus 7 using xda app-developers app
Recovery has nothing to do with this, you miss understood him.
Stock Rom? Why? Would this realy overwrite the (perhaps r/o) folders?
I think it's the savest way to format your internal /data /system etc from recovery, and flash your ROM clean. Theretical you can move/ delete your existing folders, but this can be very confusing. Some folders/ mounts may be read only at the moment...
If you switching from 4.2 to 4.1 you are left with the 0 folder. Flashing a stock ROM will reformat your file system and get ride of the 0 folder. If you are switching between 4.2 ROMs you may get a 0/0/0/... folder. Updating recovery should revert the 0/0/0/... folder back to the 0 folder.
When I went from CM10.1 to 4.1 I was left with the 0 folder. Formatting the system in recovery didn't solve the problem and flashing a stock ROM did.
Best method use the search function as per Q12 FAQS .
Question has been asked and solved recently .
jje

[Q] Directory Structure after Wipre/Reset

New user and first time rooting and flashing a new ROM. Actually the process appears to have gone well. I do have a keyboard issue which reflashing caused me to see another possible issue.
This is a GT-P7510 32 GB Wi-Fi only device. I had originally flashed to CM 10.1 which brought me up to Android 4.2.2. Also flashed gapps. After the initial ROM flash I had installed some Apps to begin playing with the new settings. But the keyboard issue became more annoying so decided to reflash and start over from scratch again.
After wiping, clearing cache and resetting the tablet I noticed some peculiarities in the directory structure of the memory. The top of the directory structure is a folder named 0 (zero). If I click on this one I get another almost identical directory structure also with another one named 0 as well. This one is almost identical to the root structure. I can then click on this next nested 0 directory structure to find even another directory structure. This last one however also has some files(downloaded data) remaining from a few of the programs that I had originally installed after the ROM upgrade.
I have tried to reflash, wipe, clear data, clear cache, clear dalvick cache and even resetting tablet but nothing seems to get rid of these nested folders. I have done this numerous times now. At first I thought this might have been my Google acct restoring these files but the last few times after wiping upon reboot I do not set up my Google acct or even connect to a Wi-Fi source for any files to be downloaded.
On a recent attempt soon after rebooting I connected my tablet to my computer via USB and observed the directory structure. After seeing the third nested directory structure beginning with a 0 I clicked on it and observed only two folders initially. However when I clicked on one of them I got an explorer error saying something to the affect it was in use and to try again. After several minutes I was then able to see the completely built third level nested directory structure that was busy rebuilding itself.
So my question is how does one truly and fully wipe the memory? If the ClockworkMod Recovery (v6.0.3.0) says I'm wiping data/factory reset is that not wiping all the files on the flash memory? Including wipe cache partition! What does a Factory data reset in the OS do? Where is this old data coming from? Why am I seeing almost three identical directory structure trees nested under each other?
I will admit to being a little weak on Linux file systems.

[HELP] Unable to install apps from ".apk" files

[HELP] Unable to install apps from ".apk" files
Edit: My phone is running AOSParadox.
This is what happened. I hope you read this fully.
(But still, you can skip to point no 5 , if this? looks long/big ? And if you want to know the "actual" problem, skip to point no 10.)
1)I downloaded new "phone" app apk and installed.
2)new app got installed as a separate app as a result of which there were 2 'phone' apps (one of which is a system app)
3)To make the newer 'phone' app as system app, I deleted the older one(yes, I had rooted the ROM) , and using ES file explorer, I copied the newer 'phone' apk to /system/priv-app & changed the permission to rw- r-- r-- . Rebooted.
4)After this, I could make phone calls...BUT, after dialing a number, the dialer interface ( the screen where the controls like disconnecting a call, loud speaker toggle, mute toggle exist) was simply not appearing. Hence, I could not do anything but listen to the calls that I dial.
5)So, I uninstalled this app, and reflashed the whole ROM and rebooted to system.
6)'Google play service stopped' kept on popping up. So,flashed open gapps nano.
7)now, 'setup wizard stopped' started to pop up.
8)Hence I deleted setupwizard.apk from /system/priv-app in twrp file manager & rebooted, And the pop up stopped.
9) But, many other app crashing messages started to pop up.( like Google+, Google play games, messenger(Google) ie, all the 'Google' apps that are NOT part of Gapps).So, I wiped ONLY system and flashed the ROM and Gapps. After this also, 'setup wizard stopped' started to pop up. So, I repeated step 8.
10) Now, I cannot install ANY "apk". If I try to install , it says that there is "parsing error". But, I can install an app if I download it DIRECTLY from play store.
Help me to install the '.apk' file.
Edit: do NOT suggest me to perform a full wipe/clean install of the ROM. please.
Thanks everyone!
try this, take a nandroid of only your data partition (without compression) , change your file systems on /data & /cache (if its ext4, then okay, but if its f2fs then change to ext4) , the do a clean flash, boot into the rom, then reboot back to recovery, wipe ONLY DATA and restore the nandroid backup, wipe cache & dalvik and reboot.
see is it helps
Also, fix the title of this thread
Joshwin Aranha said:
try this, take a nandroid of only your data partition (without compression) , change your file systems on /data & /cache (if its ext4, then okay, but if its f2fs then change to ext4) , the do a clean flash, boot into the rom, then reboot back to recovery, wipe ONLY DATA and restore the nandroid backup, wipe cache & dalvik and reboot.
see is it helps
Also, fix the title of this thread
Click to expand...
Click to collapse
About fixing the title, how can I do it?
Edit: Do you know what is the problem?
In the OP , I have written not to suggest a clean install/full wipe(which you still did), because, I want to know what is that I did wrong in the process.
Thank you anyway.
sankarshan said:
About fixing the title, how can I do it?
Edit: Do you know what is the problem?
In the OP , I have written not to suggest a clean install/full wipe(which you still did), because, I want to know what is that I did wrong in the process.
Thank you anyway.
Click to expand...
Click to collapse
best i can say is that you tried messing around symlinked system apps, the gapps problem confirms that, maybe Googlepackage installer got screwed up, try installing gapps again without any wipes, if that doesnt work, maybe a full wipe is the only option.
Joshwin Aranha said:
best i can say is that you tried messing around symlinked system apps, the gapps problem confirms that, maybe Googlepackage installer got screwed up, try installing gapps again without any wipes, if that doesnt work, maybe a full wipe is the only option.
Click to expand...
Click to collapse
I re-flashed the Gapps without wiping anything. After booting into the system, after unlocking, 'unfortunately setup wizard has stopped working ' kept on popping up.
Why?
Anyway, I think I have to do clean install. Just curious about what's happening.

OptimisingAppsFixer made something not fixed

Hello there!
Alright, let me walk you through my problem.
(there's a summary at the bottom)
I own a rooted Asus zenfone go (Z00VD). In the past, I kept on waiting on boots cuz of the optimizing apps thingy that android does sometimes becomes of dalvik. After some research, a guy suggested to download the app(title), so I did and it worked. And it had a obvious warning that I did not follow which is "if you wish to uninstall this app, press unfix".
Alright so here comes the real problem, I decided to install a custom rom (resurrection remix), which made me wipe everything then it always ran into bootloader because it can't delete the dalvik cache (permissions error I think). So, in a great genius manner, I renamed the arm folder to parm(from arm) which allowed the Android rom to make a new dalvik cache.
So now in internal storage, I have a parm folder that is 2.5 gb big and is absolutely undeletable, even with recovery. The folder is owned by root, and it's group is 01028 sdcard_r. I cannot change it's permissions, or move it to external. I was able to move it to DCIM, but am unable to move it back to dalvik folder to u fix. So now, I can only change it's name to profane languages. I have tried using pc(through mounting) , but it still stays(the pc shows deleting it, the phone shows another story).
TL;DR: folder undeletable due to it being grouped in 01028-sdcard_r (I think). Cannot change its place nor its permissions even with recovery.
I'm sorry if I made this a bit too long, but I wanted to show you the story of how I ended up here. You can ask me any info about anything. Thank you for the help

Categories

Resources