[Q] How to remowe old lib.so files? - Nexus 4 Q&A, Help & Troubleshooting

question is,if i want to remove lib files from system apk,how should i know what lib is from removed apk? i know to find lib files from regular apk(unpack apk file and look path of lib.so files),but system apk does not contain lib files when i unpack them,and there are no all lib files start with lib(name of apk).so

Related

HELP! cooking flashable zip into rom!!!

I am trying to take a keyboard that somebody made into a flashable .zip file, and implement it into a rom that I am working on. What I did was flash the .zip through cwm, then found the apk, backed it up, and then placed it in the /system/app folder on the new rom. The problem is as soon as the rom boots, I get a force close error. So I took a look at the .zip file, there are two folders meta-inf and system. inside system there is an app folder and lib folder. My question is can I just take the apk and lib file out and place them directly into /system/app and system/lib on the new rom? and if so do i need to do anything with the META-INF folder? any ideas would be GREATLY appreciated!!!
thanks
the META-INF folder may have some script that does some other manipulation of the filesystem or runs helper apps during installation. See what's in META-INF/com/google/android/update-script.

[Q] Problem with recompiling an apk

May be this not a right place to ask, but I have this problem with recompiling an apk with apkmanager.
I'm trying to mod settings.apk and had done few modding in strings.xml. Since I have edited an xml I delete the resources.arsc file from the keep folder and also sign it after recombiling. But when I install the apk in my phone it never opens and force closes.
I've tried again by not deleting that file but that time no modifications where shown, And the next time, I didn't sign it and tried again to install the unsigned apk. But that too fails.
Anyone know why this happn?
Before modifying the APKManager, make sure the framework-res.apk and twframework.apk been set, and don't forget to delete the file resource.arsc and the file you have modified, then enter at apkmanager windows, don't forget to rename Unsigned to system file that you modified

[Q]When we need copy file/folder from original apk after modified?

Sometime in mod guide.. we need to copy file/folder in original apk after modified... like androidmanifest.xml/classes.dex/etc.. so my question is when we need to copy it?
I only copy meta-inf and androidmanifest to the build folder (you need to compile the folder to get the build folder and then recompile again after placing files there) if im not resigning the apk
marcussmith2626 said:
I only copy meta-inf and androidmanifest to the build folder (you need to compile the folder to get the build folder and then recompile again after placing files there) if im not resigning the apk
Click to expand...
Click to collapse
so you want to say that if copy meta-inf and androidmanifest to modded apk, we dont need sign apk.. that what you mean?
EpullSalvatrucha said:
so you want to say that if copy meta-inf and androidmanifest to modded apk, we dont need sign apk.. that what you mean?
Click to expand...
Click to collapse
you only have to resign an apk if you edit the adroidmanifest
marcussmith2626 said:
you only have to resign an apk if you edit the adroidmanifest
Click to expand...
Click to collapse
But in this guide forum.xda-developers.com/showthread.php?t=2018688 the additional instruction said copy classes.dex from original unmodified apk and paste it in modified apk.. when this step is necessary?
EpullSalvatrucha said:
But in this guide forum.xda-developers.com/showthread.php?t=2018688 the additional instruction said copy classes.dex from original unmodified apk and paste it in modified apk.. when this step is necessary?
Click to expand...
Click to collapse
its not with apktool - iv never touched classes.dex
just resign the apk if it doesnt install

deodex or odex?

If this is the wrong thread then apologies.
I used joeldroid to deodex my systemui and all was marked as successful howvwer in the /priv-app folder the app folders are all there with the apk's but there is also another folder named 'arm' which contains 2 files, the odex file and a odex.art file?
I'm really confused as to whether this is actually deodexed or not? Ive noticed in other custom TW roms these arm folders are missing
any ideas
It means your apk in priv app folder is not deodexed
Sent from my SM-N910G using xda premium
yep everytime i tried to replace the deodexed files they would replace fine but then when i look on my root explorer all the arm folders etc are back.. Just trying an app called zipme to get my deodexed files onto my phone
thanks for ansering
so i made flashable zips of my deodexed priv-app, framework and app folders and there was not a single arm folder or odex file in sight. I flash the zips fine but when checking the folders under root all the arm folders and odex files are back????

Looking for some clarity on odexed apps for noob

I'm trying to get into modding apks and have a simple question. When i look up what odexed apks are, it looks like each apk has its own odex file and deodexed apk don't but they have a classes.dex inside the apk instead. Im running 7.1.1 stock with root and have odex file in each app folder but when i look inside the app itself with 7zip it too shows a classes.dex file as well. My question i guess, is do all apps have classes.dex but only deodex apk have the odex file missing in their respective folder? When following a tut they say to decompile the odex file to get the classes.dex file to then put inside the apk then decompile the apk with classes.dex file to get decompiled smali folder.

Categories

Resources