Modified APK files are being deleted after reboot - Android Q&A, Help & Troubleshooting

Hello all,
This is my first post on XDA, so I apologize in advance if I'm in the wrong place. I've searched high and low for an answer to this, but all the threads I've come across are at least 5+ years old and don't directly relate to the issue I'm having.
Basically, here's what's going on. I have two app APK files that I have edited to change some of the resources in them. One of them is SwiftKey. I used APKEditor from the Play Store to replace two of the keyboard sounds included to custom ones. After I save the edited APK, I rename it to 'base.apk' and then replaced the 'base.apk' inside of the app's directory with the edited one. After doing this, everything seems to work fine, and the app continues to work normally with the new sounds I've added in.
However, the issue I'm having is that anytime I need to reboot my phone, any apps that I've edited the APK for disappear. After Android starts up, I can see the apps on my home screen for a second, and then they vanish. The folder for the app is still present inside of /data/apps, but the app does not appear under the list of installed apps anymore. I'm wondering if this is maybe because the modified APK isn't being signed right, or if I'm doing something wrong. I made sure the permissions were correct too after I replaced the base.apk file as well.
If there is another (better) way to do this, I am all ears! I'm pretty tech savvy, but I just recently switched from iOS to Android after not using Android for 4-5 years, so things are a bit different now than they were the last time I used Android.
Thank you for your help!
*EDIT- I also should mention that I am rooted, although that may have already been apparent

Related

[Q] Stock Vibrant Applications?

First off, I will admit that I am relatively new to rooting android phones. I did have multiple Jailbroken iPhones, however that is something different entirely.
So I just recently flashed Eugene's Vibrant5 rom, and I absolutely love it... however I do miss some of the stock applications that come with the Vibrant. I was wondering if anyone happened to have the .apks for the original applications? I have a Titanium Backup from before the flash, and it shows the applications in the list... however when I try and Restore Missing Applications + System Data it doesn't do anything. There isn't a whole lot I miss, things like Thinkfree Office. I know there is Adobe Reader for free in the Market, but I did try it and it didn't work for me. Not being able to search through a .pdf file was an EPIC fail for me.
Any help would be appreciated
I also think having a thread with all of the stock .apk's listed for download would be a great idea. I am also rooted, and if someone could tell me how to get these off of my phone in .apk format, I won't mind uploading any of them, if not all, of course over time
are they located in /system/app/ folder?
I'm already on Vibrant5 rom, I can verify that there are a lot of .apk files in there, I can't say whether or not ALL the stock ones are there though. Is there a relatively decent demand for these to be posted? If so I don't mind reverting back to stock and pulling them all off for everyone.
Bump on this one, been really wanting the stock calender and the calculator .apk cause they both just have more features then those that are on eugenes roms ( google map points saved to calender appointments, much more complex calculations avail on the calc besides both just look better imo).....
A bunch of these apps can't even be backed up through titanium, it unity copies data fort some reason or another. Apks of these would be awesome or at the least some files and the required terminal commands would be appreciated.
Pooped from my Samsung Vibrant using XDA app...
Dont mind the skidmarks...

My ventures into youtube app.

So we all know that for some reason the youtube app doesnt open after a login, we also know that a simple delete of the youtube.xml in shared preferences lets us once again use youtube...(/data/data/com.google.android.youtube/shared_prefs)
I had a been working on a little script to delete that file every time I closed youtube but realized this would get repetitive. I am wondering is this a B&N problem with the way permissions work and where information is stored...similiar to the inability to run shortcuts. Even if you go in and delete from the .xml file your username information or even delete everything in the file but dont delete the physical file, after trying to open youtube it will once again reset. I have been frustrated by this numerous times...where is that data being stored? Does anyone know...
I can't help other than bumping this, but being able to favorite videos is a big part of my youtube experience and I also find this annoying.
On an unrelated note side loading honeycomb youtube apk is wonderful.
Here is where I fail. I have managed to delve further into the youtube.xml file and figure out what exactly is seeming to cause the problem with permission, but I cannot repackage the apk after editing...because I cant sign it. Any thoughts on a solution to this...also it is possible to extract edit then repackage an apk on the nook itself?
Check out this tool. It handles re-signing the APKs.
http://forum.xda-developers.com/showpost.php?p=6703735&postcount=1
I actually came across that tool about 20 minutes before you replied, as an update. I now have youtube where it will allow me to sign in (I do a full quit using task killer) and then restart it with no problems. The problem occurs when I shut down my nook and bring it back...on some shutdowns it just makes me sign in again, others it does the normal process where it does not open up. I dont understand where this thing is storing my permissions or login data, I have erased and looked at most every bit of code that could have anything to do with data storage...maybe it calls some process built in to the nook that I'm missing.
Oh wow...finally got this running on the stook root. I'm having a few friends test it out to make sure I'm not breaking permissions for other things...I'll send out the apk or explain the steps momentarily.
Awesome! Can't wait to try it out. Is this for Froyo or for Nook rooted?
Just for rooted 1.1 though I see no reason it wouldnt work on rooted 1.01 or 1.00...though I'm running into problems. It seems that I wont be able to release an update to the apk but instead will need to include instructions on how to update your own apk which will automatically make it less doable.

[Q] How to know if I have completely gotten rid of an app?

Hey. Just got into the world of smartphones with a Galaxy S2 (GT-I9100P), running Samsung's stock ICS (XXLPH). After a fairly smooth rooting of the phone, I did something stupid - I tried to use CWM to install this mod - an NFC enabler. Stupid, because the mod wasn't designed for ICS.
I was fortunate enough to have the enabler 'only' freeze the phone every 5 seconds instead of bricking it. Then I went in through the adb shell and deleted the appropriate apk.
My question is - is the apk the whole of the app? It looks like it, certainly - the phone works like before, no problem. I'm just worried about leaving 'garbage' around it.
I don't expect everyone here to be an expert on this particular mod - but in general, if I am manually uninstalling an app, do I need to worry about anything besides the apk?
If so, where else should I look (again, generally, where do apps tend to change or dump things)? I'd ask the developer, but it seems rude to privately message him, and I can't exactly post in the relevant thread.
No you should be ok. Nothing more needs to be done. Some apps also install data on the sd card which show up in 'My files'. It doesn't affect the phone in any way but if you find anything just delete it. I have mine sort by date so changes show at the top of the list.
Sent from my GT-I9100T

[Q] Anyone have a functioning Polaris office on their Galaxy tab 10.1?

I am using my Tablet to create an inventory on a spreadsheet, and have been unhappy with Quick Office for that purpose. I have tried a couple different versions of Polaris Office on my newly rooted Tab, and I get the typical force close that people complain about. I have pushed the apk and the library files to where they need to be (/system/app and /system/lib), I have checked the permissions (same as all the other library and apk files = r-r-rw), I have cleared the cache and Dalvik cache. I can get the opening screen, but it hangs on displaying a file (either new or existing).
For reference, files were dated december of 2011 and february of 2012, and are version 3.0, build 5r8323-FV03. I got them from one of the "add polaris office" zips floating around, but they appear to be duplicates of those in one of the recent ROMS on the development page. Sure, it may be that I have a bad version or a bad download, or a mix of the wrong library files and apk, but in reading the posts here (oh, for the last two hours or so) I'm not sure anyone has it working on a Galaxy Tab. If that's the case, I probably shouldn't spend any more time.
Thanks in advance.
There you go
Does this works on ICS?
As far as I know, it's .apk and it came with the HC release, I assume it should?
Kingsoft Office?
Anyone tried Kingsoft Office
Misledz said:
There you go
Click to expand...
Click to collapse
Thanks for the effort. It just locks up when I try to select a file, just like the other versions I have tried.
I note that it was the apk only. Does this version work on your Tablet without the two libPolaris_etc.so that are in system/lib?
Assuming it should as the lib should be installed when you install the app itself. I had this app compared with the one from the Asus Transformer section and it's not much different, then again it's in the stock ROM, I'll see what I can rip off from it, when this was backed up with TB it didn't include any lib and worked fine I suppose.
Im assuming the lib file's are ether serial keys or such. Since its a registered product for the 10.1 and such

How to couple opening some app with another action? Rooted android 9.

Hey.
I've searched far and long (really) but (maybe because I'm quite new) I haven't found a thing.
I have 2 problems, quite similar to each other.
I use android 9, rooted, on motorola moto g6, stock rom. I have magisk.
1. I would like to be able to copy some file to another place every time specified app is opened. Namely: I want to copy bookmarks from one browser to second browser's directory, every time the second one is opened. My first thought was to use Automate, but I couldn't find any way to get it to somehow read if some app is run. What is more it seemed like and overkill, because why would it have to monitor activity all the time, since maybe I could use some scripts in android? I have found no information about that, so I came here for your help. If I could use some scripts, I could just a script to 1. copy the file 2. run the app. Tada! So, is there any way to run such scripts?
2. I use an app to desaturate my display. I love it almost all the time. The only time I would like to have my display saturation reverted to default, is when I open camera app. And that is the second problem. Scripting probably would not be of help (if it is possible in general at all) because I want to be able to open camera not only through shortcut on main screen (which could have been a shorcut to script) but also through double-clicking power button or moving phone in a particular way (both of these acutally do open the camera app. But I would need these to both default saturation and open camera app). So, any ideas how one could achieve this?
Thank you in advance. I am trying to make my phone finally user-friendly after years of being subject to frustration. If you could at least point me in some direction, it would be appreciated! Thanks!

Categories

Resources