I am working on a motorola phone and would like to do the following;
Remove Chrome
Replace APN file with custom APN
install 2 apks into system all in one update.zip file.
Related
Is there a difference between apk files downloaded as an installer file and the apk files i find in my system/app folder?
The reason I ask is this:
I have both wired and wireless tether on "ROM a" and not wired tether on "ROM b". I want to copy the apk for wired tether out of my system/app folder in "a" onto my sd card so that I can install it on "b". Hopefully I could then flash "ROM b"(that doesn't already have the app) and navigate to the sd card with root explorer and click the apk, and have it install the app.
Should work right?
Or are there different kinds of apk files, ones that contain an installer and ones that just act as an application?
Thanks!
I believe that you could store the apk on the SD card, wipe and flash the new Rom, and then yes, use root explorer (be sure to remember and set correct permissions, have root explorer in r/w mode, and place the file back in system/apps) and then reboot. SHOULD work, but as always I'd suggest doing a NAND backup first, in case this doesn't work. If it doesn't, try using adb to push the file to system/apps.
Sent from my Eris Lightning 3.02
I've been making an android rom for my chacha, All Is going well apart from adding a file manager. I've tried with 3 different apps but none of them will install. In the log.txt from CWM its the first thing that gets installed but it just doesnt show up anywhere. What could I be doing wrong?
Get the file manager you like the best and pull the apk using adb or find an apk backup app on the market. Once you have the apk add it to the /system/app folder inside your rom.
I figured out that the manually entered APNs are stored in /data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml.
I entered my APN into it, and backed up the file.
Then I made a recovery install zip with the file.
I wiped out the data, and ran the install zip. It put the previously copied file in the correct location, but when I look at the APNs in the GUI nothing is listed.
Creating a new APN will overwrite the recently restored file. So I am guessing the OS is not seeing the new file.
Does anyone know why? Is there another entry in another file somewhere else that I need to change?
Hello,
I bought a Umi Diamond X and i just found out that it came with adware.
Since i could not find any custom roms for it, i tried editing the recovery image. Manged to remove some APK files, but SystemUI is giving me some problems.
What I did until now:
1) Used simg2img to convert system.img to a mountable image
2) mounted the previously generated image and deleted suspicious folders from system/app and system/priv-app.
3) Use SPFT to flash the edited image to the device.
However, I found that SystemUI.apk is also making dubious requests in the background, so I need to replace it with a stock version. I tried taking SystemUI.apk from different roms of similar phones, with a similar SoC, and copy-paste it into my edited system.img. However, everytime i do this, SystemUI crashes when the phone starts up.
Going into the stock recovery, i have the option to "check root integraty". This appears to scan (among others) all APK files in system/app and system/priv-app. I see it detects the deleted APKs and the 1 modified APK. Could the installer have a signature of the expected APKs and not install if the file doesn't match that signature?
Is there any way I can replace SystemUI.apk with a known good version?
Bump..
Bump again..
Hello All,
I am trying to add/edit xml files found inside "assets", "vendor" directories of an APK included in system.img (priv-app directory) of a ROM.
The APK is available at
system/priv-app/CarrierConfig/CarrierConfig.apk
system/priv-app/CarrierConfig/oat/arm64/CarrierConfig.odex
system/priv-app/CarrierConfig/oat/arm64/CarrierConfig.vdex
I have used apk tool to decompile and re-compile the apk. I also zipaligned, signed with my own key. I copied the file to priv-app directory in the phone and restarted the phone. This did not work. I did have 644 permission for apk file after replacing. Also, I did clear the dalvik cache and cache after APK replacement.
1. Do I need to change the odex or vdex files? I did not touch them since my changes were in xml files.
2. Should I sign with originally signed signature?
3. I could not see the odex and vdex file in the priv-app directory in the phone after the ROM install(when I tried to replace the APK). Why is that?
4. Should I build a rom zip file to flash(along with existing odex and vdex files) as opposed to replacing the APK in the device?
Any help?
http://www.w3.org/2001/XMLSchema
I was looking into this as well. Everything I read said you have to be registered as carrier to make modifications to carrier config.apk , unfortunately:-/ Let me know if you did find a solution, though.