(CM11) for Huawei g6 u10/u251/y530/g630 - Huawei Ascend G6

Hi
this is g630 cm11 which is working on g6 u10/u251 and y530
current bugs:
1)wifi
2)No sound in calls
3)camera
4)sensors
How to install:
1)Use twrp and wipe cache/dalvick/data/system/cust
2)install the rom.zip file
download:
https://mega.co.nz/#!kdAzhZqB!xQwRr4qsgYvh0BB7Zf76M9U0NZ5e1b_Wno0dcKVWAGA
Any help is appreciated to fix the current bugs.
All credits goes to ELYGOMEZ for the g630 tree and kernel
Source Code:
https://github.com/messi2050

Here is fix for wifi. Is an post her on xda
working on CM11.
1.) First you install CM11[need to have clockworkmod(CWM)]
2.)After you installed and booted CM11 open the menu and open terminal.
3.)Then in terminal write first and press "↲":
Code:
su -
4.)After you got root permission in Terminal then write this line in Terminal and press "↲":
Code:
mount -o rw,remount /system
5.)After inputed that write this in terminal and press "↲":
Code:
cd /system/etc/firmware/wlan/prima
6.)And after that add this last line and press "↲":
Code:
ln -s WCNSS_hw_wlan_nv.bin WCNSS_qcom_wlan_nv.bin
After doing that wifi should be enabled..

ciubi93 said:
Here is fix for wifi. Is an post her on xda
working on CM11.
1.) First you install CM11[need to have clockworkmod(CWM)]
2.)After you installed and booted CM11 open the menu and open terminal.
3.)Then in terminal write first and press "↲":
Code:
su -
4.)After you got root permission in Terminal then write this line in Terminal and press "↲":
Code:
mount -o rw,remount /system
5.)After inputed that write this in terminal and press "↲":
Code:
cd /system/etc/firmware/wlan/prima
6.)And after that add this last line and press "↲":
Code:
ln -s WCNSS_hw_wlan_nv.bin WCNSS_qcom_wlan_nv.bin
After doing that wifi should be enabled..
Click to expand...
Click to collapse
It seems that this fix is not working on my build

messi2050 said:
It seems that this fix is not working on my build
Click to expand...
Click to collapse
PieroV founded that fix post writted by me that one for Y530 probably u need write a correct link for G6

Lycris11 said:
PieroV founded that fix post writted by me that one for Y530 probably u need write a correct link for G6
Click to expand...
Click to collapse
i abandoned this project and i'm trying to port cm12 lollipop now

where can i find twrp for g6-u10? and how to install it

messi2050 said:
Hi
this is g630 cm11 which is working on g6 u10/u251 and y530
current bugs:
1)wifi
2)No sound in calls
3)camera
4)sensors
How to install:
1)Use twrp and wipe cache/dalvick/data/system/cust
2)install the rom.zip file
download:
https://mega.co.nz/#!kdAzhZqB!xQwRr4qsgYvh0BB7Zf76M9U0NZ5e1b_Wno0dcKVWAGA
Any help is appreciated to fix the current bugs.
All credits goes to ELYGOMEZ for the g630 tree and kernel
Sources: https://github.com/AscendG630-DEV
if you like my work and want to encourage me to continue make a donate at payza/google wallet for [email protected]
Click to expand...
Click to collapse
Hi I'm Efran, author of the kernel Soulfire for huawei Y530.
I intend to continue the proyect of CM11 with sources you leave, but kernel you use?
you did some modification to CM11 was dem caf-legacy?

ciubi93 said:
Here is fix for wifi. Is an post her on xda
working on CM11.
1.) First you install CM11[need to have clockworkmod(CWM)]
2.)After you installed and booted CM11 open the menu and open terminal.
3.)Then in terminal write first and press "↲":
Code:
su -
4.)After you got root permission in Terminal then write this line in Terminal and press "↲":
Code:
mount -o rw,remount /system
5.)After inputed that write this in terminal and press "↲":
Code:
cd /system/etc/firmware/wlan/prima
6.)And after that add this last line and press "↲":
Code:
ln -s WCNSS_hw_wlan_nv.bin WCNSS_qcom_wlan_nv.bin
After doing that wifi should be enabled..
Click to expand...
Click to collapse
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:5: error: expected identifier before '(' token
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:5: error: expected '}' before '(' token
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected unqualified-id before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
In file included from hardware/qcom/display-caf-legacy/libqdutils/mdp_version.cpp:34:0:
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:121:1: error: expected declaration before '}' token
make: *** [/home/efran/cm11/out/target/product/y530/obj/SHARED_LIBRARIES/libqdutils_intermediates/mdp_version.o] Error 1
make: *** Se espera a que terminen otras tareas....
??? Help?

This is probablt abendoned project? So bugs still here

I have a G6-L11 (4G version). I can install CM11 on my phone?

Hi
I need android version 5 or 6 or 7 for g630-u10
please give me a direct link for download it!
I search everywhere but i could'nt find anything...

qscesza said:
Hi
I need android version 5 or 6 or 7 for g630-u10
please give me a direct link for download it!
I search everywhere but i could'nt find anything...
Click to expand...
Click to collapse
Please Help

qscesza said:
Hi
I need android version 5 or 6 or 7 for g630-u10
please give me a direct link for download it!
I search everywhere but i could'nt find anything...
Click to expand...
Click to collapse
hi, i don't think such rom exist..

messi2050 said:
hi, i don't think such rom exist..
Click to expand...
Click to collapse
Tnx
Even custom rom?

qscesza said:
Tnx
Even custom rom?
Click to expand...
Click to collapse
Yea

l
x

Related

[KERNEL][WIP]Auto-build kernel vainilla.

KERNEL i9003
Version 2.6.35.7 under construction
I created a github with the kernel vainilla(Samsung-sources1).I added a script for easy creation and self-packaged in a tar (ODIN).
github url --->https://github.com/vurrut/kernel_i9003
Requirements:
Ubuntu 10.04 or higher
Build intructions:
Get source intructions(in terminal):
Code:
wget [url]http://dl.dropbox.com/u/962863/gbuild.sh[/url]
sudo chmod 0777 gbuild.sh
./gbuild.sh
Alternate metod:
Code:
mkdir ~/kernel_i9003
cd ~/kernel_i9003
sudo apt-get install git git-core
git clone git://github.com/vurrut/kernel_i9003.git
./build.sh
important! no change de directory (kernel_i9003)
Output
In out folder:
-GT-I9003_PDA.tar (flash with ODIN)
For subsequent builds:
Code:
cd ~/kernel_i9003
./build.sh
Info:
In the "out-folder" ramdisk directory is located(this is based on KPM, if you want you can change it to another version)
In this directory you can add app,su binary,recovery, busybox...
I hope your suggestions for improvements.
If anyone is interested, Pm me to give permission in github.
__________________
My devices:
Samsung galaxy s i9003-->stock KPM
Htc Hero-->CyanogenMOD 7.1.0
Advent Vega--Vegacomb 3.2 by Teamnewco
SmartQ V7--->in a box
Follow me on twitter @ivan_calvo
If you like my works press the THANKS button.
Change log:
initial(10/11/2011):
-Create build.sh
-added toolchain arm-eabi-4.4.0
-adeed script with mkbootimg(Create image tar in out folder)
-added kpm ramdisk to mkbootimg
Where I can find the 4 files you've mentioned in the second post?
EDIT: Ok I've found them
Nice work buddy
Great work, welcome to our family.
Sent from my GT-I9003 using Tapatalk
since u made some changes over the one u posted on facebook.....do i have to sync again?(low bandhwith!)
here is a error
Code:
[email protected]:~/kernel_i9003# wget http://dl.dropbox.com/u/962863/gbuild.sh
--2011-11-11 13:58:45-- http://dl.dropbox.com/u/962863/gbuild.sh
Resolving dl.dropbox.com...
184.73.223.62, 107.20.151.179, 107.20.230.29, ...
Connecting to dl.dropbox.com|184.73.223.62|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 177 [text/x-sh]
Saving to: `gbuild.sh'
100%[======================================>] 177 --.-K/s in 0s
2011-11-11 13:58:46 (8.28 MB/s) - `gbuild.sh' saved [177/177]
[email protected]:~/kernel_i9003# ./gbuild.sh
bash: ./gbuild.sh: Permission denied
[email protected]:~/kernel_i9003#
[email protected]:~/kernel_i9003# ./gbuild.sh
bash: ./gbuild.sh: Permission denied
sudo chmod 0777 gbuild.sh ---I forget!!
vurrut said:
[email protected]:~/kernel_i9003# ./gbuild.sh
bash: ./gbuild.sh: Permission denied
sudo chmod 0777 gbuild.sh ---I forget!!
Click to expand...
Click to collapse
I get this message.
[email protected]:~$ cd samkern
[email protected]:~/samkern$ wget http://dl.dropbox.com/u/962863/gbuild.sh
--2011-11-11 15:22:20-- http://dl.dropbox.com/u/962863/gbuild.sh
Resolving dl.dropbox.com... failed: Name or service not known.
wget: unable to resolve host address `dl.dropbox.com'
[email protected]:~/samkern$
ganeshbiyer said:
I get this message.
[email protected]:~$ cd samkern
[email protected]:~/samkern$ wget http://dl.dropbox.com/u/962863/gbuild.sh
--2011-11-11 15:22:20-- http://dl.dropbox.com/u/962863/gbuild.sh
Resolving dl.dropbox.com... failed: Name or service not known.
wget: unable to resolve host address `dl.dropbox.com'
[email protected]:~/samkern$
Click to expand...
Click to collapse
did u first clone the repo?
mmm.work to me!
i pos a alternate metod, gbuild is a simply script.
[email protected]:~$ wget http://dl.dropbox.com/u/962863/gbuild.sh
--2011-11-11 10:41:55-- http://dl.dropbox.com/u/962863/gbuild.sh
Resolviendo dl.dropbox.com... 107.20.170.126, 107.22.243.22, 50.16.185.216, ...
Conectando a dl.dropbox.com|107.20.170.126|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 177 [text/x-sh]
Guardando en: «gbuild.sh»
100%[======================================>] 177 --.-K/s en 0s
2011-11-11 10:41:55 (13,6 MB/s) - «gbuild.sh» guardado [177/177]
sakindia123 said:
did u first clone the repo?
Click to expand...
Click to collapse
Yes I Have.
What does this
wget http://dl.dropbox.com/u/962863/gbuild.sh
do.
ganeshbiyer said:
Yes I Have.
What does this
wget http://dl.dropbox.com/u/962863/gbuild.sh
do.
Click to expand...
Click to collapse
it will clone the script to ur machine....dont forget to place it in /blah/blah/kernel_i9003 !
ganeshbiyer said:
Yes I Have.
What does this
wget http://dl.dropbox.com/u/962863/gbuild.sh
do.
Click to expand...
Click to collapse
gbuild.sh is a simply script with this:
Code:
#!/bin/bash
mkdir ~/kernel_i9003
cd ~/kernel_i9003
sudo apt-get install git git-core
git clone git://github.com/vurrut/kernel_i9003.git
./build.sh
to simplify things! but I have not done it!
ganeshbiyer said:
Yes I Have.
What does this
wget http://dl.dropbox.com/u/962863/gbuild.sh
do.
Click to expand...
Click to collapse
u don't know these commands ? wget [ur url here] will download the file on ur machine
simmer14 said:
u don't know these commands ? wget [ur url here] will download the file on ur machine
Click to expand...
Click to collapse
I know what this command is supposed to do.
U should see my earlier post before u write
ganeshbiyer said:
I know what this command is supposed to do.
U should see my earlier post before u write
Click to expand...
Click to collapse
ohh u did'nt saw the 2nd page but just by looking at your post i thought that u don't know what that command is used for
anyways no hard feelings bro
some suggestionsafter wip is removed!)
1)Replace kpm ramdisk with kpn
2)i forgot!
Also,while compiling zImage,there were quite a few errors...hopefully u will look into those
u might actually want to add latest modules which are compiled...
and if u want to use older modules atleast correct the CONFIG_LOCALVERSION to match the vermagic string for modules else modules wont be loaded and device might fail to boot...
also such scripts are only useful if u have confirmed that there was no issue while compiling...
initially u should just compile to check if there are any issues...
>>>
cp $HOME/kernel_i9003/out/config_old $HOME/kernel_i9003/.config
<<<
thats not the "correct" way...
u should use:
make device_defconfig
another thing:
>>>
echo ' Compile kernel'
make
<<<
this is going to be so slow... use atleast -j4 on single core machine.... on my dual core i3 i use -j8
also we generally dont put such stuff in kernel source folder...
generally we keep:
kernel/
out/
toolchains/
another tip: use toolchains from CM repo, both 4.4.0 & 4.4.3 work
P.S.: ur boot.img build script is copied from Skin's script... atleast keep the original "credits" intact
CAN SOMEONE teach me how to un-cpio the zImage?i tried the script available @xda wiki but it doesnt work!!
plz help
sakindia123 said:
CAN SOMEONE teach me how to un-cpio the zImage?i tried the script available @xda wiki but it doesnt work!!
plz help
Click to expand...
Click to collapse
the zImage is compressed kernel... u cant get anything out of it...
u can however get ramdisk (initramfs) [which is (generally) cpio.gz file] out of boot.img
find unpack-bootimg.pl on xda

[DEV][ADDON]Lastest Bash for android

Bash 4.3.46 for Android
Safe from Shellshock​
All right guys im just going to keep this real nice and simple. Purpose of thread:
I compiled this binary from source and patched it get safe from ShellShock bug. It's compiled using arm-linux-gnueabihf toolchain from Linaro (CFLAGS = "-g -Ofast -static -pipe")​
[*]You Should Now Have Bash
[*]To run it just type in termial "bash" or "bash --login" if you want to load /etc/profile​
Download Link
Click The Text To Download
Flashable ZIP (thanks to Primokorn)
Flashable ZIP md5sum
Shellshock Test (thanks to ronaldteune)
Code:
busybox mount -o remount,rw /
busybox ln -s /system/xbin /bin
# download from browser https://shellshocker.net/shellshock_test.sh and place it in /data
busybox chmod 777 /data/shellshock_test.sh
/data/shellshock_test.sh
rm -f /data/shellshock_test.sh
busybox rm /bin
busybox mount -o remount,ro /
Thanks For Reading :good:
P.S.#1 Bash binary always be updated
P.S.#2 to mount system rw run from terminal
Code:
mount -o remount,rw /system
P.S.#3 if you don't have root put it in /data/local/bin and add it to your PATH
3lo0sh said:
Bash 4.3.30 for Android
Safe from Shellshock​
All right guys im just going to keep this real nice and simple. Purpose of thread:
I compiled this binary from source and patched it get safe from ShellShock bug. It's compiled using arm-none-linux-gnueabi toolchain from Mentor Graphics ​
How To Use:
Download the binary and put it into /system/xbin ( you should mount your system part (r/w)
know run from terminal "chmod 777 /system/xbin/bash"
You Should Now Have Bash
To run it just type in termial "bash" or "bash --login" if you want to load /etc/profile
Download Link
Click The Text To Download
Always lastest Bash
Source Code
Thanks For Reading :good:
P.S. Bash binary always be updated
Click to expand...
Click to collapse
I'm trying to mount my /system using the following commands in Terminal Emulator:
su
mount -rw /system
When I try and type the chmod line above, I keep getting the message:
Usage: mount [-r] [-w] [-o options] [-t type] device directory
What am I doing wrong to mount the /system file in order to perform the chmod command? I've also used ~/system, same result.....it's probably something super simple, but I'm flummoxed. Any assist would be appreciated, thanks!
Joshmccullough said:
I'm trying to mount my /system using the following commands in Terminal Emulator:
su
mount -rw /system
When I try and type the chmod line above, I keep getting the message:
Usage: mount [-r] [-w] [-o options] [-t type] device directory
What am I doing wrong to mount the /system file in order to perform the chmod command? I've also used ~/system, same result.....it's probably something super simple, but I'm flummoxed. Any assist would be appreciated, thanks!
Click to expand...
Click to collapse
The currect syntax is
mount -o remount,rw /system
?
It never even occurred to me that android is vulnerable!! I hope Google patches this in AOSP Android L!!
I have in /system/xbin an old bash file ( coming with the ROM), I must overwrite it or that's enough?
i hope the cm team will include this
nadejo said:
i hope the cm team will include this
Click to expand...
Click to collapse
I'm running CM 11 M11 and I have the bash file but it's different from this one in size.
hp420 said:
It never even occurred to me that android is vulnerable!! I hope Google patches this in AOSP Android L!!
Click to expand...
Click to collapse
Android will never be vulnerable (unless installed unpatched bash)
abidifethi said:
I have in /system/xbin an old bash file ( coming with the ROM), I must overwrite it or that's enough?
Click to expand...
Click to collapse
If the original bash is patched (no need) just copy it as bash-arm
If it's not patched (overwrite it)
nadejo said:
i hope the cm team will include this
Click to expand...
Click to collapse
I don't think they will include it
I think they will just patch theirs
@3lo0sh Getting an error like this 'unable to chmod 777 /system/xbin/bash: Read-only file system. Where i am wrong?
EDIT:- I'm sorry for that. After typing this 'mount -o remount,rw /system' command in terminal I am not getting the above error but when i issue bash command this error returns 'bash: precmd: command not found. Herewith attaching screenshot
abidifethi said:
I'm running CM 11 M11 and I have the bash file but it's different from this one in size.
Click to expand...
Click to collapse
Is it bigger ?
Trilochanaaya said:
Getting an error like this 'unable to chmod 777 /system/xbin/bash: Read-only file system.
Click to expand...
Click to collapse
dude did you read the OP
you must mount your system rw
just run from terminal
"mount -o remount,rw /system"
3lo0sh said:
Is it bigger ?
Click to expand...
Click to collapse
no t's smaller (about 417kb)
abidifethi said:
no t's smaller (about 417kb)
Click to expand...
Click to collapse
It's even include bash_history ??
Sadly it isn't import bash.bashrc by default ?
3lo0sh said:
It's even include bash_history ??
Sadly it isn't import bash.bashrc by default ?
Click to expand...
Click to collapse
So what's your advise?I overwrite it and "Maoulaha RABBI"
3lo0sh said:
dude did you read the OP
you must mount your system rw
just run from terminal
"mount -o remount,rw /system"
Click to expand...
Click to collapse
I did that pls see the post again! I have attached screenshot also.
abidifethi said:
So what's your advise?I overwrite it and "Maoulaha RABBI"
Click to expand...
Click to collapse
Overwrite it
It's smaller,lastest and patched
Trilochanaaya said:
I did that pls see the post again! I have attached screenshot also.
Click to expand...
Click to collapse
I think it's will not work in adb shell ? I am not developer so i think you should wait untel i search for patch to make it work ?
Trilochanaaya said:
I did that pls see the post again! I have attached screenshot also.
Click to expand...
Click to collapse
Pls se the picture
Add this function to your /etc/profile and do "bash --login"

[Meizu]-[FLyme Os] Install rom international for All devices

Sorry English my "BAD"
Ground facebook: https://www.facebook.com/groups/1697660883795443/
Guide will support install rom international for Meizu MX4 , MX5 , MX4 pro Version A , U , C ......and more devices Meizu
Advantages: rather safe method, no Chinese applications, default Google Play Services, more supported languages i-rom in the near future.
Disadvantage: OTA-update not possible, (but you can always update manually).
Note: Here's how to do safe , You do not have to worry
Request:
+Rooted
+Busybox
+Driver ADB for PC because run you need command ADB
How to instal driver ADB for Meizu Devices
Note:Because English not good , pls see Guide Tks to @abaggie Meizufan
Step 1 : Enable Usb debug and Allow mock locations
Step 2: connect devices PC and choose connect CD/Rom
You can see CD driver , you install driver adb equal file in folder Usb driver
Step 3: at c: \ Users \ your name \ .android \
Creat or edit file adb_usb.ini
add a line
Code:
0x2a45
Step 4: check driver
Code:
adb kill-sever
Code:
adb devices
if cmd current "offline" you need install again driver
Step 4: download and copy file rom .img to storage
Step 5: run CMD and type command:
Code:
adb shell
Code:
su
Code:
dd if=/sdcard/system-i.img of=/dev/block/platform/xxxxx/by-name/system
Note : xxxxx leaves partition system
example : MX4pro (cpu exynos) : /dev/block/platform/15540000.dwmmc0/by-name/system
M2 note,mx4,m1note (cpu MTK) : /dev/block/platform/mtk-msdc.0/by-name/system
MX5:/dev/block/mmcblk0p18 or you can use dev/block/platform/mtk-msdc.0/by-name/system
We expect the end of the command (about 5 min . ) . After the download of the image will be prompted to enter a new team in the form of the sign '#' ;
Due to the fact that the section is replaced by a system hang smartphone . This is normal. Restart it long hold the power button , and wait for download smartphone. If your smartphone is not loaded within 15 minutes , you need to reset the settings of recovery stock ( volume down button + power button ) .
Step 6 : Now you need to reset your smartphone to factory settings. Settings - About phone - memory - factory reset . Put two checkboxes, and click " Start cleaning " .
Or reboot recovery stock and clear data
DOWNLOAD
Rom 4.5.4i for MX4 Pro: google driver
Rom 4.5.4i MX4pro use TWRP flash rom:Google driver
Rom 4.5.5i for MX4pro:Google driver
Meizu pro5 stock mod version I
4.5.4.2i: Download
M1 note: Download
MX5:Google driver
FW 4.5.2.7i Stable: Download
M2 note : Google driver
FW 4.5.3i :Link Mega
MX4 folder download: google driver
Folder run command ADB:Google driver
Meizu M1 note :Google driver
==================================================
Update tools One click auto converter system support creat system.img for meizu devices
Link download : Driver google
How to use:
Step1: Copy system.new.dat and system.transfer.list to folder "in"
Step2: Run System-conVERTER.dat
===============================
PS: Get link download max speed vietnam host Fshare: get link
Good idea!
update MX4 link rom
doesn't work... Says Permission denied.
this is the string:
[email protected]:/ $ su
su
enter main
start command :am start -a android.intent.action.MAIN -n com.android.settings/co
m.android.settings.root.RootRequestActivity --ei uid 2000 --ei pid 6904 > /dev/n
ull
[email protected]:/ # dd if=/sdcard/system-i.img of=/dev/block/platform/15540000.dwmm
c0/by-name/system
dcard/system-i.img of=/dev/block/platform/15540000.dwmmc0/by-name/system <
dd: /sdcard/system-i.img: Permission denied
I solved with the terminal emulator
ucb83 said:
I solved with the terminal emulator
Click to expand...
Click to collapse
you need flash on PC
no terminal emulator
Sent from my MX4 Pro using Tapatalk
I succeeded even with the terminal emulator. I finally managed to install via PC, great job, everything works.
Hum great... seem good new....
Envoyé de mon X98 Air 3G(C8J7) en utilisant Tapatalk
i will update rom version I use TWRP flash for mx4pro
Sent from my MX4 Pro using Tapatalk
what ROM? I don't understand how to do after the end of the command. What must i write? "#"?
TARAS88 said:
what ROM? I don't understand how to do after the end of the command. What must i write? "#"?
Click to expand...
Click to collapse
This is what i do but after when i see the sharp i reboot the smartphone and i see only the recovery.
Very great method...it worke great! Only issue is that I do not see Contacts for my google account....Any clue?...
THANKS IN ADVANCE!
popo72 said:
Very great method...it worke great! Only issue is that I do not see Contacts for my google account....Any clue?...
THANKS IN ADVANCE!
Click to expand...
Click to collapse
hi
you can install contacts google ...use file apk
i will update file apk app center
Sent from my MX4 Pro using Tapatalk
Really thanks....
What is the difference beentween the international version and the Chinese version? I'm using my phone in Norway, will this rom support Norwegian?
And if this rom is installed, will ota updates still work?
Thanks
I get "Permission denied" when trying to enter the last command in adb.
[email protected]:/ # dd if=/sdcard/system-i.img
c0/by-name/system
dcard/system-i.img of=/dev/block/platform/15
dd: /sdcard/system-i.img: Permission denied
HabueN said:
I get "Permission denied" when trying to enter the last command in adb.
[email protected]:/ # dd if=/sdcard/system-i.img
c0/by-name/system
dcard/system-i.img of=/dev/block/platform/15
dd: /sdcard/system-i.img: Permission denied
Click to expand...
Click to collapse
Install supersu or try with terminal emulator or try with twrp method.
ucb83 said:
Install supersu or try with terminal emulator or try with twrp method.
Click to expand...
Click to collapse
Will do that. But is there any advantages of installing the I ROM instead of A ROM?
Thanks for answers
stuck at step 4.
where i can find rom.img for meizu m2 note.?
only can find update.zip for international version
---------- Post added at 09:37 AM ---------- Previous post was at 09:27 AM ----------
ok found it. thanks
penyapu79 said:
stuck at step 4.
where i can find rom.img for meizu m2 note.?
only can find update.zip for international version
---------- Post added at 09:37 AM ---------- Previous post was at 09:27 AM ----------
ok found it. thanks
Click to expand...
Click to collapse
link download #1
Gửi từ MX4 Pro của tôi bằng cách sử dụng Tapatalk

[TOOL] Flashize: Turn Shell Scripts Into Flashable Recovery Zips

Flashize: Turn Shell Scripts Into Flashable Recovery Zips
Highlights
Automatically convert shell scripts to flashable zips with a single command.
Don't mess with 'ui_print' crap: standard output and error streams will work just fine.
Can be configured to create a logfile of the execution of the script.
Free software: uses GPL and LGPL version 3 and later licenses.
This is a discussion thread. New versions will not be announced here.
Please 'watch' the Github project to receive notifications. Thank you!
More Info -> HERE
Downloads -> HERE
XDA:DevDB Information
flashize, Tool/Utility for all devices (see above for details)
Contributors
Lanchon
Version Information
Status: Testing
Created 2016-02-12
Last Updated 2016-03-19
Flashize
Downloads -> HERE
Reserved
Wow this is awesome Lanchon!
Sent from my Nexus 6P using Tapatalk
This is so awesome! Thank you!
Lanchon said:
Flashize: Turn Shell Scripts Into Flashable Recovery Zips
Features
Automatically convert shell scripts to flashable zips with a single command.
Don't mess with 'ui_print' crap: standard output and error streams will work just fine.
Displays the script exit code and reports it back to recovery.
The script receives the full path of the zip being flashed as its first parameter.
(Other parameters reserved for future use.)
Free software: uses GPL and LGPL version 3 and later licenses.
For Linux and Un*x-like systems only: requires 'Bash' shell.
(It would be very easy to port to Windoze proprietary crapware, but I won't do it.)
Usage
flashize <input-script> [<output-zip>]
XDA:DevDB Information
flashize, Tool/Utility for all devices (see above for details)
Contributors
Lanchon
Version Information
Status: Testing
Created 2016-02-12
Last Updated 2016-02-12
Click to expand...
Click to collapse
thanks bro brilliant idea works perfect going to share on my Google +
I'd love for a way to use this script without having to use my computer and use my phone instead. I already placed the flashize script file into /data/local/Flashize and set it to 0755 perms. I noticed, though, that in order to execute the script, that the syntax of
Code:
./data/local/Flashize/flashize test.sh testing.zip
doesn't work. Also, just doing
Code:
flashize test.sh testing.zip
doesn't work either while I'm already in the directory. Now, I noticed that if I rename the file to flashize.sh and run the command
Code:
sh flashize.sh
it says this as the output:
Code:
Flashize (2016-02-12)
Usage: <input-script> [<output-zip>]
That means that it should work when I do
Code:
sh flashize.sh test.sh testing.zip
but it does not work. Instead I get this error:
Code:
mkdir: '/tmp' : Read-only file system
Any idea how I can make this script work on my phone? Is there a different location where I should put this script where this will work?
misterpyrrhuloxia said:
I'd love for a way to use this script without having to use my computer and use my phone instead. I already placed the flashize script file into /data/local/Flashize and set it to 0755 perms. I noticed, though, that in order to execute the script, that the syntax of
Code:
./data/local/Flashize/flashize test.sh testing.zip
doesn't work. Also, just doing
Code:
flashize test.sh testing.zip
doesn't work either while I'm already in the directory. Now, I noticed that if I rename the file to flashize.sh and run the command
Code:
sh flashize.sh
it says this as the output:
Code:
Flashize (2016-02-12)
Usage: <input-script> [<output-zip>]
That means that it should work when I do
Code:
sh flashize.sh test.sh testing.zip
but it does not work. Instead I get this error:
Code:
mkdir: '/tmp' : Read-only file system
Any idea how I can make this script work on my phone? Is there a different location where I should put this script where this will work?
Click to expand...
Click to collapse
you could remount rootfs rw, it's a ramdrive anyway
mount -o remount,rw / /
then the script could create /tmp like it wants to.
you might have to run it in a chroot though, cm and busybox only fill so many of the gaps between android and Linux.
bigsupersquid said:
you could remount rootfs rw, it's a ramdrive anyway
mount -o remount,rw / /
then the script could create /tmp like it wants to.
you might have to run it in a chroot though, cm and busybox only fill so many of the gaps between android and Linux.
Click to expand...
Click to collapse
I don't know what rootfs is... And is that the exact command I should run on my phone?
misterpyrrhuloxia said:
I don't know what rootfs is... And is that the exact command I should run on my phone?
Click to expand...
Click to collapse
exact
Code:
su
mount -o remount,rw / /
Please help us Windows guys with this. I have a bricked g stylo.This sounds like it could be my salvation!! Thanks either way.
Sent from my N9521 using Tapatalk
bigsupersquid said:
exact
Code:
su
mount -o remount,rw / /
Click to expand...
Click to collapse
So that got rid of that error but now I'm getting a new error:
Code:
[email protected]:/data/local/Flashize # sh flashize test.sh testing.zip
flashize[113]: zip: not found
Not sure what that means.
misterpyrrhuloxia said:
So that got rid of that error but now I'm getting a new error:
Code:
[email protected]:/data/local/Flashize # sh flashize test.sh testing.zip
flashize[113]: zip: not found
Not sure what that means.
Click to expand...
Click to collapse
are you running stock rom? older cm?
it can't find the zip utility. there may not be one.
newer cm can unzip and zip in terminal.
regardless, the android command line environment you're working with might not be complete enough for the script to work.
misterpyrrhuloxia said:
I'd love for a way to use this script without having to use my computer and use my phone instead. I already placed the flashize script file into /data/local/Flashize and set it to 0755 perms. I noticed, though, that in order to execute the script, that the syntax of
Code:
./data/local/Flashize/flashize test.sh testing.zip
doesn't work. Also, just doing
Code:
flashize test.sh testing.zip
doesn't work either while I'm already in the directory. Now, I noticed that if I rename the file to flashize.sh and run the command
Code:
sh flashize.sh
it says this as the output:
Code:
Flashize (2016-02-12)
Usage: <input-script> [<output-zip>]
That means that it should work when I do
Code:
sh flashize.sh test.sh testing.zip
but it does not work. Instead I get this error:
Code:
mkdir: '/tmp' : Read-only file system
Any idea how I can make this script work on my phone? Is there a different location where I should put this script where this will work?
Click to expand...
Click to collapse
the script doesnt work because its a BASH script. bash is the most common shell in linux. stupid google doesnt want GPL code in userland android so it cant be part of android, just like busybox cant.
it doesnt start because the first line "#!/bin/bash" tells the kernel that bash should be used to open it, and obviously bash is not found in /bin/bash in your phone.
you dont need to rename or chmod the script, you can just invoke it with "sh <name>". but then ASH, a different shell part of busybox, is running it. it was not designed to be run with ash, so no idea whether it should work.
DO NOT mount your system RW and run inappropriate scripts!!!! you can kill you OS!
ill take a look sometime and see if it can be hosted in android.
but first, one question: what is the use case? no use case, no code
bigsupersquid said:
you could remount rootfs rw, it's a ramdrive anyway
mount -o remount,rw / /
then the script could create /tmp like it wants to.
You might have to run it in a chroot though, cm and busybox only fill so many of the gaps between android and linux.
Click to expand...
Click to collapse
do not do this!
misterpyrrhuloxia said:
I don't know what rootfs is... And is that the exact command I should run on my phone?
Click to expand...
Click to collapse
in my script change the line:
td="/tmp/lanchon-flashize"
to some writeable folder you want to use, such as:
td="/sdcard/lanchon-flashize"
misterpyrrhuloxia said:
So that got rid of that error but now I'm getting a new error:
Code:
[email protected]:/data/local/Flashize # sh flashize test.sh testing.zip
flashize[113]: zip: not found
Not sure what that means.
Click to expand...
Click to collapse
and now you need to have the 'zip' binary installed. CM11 has it. dont ask me how to get one!
Lanchon said:
do not do this!
Click to expand...
Click to collapse
I've not had issues myself with overwriting the initrd files even since they reset to the stored boot.img versions on reboot.
but creating things in / would use ram at the least, and I imagine there's devices with overwriteable rootfs, so I definitely understand your warning.
apologies, didn't mean to hijack.
bigsupersquid said:
I've not had issues myself with overwriting the initrd files even since they reset to the stored boot.img versions on reboot.
but creating things in / would use ram at the least, and I imagine there's devices with overwriteable rootfs, so I definitely understand your warning.
apologies, didn't mean to hijack.
Click to expand...
Click to collapse
no prob, its just dangerous
Lanchon said:
in my script change the line:
td="/tmp/lanchon-flashize"
to some writeable folder you want to use, such as:
td="/sdcard/lanchon-flashize"
Click to expand...
Click to collapse
Lanchon said:
and now you need to have the 'zip' binary installed. CM11 has it. dont ask me how to get one!
Click to expand...
Click to collapse
So I got it working in Android!! First of all, I had to change in the script the line
Code:
td="/tmp/lanchon-flashize"
to
Code:
td="/sdcard/lanchon-flashize"
Then I installed a zip utility for Android that I downloaded from here. Then I decided that I wanted a flashable zip. So attached below is a flashable zip that does these things:
Places your Flashize script in /data/local/Flashize.
Installs the Android Zip utility to be able to zip files in the terminal (like unto the utility in CM that you mentioned above).
Creates a command line alias in /system/etc/mkshrc so that way all you have to do to execute the Flashize script is type the command "flashize" in the terminal. This is the same type of aliasing that's common in Linux systems with the ~/.bashrc file.
So after flashing this, all you have to do on your phone to create a flashable zip with Flashize is to navigate to the directory where your shell script is, and run the same command as what's in the OP:
Code:
su
flashize <input-script> [<output-zip>]
What do you think, @Lanchon?
If this helped you out, hit thanks!
This has only been tested on the Motorola Nexus 6 running Pure Nexus rom.

[HELP] Can't flash compiled AOSP

Hey guys, thank you in advance. I have an LG X Power (K220) and I started to develop the stock AOSP from source (Android 6.0.1). I followed all the instruction from LG and Google (downloaded both google and LG source and then merged them). After seven hours of compiling I got my image file: system.img, cache.img, userdata.img and ramdisk.img. It was the time to flash and test the new build, so I used these command:
Code:
fastboot flash cache cache.img
Code:
fastboot flash ramdisk ramdisk.img
But when I have to flash the system.img and the userdata the device tell me that the images are too big and the message “Invalid sparse file format at header magi”. So I googled it and I tried with:
Code:
fastboot -S 256M flash system.img
But nothing. I also read that I could try to modify the BoardConfig.mk and add:
Code:
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
But I do not know what BoardConfig.mk I have to modify becouse when I merge the file and go to /device/lge/k7 there isn't the mk file, so I think that use the generic aosp for arm devices.
How could I solve this problem? Thank you another time :fingers-crossed:
Hi I'm also building AOSP for X Power. You need to change SYSTEM IMAGE partition size in aosp/device/generic/armv7-a-neon/BoardConfig.mk. That's beacouse we use "lunch 1" which mean "lunch aosp_arm-eng". If u need help send me message.
kko7 said:
Hi I'm also building AOSP for X Power. You need to change SYSTEM IMAGE partition size in aosp/device/generic/armv7-a-neon/BoardConfig.mk. That's beacouse we use "lunch 1" which mean "lunch aosp_arm-eng". If u need help send me message.
Click to expand...
Click to collapse
Are you able to build debug versions? That may help things for you.
Maybe I will be able but I'm getting clang error, so I need to fix it first.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/core/host_shared_library_internal.mk:51: out/host/linux-x86/obj/lib/libartd.so] Error 1
kko7 said:
Maybe I will be able but I'm getting clang error, so I need to fix it first.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/core/host_shared_library_internal.mk:51: out/host/linux-x86/obj/lib/libartd.so] Error 1
Click to expand...
Click to collapse
I fixed it. Now I am waiting for the compilation to finish.
If someone want I can upload it to AFH
kko7 said:
I fixed it. Now I am waiting for the compilation to finish.
If someone want I can upload it to AFH
Click to expand...
Click to collapse
How did you fix the error?
Modify build/core/clang/HOST_x86_common.mk
android-review.googlesource.com/c/platform/build/+/223100/1/core/clang/HOST_x86_common.mk
If that doesn't work then
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
But you need to be in aosp folder
kko7 said:
Modify build/core/clang/HOST_x86_common.mk
android-review.googlesource.com/c/platform/build/+/223100/1/core/clang/HOST_x86_common.mk
If that doesn't work then
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
But you need to be in aosp folder
Click to expand...
Click to collapse
Excellent, thank you! ?
Sands207 said:
Excellent, thank you! ?
Click to expand...
Click to collapse
No problem
kko7 said:
Maybe I will be able but I'm getting clang error, so I need to fix it first.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/core/host_shared_library_internal.mk:51: out/host/linux-x86/obj/lib/libartd.so] Error 1
Click to expand...
Click to collapse
How do you fix it?
I trying make a build for my Xperia X and Xperia M2 Aqua, but, justly, launch that error...
sebasrock156 said:
How do you fix it?
I try to make a build for my Xperia X and Xperia M2 Aqua, but, justly, launch that error...
Click to expand...
Click to collapse
Modify core/clang/HOST_x86_common.mk
https://android-review.googlesource.com/c/platform/build/+/223100/1/core/clang/HOST_x86_common.mk
If this doesn't work then try this command:
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
But you need to be in the aosp folder

Categories

Resources