Hey guys, I was trying to modify some android ROMs for Android P & Q phones, but there was some strange probloms. I already knew that the /system partition is a dynamic partition now, so I want to modify the ROM instead of uninstall apps after ROM flashed. I installed WSL2 and Ubuntu in it on Windows 10. I copied the rom into it, extracted system.new.dat.br to system.img finally, and mounted it into a directory, deleted some apps from /system/app directory, include most of the google apps like Play Books, Play Music, Drives, Duo, except Play Store and Google Core apps like Gms Core and Google Service framework etc, then unmounted it and repacked to system.new.dat.br and system.transfer.list, updated them into the zip file, flash it with TWRP-recovery. It is strange that some apps like Updater and Stk was really gone, but all the google apps still there. I only want, and other could be found in Google Play Store, I don't want them pre-installed. Could any one tell me that how to remove the contents from system.new.dat.br permanently? Thanks. I'm getting crazy!!!
Related
Let's say you don't have internet access at the moment.
Let's say all you have is fresh install of CyanogenMod 9, which for some reason, does not come with a File Manager :face palm:
Let's say you have an apk file on your SD card.
How would you install the apk file? Terminal emulator, using which commands or another way?
By the way, ASTRO File Manager vs. ES File Explorer, which one and why?
- Put your apk file to sdcard (ex: es.apk)
- open internet browser
- type "file:///sdcard/es.apk" then press Go
Sent from MARVEL JellyScream
I just figured this out on my own and it worked:
How to install app called Example Name.apk from Android phone's Terminal Emulator:
This shows you how to change directory to SD card ; list contents ; change directory to folder called Google Play which contains file to be installed called Example Name.apk
cd sdcard/
ls
cd "google play"/
ls
su
pm install "Example Name.apk"
Yep there are many way to install apks
Sent from MARVEL JellyScream
Wow...exactly what I wanted to know.
Thanks for this! :cyclops:
No Explorer/No Playstore
This is a shameful noob problem. Can someone help me please? :fingers-crossed:
I deleted my file explorer app so I can't execute apks from my SD. Also I can not download them from Play Store because it crashes (probably cuz I deleted this system file that has something to do with managing Google Accounts. Currently, I only have the following Google apps installed - Google Backup Transport, Google Contacts Sync, Google Play Store, Google Services Framework)
I rooted my Sony Xperia Arc with the brilliant, super easy rooting kit found here
Putting down my phone details in case they are required -
Model: LT15i
Android: 4.0.4
Kernel: 2.6.32.9
Build: 4.1.B.0.587
Should I just try installing a ROM otherwise?
Thank you so much for reading!
Just in case anyone else comes by here.
If I were you (months ago), I would have reinstalled the exact same ROM, directly over the ROM.
Or, I would have installed GAAPS. Or I would have connected a cable and dropped the files I needed, like a playstore.apk onto the phones internal memory, and then executed it through the browser. file:///path/*.apk
I was going over ADB from my PC, via usb debugging.
System app is just copy to your system/app folder.
and set permition to 644 (rw-r--r--)
Adb push *.apk /system/app
Normal apk is
Adb install *.apk
ZenInsight said:
Just in case anyone else comes by here.
If I were you (months ago), I would have reinstalled the exact same ROM, directly over the ROM.
Or, I would have installed GAAPS. Or I would have connected a cable and dropped the files I needed, like a playstore.apk onto the phones internal memory, and then executed it through the browser. file:///path/*.apk
I was going over ADB from my PC, via usb debugging.
System app is just copy to your system/app folder.
and set permition to 644 (rw-r--r--)
Adb push *.apk /system/app
Normal apk is
Adb install *.apk
Click to expand...
Click to collapse
Thanks for this, but my pc using win8 i can using adb, and file:///sdcard/ not apply with myphone.
I try terminal to mount sdcard, and it working
installing google play store
hungpd00532 said:
This is a shameful noob problem. Can someone help me please?
I deleted my file explorer app so I can't execute apks from my SD. Also I can not download them from Play Store because it crashes (probably cuz I deleted this system file that has something to do with managing Google Accounts. Currently, I only have the following Google apps installed - Google Backup Transport, Google Contacts Sync, Google Play Store, Google Services Framework)
I rooted my Sony Xperia Arc with the brilliant, super easy rooting kit found here
Putting down my phone details in case they are required -
Model: LT15i
Android: 4.0.4
Kernel: 2.6.32.9
Build: 4.1.B.0.587
Should I just try installing a ROM otherwise?
Click to expand...
Click to collapse
I too experienced a similar problem.....but i have not installed a custom rom .....my sd card formatted unfortunately...
i have no play store and file manager...
i tried many alternatives
went to default internet application and install apps through playstore or some other android stores
tried adb bundle using windows
and finally WIPE DATA AND RESET from recovery mode in my rooted phone and got my playstore back
but be carefull every other apps,data in your phone will be erased(conntacts,call logs,messages)
Tried this method and it shows error
asdot said:
- Put your apk file to sdcard (ex: es.apk)
- open internet browser
- type "file:///sdcard/es.apk" then press Go
Sent from MARVEL JellyScream
Click to expand...
Click to collapse
Hello,
I tried your browser method and it gives me the following error-
net::ERR_FILE_NOT_FOUND
What shall I do? I have no wifi connection and I installed Android 5.0.2 GAAPS iso on my Samsung NC10 netbook
help me to install app.
i had rooted my device and deleted all the system apps like google play store, default browser, file manager, default launcher and used third party application. But when i reset my device everything is gone and i can't access play store, default browser, file manager, default launcher to install other apps. No please help me to install apps. (i can access to setting,alarm, galary, youtube and superuser using google search):
my device is Samsung galaxy tab 2
android version 4.2.
please help.
I tried to use wondershare mobile go app installer but my usb is not working.
Gapps
http://opengapps.org/
You need to select the correct platform, ARM, and correct Android version and variant, I prefer micro, definitely not full.
You need to know how to install this from your sdcard before booting in.
1.- Move all these apks to the /system/priv-app folder of the android wear watch, and chmod 644 all apks with adb/terminal or change permissions to rw,r,r and change the owner to System and the group to System with file manager.
/system/Priv-app Apks -
ES filee explorer https://app.box.com/s/j4u1hiwymkbyvh4py2welvn88puyrn8w
Google Backup transport https://app.box.com/s/tvothkbt7yv0vw3fd6rcuxuf2vwa09qw
Google calendar sync https://app.box.com/s/i4ribv2kta4nhapb93tsesblgm3efvox
Google onetime init https://app.box.com/s/llxqniqy3thddj11g4jletk5qxpduw08
Google partner setup https://app.box.com/s/yg18h5rhs8d3ozdgmd2cufjgkynm55rs
UCBrowser https://app.box.com/s/misbdk8dg2nw1pz01ik8zrhxemvk5v9l
PlayStore https://app.box.com/s/cndzlazkq1z3599u39r842ocn7addlra
2.-Reboot watch to recovery and wipe dalvik and cache partitions.
3.- delete and move the dummy apks to system/priv-app folder
Google Play Store dummy apk https://app.box.com/s/thyhe4fscsbfnzacjpzh8ee5ufz5t8wu
UC Browser dummy apk https://app.box.com/s/epbyt8q2s1un5weigxeugphglbrjo01z
4.- Install these apks with ES file explorer -might not need to install all apks but that's what I use
Apks- https://app.box.com/s/rf5870pwmaeym7i132tlf5nt7uho72eg
4.- Reboot watch twice
Let me know how it goes!
Reserved
Hello,
thanks for this. But I need help.
I get this message: "com.google.process.gapps has stopped". Can you help me please ?
Thanks
mister-gwada97one said:
Hello,
thanks for this. But I need help.
I get this message: "com.google.process.gapps has stopped". Can you help me please ?
Thanks
Click to expand...
Click to collapse
Did you get apks installed ok?
iAppleDev said:
Did you get apks installed ok?
Click to expand...
Click to collapse
Yes I got all intalled ok. I did everything as you said.
I can't figure out what's wrong.
Does UCBrowser open and work?
"Google play services has stopped to work" after this process. I can´t get uc browser or play store working (installing as user apps as shown at step 3) If I move it to priv-app, UC browser works, but playstore´s still crashing. I don´t understand the dummy apks and its purpose...
If I install the dummy and before the user app UC browser, it doesn´t work. It needs to be pushed on priv-app to get networking
iAppleDev said:
Does UCBrowser open and work?
Click to expand...
Click to collapse
I got UC Browser working in system/app folder.
prototovsky said:
"Google play services has stopped to work" after this process. I can´t get uc browser or play store working (installing as user apps as shown at step 3) If I move it to priv-app, UC browser works, but playstore´s still crashing. I don´t understand the dummy apks and its purpose...
If I install the dummy and before the user app UC browser, it doesn´t work. It needs to be pushed on priv-app to get networking
Click to expand...
Click to collapse
Yes I guess it needs to be done first! If you use /system/app mover to move playStore to system then after it reboots install the newer PlayStore apk as an user with ES file explorer then delete the play store apk on the system/priv-app folder and add the older dummy apk again and it should work! I think it needs to be installed to system for real first then update it then move the older dummy apk to /system folder after you've updated it, the point of the dummy apk is to save space! if you want you could just leave the real apk in the System/folder
iAppleDev said:
Yes I guess it needs to be done first! If you use /system/app mover to move playStore to system then after it reboots install the newer PlayStore apk as an user with ES file explorer then delete the play store apk on the system/priv-app folder and add the older dummy apk again and it should work! I think it needs to be installed to system for real first then update it then move the older dummy apk to /system folder after you've updated it, the point of the dummy apk is to save space! if you want you could just leave the real apk in the System/folder
Click to expand...
Click to collapse
I don´t understand the steps. If I install something outside from priv-app, it won´t work on network, that´s a fact. I think google play services must be in priv-app also with play store and other google apps, but I don´t have space enought on /system partition (the play store crashes saying google play services has stopped, and I cannot install play services as user app because it says that already exists). Why it already exists? Must I delete the default Android wear Play services and replace with this new package? And what´s the installation order?
1- Install the dummy as user app and move it to /system with permissions, etc.
2- Reboot and install the real google play apk as user app
3- Reinstall the dummy on /system again (mantaining the real Gplay as user app and getting free space on /system)
Is this?
I only got UC browser working while being on priv-app, but nothing with play store... Really I´m trying to get it working
Yes any apps in the system folders get networking! And if you update that app it moves it to /data and still works as long as an dummy apk is in system folder. And yes I might have use the adb -r command to install play services or threw ES file explorer as an update? I'm not to sure
iAppleDev said:
Yes any apps in the system folders get networking! And if you update that app it moves it to /data and still works as long as an dummy apk is in system folder. And yes I might have use the adb -r command to install play services or threw ES file explorer as an update? I'm not to sure
Click to expand...
Click to collapse
Then, how I update an app for save space on /system? And how I install new play services without corrupting anything?
And what´s adb -r command for?
Sorry for all of that questions, but I´m interested in learning And thanks for all!
Have you tried to install play services apk with ES file explorer or threw adb? Android wear has play services installed already so it's just an update! It's called prebuiltGmsCoreForClockworkWearable.apk on my watch and is in the priv-app folder!
you have to install the app or apps to the /system/priv-app or /system/app folder first - you can use the app /system/app mover or adb or terminal or file manager. then you need to use ES File explorer and install an newer version of the same app and it will be updated and re-installed to the /Data partition where there is more space, it does not remove the apk from the /system folders but it's not used only checked for and wastes space so that's why the dummy apk is used. If you don't want to install other apps to system then just install PlayStore or UCBrowser and leave it in system but there isn't much space 30+mb.
adb install -r package.name.apk reinstalls the app without replacing the data like an update.
Ahh I found what was going on I forgot an apk GoogleAccountManager.apk it don't need to be in the system folder but if you reset the watch it will get deleted too unless it's in the system folder!
Can you upload it please? I'll try it
@iAppleDev : Hello, is there a way to store google contacts directly on the watch please ?
mister-gwada97one said:
@iAppleDev : Hello, is there a way to store google contacts directly on the watch please ?
Click to expand...
Click to collapse
Nope
iAppleDev said:
1.- Move all these apks to the /system/priv-app folder of the android wear watch, and chmod 644 all apks with adb/terminal or change permissions to rw,r,r and change the owner to System and the group to System with file manager.
/system/Priv-app Apks -
ES filee explorer https://app.box.com/s/j4u1hiwymkbyvh4py2welvn88puyrn8w
Google Backup transport https://app.box.com/s/tvothkbt7yv0vw3fd6rcuxuf2vwa09qw
Google calendar sync https://app.box.com/s/i4ribv2kta4nhapb93tsesblgm3efvox
Google onetime init https://app.box.com/s/llxqniqy3thddj11g4jletk5qxpduw08
Google partner setup https://app.box.com/s/yg18h5rhs8d3ozdgmd2cufjgkynm55rs
UCBrowser https://app.box.com/s/misbdk8dg2nw1pz01ik8zrhxemvk5v9l
PlayStore https://app.box.com/s/cndzlazkq1z3599u39r842ocn7addlra
2.-Reboot watch to recovery and wipe dalvik and cache partitions.
3.- delete and move the dummy apks to system/priv-app folder
Google Play Store dummy apk https://app.box.com/s/thyhe4fscsbfnzacjpzh8ee5ufz5t8wu
UC Browser dummy apk https://app.box.com/s/epbyt8q2s1un5weigxeugphglbrjo01z
4.- Install these apks with ES file explorer -might not need to install all apks but that's what I use
Apks- https://app.box.com/s/rf5870pwmaeym7i132tlf5nt7uho72eg
4.- Reboot watch twice
Let me know how it goes!
Click to expand...
Click to collapse
Hi, may I ask, what is the purpose of doing this? Is it for times when Android Wear becomes unstable?
I have put the apps to /system/priv-app. I chmod-ed them to 644. But i am not able to change user/group.
when in sdcard/Downloads the files are shown as root:sdcard_r. chown system:system filename result in no error, but ls -al still delivers root:sdcard_r
after putting the files in system/priv-app i am shown to have no rights to change user/group (no rights to write on system?). I dont know how to get these rights. Standard linux code doesnt work, necessary commands not integrated in wear?
In the file manager of twrp i dont find any option to change user/group. ES File Explorer is installed, but activation of root explorer returns an error. And yes, the device IS rooted
Edit:
When in /system/priv-app by adb shell su the files are shown root/root as user/group.
So the whole procedure results in:
I can start ES File Explorer (only through native GUI, not wear mini launcher, dont know why) - but i am not able to install an apk by it. Every try results in no app/no gesture. Now i am stuck...
Edit:
Ok, i made it by TWRP/Terminal. baaaaad work with that smaaaall keyboard and big fingers...
but it doesnt look as if that was the big point. File Explorer still cant get root explorer and i still cant install apps...
iAppleDev said:
1.- Move all these apks to the /system/priv-app folder of the android wear watch, and chmod 644 all apks with adb/terminal or change permissions to rw,r,r and change the owner to System and the group to System with file manager.
/system/Priv-app Apks -
ES filee explorer https://app.box.com/s/j4u1hiwymkbyvh4py2welvn88puyrn8w
Google Backup transport https://app.box.com/s/tvothkbt7yv0vw3fd6rcuxuf2vwa09qw
Google calendar sync https://app.box.com/s/i4ribv2kta4nhapb93tsesblgm3efvox
Google onetime init https://app.box.com/s/llxqniqy3thddj11g4jletk5qxpduw08
Google partner setup https://app.box.com/s/yg18h5rhs8d3ozdgmd2cufjgkynm55rs
UCBrowser https://app.box.com/s/misbdk8dg2nw1pz01ik8zrhxemvk5v9l
PlayStore https://app.box.com/s/cndzlazkq1z3599u39r842ocn7addlra
2.-Reboot watch to recovery and wipe dalvik and cache partitions.
3.- delete and move the dummy apks to system/priv-app folder
Google Play Store dummy apk https://app.box.com/s/thyhe4fscsbfnzacjpzh8ee5ufz5t8wu
UC Browser dummy apk https://app.box.com/s/epbyt8q2s1un5weigxeugphglbrjo01z
4.- Install these apks with ES file explorer -might not need to install all apks but that's what I use
Apks- https://app.box.com/s/rf5870pwmaeym7i132tlf5nt7uho72eg
4.- Reboot watch twice
Let me know how it goes!
Click to expand...
Click to collapse
Do you have root for this? If so how have you granted access if superuser doesnt work yet? Also how do you change the groups? And do the apks need to be in a folder in system/priv-app like they are in our phones? I moved all the apks but none of them installed I have TWRP but im still trying ti work out my root on Sony Smartwatch 3
Well, i recently uninstalled all my google apps to replace them and i found this file (andoid 4.1.2) devfiles co/download/52a65ddc5b4666adc8000004 (Cant upload the link)
Its like a folder with the apks and the certifications for the apks (redundancy) i noticed that i cant just extract the apks and install them.
So i want something like how to install the complete bundle of apps from recovery or any recovery tool app.
I have a huawei Ascend g526-L33
Hope its enough info.
Hi
I'm trying to flash a couple of older devices with Lineage OS. So far I have trimmed down the OpenGApps as much as I can so that there is room for my additional apps zip archive that contains Google Play Store apk's.
The problem I have is that whilst using TWRP to flash the zip, only the '/System/App' or '/System/Priv-app' directories actually contain the freshly copied apk files, whereas the '/data/app' folder only contains empty folders named after the package names e.g. '/data/app/com.adobe.reader/' and no apk inside.
Why is TWRP only allowing me to install apps into the System directory? The user app partition is so much bigger but being able to flash them without having to install the manually via the Play Store save so much time.
Could someone shed some light on this please.
Many thanks
Will
Sent from my LG-H930 using Tapatalk
Hello
I have an Android device based on Tegra CPU and with 5.1 Lollipop installed.
It has few own apps installed on it that basically are a custom menu and few apps that run on it.
I downloaded an update of it which contains:
boot.img, file_contexts, system.new.dat, system.patch.dat and system.transfer.list
I managed to extract the system.new.dat file to obtain a system folder which I don't know if it's only an update of the system folder on the device or the full folder instead.
Whithout root I copied the system folder out of the device with the apps that I want.
I'd like to run theese apps on another android device.
What do I need to get out of the device in order to try this apps to run?
Only the apps in system/app folder or there are also libraries that I need?
By don't know about, I copied out of the device also the lib folder.
I'd like to try on android studio the apps firstly.
Is there any way to know if an app needs libraries and which ones?
Thank you so much
Giulio
You can learn how to port app here : https://forum.xda-developers.com/showthread.php?t=2476050