Installing to /data/app with update.zip - Nexus Player Q&A, Help & Troubleshooting

This probably a stupid question but I'm having trouble building an update zip for the nexus player. I have built many android update zips for many device but never for android x86. I have put apps in /data/app folder in zip they do get extracted to /data/app on the nexus player but do not show in app drawer. im running cm 12.1 and twrp recovery. Can anyone tell me what I'm doing wrong here

Related

4.2.1 update fails, Need stock nexus 10 4.2 keyboard (latinimegoogle.apk)

When I migrated all my galaxy nexus apps over to my nexus 10 I didn't realize that the modded official nexus 4 keyboard I zip installed with clockwork would carry over and overwrite my default android keyboard on my nexus 10. As a result, in attempting to update to 4.2.1, I get an update failure due to a file check on the latinimegoogle.apk file.
Could somebody extract with root explorer the stock file for 4.2 galaxy 10 and then provide the link? I'm thinking if I adb 466 chmod push this, the update will see the expected file present and allow the update to pass.
Could somebody lend a hand and provide the stock file? Alternatively, I can download the stock tgz f recoveryile from Google, but I have no idea how I could virtually compile/ mount that and extract out the latinimegoogle.apk file I need.

Chrome won't properly install to /system/app

Bought a new nexus 7 yesterday (after having my old one stolen...) and I decided to root and install AOKP JB MR1 Milestone 1. I'm really impressed with it but I was surprised to find the AOSP browser rather than Chrome and a lack of Performance Control.
I tried to install Chrome as a system app (download from Play, push from /data/app to /system/app and set permissions to rw-r--r--) and rebooted. I was again surprised when I found that "Chrome's installation was incomplete." It worked fine in /data/app but I am now curious as to why it won't work in /system/app. (Sorry if this sounds nooby, I haven't dealt with rooting Nexus devices before, I only rooted my crappy old GT-S5830)
Does anyone have a solution? Missing lib files or something else that I need to transfer over?
And as a sidenote, is Performance Control compatible with the N7 on this build? And does anyone have a working version of it?
Check the apk. I think it has a lib file that you need to put into /system/lib. I'm also trying this out as of the moment with a LatinIME.apk

Rooted & TWRP 2.8.0.1 - flashable zips?

I have successfully rooted my T230 and installed TWRP 2.8.0.1. I now want to update the Google system apps with the latest available. I currently do this on my HTC One X running CM11 with the PA-GAPPs from here. I also modify the .zip file contents with the latest when they come out - I usually check here.
Now I tried this on the T230 and the script starts but exits saying 'Incompatible GApps Currently Installed' - I wasn't expecting it to work to be honest.....
I still want to update the Google system apps in /system/app and /system/priv-app to the current ones as the ones in the OTA ROM are fairly out of date. I know I can let the Play store update them to the current ones, however I wipe the device frequently and would prefer not to have to go through this each time. There are apps on the play store that let you move system apps and to user apps and vice versa which I have used before however its a faf each time they get updated as you need to make the system app a user app, let it automatically update or manually update it yourself with the .apk file and then move it back to system/app.
I'd prefer a flashable .zip I can install from recovery?
Andy
ADB100 said:
I have successfully rooted my T230 and installed TWRP 2.8.0.1. I now want to update the Google system apps with the latest available. I currently do this on my HTC One X running CM11 with the PA-GAPPs from here. I also modify the .zip file contents with the latest when they come out - I usually check here.
Now I tried this on the T230 and the script starts but exits saying 'Incompatible GApps Currently Installed' - I wasn't expecting it to work to be honest.....
I still want to update the Google system apps in /system/app and /system/priv-app to the current ones as the ones in the OTA ROM are fairly out of date. I know I can let the Play store update them to the current ones, however I wipe the device frequently and would prefer not to have to go through this each time. There are apps on the play store that let you move system apps and to user apps and vice versa which I have used before however its a faf each time they get updated as you need to make the system app a user app, let it automatically update or manually update it yourself with the .apk file and then move it back to system/app.
I'd prefer a flashable .zip I can install from recovery?
Andy
Click to expand...
Click to collapse
Well, I haven't tried flashing a Gapps zip but I agree that the apps are really outdated and would be too much to update each time you factory reset/wipe the device.
One way of doing this as you have mentioned: Remove the current Gapps. But I'm not sure it works for the play services. But even doing this may lead to the same error while flashing the zip.
Second way, as you said yourself, would be to make them as user apps and update them and make them system apps again. Which would take some time. But it seems the best method here.
The last way, specific to your case, is to wipe the device, update the apps and finally make a nandroid backup. Next time, instead of wiping, just restore the backup.
There can also be other ways to flash the zip in traditional manner but I think it would require a chance in the updater script of the package. (While you're at it, make sure you're flashing Kitkat 4.4 Gapps and not L Gapps.)

How to Get Kevo on Nexus 5 (5.0.1 or 5.1) or CM12 (5.0.2 or 5.1.1)

Instructions are below. Just a warning that you'll be modifying system files and so things could go wrong. Be careful, take your time, and back up the files you are replacing along with a nandroid backup. I assume no responsibility if your phone breaks though. This process was developed by someone else and I am posting this on their behalf. I will help where I can, but google will be your best friend
Instructions for Nexus 5 running 5.1 ASOP and Nexus 5 running 5.1.1 Cyanogenmod 12.1
1. You need to be rooted with a custom recovery. I won't go into detail on how to do that since there are plenty of threads on xda-developers about it.
2. Download the correct .zip for you system and install them after booting into recovery
Instructions for Nexus 5 running 5.0.1 ASOP and Nexus 5 running 5.0.2 Cyanogenmod 12
1. You need to be rooted with a custom recovery. I won't go into detail on how to do that since there are plenty of threads on xda-developers about it.
2. Copy the correct 2 files to your phone. One set is for a Nexus 5 running 5.0.1 ASOP and the other is for Nexus 5 running 5.0.2 Cyanogenmod 12 . I plugged my phone into my windows computer and just placed them in the root of the "drive". From the phone's point of view this is /sdcard.
3. You now need to change the permissions of the 2 files. You have to put them in the /system/ folder before you can change permissions. /mnt/sdcard doesn't allow you to change permissions. So copy them to /system/ and change their permissions to 0644 (rw-r--r--). I use root browser for this.
4. Use root browser and move libbluetooth_jni.so to /system/lib/ and move bluetooth.default.so to /system/lib/hw. I would copy the original files to somewhere else first as a backup in case something goes wrong. Double check the permissions on the new files after you move them to their respective locations.
5. Reboot.
6. Installed Kevo and it stopped telling my my phone wasn't supported at this point and everything worked fine.
Please join the KEVO ALPHA Google Group to get the most recent version of the app. I have provided a link to the 1.0.15, but it may be out of date.
KevoForAndroid-1.0.15p.apk
KevoForAndroid-1.0.15p.apk 7.91MB
PLEASE CHECK THE FILES BEFORE YOU COPY THE OVER YOUR FILES, ELSE YOU WILL BREAK YOU BLUETOOTH
-As along as you keep a copy of your original files you can always paste them over the broken ones
ANDROID Stock 5.0.1 ASOP ONLY Files from Download Tab
bluetooth.default.so 2015-02-26 12:36 1.26MB is for 5.0.1 ONLY
libbluetooth_jni.so 2015-02-26 12:36 87.63KB is for 5.0.1 ONLY
ANDROID Stock 5.1 ASOP ONLY File from Download Tab
patched-bluetooth.zip
ANDROID 5.0.2 Cyanogenmod 12 Nightly ONLY Files from Download Tab
bluetooth.default.so 2015-02-26 12:33 1.31MB is CM12 5.0.2 ONLY
libbluetooth_jni.so 2015-02-26 12:33 112.45KB is CM12 5.0.2 ONLY
ANDROID 5.1.1 Cyanogenmod 12.1 ONLY(WILL NOT WORK ON CM12.1 running 5.1.0) File from Download Tab
cm12.1-patched-bluetooth.zip
PROCESS IF YOU DONT HAVE EITHER ONE OF THESE OS:
If neither one of these sets of files work for you. You can make your own. This process will take the whole day and a lot of goggling if you have never used Linux, Source Code, or compiled anything. Remember to always have have all files up to date, use Python 2.7 not Python 3+, have >100 gig of hard drive space, and google the errors when you see them in the terminal window.(you will see a lot if this is your first time). If you are familiar with all this then it will likely take about 2 hours and that is just for downloading the source code and compiling.
1. You need to be rooted with a custom recovery. I won't go into detail on how to do that since there are plenty of threads on xda-developers about it.
2. Get the android source code. Follow the instructions from Google or from your ROM on how to do this. Note that you'll need either a Linux system or an OSX system. (I used an Ubuntu and installed it on a extrahardive, but you can use a virtual machine as well) Also note that getting the source takes quite a while. It took around an hour for me and I have 100Mb down.
3. Edit a file from the hammerhead source. If you followed the instructions on getting the source, you'll find the file at device/lge/hammerhead/bluetooth/. The file is called bdroid_buildcfg.h. Open the file and add "#define BLE_VND_INCLUDED TRUE" (without the quotes) above the line "#define BTM_BLE_ADV......". Save the file.
4. Compile, again following the instructions from Google or from your ROM. Obviously this time will vary depending on the speed of your computer. it can take anywhere from 30 min to 2 hours.
5. Once the compile is done, we need to grab 2 files. out/target/product/hammerhead/system/lib/libbluetooth_jni.so and out/target/product/hammerhead/system/lib/hw/bluetooth.default.so. Save the files in a location you can access easily for copy to your phone.
6. Copy the 2 files to your phone. I plugged my phone into my windows computer and just placed them in the root of the "drive". From the phone's point of view this is /sdcard.
7. You now need to change the permissions of the 2 files. You have to put them in the /system/ folder before you can change permissions. /mnt/sdcard doesn't allow you to change permissions. So copy them to /system/ and change their permissions to 0644 (rw-r--r--). I use root browser for this.
8. se root browser and move libbluetooth_jni.so to /system/lib/ and move bluetooth.default.so to /system/lib/hw. I would copy the original files to somewhere else first as a backup in case something goes wrong. Double check the permissions on the new files after you move them to their respective locations.
9. Reboot. Kevo stopped telling my my phone wasn't supported at this point and everything worked fine.
XDA:DevDB Information
Kevo Working on Nexus 5, App for all devices (see above for details)
Contributors
BSME_SWeedon, scorchsta
Version Information
Status: Beta
Current Beta Version: 1.0.15
Beta Release Date: 2015-02-17
Created 2015-02-26
Last Updated 2015-05-21
Any chance you could rebuild for Android 5.1 for the Nexus 5?
ludwigmace said:
Any chance you could rebuild for Android 5.1 for the Nexus 5?
Click to expand...
Click to collapse
You will find the patched files for 5.1 here: https://groups.google.com/forum/m/#!topic/kevo-alpha/-bOQs8V6KU0
Can this be done for other devices? Like the Note series or others?
johnathankong said:
Can this be done for other devices? Like the Note series or others?
Click to expand...
Click to collapse
Yes if you go to https://groups.google.com/forum/m/#!topic/kevo-alpha/-bOQs8V6KU0 you will see the forums for different device support. I saw Note 4 has support.
Step 8 isn't entirely necessary
Just a heads up if you want to simplify your first post, that part of step "8" is not necessary:
8. Reboot into recovery. Using your recovery's file browser (TWRP has one, not sure about others), move libbluetooth_jni.so to /system/lib/ and move bluetooth.default.so to /system/lib/hw. I would copy the original files to somewhere else first as a backup in case something goes wrong. Double check the permissions on the new files after you move them to their respective locations.
Click to expand...
Click to collapse
In fact, as you already are using Root Browser to change the permissions, you can also use Root Browser to move the 2 files. Worked just fine for me and removes the need for TWRP or another reboot.
CJSnet said:
Just a heads up if you want to simplify your first post, that part of step "8" is not necessary:
In fact, as you already are using Root Browser to change the permissions, you can also use Root Browser to move the 2 files. Worked just fine for me and removes the need for TWRP or another reboot.
Click to expand...
Click to collapse
Thanks I have updated the steps. There is also a zip file to install now, which is a lot easier.
@BSME_SWeedon any chance you can update 6.0 marshmallow files?
@Scorchsta was the one who generated the files, but he has not had a working nexus 5 in a while and I am about to jump ship the the Nexus 5x. I might try to push ASH6.0 to my nexus 5 this weekend and see if I can generate the files. I will post them if I am successful
thank you so much. looking forward to it.
BSME_SWeedon said:
@Scorchsta was the one who generated the files, but he has not had a working nexus 5 in a while and I am about to jump ship the the Nexus 5x. I might try to push ASH6.0 to my nexus 5 this weekend and see if I can generate the files. I will post them if I am successful
Click to expand...
Click to collapse
Thank you thank be very much appreciate
Anyone seen updated libs for the n5 with marshmallow yet? For me its either wait to see if kevo works on new nexus or keep snoozing my marshmallow update on my n5
The latest alpha works with an unmodified library, albeit the unlock is sent through the phone not the deadbolt.
https://groups.google.com/forum/m/#!topic/kevo-alpha/8CoLWU4-29Y
Here's a flashable zip for 6.0.1 (MMB29K). BSME_SWeedon's instructions were great and, now that I know how to do it, I'll try to stay on top of future updates.
BSME_SWeedon, could you update the title to include 6.0.1?
Can you post some screenshots?
Got this merged in CM 13 Nightlies
http://review.cyanogenmod.org/#/c/137324/
Should be effective on the Mar 22 Nightly

[REQUEST] Zip binary for android x86

Hi,
I need the zip binary file for android x86 devices. This is one of the few devices with x86 structure, so thought you people will know about it.
Why I need it?
I am making a root based app. It currently supports arm and arm64 because I have the "zip" binaries for them. I have found "busybox" for x86, but not the "zip" binary. If anyone would kindly share it here, I would be able to support devices like this one.
How to do it?
Mostly custom ROMs like AEX has the zip binary. To check, download a terminal emulator app from Play store. Then issue this command:
Code:
zip --help
If you get the help menu, then the zip binary is present in the system. You need to just search it.
Where to search for the zip binary?
The zip binary can be present in /system/bin or /system/xbin or /vendor/bin (if this device has any directory like that). You would need a root enabled browser to look into these directories. Once you find it, please upload it here. I will be really grateful.
Thanks a lot.
i'm getting help from zip --help
this is the zip from Mokee Rom , it was in xbin folder

Categories

Resources