Application Library Files Missing - Google Pixel XL Questions & Answers

Hey everyone, I have a quite strange question.
In the /system/app folder, some Google apps do not have a ./lib folder. See the screenshot! Chrome lacks ./lib folder but still works fine without any update. (so it uses the original Chrome.apk)
If I replace this Chrome.apk with the latest one, and chmod 644 as usual, Chrome won't work, unless I extract the /lib folder in the .apk file.
Quite strange, right? We all know apps that include libs require ./lib folder and its .so files to run.
Anyone who can explain this please?
My goal is to merge some updated apps into /system. But the partition is so small that I don't want to extract the libs.

TEEEEEEEEED said:
Hey everyone, I have a quite strange question.
In the /system/app folder, some Google apps do not have a ./lib folder. See the screenshot! Chrome lacks ./lib folder but still works fine without any update. (so it uses the original Chrome.apk)
If I replace this Chrome.apk with the latest one, and chmod 644 as usual, Chrome won't work, unless I extract the /lib folder in the .apk file.
Quite strange, right? We all know apps that include libs require ./lib folder and its .so files to run.
Anyone who can explain this please?
My goal is to merge some updated apps into /system. But the partition is so small that I don't want to extract the libs.
Click to expand...
Click to collapse
Not all apps in /system/app folder have lib folders. Only a couple of mine do.
Edit: I may have misunderstood your question. Just let me know

shagbag913 said:
Not all apps in /system/app folder have lib folders. Only a couple of mine do.
Edit: I may have misunderstood your question. Just let me know
Click to expand...
Click to collapse
Yes, but YouTube has lib. There should be a /system/app/YouTube/lib folder.

Oh do anyone notice the system_other.img in the full factory image? It is smaller than system.img and maybe flashed into system_b. I will extract the image and see if it contains lib.
However I can't see system_b mounted... Boot slot is a...

Related

Request: change lockscreen

i love the modaco custom rom but would like to add the lockscreen from drizzys custom rom. (or any plain android looking lockscreen)
is there a way to extract the files i need and simply replacing them in the MRC? i guess its just an html file or something like that to replace, right?
I guess this is the HTCLockScreen.apk and .odex but since it's a system app, it cannot be installed or unistalled, and overwirting the apk in the system/app folder doesn't do anything.
If someone knows how to do it I will be very interested too.
im not sure if it will work but you can download my rom go to
system/framework
grab com.htc.resource.apk
now adb push com.htc.framework.apk /system/framework/
then reboot!
steps:
adb remount
adb push com.htc.framework.apk /system/framework/
adb shell
reboot
then if your phone loops then it didnt work, but if you go straight to you home screen then it should be fine!
good luck
"im not responsible for any wipes that you will have to do if you phone loops"
piflechien said:
I guess this is the HTCLockScreen.apk and .odex but since it's a system app, it cannot be installed or unistalled, and overwirting the apk in the system/app folder doesn't do anything.
If someone knows how to do it I will be very interested too.
Click to expand...
Click to collapse
its not in the lockscreen!
its in the framework!
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
soulehmoo said:
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
Click to expand...
Click to collapse
Thank you very much.
It works perfectly.
BR. Simemu
Thx it worked perfectly
I just pushed com.htc.resources.apk into the /system/framework folder.
Now is it also possible to change the notification bar with a similar method ?
I love the one from your Rom Drizzy Drake Rogers.
They are in framework-res.apk
A few jpg and png named status* in res/drawable-480x320/
Same method should apply.
As usual, would be smart to back up.
Edit: When I get some time off I may have a day messing with these files see about some different coloured UI's etc.
for me this does not work
what ive done is:
1. get the com.htc.resources.apk
2. extract it with rar
3. changed the mentioned png files
4. then i put them back into the archive (apk file, renamed as a zip file)
5. renamed the zip back to its original name
6. put the file as mentioned to the correct folder
there is no change.. is it a MUST to use apk builder, if yes, how to use that bat?
felikz said:
for me this does not work
what ive done is:
1. get the com.htc.resources.apk
2. extract it with rar
3. changed the mentioned png files
4. then i put them back into the archive (apk file, renamed as a zip file)
5. renamed the zip back to its original name
6. put the file as mentioned to the correct folder
there is no change.. is it a MUST to use apk builder, if yes, how to use that bat?
Click to expand...
Click to collapse
reboot and see if that works!
yes i did that, its not the case..
did you guys do it my way, or did you use adk builder?
Yeah use apk builder. Should work.
Edit: you sure its named right and in the right place?? It should have overwritten your old one.
and how to use apk builder??
okay, i signed the new apk with this http://www.anddev.org/signing_your_apk-application_for_release_keytooljarsigner-t3069.html
but that didnt work (the sign process worked, but then the hero looped)..
can anyone please tell how to sign the apk with apkbuilder??
Did you sign the .apk or the .png ????
Sorry...but i didn´t got a solution...i´m standing in front of the same problem like you
easier method here
http://forum.xda-developers.com/showthread.php?t=536271
no need to bother with apk builder with this method.
boomshaker said:
Did you sign the .apk or the .png ????
Sorry...but i didn´t got a solution...i´m standing in front of the same problem like you
Click to expand...
Click to collapse
signed the apk
soulehmoo said:
easier method here
http://forum.xda-developers.com/showthread.php?t=536271
no need to bother with apk builder with this method.
Click to expand...
Click to collapse
also this does not work for me --> phone loop
any idea, what i could do wrong? i am using windows paint (windows 7) to edit the files.. then i put the edited png files back into archive (thus, overwrite the files there) and push that apk file again back to its path.. after phone reboot the phone goes into endless loop
soulehmoo said:
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
Click to expand...
Click to collapse
I want to change my lockscreen, it all seems to make sense apart from editing the .png files..
What am I supposed to be changing in the files? Maybe I missed something, but that doesn't seem to have been explained
pookie1 said:
I want to change my lockscreen, it all seems to make sense apart from editing the .png files..
What am I supposed to be changing in the files? Maybe I missed something, but that doesn't seem to have been explained
Click to expand...
Click to collapse
tha background image of your lockscreen can be changed easily in the phone settings, but if you wanna change the other parts of the lockscreen, then you need to do it like told here ;-)
felikz said:
also this does not work for me --> phone loop
any idea, what i could do wrong? i am using windows paint (windows 7) to edit the files.. then i put the edited png files back into archive (thus, overwrite the files there) and push that apk file again back to its path.. after phone reboot the phone goes into endless loop
Click to expand...
Click to collapse
common guys, just a feedback!

[Q] how to install adobe flash to system partition?

Hi all,
I'm trying to install adobe flash to the system partition to save space. I've done it by adding the flash apk and libs to the gapps addon (required for CM6 anyway).
I can see in root explorer that in /system/apps I've got com.adobe.flashplayer.apk, and in /system/lib i've got libflashplayer.so and libysshared.so.
Under settings->applications I can see that Adobe Flash Player 10.1 is present.
In browser settings, Enable plugins is set to "on demand".
But when I try a flash site that used to work, it no longer does. What am I missing?
Thanks for any help,
Phil
It seems if you leave the .so files where they were in /data/data/com.adobe.flashplayer/lib, eveything works. So it looks like the app doesn't bother to check /system/lib, but goes straight to its own data folder.
Any way to remedy this? I've saved 4-5 MB on /data by moving the apk to /system, but the .so files are 8MB between them, i'd like to get them on /system as well.
Before flashing a ROM, move the APK file into the /system/app folder in the ZIP file and then re-zip it
EddyOS said:
Before flashing a ROM, move the APK file into the /system/app folder in the ZIP file and then re-zip it
Click to expand...
Click to collapse
Hi Eddy, that's exactly what I did as I said in my first post. It didn't work initially, but I now have it working by restoring the /data/data/com.adobe.flashplayer/lib folder with the two libs in it.
So the apk is in /system/app, but there are still these two big libs on /data taking up about 8MB. I was wondering if there is any way to get the system to pick them up from /system/lib like with all the other libs.
Cheers for any help,
Phil
I just have the APK in /system/app and it's fine - got over 100MB of storage (but I only use 5 apps and have them all moved to /system/app)
really? can you do me a favour and check in /data/data/com.adobe.flashplayer/lib and see what you have in there? Should be one huge (~7mb) .so file and a smaller one.
you definitely have the latest flash 10.1 final? version 10.1.92.8? (check in settings->applications).
I'm thinking of creating symlinks in /data/data/com.adobe.flashplayer/lib to the two files in /system/lib and see if that works.
Yes I do have the latest it's there by default in Paul's MCR r8 ROM (first thing I did once it was out) - he normally has it set to go to /data/app but I move it (and the other 5 apps) to the /system/app folder and it's fine...I'll have to install Root Explorer again to check the folder, though...
EDIT: Checked that folder, there's nothing in there at all...
Oh. Huh. Can you check and see if they're in /system/lib? I wonder how paul's got this set up. Should probably just ask him
What file(s) am I looking for?
libflashplayer.so and libysshared.so. Cheers
libflashplayer.so is, libysshared.so isn't
ok thanks for your help i tried the symlinks and it works for now although i guess its a bit hacky. Don't know why yours picks it up from /system/lib and mine won't. I'll see if I can get one of the elder gods to give up their wisdom
wingphil said:
ok thanks for your help i tried the symlinks and it works for now although i guess its a bit hacky. Don't know why yours picks it up from /system/lib and mine won't. I'll see if I can get one of the elder gods to give up their wisdom
Click to expand...
Click to collapse
any progress on this? I also would like to push those shared objects into the /system/lib/ folder to save on space
You need to have the matching apk and libraries in /system for it to work.
teppic74 said:
You need to have the matching apk and libraries in /system for it to work.
Click to expand...
Click to collapse
Had the libs in /system whith fresh MCR r8 ROM .. once i upgraded via Market to latest version they were also in /data/data.
So is there a way to get them to /system again (so that they will really be taken from there by the apk) ?
I am S-Off so the moving itself is easy ;-)
Marcus
soory if i dug an ol thread but i cant make it work...
copy the apk file to /system/app via root explorer and reboot...
in settings/application/manage application/all/
Adobe flash player is in it but it is only 56kb..
set browser for enable plugin to be 'on-demand' and 'always on' but no go (tried surfing on adobe flash mobile showcase site).....
to think i am thinking to move adobe air using this method too..
what else is needed?
Running Nexus One, CM6.0
Hi everyone!
I see this thread is a a bit old, but I've been trying to do the exact same thing with installing Flash Player in /system. My device also won't find the libs in /system/lib, so I'm thinking about doing the symlink stuff as well, but I'm not quite sure how to do this, since I don't have a lot of linux experience. Could you please help out a little?
Will this work?
Code:
ln -s /data/data/com.adobe.flashplayer /system/lib/com.adobe.flashplayer
Also, just to check: is there anything else I should do besides copying the libs Adobe Flash installs in its /data/data folder to /system/lib and creating the link?
Thanks a lot!
Not needed to make symlinks.
Just create folder /system/lib/plugins/com.adobe.flashplayer and move libs to it.
..

[Q] Force Close after re-compiling framework-res.apk

Hi,
I'm trying to make some changes to framework-res.apk.
I user APK Manager 4.9 to decompile the file, then made one trivial change to a XML file (changed one auto brightness related value).
I then compiled back to APK without signing and pushed to the phone in recovery mode the deleted Dalvik cache just to be on the safe side.
No matter how I play with it I always get FC from all the system apps immediately after the phone completes the boot process.
Some more information:
1. My original APK had directories like /res/drawable-hdpi-v4 while after decomplie they become res/drawable-hdpi (without the "v4")
2. After I recompile the "v4" directories are not created back and the generated APK contains the directories without the v4
3. If I use the "Reduce errors" feature of the APK manager complie option then I end up with APK that contains both the directories with v4 and those without.
4. I tried with the "reduce errors" option and without it (in which case I manually copied the signature directory into the APK) but got same FC.
5. It seems that once the FCs begin to happen they don't stop until a full nandroid restore. Even if I put the original framework.res.apk file I still get FCs after rebooting.
6. I'm using Revolution HD 2.0.11 ROM
7. The APK file I'm trying to modify was generated by the UOT kitchen.
Any idea what am I doing wrong?
No one knows?
erank said:
No one knows?
Click to expand...
Click to collapse
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
AndroHero said:
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
Click to expand...
Click to collapse
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
erank said:
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
Click to expand...
Click to collapse
Too true, the only other thing you could try is to sign the .apk before pushing it....
Sent from my Desire HD using Tapatalk
AndroHero said:
Too true, the only other thing you could try is to sign the .apk before pushing it....
Click to expand...
Click to collapse
Thanks AndroHero.
Everywhere I was looking they always say not to sign system APKs, but just to be sure I also tried signing it and not signing but copying the original META-INF directory - always got the same result - FC in all systems apps after boot.

[app]working new photosphere! [apk inside][zip]

So i tried many zip files, all failed.
Try this one. Works. Created myself, took zips of the internet and copied files across into one.
IMPORTANT!!!
Delete ALL Gallery.apk and GMSCore.apk from SYSTEM !!
WILL NOT WORK OTHERWISE
link
http://www.mediafire.com/?cr1i5rc6eghjhgp
has anyone tried this if it works!
Qwerty123 \m/ said:
So i tried many zip files, all failed.
Try this one. Works. Created myself, took zips of the internet and copied files across into one.
IMPORTANT!!!
Delete ALL Gallery.apk and GMSCore.apk from SYSTEM !!
WILL NOT WORK OTHERWISE
link
http://www.mediafire.com/?cr1i5rc6eghjhgp
Click to expand...
Click to collapse
Why is the /lib folder inside another /lib folder in your zip ?
This is it for exactly? Do not understand anything.
move second /lib folder content into first /lib folder, then delete the empty /lib folder
save, then flash it.
work for me

How to add new fonts to fire os 4.6.3?

So, I needed to add a new font to my fire phone so that I can view my native language.
Thinking fire os 4.6.3 is just a customization on android KitKat(4.4.4) I went ahead and tried to add my fonts (Noto Sans Sinhala) to /system/fonts directory. But It was a read only sqfs partition. So I unmounted it and copied it's contents to a actual /system/fonts directory. Then I added a new font family with my fonts in /system/etc/fallback_fonts.xml and rebooted which is the trick for JB and later roms. Nothing happened! Still no native language.
Then I tried replacing a default android font I normally don't use(Noto Sans Thai). Still not working. So I changed Droid Sans Fallback font, which is the oldest trick to get new glyphs. Nope, still not working.
After fiddling around a little, I found a fontconfig cache in /system/etc/fonts along with fontconfig configuration files!! Something I haven't seen in any other android roms. Finally, I came to the conclusion that I might have to rebuild the fontconfig cache.
Dose anyone know how to trigger a fontconfig cache rebuild? or some other way around it?
So, as It turns out, Adding fonts to the fire phone is even easier than the rest of the KK devices. Just copy your fonts to /system/fonts and delete /system/etc/fonts/cachedir/[longname].cache-3 reboot and you are done
madushan1000, how did you umount /mnt/sqfs? I tried un-mounting via file manager with root privilege and wouldn't let me un-mount. I'm trying to replace a default android font (droidfallback.ttf) and keep getting permission denied even though I have root. Your help is appreciated.
You don't have to unmount it. Just delete the fonts sqfs image and extract it's content to /system/fonts and reboot. FYI you might have to remove some "system" app to do this. There is not enough space left on the system partition.
madushan1000,
Care to tell detail instruction? Thank you so much.
Rgds,
Kaung
Hi madushan1000,
This is what I did and still not OK. (Need to restore previous version as Font are lost)
1. Copy Fonts to Sdcard
2. Delete /system/sqfs/container.sqfs
3. mkdir fonts folder under /system
4. Copy back fonts to /system/fonts
Please help me advise. Thank you so much in advance..
Hi @kaungmyataung, I'm going to answer your PM here:
Well, madushan1000 and I had the same approach to the "problem", but I deleted only the container and copied the fonts folder to the usual path.
madushan1000 went even further with his custom XML test.
It seems you did everything right: deleted the container, copied the fonts in the correct folder...
I assume, I checked / set the permissions for the "fonts" folder to 755 and that's all I did.
Oh... and I only deleted unwanted fonts, I didn't add new ones.
Bingo Bronson said:
Hi @kaungmyataung, I'm going to answer your PM here:
Well, madushan1000 and I had the same approach to the "problem", but I deleted only the container and copied the fonts folder to the usual path.
madushan1000 went even further with his custom XML test.
It seems you did everything right: deleted the container, copied the fonts in the correct folder...
I assume, I checked / set the permissions for the "fonts" folder to 755 and that's all I did.
Oh... and I only deleted unwanted fonts, I didn't add new ones.
Click to expand...
Click to collapse
Thank you soooooo much, Bingo. Below of your reply save my life. Now All good.
-----I assume, I checked / set the permissions for the "fonts" folder to 755 and that's all I did.------
Can someone help me i cant copy my font in /system/fonts Please help...
xaamaa said:
Can someone help me i cant copy my font in /system/fonts Please help...
Click to expand...
Click to collapse
You can't copy fonts because it's not a real folder, just a mounted container (read only). Follow Madushan's lead:
madushan1000 said:
locate the sqfs image ('./system/sqfs/container.sqfs') and extract its content to './system/fonts'
you can create the 'fonts' folder manually, just be sure to set permission to 0755 for the folder and 0644 for the font files
FYI: you might have to remove some "system" apps / files to do this. There is not enough space left on the system partition
Easiest way to gain enough free space is to delete the language files for Ivona TTS ('./system/tts/ivona')
One folder for each language, for example "eng.usa.nina_1418201400000". Folders can be deleted if you don't use Ivona TTS.
Click to expand...
Click to collapse
Or you can just delete the sqfs file, create the 'fonts' folder and use this flashable zip via Safestrap / TWRP.
I deleted the CN and JP fonts*, etc. so it's less than 20 MB compared to over a 100 MB from the default sqfs container and you wouldn't be forced to delete system files in order to make enough room.
*Deleted fonts:
STKai
STYuanMedium
TBGothic_213
TBMincho_213
TsukuMinPr5
MYingHeiSMedium
STBShusong
STYuanMedium
MTChineseSurrogates
MHeiM-Big5HKSCS_E
Code2000
DroidNaskh
DroidSansEthiopic
DroidSansHebrew
NotoSansThai
NotoSansThaiUI
DroidSansArmenian
DroidSansGeorgian
NotoSansDevanagari
NotoSansTamil
NotoSansMalayalam
NotoSansBengali
NotoSansTelugu
NotoSansKannada
NotoSansKhmer
NotoSansLao
NanumGothic
Padauk-book
NotoSansSymbols
NotoColorEmoji
MTLmr3m
After creating the real 'fonts' folder, you can spam your phone with iFont.
Bingo Bronson said:
You can't copy fonts because it's not a real folder, just a mounted container (read only). Follow Madushan's lead:
Or you can just delete the sqfs file, create the 'fonts' folder and use this flashable zip via Safestrap / TWRP.
I deleted the CN and JP fonts*, etc. so it's less than 20 MB compared to over a 100 MB from the default sqfs container and you wouldn't be forced to delete system files in order to make enough room.
*Deleted fonts:
STKai
STYuanMedium
TBGothic_213
TBMincho_213
TsukuMinPr5
MYingHeiSMedium
STBShusong
STYuanMedium
MTChineseSurrogates
MHeiM-Big5HKSCS_E
Code2000
DroidNaskh
DroidSansEthiopic
DroidSansHebrew
NotoSansThai
NotoSansThaiUI
DroidSansArmenian
DroidSansGeorgian
NotoSansDevanagari
NotoSansTamil
NotoSansMalayalam
NotoSansBengali
NotoSansTelugu
NotoSansKannada
NotoSansKhmer
NotoSansLao
NanumGothic
Padauk-book
NotoSansSymbols
NotoColorEmoji
MTLmr3m
After creating the real 'fonts' folder, you can spam your phone with iFont.
Click to expand...
Click to collapse
locate the sqfs image ('./system/sqfs/container.sqfs') and extract its content to './system/fonts'
you can create the 'fonts' folder manually, just be sure to set permission to 0755 for the folder and 0644 for the font files
How can i Extract container.sqfs content to /system/fonts..
Where i can create a font folder i mean in which directory...
kaungmyataung said:
Hi madushan1000,
This is what I did and still not OK. (Need to restore previous version as Font are lost)
1. Copy Fonts to Sdcard
2. Delete /system/sqfs/container.sqfs
3. mkdir fonts folder under /system
4. Copy back fonts to /system/fonts
Please help me advise. Thank you so much in advance..
Click to expand...
Click to collapse
@kaungmyataung
@madushan1000
I deleted /system/sqfs/container.sqfs and then tried to copy the fonts to /system/fonts since it rejected for "unmounted folder" even being root user, I dont remember the exact error message but I just rebooted the Kindle Fire HD 3rd gen, now it bricked Boot loop, no matter factory reset at the boot recovery, it simply stays at the boot loop, any suggestion to at least recover it?

Categories

Resources