Editing APK - sometimes successfully, sometimes not. Help? - Android Q&A, Help & Troubleshooting

Hello,
I am trying to edit some graphic files inside APK so that after installing them on my S3 and pairing with my smartwatch it will display the same icons I'm using on my phone. To do that I used tools like app backup/titanium, then I transfer them to my PC. I use WinRAR to open APK, I use Photoshop to edit files I need, and then I put changed files back to APK, replacing them. Now, if I stop here the APK won't install on my device. Therefore I use APK Sign app that 'signs' the .apk . Sometimes the produced files install without problem, and sometimes I immediatly get an error message Unfortunately, Package installer has stopped.. Why does it stop? It works with some APK I edit (free or paid) but not with all of them. Please help!

Open the original apk with win rar and then copy the files that you edited this works :thumbup:
Sent from my Xperia Live with Walkman using xda app-developers app

it does - but not for all the apps i'm trying. for example third party apps works after changing icons, and the ones from sony (downloaded for free from play store) does not. it just doesn't install.

Related

Edit Custom Rom (help to remove apk's)

Does anyone know an idiot's guide/tool for unpacking a rom, removing unwanted apk's and then repackaging it suitably for install. I can unzip and remove the apk's from the system/app but the problem I have is zipping the package up suitably for install, I understand that the package needs to be signed and I have seen a few guides using openssl and SignAPK but couldn't get a package that would install.
I know I can uninstall some of these apps using an uninstaller app but I would prefer they just weren't in my rom in the first place so I have a relatively clean rom - my phone is basically a glorified mp3 player that occasionally makes some calls and send the odd text so there are a fair few things I just don't need to be installed on the phone.
On my mini pro I'm using the SonyStyle GB rom
http://forum.xda-developers.com/showthread.php?t=1151499
Any help will be appreciated.
stikkki said:
Does anyone know an idiot's guide/tool for unpacking a rom, removing unwanted apk's and then repackaging it suitably for install. I can unzip and remove the apk's from the system/app but the problem I have is zipping the package up suitably for install, I understand that the package needs to be signed and I have seen a few guides using openssl and SignAPK but couldn't get a package that would install.
I know I can uninstall some of these apps using an uninstaller app but I would prefer they just weren't in my rom in the first place so I have a relatively clean rom - my phone is basically a glorified mp3 player that occasionally makes some calls and send the odd text so there are a fair few things I just don't need to be installed on the phone.
On my mini pro I'm using the SonyStyle GB rom
http://forum.xda-developers.com/showthread.php?t=1151499
Any help will be appreciated.
Click to expand...
Click to collapse
Open the zip in something like 7-Zip or WinZip or windows or whatever the default archive manager is on linux, delete the files you want and close it then install. that's it, signing is done on creation by the dev and isn't like a MD5 so it doesn't matter if you modify it
X10man
what i do is i have winrar and i just double click the rom zip file then go to system then go to app then delete the app (and the odex file if it has one) that simple and if you want to add an app just hit add (provided your still on system>app folder) browse to the apk file you want to add then hit hit ok. hope that helps
Cheers guys - from what I had read I thought I had to re-sign the package once I had edited it.

[Q] replacing files in a .apk file

hello,
i wanna edit some pics in an app from the market.. how can i get it working on my phone.. i signed it and then it won't open on my phone when try to open it..?? here are the files
yakie996 said:
hello,
i wanna edit some pics in an app from the market.. how can i get it working on my phone.. i signed it and then it won't open on my phone when try to open it..?? here are the files
Click to expand...
Click to collapse
Just open the original .apk in 7-Zip, find the files, delete them and then put your new ones in. The have to be exactly the same name. You don't need to decode the apk or resign it.
Some apks won't work like this but very few in the end so you should be okay.
djmcnz said:
Just open the original .apk in 7-Zip, find the files, delete them and then put your new ones in. The have to be exactly the same name. You don't need to decode the apk or resign it.
Some apks won't work like this but very few in the end so you should be okay.
Click to expand...
Click to collapse
when i did this the app don't install on my device..
The 7-zip method not always will work. I use that to edit cyanogenmod themes to best fit my phone, but sometimes I can't install the apk, neither through adb nor file manager
Sent from my Nexus S using xda app-developers app
Try smali the whole apk , replace the pictures then compile it again, using Apk tool.
I'll do this on the go a the time as a matter of fact I did the tsfshell PCB blue theme with the traverse grapheme icons earlier...I do it by using root explorer extract the app and replace whatever you want as long as the file names are the same when done zip everything back up and rename from zip to app then move to system apps or data apps set proper permissions and reboot .....I do it from my cell hope this helps
Sent from my SPH-D700 using Xparent Blue Tapatalk 2
Use APK manager
Decompile the APk
replace or edit the pngs
recompile the APK
Sign it
you are done!!

[Q] Is it possible to extract an APK file directly to an Android phone ?

I want to extract the files from the APK to get the app installed,
the problem is that the system does not recognize the apk files anymore.
yosi1289 said:
I want to extract the files from the APK to get the app installed,
the problem is that the system does not recognize the apk files anymore.
Click to expand...
Click to collapse
if you want to just extract apk then it can be done by winrar but if you want to make it installable in your device then decompile it using apk tool
yosi1289 said:
I want to extract the files from the APK to get the app installed,
the problem is that the system does not recognize the apk files anymore.
Click to expand...
Click to collapse
I think you are trying to actually extract it on the device and not your computer. This is possible with easily with an app called RAR For Android available in the Playstore. It's a free download.
If you mean extracting .apk files from your phone to get elsewhere you can use an app called "ApkExtractor" available in Play store for free of charge.
It's an android device (4.2.2) and it doesn't recognize APK files
So I need to extract the APK files from my computer to my device so the app will be installed.

problems after Pushing user apps into system apps

Hi every one.
I am new here. So I'm writing with all the details I can think of.
I'm using HTC desire x jelly bean in India. I've temp rooted the device. Now I run with a twrp touch screen edition revovery. I run the stock version (with odex) Rom. The only changes I made is removal of some bloatware.
The main reason I've rooted my device is to save space by pushing non movable and frequently used apps to system/app .
Since I only have temp root, The way I'm making user apps as system app is as follows
1. creating a backup Apk file either by manually copying from data/app or by clean master.
2 uninstall the app.
3 after entering the twrp recovery, I move the Apk files to system/app ( I don't create any odex files for the moved app)
4 reboot after wiping dalvik & cache.
Its a working method. But my problem is that several apps both that I frequently uses and high size are cannot converted into system apps. After making such apps as system apps, when I try to open them it force closes, crashes, or misbehaving (eg. Shows No internet connectivity even if I'm connected to web). I tried odexing the user Apk. But it not seems to be the problem. I like to know
1 why is this happening.
2 can I identify such apps before moving it to the /system/app
3 how/can I solve this isue ( I don't own a pc).
4 I am writing a list of apps that I've already tried and failed to convert as system apps. If there is no general methods can you suggest methods for the following apps
Quick pick
Mx player
BS player
Chrome
Adobe reader
Google plus
Opera mini
Opera
Google Maps
RAR
Mozilla Firefox
Freecharge
Advance download manager
Google search
Dolphin browser Jetpack
Chess free
Thanks in advance.
Sent from my HTC Desire X using XDA Free mobile app
Probably those apps have and lib files
e.x
1.With root explorer hit a app and open it in view mode
2.Navigate to lib/armeabi..xxx
3.You will find lib(xxx.so) files
4.Extract them
5.Move those files to system/lib/and set them with rw-r--r-- permissions
6.Move and the app to system app with same permissions
7.Reboot
Sorry for my English..
Superuser_ said:
Probably those apps have and lib files
e.x
1.With root explorer hit a app and open it in view mode
2.Navigate to lib/armeabi..xxx
3.You will find lib(xxx.so) files
4.Extract them
5.Move those files to system/lib/and set them with rw-r--r-- permissions
6.Move and the app to system app with same permissions
7.Reboot
Sorry for my English..
Click to expand...
Click to collapse
Thank you very much for your answer. I was searching it for a very long time. It worked like a magic with my Google play services. Before moving the lib files apps like gmail, inbox by gmail, hangouts were showing "unknown problem with Google play". I couldn't afford the space for an non movable app with about 27 mb staying in my app storage.
I was really having a trouble for the same question in following thread.
http://forum.xda-developers.com/showthread.php?t=2956631
That is why I created this thread.
Sent from my HTC Desire X using XDA Free mobile app
@Superuser_
Can you please give me more advice or thread links regarding this subject.
Sent from my HTC Desire X using XDA Free mobile app
Tried with bs player too. Its really working. :thumbup:
Sent from my HTC Desire X using XDA Free mobile app
OMG the lib files of new Google chrome is about 38 MB.
Sent from my HTC Desire X using XDA Free mobile app
Let's make a lesson...
I don't know with witch method has du move apps in system before and first you must check in system/app folder if have you double apps.
ex.
when you move an update of YouTube.apk, the name of updated app must have exactly the same name of default system app to overwrite it.
check and delete the oldest apks.
when you install a app from play store, that app creates a data folder,a dalvik cache file and perhaps a sdcard folder or a sdcard/android/data/xxx.xxx folder
when you uninstall a app from play store,the app has a script where automatically delete any created file.
when you delete a system app do must manually delete those files.Those files are in:
/data/data /the app data folder
and
/data/cache/dalvik cache or /data/dalvik cache
You can do all this only with root explorer or with one root file manager
the installed apps from play store you can find them in:
/data/app
You can see witch apps are in internal memory installed and you can copy from there...
always check first if the app works without lib files and if not,then move and those libs files
edit:
The play store and Google services apks are updated automatically without your permission and you can see that only in installed apps
All these sounds tricky but with a little practice you will become expert
@Superuser_
When new updates releases should I delete the lib files I just copied along with the app and replace it with the new updated apk's lib file.
Or the lib files I copied for older version works for new versions too?
Sent from my HTC Desire X using XDA Free mobile app
The old copied lib files wil not work in a new version
you must again copy those files and when you paste them will automatically overwrite the old ones
don't forget each time to change the permissions
The thing is I'm temp rooted. (htc desire x). And I use touch version of twrp recovery for jelly bean. I do all the things we were discussing with my recovery. And I assume chmod_66 or something like that is the command to set the read write permission. But I think whenever I copy apps or lib files to system using my recovery it's permission is read write by default. I assume this because I never faced a single problem for not setting any permission. I am not sure about it though. And will you please tell me what is the fix permission option under advanced menu in twrp recovery is used for?
@ashifashraf5
I don't have HTC DX..but a LG p700
Just visited the thread because I was looking if 4.4.4 came out for my girlfriend desire
The only thing I know is, when you are root you are root
Temporary root,I haven't heard before
The permissions can be changed with root explorer app.long press on a apk/permissions
Google it the:
how i can change permissions with root explorer app
@Superuser_
I was testing this method with Google maps. I found more than one subfolders in lib folder. My processor is arm v7. Is it what the armeabi-v7a stands for ?. Should I move all the .so files in lib folder or should I only move the armeabi_v7a subfolder .so files ?
I also attached a screenshot for convenience
Sent from my HTC Desire X using XDA Free mobile app
I think Google maps working in system without libs or not?
The other folders is for different processors
You must copy only the v7 files
@Superuser_
If I delete the libraries from the Apk using an explorer the size of Apk will get reduced. My doubt is , since we are copying the lib files needed , to the system/lib , if I delete the Lib Files from Apk and move it to system/app would there be any problem?
I mean
1. Will the app work properly ?
2. Will there be any difficulty for updating such modified apps through Google play
Sorry for the constant questions. And thanks for helping
Sent from my HTC Desire X using XDA Free mobile app
I've never tried..
try it
work great. lg g2.
Choose armeabi-v7a
Ai type keyboard.
Thank you Superuser! Great. Thank you ashifashraf5 for this question.

SGP621 file request (edit - cancelled)

Hey guys,
I am looking for the following files:
DownloadProviderUi.apk
DownloadProviderUi.odex
DocumentsUi.apk
If you want to make things dumbproof and give me a script I can flash via TWRP (which will hopefully work right), which will put these files back in System/App with the proper permissions, awesome.
Earlier, after opening an MP3 with Google Play Music, Google Play Music went crazy, the tablet froze, and upon reboot my download manager did not work, needed to be reinstalled somehow (but couldn't be reinstalled when I opened the .apk file in system/app), rendering the Play store, and Chrome, useless for downloading apps. I tried unsuccessfully to copy the apk/odex to my external SD card, before unexpectedly managing to delete the files. I deleted DocumentsUi.apk, which I probably do not need, by mistake. I tried installing a separate download manager (meant for an older device), but it wouldn't install.
I have a system.sin file for a SGP621 - but cannot extract the individual files without an older version of Flash Tool. And I don't want to flash the full file.
Thanks in advance!
UPDATE - I don't know what I did the 'Download Manager' still doesn't appear in my app drawer and I did not think the APK was still on the tab - but suddenly I can download from Google Play once again. No help needed.

Categories

Resources