[Q] Problem loading widget - General Questions and Answers

Problem: Widgets wont load after every reboot. Message: Problem loading widget appears in places where widgets should be.
I can recreate widgets, though. But appwidgets.xml file size is changing every time after reboot, from 1,25 kb to 250 bytes. I have tried everything which I could find online: manual backup and restore of original xml file, titanium backup, even nandroid restore, nothing helps.
I am using launcher pro plus (as system app), sd-ext and swap partitions. All apps with widgets are on internal memory.
Obviously, problem is in appwidgets.xml file size change. Why is this happening, how to solve this?
This is driving me crazy...

Do all apps with widgets have to be on internal memory, even though their widgets are not active in the moment?
I have apps with widgets which are linked to sd ext via link2sd.
When I pull out SD card, all widgets are loading properly.

if u use app move app installed to SD card move widgets,widgets will error.

I have finally found out what was the problem. It is moving dalvik cache to sd ext partition via a2sdgui. I think that the same is with linking dalvik cache files to sd-ext via link2sd, but am not sure.
User dalvik cache has to be on internal memory, whilst system dalvik may be integrated into ROM (and therefore moved to rom partition) via titanium backup (no problem with that). Now i have plenty of free space in /data (I have also moved majority of user app files and app data via TB to sd card).
Widgets are now loading as they should.
Hope someone will find this useful.
@condandatcang
Thank you for answering, but I figured it out long time ago.

Related

how 2 restore apps their *original* locations @ link2sd ext4, sdcard & internal?

i run Link2SD, using a 2nd partition on my sdcard that's been formatted with the ext4 fs.
i have some apps that i keep installed on my 'internal' sstorage, in addition to the many I've Link2sd "linked" to the /sdcard's ext4 partition.
i backup with TitaniumBackup.
if i set AutoLink in Link2SD app, then restore from a TitatniumBackup all restored user apps/(&/or libs/dalivk, depending on settings) are linked to /data/sdext2. that's expected, and fine if i want all my apps to end up 'moved' to sdcard.
if i do NOT set AutoLink, the TiBkup tries to restore all apps to internal sotrage.
how do I 'tell' the TitaniumBackup + Link2SD combination to move ONLY the apps previously mv'd to the sdcard back to it ... and to restore the rest to internal storage.
i.e., how do i preserve a backup-up app's storage location across a restore?
i can of course do it manually ... mv'ing each app back to internal storage, after the resotre process + AutoLink has mv'd it to sdcard. not ideal tho ...

Format internal storage

How can we format internal memory (storage)? I can't find that option on settings.
Sent from my GT-P3110 using Tapatalk 2
That would wipe android out. You can format /data by doing a factory reset. Just don't delete /system.
So how do you reclaim lost space? I flashed Derp3D last night and now I only have 426mb of internal storage instead of 512mb. That means 86mb is now lost to the voids.
If your objective is to restore lost space then formatting the entire data partition is a rather extreme way of doing it.
Perhaps you would be better off with one of the many cleaning tools available. SD Maid, for example, can search out and remove cache and temp files as well as identifying app data that may be safely removed. ZDbox also has a cleaning tool. If you are rooted and want to go deeper then System Cleanup is a worthy option which enables you to move updates to system apps into the system partition, thus clearing space in the data partition.
Another option is to uninstall some of the bloatware which comes with stock ROMs that you don't need.

[Q] [SOLEVD] Gallery says not enough space

SOLVED This problem by format data from TWRP which cleared everything from /data completely
But was hoping to find a better solution :S
When I try to open the gallery (either the gallery itself or from the camera) it says not enough space delete unnecessary items ..... I dont have an SD card and my internal storage has alot of free space ... all this happened after i did a restore from a backup .. Any help??
I thought the backup was the reason .... I adb pushed OMEGA rom to internal memory and installed after wiping cache , dalvik and factory resetting (From TWRP) but same problem .... I dont think it's a fault in the internal memory as i can copy and delete files from it
Also the camera takes photos normally and i can take screenshots but the gallery doesnt Open

[SOLVED] Link2SD - Lost my apps - How do I restore ?

SOLVED - I just reinstalled all the APK, automatically linking them on the SD card. The data was still on the EXT4 partition, so everything was found by the apps.
--------------
Hi,
Link2SD was working really nice, until randomly, I kept getting errors saying it cannot links the apps...
So I've fulled backed up my EXT4 partition on my computer (Just drag and dropped the folders. Not sure if this was correct), powered off the phone, reformetted the EXT4 partition with GParted, copied the files back in with Linux, put the SD card back in the phone, power it ON;
But now, Link2SD does not detect the apps that I've copied back on the card - although it can link the apps again.
The apps that were restored simply doesn't appear anywhere (But are on the partition).
Is there any way I can restore the full EXT4 backup I've took ?
GameX2 said:
SOLVED - I just reinstalled all the APK, automatically linking them on the SD card. The data was still on the EXT4 partition, so everything was found by the apps..
Click to expand...
Click to collapse
Your solution didn't work for me because it just gave an error whenever I tried to reinstall one of the previously linked apps. Likely because of the excess files leftover from the original because it would let me install new apps but not the missing ones. I tried to delete some files manually for an app or two, but that didn't work either. I found an easy solution though that works.
SOLUTION:
Just open Link2SD. Click the top left corner for the menu. Then click on "Clean up the 2nd partition". When I did it said it needed to delete 104 unused files, so I said ok. Afterwards, actually all but 2(out of 32) of my apps were restored with data automatically and those two I just restored from Titanium Backup.
NOTE FOR ANYONE TRYING THIS:
If it's still not working after that, then just try to reboot and see if they reappear. If you do lose some apps, at least you can reinstall or restore them from a backup after that. Again I only lost 2, but the other 30 missing linked apps were restored.

Lag and bad performance when running out of storage

As the tilte is saying, whenever there's less than 100 mb of internal storgare the performance just dies. Even scrolling is laggy. I've used multiple ROMs (CM 11, 10.1, 9/SlimKat/SlimSaber/BeanStalk) but no luck. I've also used Greenify and it hasn't helped. I only install the apps I really need : Facebook, Facebook Messenger, Shazam, Hangouts, Youtube, Viber. That's it ! I even uninstall wallpapers and ringtones, plus all the apps that could be moved to the SD card are moved.
Does anyone have any suggestions ? Maybe increasing the internal storage on KitKat ? Or are there any tweaks I'm not aware of ?
Thanks in advance.
First backup your SD card. And then create external partition type ext4, using TWRP recovery and only TWRP (If you use any other tools, you will not be able to backup sd-ext using TWRP, and this is from my experience).
Next, get Link2SD app, and create mount scripts, reboot, set Auto linking checked and (also App, Library, and Dalvik checked). And link App, Library, and Dalvik files to sd-ext. If you paid for Link2SD+, you will be able to link internal data too. A warning though, keep important apps that starts up with android on internal memory such as launchers to prevent lag. Depending on what class your SD card, you might not notice any lag at all. I still have the 16GB that came with the phone, and it is not really fast, it is laggy but not much.
I know I will be lashed for saying this, but get Lucky Patcher (use it for legal stuff only, lol) and ODEX all your system files. Custom roms are unoptimized due to the need to have resource hooks and hacking the system files or debugging them. Creating Optimized dexs, they will occupy less memory and become faster. You will notice a significant improvement in speed.
Currently, I have SlimKat 4.4.4, 2.5GB sd-ext ext4 partition (~1.5GB used) and have 204MB free on internal. And around 143-145 apps installed ranging from few hundreds of KBs to tens of MBs. And the system is snappy.
Another warning if you use Titanium Backup, if you batch restore many apps at once, Link2SD might not be able to catch up linking apps as soon as Titanium Backup finish restoring the apps with data, causing memory go low or Titanium Backup freeze. A solution to this, only restore chunks of 10 or 15 apps at once, and wait till Link2SD done linking all of the apps.
After you are satisfied with the results, go to TWRP and backup EVERYTHING including sd-ext. EXCEPT "EFS" partition (if it does show up), which you might get bad IMEI number if you restore EFS again. You can enable compression to the backup, which helpfully compressed the ~2300MB files to ~1300MB for me.
Good luck. :good:
Thanks mate ! Gonna try ASAP !
Rebel_X said:
First backup your SD card. And then create external partition type ext4, using TWRP recovery and only TWRP (If you use any other tools, you will not be able to backup sd-ext using TWRP, and this is from my experience)....
Good luck. :good:
Click to expand...
Click to collapse
First, thanks for writing this. Now, just a quick question, did you have had problems with apps disappearing after a update?
This begin happening like a month or so ago. After an app auto-update, it disappear, and I have to recreate the mount script on Link2SD and reboot for it to appear again. Now I disable auto-update, android only notify me of updates. Then I remove the links of the app to update on Link2SD, then update the app, and then I create the links again.
I have my device set up exactly how I like it, but I'm thinking about erasing my phone and starting up again.
llinkll said:
First, thanks for writing this. Now, just a quick question, did you have had problems with apps disappearing after a update?
Click to expand...
Click to collapse
I believe this happened to me long time ago when I used an older version of Link2SD. The newer version promised that it fixed Apps disappearing after booting. But, if that happens to you, you can fix this easily by "Relink all app files" from Link2SD to find any unlinked apps that are supposed to be linked and then reboot or soft reboot from Link2SD. Or you can "Clear 2nd Partition" and/or Dalvik cache to delete the apps that disappeared and reinstall them again. But an answer to your question, I didn't have any apps disappear on me when I started clean.
Also, for anyone deciding on ODEXing system files. Choose a ROM that have enough free space in system partition to do so. Some roms have less than 8MB in system partition (CM11!) which can cause problems when doing so. SlimKat 4.4.4 is really slim, you have over 40MB free in system partition. If you want to keep the ROM you are using, you can free more space in system partition by converting the Keyboard app to a user app, that is another 40MBs free (and if you did that, you have to reselect the Keyboard from Language input in settings, by un-ticking/re-ticking the checkbox, also don't link the Keyboard app to 2nd partition, it can cause lag). I noticed if you have less than 5MB in system partition, the performance of the phone suffers greatly.
From using Link2SD to view storage information, you will notice that Data partition and Cache partition are the same (I could be wrong here, but that what it seems to be). So it is important to have more free space in the Data partition.
Rebel_X said:
First backup your SD card. And then create external partition type ext4, using TWRP recovery and only TWRP (If you use any other tools, you will not be able to backup sd-ext using TWRP, and this is from my experience).
Next, get Link2SD app, and create mount scripts, reboot, set Auto linking checked and (also App, Library, and Dalvik checked). And link App, Library, and Dalvik files to sd-ext. If you paid for Link2SD+, you will be able to link internal data too. A warning though, keep important apps that starts up with android on internal memory such as launchers to prevent lag. Depending on what class your SD card, you might not notice any lag at all. I still have the 16GB that came with the phone, and it is not really fast, it is laggy but not much.
I know I will be lashed for saying this, but get Lucky Patcher (use it for legal stuff only, lol) and ODEX all your system files. Custom roms are unoptimized due to the need to have resource hooks and hacking the system files or debugging them. Creating Optimized dexs, they will occupy less memory and become faster. You will notice a significant improvement in speed.
Currently, I have SlimKat 4.4.4, 2.5GB sd-ext ext4 partition (~1.5GB used) and have 204MB free on internal. And around 143-145 apps installed ranging from few hundreds of KBs to tens of MBs. And the system is snappy.
Another warning if you use Titanium Backup, if you batch restore many apps at once, Link2SD might not be able to catch up linking apps as soon as Titanium Backup finish restoring the apps with data, causing memory go low or Titanium Backup freeze. A solution to this, only restore chunks of 10 or 15 apps at once, and wait till Link2SD done linking all of the apps.
After you are satisfied with the results, go to TWRP and backup EVERYTHING including sd-ext. EXCEPT "EFS" partition (if it does show up), which you might get bad IMEI number if you restore EFS again. You can enable compression to the backup, which helpfully compressed the ~2300MB files to ~1300MB for me.
Good luck. :good:
Click to expand...
Click to collapse
dude? what if uninstall my lucky patcher? is the odex file still there?
DerPuGNa said:
dude? what if uninstall my lucky patcher? is the odex file still there?
Click to expand...
Click to collapse
I don't think that will affect ODEX files at all.
LoL, every time I read your username I read it as "Danganronpa" (Japanese word for bullet time) as the great Anime show (an adaptation of the PSP game). Please don't take that offensively :good:
Thanks !!!! Gonna report back with the performance !
Intial thoughts : *Very* good.

Categories

Resources