Need help replacing system apps - LG Optimus L9 P760, P765, P768, P769

People,
Im trying to remove the damm bloatware of telcel 20b from mexico but the system doesnt boot up when i flash the zip i created via recovery. I picked up the apps from another jb rom without the bloatware to replace the system apks and odex.
Atached is my updater-script. Is there something im doing wrong?
My device is p768 with locked bootloader
Any help would be awesome. Thanks in advance

shucrut said:
People,
Im trying to remove the damm bloatware of telcel 20b from mexico but the system doesnt boot up when i flash the zip i created via recovery. I picked up the apps from another jb rom without the bloatware to replace the system apks and odex.
Atached is my updater-script. Is there something im doing wrong?
My device is p768 with locked bootloader
Any help would be awesome. Thanks in advance
Click to expand...
Click to collapse
You should mount /system by
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");
I don't think you updater script is for L9. The system block is mmcblk0p10, not mmcblk0p22, refer to http://forum.xda-developers.com/showthread.php?t=2173613

artit said:
You should mount /system by
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");
I don't think you updater script is for L9. The system block is mmcblk0p10, not mmcblk0p22, refer to http://forum.xda-developers.com/showthread.php?t=2173613
Click to expand...
Click to collapse
Thanks for repplying.
The phone still doesn't boot after applying the update i made with your advice. Installation seems to be successful (i have to wait a while for the installation to finish) but the phone continuasly repeat the bootanimation but doesnt really boots up.
Do i have to do some symlinks or something? Eith adb i could check that the app folder contains my new files.
Could this be happening because my bootloader is not unlocked?

The problem is not in the update.zip. i don't know why but when i manually replace some system app and odex file, the app disappear from launcher,even after reboot.
Is there anyway i can replace system files? I dont mind if i have to do it manually or whatever. Can anyone tell me how can i do it?

You need to use android kitchen to deodex your ROM, you can find some info in the theme and app section.
CM 10.1 P769

shucrut said:
The problem is not in the update.zip. i don't know why but when i manually replace some system app and odex file, the app disappear from launcher,even after reboot.
Is there anyway i can replace system files? I dont mind if i have to do it manually or whatever. Can anyone tell me how can i do it?
Click to expand...
Click to collapse
Ok I heard about this method. First get a file manager if you don't already have one. Personally I use root explorer. First you have to change the permissions before you place in system then just move it there. It won't work if you do not change it first. Reboot. Tell me if this works because I'm doing this from memory. Good luck!
Sent from my LG-P769(20F) using the xda-developers app. If I helped you please hit the "thanks" button.

Nathan.7118391 said:
Ok I heard about this method. First get a file manager if you don't already have one. Personally I use root explorer. First you have to change the permissions before you place in system then just move it there. It won't work if you do not change it first. Reboot. Tell me if this works because I'm doing this from memory. Good luck!
Sent from my LG-P769(20F) using the xda-developers app. If I helped you please hit the "thanks" button.
Click to expand...
Click to collapse
I changed the the permissions, but when i replace both apk and .odex files, the app disappear. When i replace just the apk , depending on the app i replace, everything works ok. Sometimes it gives FC.
I will try andoid kitchen to deodex my apps

Hmm that's weird because I installed superSU into the system and it only had the apk file. Now I'm going to have to download a file and place it on the system to see if it works. Btw, superSU have me an option to copy to system.
EDIT: just moved app called Hash Droid to system apps folder. Rebooted several times and it's still in there and the app works.
Sent from my LG-P769 using xda app-developers app

Related

Write files on system directory.

Hi all.
I'm trying to copy some files to the system partition after enabling write on read-only partitions and remounting it and everything is success, but when I restart the phone, files get deleted and partition back to original. I tried ES file explore and Total Commander.
Galaxy S2, cMIUI 2.10 JB
Hmm.. seems like a hard question!
Elancore said:
Hi all.
I'm trying to copy some files to the system partition after enabling write on read-only partitions and remounting it and everything is success, but when I restart the phone, files get deleted and partition back to original. I tried ES file explore and Total Commander.
Galaxy S2, cMIUI 2.10 JB
Click to expand...
Click to collapse
Elancore said:
Hmm.. seems like a hard question!
Click to expand...
Click to collapse
Hey,
no not a hard question but a bit confusing
So the copy to system works without probs?
Do u have root-enabled on it?
U can try Solid explorer once, too, to be sure.
CHEERS
I enabled root explorer and I mounted the file system to be writable, yes I have a rooted phone.
I can copy to system root folders anything (media files), the files stay there until I reboot the phone then they disappear, they get deleted maybe? how to disable that?
Thanks
Elancore said:
I enabled root explorer and I mounted the file system to be writable, yes I have a rooted phone.
I can copy to system root folders anything (media files), the files stay there until I reboot the phone then they disappear, they get deleted maybe? how to disable that?
Thanks
Click to expand...
Click to collapse
That listen like u have to save changes?!
Pls try the Solid explorer (for me the best explorer ever)
Copy files and have a look for root-acces request (should be asked for Solid, if it's new)
The copy/replace the file.
CHEERS
Thanks Hannibal for reply, I got no luck on doing it, they still get removed after reboot. Is there a way to flash these files that I want to copy to system as an update.zip?
Elancore said:
Thanks Hannibal for reply, I got no luck on doing it, they still get removed after reboot. Is there a way to flash these files that I want to copy to system as an update.zip?
Click to expand...
Click to collapse
Sure there's a way, but I can't help u with it, sorry.
With new Titanium Backup u can create flashable .zips but for sure only from isntalled apps.
Maybe u have a look at google. I remind for a tool which u just say what u wanna flash an it creates the flashable .zip.
Much success....
CHEERS
Edit: Sorry but couldn't answer u yesterday.
XDA had a prob for a while

[FOR DEVS][INFO] Jelly Bean Partitions: System + Preload (hidden)

Hello all.
I started to develop my edition of JB, but i had a problem. The system partition is about 600MB, and the deodexed version of stock samsung's JB rom is about 700+MB. (Odexed should be about 800MB)
Firstly i did extract system.img to deodex it but a problem occured. Many apk files (about the half!) were missing (.odex files were still there). I was stuck. So i did an "adb pull" from my phone and i had all the system files, strange huh? I deodexed them (=> smaller size), removed bloatware and the system folder was about 675MB. I zipped it and flashed it from recovery. Phone was booting and booting and booting for 15 minutes... I re-checked the files and i saw that the system files were bigger than the system partition.
Then i checked for a hidden partition to find the "extra" space required for system. In "CSC" tar file of JB there is a hidden.img. In GB there was a small video by samsung so i thought that it would be again the same video or similar. I was wrong. Inside this file there are many apk system files (about 200MB!). I checked the firmware in my phone with root explorer and i saw that there are many symlinks from /preload/simlink/system/app/ to /system/app/ . That explains the Samsung's logic. Anyway i think that this is a bit fail. Why samsung didn't resize the system partition so it can handle all system files? Anyway, i will make a flashable test rom with some files in /preload/ and then i will symlink them (in updater-script) to /system/app/.
So for conclusion there is:
-a /system partition about 600MB and
-a (fake system) /preload partition about 250MB to handle most of the /system/app/ folder.
Also, temporary CWM6 for JB is working fine to install zips or anything or for backup and restore.
I thought it will be useful info for any dev here.
I solved this major problem and i will focus in Kyrillosv6b JB rom this week. I have already done many mods for JB but i couldn't test them because of that.
Have a nice day.
Maybe they just used this solution for the xxmb2 test version and for the final version they will resize the partition table.
It's a "strange" solution but I think not that bad.
We still don't know where is the imei/simlock data it's possible they don't want to modify the partition layout if not really necessary, to keep important data safe.
Repartitioning the device is always risky...
Sent from my GT-I8160 using xda app-developers app
Szaby59 said:
Maybe they just used this solution for the xxmb2 test version and for the final version they will resize the partition table.
It's a "strange" solution but I think not that bad.
We still don't know where is the imei/simlock data it's possible they don't want to modify the partition layout if not really necessary, to keep important data safe.
Repartitioning the device is always risky...
Sent from my GT-I8160 using xda app-developers app
Click to expand...
Click to collapse
Hmm simlock and imei data are on /efs partition... But we did repartition the device for JB. There wasn't a "preload" partition on GB i think.
It's not on efs I erased my efs partition to try (ofc. I made backup first) and the imei was ok
I tried to restore efs from a different phone and nothing changed.
I remember there was something else not preload will check tomorow but I'm sure that unpartitioned space was only 10 MB and it's still 10 after Jb.
Probably preload in gb was named hidden just like the file and the video file was moved to internal sd or symlinked.
I know we had to rp but I can't see much difference, even the counter data is stored on the same offset.
Sent from my GT-I8160 using xda app-developers app
Yeah. 30 APKs were not deodexing on mine. permissions were rwxrwxrwx when I looked. some didn't have sizes, others had -1 bytes.
Is there any way we can deodex JB ROM? I don't know how to mod and odexed ROM.
Dr01nE said:
Yeah. 30 APKs were not deodexing on mine. permissions were rwxrwxrwx when I looked. some didn't have sizes, others had -1 bytes.
Is there any way we can deodex JB ROM? I don't know how to mod and odexed ROM.
Click to expand...
Click to collapse
I will upload the deodexed MB2 tomorrow. but as i said at the first post, it doesn't fit on /system partition.
kyrillos13 said:
I will upload the deodexed MB2 tomorrow. but as i said at the first post, it doesn't fit on /system partition.
Click to expand...
Click to collapse
I have completely deodexed it the problem is flashing. I also get stuck in bootanimation and it keeps vibrating.
Let me know when find a way to flash it. For the mean time, I'm back to GB for theming.
Dr01nE said:
I have completely deodexed it the problem is flashing. I also get stuck in bootanimation and it keeps vibrating.
Let me know when find a way to flash it. For the mean time, I'm back to GB for theming.
Click to expand...
Click to collapse
You should copy most of /system/app folder to /preload. Because system partition is small to handle all files.
kyrillos13 said:
You should copy most of /system/app folder to /preload. Because system partition is small to handle all files.
Click to expand...
Click to collapse
I'll try this one later, I need to finish my theme.
Will it have all Kyrillos V5 features?
Sent from my GT-I8160 using xda app-developers app
Here is a comparision between GB and JB (partition table).
There is no difference in size, I have no idea why was repartition required for XXMB2.
I think preload wasn't mounted in GB but I'm sure it's the "Hidden" partition.
malamharian said:
Will it have all Kyrillos V5 features?
Sent from my GT-I8160 using xda app-developers app
Click to expand...
Click to collapse
Yeap.
Szaby59 said:
Here is a comparison between GB and JB (partition table).
There is no difference in size, I have no idea why was repartition required for XXMB2.
I think preload wasn't mounted in GB but I'm sure it's the "Hidden" partition.
Click to expand...
Click to collapse
Hm interesting.
I'm testing that too.
The deodexed ROM boots but having too problems:
- The baseband is unknow and i can't recover it flashing modem or EFS partitions.
- I have a android core stop and can' t pass the first screen.
My deodexed ROM has 430 Mb but maybe is not complet and because that i have the android core problem.
http://forum.xda-developers.com/showthread.php?t=2030594
Messi10 said:
http://forum.xda-developers.com/showthread.php?t=2030594
Click to expand...
Click to collapse
So we need to create an APK which contains
Code:
Link: /preload/symlink/system/app/nameofapp.apk
Manually doing this will definitely take a lot of time.
But is there an easier way or hassle-free way of doing this?
Dr01nE said:
So we need to create an APK which contains
Code:
Link: /preload/symlink/system/app/nameofapp.apk
Manually doing this will definitely take a lot of time.
But is there an easier way or hassle-free way of doing this?
Click to expand...
Click to collapse
You have those symlibs apps in your System/app from system.img or backup. if you open the fake apk with some editor you can see it.
Because that you can't deodex it with the kitchen , you need the real apk from preload.
cbolumar said:
You have those symlibs apps in your System/app from system.img or backup. if you open the fake apk with some editor you can see it.
Because that you can't deodex it with the kitchen , you need the real apk from preload.
Click to expand...
Click to collapse
You cannot deodex the 30 APKs that are symlinked on preload using the system.img from leak fw. but copying them from /system/app/ to /sdcard/ gets you the real APK. What i want to know is how do I include preload links in flashing with script or is it better to do it manually. Because pushing a symlinked file directly causes and infinite bootloop and vibration. (-___-)
Dr01nE said:
You cannot deodex the 30 APKs that are symlinked on preload using the system.img from leak fw. but copying them from /system/app/ to /sdcard/ gets you the real APK. What i want to know is how do I include preload links in flashing with script or is it better to do it manually. Because pushing a symlinked file directly causes and infinite bootloop and vibration. (-___-)
Click to expand...
Click to collapse
Did you try the frapeti method?
We can also edit the pit file and resize system partition or remove some system apps,ringtones,boot animation... Till apps fit in
Sent from my GT-I8160 using xda app-developers app
Messi10 said:
We can also edit the pit file and resize system partition or remove some system apps,ringtones,boot animation... Till apps fit in
Sent from my GT-I8160 using xda app-developers app
Click to expand...
Click to collapse
yes , i'm doing that but i have some problem with some specific apk because i have a rom booting and another smaller not boot.

[Q] [HELP] Using fastboot/flashmode for pushing system files

I may have edited something wrong in build.prop and now my phone won't load after the SONY logo. I would push a stock build.prop if I had CWM but apparently I lost that after following steps to root JB with locked bootloader. All I have now is fastboot and flash mode.
Is there any way to push a file and set permissions using one of these modes? I can reflash ICS and do everything all over again but if I could just push a stock build.prop I think I can avoid the long way.
PS. Can I also get help putting CWM on this phone? I wanna keep bootlock 'coz I'm a purist like that. Lol! :silly:
do any of these modes support mounting \system and \data ??
XperiaMT27 said:
do any of these modes support mounting \system and \data ??
Click to expand...
Click to collapse
No, but fastboot can flash an update.zip according to a wiki. I don't think that's the same as a regular flashable zip is it?
Bump 'coz it's really getting tiring to reflash from zero when just one file needs editing.
androidmeda said:
Bump 'coz it's really getting tiring to reflash from zero when just one file needs editing.
Click to expand...
Click to collapse
Have you managed to solve this?
KOPRajs said:
Have you managed to solve this?
Click to expand...
Click to collapse
I ended up with reflashing only SYSTEM partition via Flashtool (don't forget to uncheck "Wipe DATA"). You are going to loose any modification of "/system" (e.g. root) but at least you won't loose your settings, apps and data.

Error on update to V20F

In case you want to do the actually OTA with your phone, and got some errors (dead android), you might want to check:
+ if you are using "CWM Recovery" (then uninstall it as in http://forum.xda-developers.com/showthread.php?t=2095825)
+ if you are using "Remove QSlide Apps from NotificationBar" (http://forum.xda-developers.com/showthread.php?t=2194423)
But don't use the QSlide revert file from above thread, it doesn't restore the exact matched file for OTA to work with (you can try if you want). To save you some trouble, I have attach the original files (LGSystemUI.apk and its odex). Unzip and overwrite them in the folder /system/app (use ES Explorer to remount /system RW first).
+ still not found the problem, check the few last lines of this file: /system/cache/recovery/last_log
It should say which file mismatches the checksum, and in the case of mine, it is LGSystemUI.apk, which I cannot find anything related searching google. And that's why I make the thread so people can search google and found it here.
chicguy said:
In case you want to do the actually OTA with your phone, and got some errors (dead android), you might want to check:
+ if you are using "CWM Recovery" (then uninstall it as in http://forum.xda-developers.com/showthread.php?t=2095825)
+ if you are using "Remove QSlide Apps from NotificationBar" (http://forum.xda-developers.com/showthread.php?t=2194423)
But don't use the QSlide revert file from above thread, it doesn't restore the exact matched file for OTA to work with (you can try if you want). To save you some trouble, I have attach the original files (LGSystemUI.apk and its odex). Unzip and overwrite them in the folder /system/app (use ES Explorer to remount /system RW first).
+ still not found the problem, check the few last lines of this file: /system/cache/recovery/last_log
It should say which file mismatches the checksum, and in the case of mine, it is LGSystemUI.apk, which I cannot find anything related searching google. And that's why I make the thread so people can search google and found it here.
Click to expand...
Click to collapse
Removed CWM and still get dead android red triangle icon.
My log also shows LGSYSTEMUI.APK ERROR
eSZee said:
Removed CWM and still get dead android red triangle icon.
My log also shows LGSYSTEMUI.APK ERROR
Click to expand...
Click to collapse
If you are rooted then all you need to do is find a nandroid backup of previous jb and flash it. Then you use the trick to force the OTA. If you are not rooted then the only thing I can say is download the kdz, flash it, and wait for the OTA.
there are a few things that manipulate the system: link2sd, overclocking, busybox, custom recovery. . .My thing was the busybox. I totally forgot that I downloaded it and my update didn't work at first. Good Luck
eSZee said:
Removed CWM and still get dead android red triangle icon.
My log also shows LGSYSTEMUI.APK ERROR
Click to expand...
Click to collapse
Go go page 9 of the forum link below. There is a Dropbox link of a factory rooted version of V20f for the 769 US version to flash if you have access to CWM on your phone.
http://forum.xda-developers.com/showthread.php?t=2359044
Sent from my LG-P769 using Tapatalk 2
TheCoutures said:
Go go page 9 of the forum link below. There is a Dropbox link of a factory rooted version of V20f for the 769 US version to flash if you have access to CWM on your phone.
http://forum.xda-developers.com/showthread.php?t=2359044
Sent from my LG-P769 using Tapatalk 2
Click to expand...
Click to collapse
Downloaded several times to make sure it wasn't a bad download. Went to apply zip, as soon as I pressed YES, INSTALL ABORTED.
I have no mods or edited system files or anything like that. All I ever did was CWM and root. Had qslide removed but reverted.
Make sure MD5 sum is correct. The other stuff doesn't matter. You are flashing a full backup not an OTA which requires all stock apps.
Sent from my LG-P769(20F) using the xda-developers app. If I helped you please hit the thanks button.
eSZee said:
Downloaded several times to make sure it wasn't a bad download. Went to apply zip, as soon as I pressed YES, INSTALL ABORTED.
I have no mods or edited system files or anything like that. All I ever did was CWM and root. Had qslide removed but reverted.
Click to expand...
Click to collapse
Wait you tried to install it as a zip
You are supposed to extract it and put the nandroid in the CWM backup directory.
sent from my locked rooted P769 v20D
I'm on YouTube (BioDesigner48)
I'm having the same issue, I do not have CWM or QSlide Remove installed, I've uninstalled all Root related apps and still encountering the same issue....
eSZee said:
Downloaded several times to make sure it wasn't a bad download. Went to apply zip, as soon as I pressed YES, INSTALL ABORTED.
I have no mods or edited system files or anything like that. All I ever did was CWM and root. Had qslide removed but reverted.
Click to expand...
Click to collapse
In my OP, I said "don't use the QSlide revert file from above thread, it doesn't restore the exact matched file for OTA to work with".
In case you still have trouble with the OTA, try to follow what I wrote: "To save you some trouble, I have attach the original files (LGSystemUI.apk and its odex). Unzip and overwrite them in the folder /system/app (use ES Explorer to remount /system RW first)."
Hope that helps!
For other people with problems, I suggest to use the Recovery Flashable Zip mentioned in one of the reply.
Or, if you are as paranoid as I am (who knows what people might put in those zip file ) (and somewhat technically knowledgeable), "check the few last lines of this file: /system/cache/recovery/last_log" to see what file got error, and try to get the original file from 20D (which should have the matched SHA1 checksum) and replace them.
chicguy said:
In my OP, I said "don't use the QSlide revert file from above thread, it doesn't restore the exact matched file for OTA to work with".
In case you still have trouble with the OTA, try to follow what I wrote: "To save you some trouble, I have attach the original files (LGSystemUI.apk and its odex). Unzip and overwrite them in the folder /system/app (use ES Explorer to remount /system RW first)."
Hope that helps!
For other people with problems, I suggest to use the Recovery Flashable Zip mentioned in one of the reply.
Or, if you are as paranoid as I am (who knows what people might put in those zip file ) (and somewhat technically knowledgeable), "check the few last lines of this file: /system/cache/recovery/last_log" to see what file got error, and try to get the original file from 20D (which should have the matched SHA1 checksum) and replace them.
Click to expand...
Click to collapse
Get the full P769BKv20f kdz file download here. Please be advised that this is just stock and if you flash this ROM then you WILL LOSE ROOT! But you can download and create a bin file to do the Lelus root method.

[Q] What is the difference between flashing and installing an apk?

Sometimes.. you see apps on xda.. that are required to be flashed.. and are in the form of zip files. Now how are these different from apk files with their regular installation? is it something to do with giving these apps you flash a deeper level permission? if so.. if your rooted can't you just give those apps those permissions after a normal install?
Usually making them flashable is just easier for some and if you were to extract the .apk from the zip and install it from sdcard it would work the same. Sometimes the app may require extra libs that are flashed at the same time as the app so they are bundled together as a zip. Or possibly it is being flashed to system for whatever reason and can't be done this way installed through os.
There are lots of varying reasons why it may be a .zip but you could also install it probably any way you'd like (including pushing with adb) if you want to know what's in the .zip just extract its contents, if you want to know what happens when you flash it look at the updater-script
Sent from my Nexus 4 using xda premium
Thank you!
demkantor said:
Usually making them flashable is just easier for some and if you were to extract the .apk from the zip and install it from sdcard it would work the same. Sometimes the app may require extra libs that are flashed at the same time as the app so they are bundled together as a zip. Or possibly it is being flashed to system for whatever reason and can't be done this way installed through os.
There are lots of varying reasons why it may be a .zip but you could also install it probably any way you'd like (including pushing with adb) if you want to know what's in the .zip just extract its contents, if you want to know what happens when you flash it look at the updater-script
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Thank you..! I have one more question.. in some cases.. you are instructed to "copy apk's to system\app folder with a file manager with root permissions and then reboot" ... why this? does this produce the same effect as flashing it?
I guess it depends on the app, but it may only function properly as a system app, and yes it would be just as possible to flash it through recovery or push with adb to get the same effect
Sent from my Nexus 4 using xda premium
Thank you again!
demkantor said:
I guess it depends on the app, but it may only function properly as a system app, and yes it would be just as possible to flash it through recovery or push with adb to get the same effect
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
hey, thanx alot!
rjspark89 said:
hey, thanx alot!
Click to expand...
Click to collapse
And if it's an system app, or framework it's better to flash via Recovery
thanks!
superdragonpt said:
And if it's an system app, or framework it's better to flash via Recovery
Click to expand...
Click to collapse
thanks this is valuable info for a newbie..! any more imp tips related to my question is should know?
rjspark89 said:
thanks this is valuable info for a newbie..! any more imp tips related to my question is should know?
Click to expand...
Click to collapse
Yes
DON'T let you battery go all the way down.
This way it will lst longer (no Joke)

Categories

Resources